Skip to content

Commit

Permalink
feat: signature check
Browse files Browse the repository at this point in the history
Co-authored-by: tehcneko <[email protected]>
  • Loading branch information
omg-xtao and tehcneko committed Aug 15, 2024
1 parent 30f2d1e commit d7905c9
Show file tree
Hide file tree
Showing 21 changed files with 3,468 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ Build:
./gradlew assembleMini<Debug/Release/ReleaseNoGcm>
```

8. Generate `TMessagesProj/jni/integrity/genuine.h` - https://github.com/brevent/genuine

----

## Compilation with GitHub Action
Expand Down Expand Up @@ -182,6 +184,8 @@ Then, use base64 to encode the above.

4. Run Release Build

5. Generate `TMessagesProj/jni/integrity/genuine.h` - https://github.com/brevent/genuine

## FAQ

#### What is the differences between Nagram, NekoX and Nekogram?
Expand Down
4 changes: 4 additions & 0 deletions TMessagesProj/jni/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,9 @@ target_include_directories(breakpad PUBLIC
#voip
include(${CMAKE_HOME_DIRECTORY}/voip/CMakeLists.txt)

# verify
include(${CMAKE_HOME_DIRECTORY}/integrity/CMakeLists.txt)

set(NATIVE_LIB "tmessages.49")

#tmessages
Expand Down Expand Up @@ -789,6 +792,7 @@ target_link_libraries(${NATIVE_LIB}
android
OpenSLES
cpufeatures
genuine
breakpad)


Expand Down
13 changes: 13 additions & 0 deletions TMessagesProj/jni/integrity/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
add_library(genuine STATIC
integrity/am-proxy.c
integrity/apk-sign-v2.c
integrity/common.c
integrity/genuine.c
integrity/inline.c
integrity/openat.c
integrity/path.c
integrity/plt.c)
target_compile_options(genuine PUBLIC
-Oz -Wall -fvisibility=hidden)
target_include_directories(genuine PUBLIC
integrity)
Loading

0 comments on commit d7905c9

Please sign in to comment.