Commit Graph

158 Commits

Author SHA1 Message Date
osm0sis
594ac7c8ac Prepare v7 v7 2024-01-24 14:22:23 -04:00
osm0sis
b8e68d059e Correct XInjectModule placement in replace list 2024-01-24 10:41:34 -04:00
osm0sis
198c2e5486 Fix ROM injection app replacement when using APatch 2024-01-23 12:31:36 -04:00
Chris Renshaw
919526bcd7 Add prop hack return codes for testing, tidy other functions 2024-01-23 00:56:47 -04:00
osm0sis
0b34f95282 Use app data dir to detect GMS package
Prevent injecting into unrelated apps because apps can use whatever process name. This effectively restores df20bdb but with null checks added to prevent crash.

Reference: topjohnwu/Magisk@07c22cc

Co-authored-by: chiteroman <98092901+chiteroman@users.noreply.github.com>
Co-authored-by: Wang Han <416810799@qq.com>
2024-01-22 19:34:23 -04:00
Chris Renshaw
63e4c571bf Hide adbd service state since DroidGuard looks at it
- not currently enforced, but play it safe and spoof it by default like with USB state
2024-01-21 00:50:27 -04:00
osm0sis
bdcfd283f1 Fix ROM injection app replacement when using KernelSU 2024-01-20 23:21:53 -04:00
osm0sis
dbd60afe68 migrate.sh: allow any filename to be specified as input file
- if none is provided it still falls back to looking for custom.pif.json in the current directory
2024-01-20 15:00:07 -04:00
osm0sis
e2cb4e1523 More logging
Co-authored-by: chiteroman <98092901+chiteroman@users.noreply.github.com>
2024-01-19 14:44:35 -04:00
osm0sis
5901844ce3 Add XiaomiEUInject-Stub to the default/example replace list 2024-01-19 09:46:54 -04:00
osm0sis
efb8ee930a Don't attempt to hack props if we don't have a context file 2024-01-18 16:56:45 -04:00
osm0sis
d36b35b7e9 Fix ROM injection app replacement on partitions other than /system 2024-01-18 14:27:55 -04:00
Chris Renshaw
4c08eb1e42 Begin next development cycle 2024-01-18 14:18:52 -04:00
osm0sis
2fa007afa3 Prepare v6 v6 2024-01-17 16:13:20 -04:00
osm0sis
05c2474963 Fix Realme fingerprint scanners 2024-01-17 16:06:39 -04:00
Chris Renshaw
e0931c829d Reduce somewhat unnecessary extra Build field spoofing calls
Co-authored-by: chiteroman <98092901+chiteroman@users.noreply.github.com>
2024-01-16 20:28:28 -04:00
osm0sis
b57f46eed0 Revert "Fix seemingly unnecessary extra Build field spoofing calls"
This reverts commit 05927c60e1.

Seemingly necessary on some ROMs that do their own framework-level spoofing. May our logcats forgive us.
2024-01-16 14:44:29 -04:00
osm0sis
73d89d7a50 Clean up remaining .idea missing trailing newlines 2024-01-15 23:19:32 -04:00
osm0sis
475185c3ee Switch hooking method to Dobby
- Android 14 QPR2 (currently in Beta and due for Stable in March) breaks ShadowHook libc hooking needed for property spoofing
- there are currently no signs of life over at ShadowHook to resolve this despite my reporting it to them over a month ago

