Commit Graph
24 Commits
Author SHA1 Message Date
Dakkshesh a33069b481 java: CertHack: Dont append moduleHash for < Android 12
- To avoid "Unknown tag 724" error on older platfoms like Android 10/11
- Conditionally downgrade keymaster versions to 3.0 on these platforms

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-11 20:33:37 +05:30
Dakkshesh eaa017be86 cpp: RefBase: Dont use incWeakRequireWeak()
- Fixes the following on older android 10/11 platforms:
08-11 14:53:05.143  1388  1388 I TrickyStoreOSS: TrickyStore injector starting...
08-11 14:53:05.144  1388  1388 I TrickyStoreOSS: Starting injection of /data/adb/modules/tricky_store/libTrickyStoreOSS.so (entry: entry) into process 1024
08-11 14:53:05.151   587   587 I Zygote  : Preloading shared libraries...
08-11 14:53:05.155  1026  1053 I ServiceManager: Waiting for service 'package_native' on '/dev/binder'...
08-11 14:53:05.155  1388  1388 W TrickyStoreOSS: Primary dlopen failed for library: /data/adb/modules/tricky_store/libTrickyStoreOSS.so, dlerror: dlopen failed: cannot locate symbol "_ZN7android7RefBase12weakref_type18incWeakRequireWeakEPKv" referenced by "/data/adb/modules/tricky_store/libTrickyStoreOSS.so"..., trying fallback
08-11 14:53:05.155  1388  1388 I TrickyStoreOSS: Using fallback dlopen method for compatibility
08-11 14:53:05.158  1388  1388 E TrickyStoreOSS: Fallback dlopen failed for library: /data/adb/modules/tricky_store/libTrickyStoreOSS.so, dlerror: dlopen failed: cannot locate symbol "_ZN7android7RefBase12weakref_type18incWeakRequireWeakEPKv" referenced by "/data/adb/modules/tricky_store/libTrickyStoreOSS.so"...
08-11 14:53:05.158  1388  1388 E TrickyStoreOSS: Failed to load library in remote process
08-11 14:53:05.158  1388  1388 E TrickyStoreOSS: Injection failed

- Also improve error handling in injection process

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-11 20:33:37 +05:30
Dakkshesh 60bf475d48 app: Bump version to 2.1.0
Signed-off-by: Dakkshesh <dakkshesh5@gmail.com>
2025-08-11 16:21:59 +05:30
Dakkshesh f723e53e2b java: CertHacker: Sanitize the XML data before passing to XML parser
- Remove whitespaces
- Remove Byte Order Mark (BOM)

Fixes #12

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-10 09:39:32 +05:30
Dakkshesh ef87d5dddf java: CertificateHacker: Handle getPackageInfo() correctly
Fixes #11

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-10 00:13:10 +05:30
Dakkshesh 67f7fa061f java: CertificiateHacker: Refactor and tidy up a bit
- Removed unused boilerplate from initial bring up
- Inlined some functions which were fragmented due to some initial plans that were dropped
- Moved appropriate functions to CertificateUtils
- Tidy up some function and variable names

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-07 22:47:12 +05:30
Dakkshesh 64a998000a cpp: Switch to C++23 standard
- Our codebase is written well to support this.
- LSPlt will continue to use c++20 via its cmake logic.

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-07 16:49:42 +05:30
Dakkshesh 52e8056b90 cpp: Move LSPlt configuration to gradle script
Otherwise for some reason it fails to set the vars in CI builds.

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-07 16:24:42 +05:30
Dakkshesh f2c0ed7beb cpp: LSPlt: Disable building shared lib
We dont need it. This also fixes some build errors when `DEBUG_SYMBOLS_PATH` is undefined.

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-07 16:03:09 +05:30
Dakkshesh 9ed495df6d cpp: use LSPlt's own CMake build logic
Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-07 15:41:38 +05:30
Dakkshesh 289f10cb47 cpp: Update LSPlt submodule
Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-07 15:41:07 +05:30
Dakkshesh 54c798b380 cpp: stub: Format using clang-format
Somehow this was missed out during initial formatting.

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-07 11:41:27 +05:30
Dakkshesh bba2281241 config: remove hardcoded generatePackages entries
- This is a leftover from initial bring up when target.txt parsing wasn't implemented.
- Not needed now because we have auto mode.

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-07 11:33:37 +05:30
Dakkshesh 435a79ed64 src: Correct log tag
Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-06 21:06:03 +05:30
Dakkshesh c5b82ef67d src: dos2unix
Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-06 21:01:18 +05:30
Dakkshesh e46820275f src: Add module files
Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-06 19:46:42 +05:30
Dakkshesh 87bb7b2df1 cpp: external: Clean AOSP headers and resolve missing dependencies
- To solve some dependency issues by removing redundant code.
- Added missing headers

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-06 17:50:34 +05:30
Dakkshesh 4898f0efc2 src: cpp: Import binder uapi header from linux kernel
tag: v6.16

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-06 17:49:37 +05:30
Dakkshesh 2a0f54e336 src: cpp: Pull required headers from AOSP
tag: android-16.0.0_r1

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-06 17:48:38 +05:30
Dakkshesh 8ed149154f src: cpp: Add LSPlt submodule
Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-04 14:11:24 +05:30
Dakkshesh 205f939deb build: Update relavant tools
Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-04 14:07:41 +05:30
Dakkshesh 9549296d69 src: Initialize gplv3 license
Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-04 14:01:31 +05:30
Dakkshesh 30e25f461a src: Clean up
Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-04 13:37:26 +05:30
Dakkshesh 9eb151eb07 Initialize a native project
Signed-off-by: Dakkshesh <beakthoven@gmail.com>
2025-08-04 09:38:02 +05:30