Commit Graph

78 Commits

Author SHA1 Message Date
Chris Renshaw
ee714d1e21 Fix description sed with forgotten in-place flag 2024-04-09 08:44:14 -03:00
Chris Renshaw
6aa58bbc5e Indicate scripts-only mode in module description 2024-04-09 08:24:33 -03:00
Chris Renshaw
25262ce07e migrate.sh: fix parsing/formatting regressions
- DEVICE_INITIAL_SDK_INT value would erroneously be used for DEVICE if DEVICE was missing
- a malformed json trailing , on the last input file entry would break the output format
2024-04-07 02:40:51 -03:00
Chris Renshaw
b4821fb03e migrate.sh: fix parsing for \" and , in json values 2024-04-07 01:45:25 -03:00
Chris Renshaw
8e4e7d1cef migrate.sh: add option to override values using derived fingerprint values 2024-04-06 01:37:55 -03:00
Chris Renshaw
58e04392bf migrate.sh: fix deriving from FINGERPRINT values with unexpected spaces 2024-04-05 16:14:14 -03:00
osm0sis
2c13b924ed Tweak/update comments 2024-03-30 15:19:30 -03:00
Chris Renshaw
8215587745 Make scripts-only mode opt-in only
- older custom ROMs may be able to pass only with the Zygisk components active, since the custom ROM doesn't have the correct stock ROM values
2024-03-28 11:33:08 -03:00
Chris Renshaw
8414785806 migrate.sh: allow specifying an output file 2024-03-27 02:27:15 -03:00
Chris Renshaw
75cf629015 Fix mistakenly forced scripts-only mode on clean installs
- use manual opt-in trigger of a scripts-only-mode file existing in the PIF module subdirectory
- clarify installer message since Magisk Zygisk actually functions on Android < 8 now, but the Zygisk attestation fallback and device spoofing aren't necessary to pass on these (and also some later) devices
2024-03-27 00:59:20 -03:00
osm0sis
36ce25f154 Bring back USNF's scripts-only mode for older Android, but better
- do scripts-only mode automatically on Android < 8.0 since it doesn't support Zygisk and generally doesn't need a PIF module to pass at all
- clean up all unused files in scripts-only mode, and modify script behaviors for it, including allowing GMS on DenyList, and even add it if missing since it's necessary on some scripts-only configurations
- allow manually entering scripts-only mode by deleting the zygisk directory of the currently installed module and reinstalling
- intentionally don't alter the Enforce DenyList state, since we don't know what other modules are installed that might depend on it one way or the other, so leave that up to the user
2024-03-25 15:00:49 -03:00
Chris Renshaw
af7063d055 migrate.sh: support compacted json and some CR/LF mangling 2024-03-23 00:26:20 -03:00
Chris Renshaw
ecbf6d1db8 Begin next development cycle 2024-03-22 19:11:02 -03:00
osm0sis
7d216c30f1 Prepare v8 2024-03-09 22:19:52 -04:00
osm0sis
5703c9bca1 Work around inconsitent wildcard matching behavior in ash [[
- *"/overlay"* is correct for bash [[, and works during an install in ash, but during a boot script in ash results in attempted filename completion and gives an operand error
- "*/overlay/*" works in ash [[, but shouldn't, since it doesn't work in bash [[
- the inconsitent ash behavior in install vs. boot script is likely due to the operating directory of the script in each scenario
2024-03-04 16:16:12 -04:00
osm0sis
ffd510aee5 Fix retaining disabled ROM apps through module updates in some scenarios
- KernelSU or APatch have completely hidden directories/files so would not get recreated
- for .apk files with a config.xml the config.xml would not get recreated due to the 0-size/hidden .apk
2024-03-04 13:48:16 -04:00
osm0sis
b30b43f2ae Fix app replacement messages during install/update 2024-03-03 23:47:36 -04:00
osm0sis
affe99b5ae Handle overlay APKs with config.xml entries correctly 2024-03-03 22:16:21 -04:00
osm0sis
79052ff455 Separate common installation and boot-time scripts and source it 2024-03-02 22:49:46 -04:00
osm0sis
4ab07b71f8 migrate.sh: fix deprecated vndk property entry 2024-03-01 20:13:24 -04:00
osm0sis
34966f58a0 Don't hide CertifiedPropsOverlay config.xml by default to not break GSIs
- GSIs and possibly other ROMs use /system_ext/overlay/config/config.xml with overlay package names and options
- replacing/hiding either CertifiedPropsOverlay.apk or config.xml alone causes bootloops
2024-02-27 15:29:32 -04:00
osm0sis
163678c49a Add PifPrebuilt (com.goolag.pif) to default/example app replace list 2024-02-23 13:55:12 -04:00
Chris Renshaw
26979bd73e migrate.sh: ensure only one value match 2024-02-16 09:58:06 -04:00
Chris Renshaw
c19224b138 Correct comment 2024-02-16 09:50:43 -04:00
osm0sis
bdd846add6 Tidy scripts, clarify KernelSU/APatch hide files/directories 2024-02-08 00:08:57 -04:00
osm0sis
1a7c5103d1 verbose_logs is now verboseLogs
- differentiate all the ways from a BUILD_FIELD_ENTRY and a system.property_entry
- probably better this way in the long run
2024-02-07 22:53:13 -04:00
osm0sis
484ab2aa63 Documentation: fixes, and moar Resources! 2024-02-07 11:29:51 -04:00
osm0sis
87eb713cbd migrate.sh: be more verbose migrating from v4, catch another edge case 2024-02-04 21:57:42 -04:00
Chris Renshaw
fa418290b3 migrate.sh: optionally add advanced settings to json 2024-02-02 18:49:35 -04:00
osm0sis
608e60adbb Allow files on the app replace list 2024-02-02 16:46:59 -04:00
osm0sis
fc8e5108de Update default/example app replace list 2024-01-28 15:40:52 -04:00
Chris Renshaw
3ec6a4b039 Begin next development cycle 2024-01-25 15:03:42 -04:00
osm0sis
594ac7c8ac Prepare 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
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
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 2024-01-17 16:13:20 -04:00
osm0sis
05c2474963 Fix Realme fingerprint scanners 2024-01-17 16:06:39 -04:00
osm0sis
21a309dd12 More consistent replace file naming, retain custom through an update 2024-01-09 10:52:17 -04:00
osm0sis
93ac718229 Support prop hacking on older Android 2024-01-08 16:44:26 -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