Commit Graph

28 Commits

Author SHA1 Message Date
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 cff8ca8b61 Adjust hooking error message
Whoops, not anymore! :P
2023-12-14 02:26:58 -04:00
osm0sis ecfa0bbbdf Future proof to allow spoofing all fields
- very verbose logging (for now)
- combine setProp and setVersionProp into a single universal function
- iterate through all entries to allow modifying any matching android.os.Build or android.os.Build.VERSION field
- add BUILD_ID and VNDK_VERSION support to keep cross-fork API compatibility
- add exceptions for FIRST_API_VERSION (actually DEVICE_INITIAL_SDK_INT) and BUILD_ID (actually ID) for backwards API compatibility
2023-12-11 14:41:49 -04:00
Chris Renshaw 42cffcbe62 Fix fallback to pif.json if included
- pif.json is only to be used in building the module if at some point in the future it's safe to include pif.json in the module zip again
- custom.pif.json is still the correct name to use for retaining the custom file through a module update
2023-12-09 20:49:30 -04:00
osm0sis b87ebf75b1 More housekeeping 2023-12-01 22:55:07 -04:00
osm0sis e7ed2db1cb Switch to simplest file check for custom json 2023-11-30 08:17:22 -04:00
osm0sis 502dae9c45 Use custom.pif.json for custom spoofing, restore after update, fix lines 2023-11-29 11:23:21 -04:00
chiteroman 72f3882054 Fix JSON parsing, less libs size and few code updates! 2023-11-29 10:10:07 +01:00
chiteroman 4dcf53b340 New version for custom spoof! 2023-11-27 17:25:34 +01:00
chiteroman a728533ed6 New update! v13.8 2023-11-27 14:18:58 +01:00
chiteroman 599c27e833 Fix JSON parsing and reformat code 2023-11-26 22:22:56 +01:00
shìwēi nguyen ff8a3481ab fix accessing the array dexBuffer, jsonBuffer out of bounds 2023-11-27 00:42:57 +07:00
shìwēi nguyen 98bd06eb44 Handle reading file properly 2023-11-27 00:32:01 +07:00
chiteroman b72efd6f71 v13.8-beta 2023-11-26 17:02:51 +01:00
chiteroman 913cc6f795 PROPS-v1.2 2023-11-26 10:51:22 +01:00
chiteroman edffde9b1a Custom props! 2023-11-25 17:31:37 +01:00
chiteroman 27c00e2ce7 v13.7 2023-11-25 02:13:22 +01:00
chiteroman bed9055fd3 v13.6 2023-11-24 20:58:30 +01:00
chiteroman cc4a2536a0 New code! 2023-11-24 20:34:31 +01:00
chiteroman 35a735672d Remove pif.prop, broke some devices 2023-11-24 11:52:57 +01:00
chiteroman ed330ac37a v13.5 2023-11-24 01:57:17 +01:00
chiteroman 9774d68b3b v13.5-beta 2023-11-23 20:14:58 +01:00
chiteroman c31569f249 Release v13.4 2023-11-23 00:07:43 +01:00
chiteroman 78dde206ee Improve code 2023-11-22 18:08:47 +01:00
chiteroman f1f271b744 Better code 2023-11-22 00:32:52 +01:00
chiteroman f44e23a90f v13.3 2023-11-21 18:25:33 +01:00
chiteroman bd55606e21 v13.1 2023-11-20 00:42:21 +01:00