Co-authored-by: Nicholas Bissell <thefreeman193@hotmail.com>
Co-authored-by: chiteroman <98092901+chiteroman@users.noreply.github.com>
2024-01-15 23:16:21 -04:00
osm0sis
802c0a7617 Improve logging messages further 2024-01-15 17:18:26 -04:00
osm0sis
9a24cd6f23 Tidy JNI JSON sending/receiving code and logging 2024-01-15 17:05:26 -04:00
osm0sis
22e3a14a6f Refactor VERBOSE_LOGS parsing to directly pass level from Native to Java 2024-01-15 16:36:52 -04:00
osm0sis
24db525cf3 Add advanced Build classes field logging
Co-authored-by: Nicholas Bissell <thefreeman193@hotmail.com>
2024-01-13 14:09:29 -04:00
osm0sis
21a309dd12 More consistent replace file naming, retain custom through an update 2024-01-09 10:52:17 -04:00
osm0sis
05927c60e1 Fix seemingly unnecessary extra Build field spoofing calls
Co-authored-by: arda99 <arda99@noreply.xdaforums.com>
2024-01-08 21:36:34 -04:00
Chris Renshaw
008c0d0ada Add CI run number to zip filename 2024-01-08 20:57:35 -04:00
osm0sis
93ac718229 Support prop hacking on older Android 2024-01-08 16:44:26 -04:00
osm0sis
5aea2e877f README tweaks 2024-01-08 16:09:50 -04:00
osm0sis
d106e2a964 Allow customizable path replacement for conflicting custom ROM apps 2024-01-08 16:06:24 -04:00
osm0sis
a9630901b3 Reorganize slightly and add missing props 2024-01-08 14:15:58 -04:00
osm0sis
d7090f3f73 Use custom function to hack props without increasing prop change counter
- some apps were detecting tampered props from the increased prop_info serial counter using resetprop
- patching doesn't rely on magiskboot hexpatch so should work on KernelSU and APatch as well
- hopefully temporary until all root solutions adopt a patched system_properties repo to fix counters via resetprop
2024-01-08 13:55:55 -04:00
Chris Renshaw
3088f4b179 migrate.sh: remove all use of echo \n to be even more portable 2023-12-28 23:52:50 -04:00
Chris Renshaw
9673971b70 README: document VERBOSE_LOGS advanced logging levels 2023-12-28 20:10:19 -04:00
osm0sis
f6a9f855ef README: document manual migrate.sh execution 2023-12-28 13:28:31 -04:00
Chris Renshaw
edcb94e179 migrate.sh: add help, add force option, fix on shells without echo -e 2023-12-28 13:21:40 -04:00
osm0sis
a3cbed9a4e Clean up last remaining CR+LF 2023-12-27 23:32:40 -04:00
Chris Renshaw
e9b7289950 Begin next development cycle 2023-12-27 22:44:06 -04:00
Chris Renshaw
63fab9cca7 Fix Previous Changelogs link 2023-12-27 17:36:51 -04:00
osm0sis
c3ff39c00d Prepare v5 v5 2023-12-27 15:18:42 -04:00
Chris Renshaw
29a97b49e3 migrate.sh: Don't allow null as FIRST_API_LEVEL/DEVICE_INITIAL_SDK_INT 2023-12-24 22:43:53 -04:00
osm0sis
38f8861f30 Add custom.pif.json migration script
- runs during install/update when an old format file is detected and upgrades it to the current default format which now properly separates Build fields and system properties
- supports all previously used deprecated entries, e.g. BUILD_ID, FIRST_API_LEVEL and VNDK_VERSION
- extracts any missing information for default added fields from the FINGERPRINT
- may also be run manually from command prompt with `sh migrate.sh` or with file explorer app supporting scripts like FX File Explorer
2023-12-24 14:52:44 -04:00
osm0sis
63e4191745 Update example.pif.json for system properties support 2023-12-24 14:01:19 -04:00
Chris Renshaw
6f8706a817 Properly indicate we're in the next development cycle 2023-12-22 00:23:35 -04:00
osm0sis
89348bb75c Remove remaining cross-fork API compatibility hacks 2023-12-21 10:59:57 -04:00
osm0sis
dc10cae2b6 Future proof to allow spoofing all properties
- remove backwards compatibility cruft for all deprecated fields except FIRST_API_LEVEL (for now)
- iterate through all entries with . or * (see next) to allow modifying any matching DroidGuard-checked system property
- allow leading * wildcard to match multiple system properties in one json entry
- add logging levels using VERBOSE_LOGS as the last json entry, with values of 0, 1, 2, 3 or 100
- spoof sys.usb.state to mtp for DroidGuard by default to hide USB Debugging

Co-authored-by: arda99 <arda99@noreply.xdaforums.com>
2023-12-21 01:41:37 -04:00
Chris Renshaw
18ecfd6e32 Update GitHub Actions, use high zip compression 2023-12-17 13:34:31 -04:00
Chris Renshaw
676c5047b9 README: add WearOS caveat, new example template, badges (thanks @zgfg) 2023-12-14 12:59:05 -04:00
Chris Renshaw
cff8ca8b61 Adjust hooking error message
Whoops, not anymore! :P
2023-12-14 02:26:58 -04:00
osm0sis
93c53f5fb5 Prepare v4 v4 2023-12-13 14:28:59 -04:00
osm0sis
c925553198 Fix GMS crashes by aborting Java JSON read if a null/bad value is found 2023-12-13 13:20:47 -04:00