Commit Graph

16 Commits

Author SHA1 Message Date
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
Chris Renshaw
8414785806 migrate.sh: allow specifying an output file 2024-03-27 02:27:15 -03:00
Chris Renshaw
af7063d055 migrate.sh: support compacted json and some CR/LF mangling 2024-03-23 00:26:20 -03:00
osm0sis
4ab07b71f8 migrate.sh: fix deprecated vndk property entry 2024-03-01 20:13:24 -04:00
Chris Renshaw
26979bd73e migrate.sh: ensure only one value match 2024-02-16 09:58:06 -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
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
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
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
edcb94e179 migrate.sh: add help, add force option, fix on shells without echo -e 2023-12-28 13:21:40 -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