Commit Graph

120 Commits

Author SHA1 Message Date
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
osm0sis
2a65fe624e Fix Gradle buildDir deprecation warnings, match CI Java
w: app/build.gradle.kts:50:31: 'getter for buildDir: File!' is deprecated. Deprecated in Java
w: app/build.gradle.kts:51:29: 'getter for buildDir: File!' is deprecated. Deprecated in Java
2023-12-13 11:40:52 -04:00
Yiğit
0a3d163264 Add missing support for Boolean and Long fields (#4)
e.g. IS_TREBLE_ENABLED, IS_DEBUGGABLE and TIME

Reference:
https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/os/Build.java
2023-12-13 11:17:29 -04:00
Chris Renshaw
e4dad4a2d3 Add empty example json with reference link 2023-12-12 08:05:59 -04:00
Chris Renshaw
72717f6948 Change function name to setField to be more accurate 2023-12-11 22:18:50 -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
osm0sis
093cf04232 Fix .gitignore 2023-12-10 20:56:22 -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
9cd7ab38bb Tweak CI wording for clarity 2023-12-05 12:07:06 -04:00
osm0sis
b64cc7e5bb README: Always provide credit where credit is due 2023-12-05 11:59:05 -04:00
Chris Renshaw
7a73d252b1 Update gradle 2023-12-03 08:59:48 -04:00
nyakze
fc500605b7 Update README.md (#1)
Add another very useful post
2023-12-02 12:06:55 -04:00
osm0sis
1dc48e17c3 .github: Display Sponsor button 2023-12-02 00:14:30 -04:00
osm0sis
e4f37428a8 Fix shadowhook submodule v3 2023-12-01 23:25:25 -04:00
osm0sis
be415c03f3 Remove unused Dobby resources 2023-12-01 22:59:49 -04:00
osm0sis
b87ebf75b1 More housekeeping 2023-12-01 22:55:07 -04:00
osm0sis
7c0769c2c2 Artifact zip is now module zip 2023-12-01 22:20:27 -04:00
osm0sis
e3687e9715 Fix libcxx submodule 2023-12-01 22:12:34 -04:00
Chris Renshaw
c94d0e858f Set up Android CI 2023-12-01 21:36:02 -04:00
osm0sis
5464ec90fe Prep module files 2023-12-01 21:09:52 -04:00
osm0sis
025f879a3b Clean up README 2023-12-01 20:31:31 -04:00
osm0sis
e86e39b365 Merge remote-tracking branch 'upstream/custom' into upstream 2023-11-30 08:48:54 -04:00
Marcos
bc1ef14c8d Merge pull request #103 from osm0sis/custom
custom.pif.json check, use and restore; enable custom branch module updates, and more (custom)
2023-11-30 13:27:34 +01:00
osm0sis
e7ed2db1cb Switch to simplest file check for custom json 2023-11-30 08:17:22 -04:00
osm0sis
ffcc2df8b5 Warn of possible conflict if MagiskHidePropsConfig is installed 2023-11-30 08:11:39 -04:00
osm0sis
c07e2707b7 Move props that need to be changed earlier into post-fs-data.sh 2023-11-29 12:49:52 -04:00
osm0sis
502dae9c45 Use custom.pif.json for custom spoofing, restore after update, fix lines 2023-11-29 11:23:21 -04:00
osm0sis
06aa2d83e9 Allow PROPS branch builds to update themselves, fix versioning 2023-11-29 11:01:58 -04:00
chiteroman
72f3882054 Fix JSON parsing, less libs size and few code updates! 2023-11-29 10:10:07 +01:00
Marcos
6282b326e3 Merge pull request #102 from osm0sis/custom
Module scripts fixes/improvements (custom)
2023-11-29 09:03:14 +01:00
Marcos
0731653100 Merge pull request #100 from osm0sis/patch-1
Update .gitignore: hide included pif.json from git tree
2023-11-29 09:01:51 +01:00
Chris Renshaw
67b9c68853 Update .gitignore: hide pif.json from git tree 2023-11-29 00:44:35 -04:00
osm0sis
1a9eb9d2e7 Module scripts fixes/improvements
- add back check_resetprop but rename functions to make their use more clear (thanks HuskyDG)
- combine system.prop (runs at post-fs-data) entries into service.sh so that they're only set if needed (note that they therefore wouldn't need to be late props)
- use a uniform style in all scripts (only necessary quoting and brackets, add trailing newlines, spaces not tabs :P)
- remove GMS data pif.prop/pif.json files left over from previous releases to ensure they don't trigger detection at some point (these lines can be removed again in a later release once we're satisfied everyone affected has this resolved)
2023-11-29 00:20:02 -04:00
Marcos
d9c7b1204e Merge pull request #97 from osm0sis/main
README fixes/improvements (custom)
2023-11-28 10:31:44 +01:00
osm0sis
ab73481f52 README fixes/improvements 2023-11-27 20:49:56 -04: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
96e201d786 Added auto module zip! 2023-11-27 12:37:26 +01:00
Marcos
34b2550bba Merge pull request #92 from HuskyDG/script
Fix detect resetprop
2023-11-27 10:51:46 +01:00