Commit Graph

219 Commits

Author SHA1 Message Date
oSumAtrIX 11c3a6cfd4
fix: only check once for patch options
This prevents checking for the same patches options multiple times when it is already determined to not have any options
2023-08-24 15:52:12 +02:00
oSumAtrIX 963ae3a5fa
docs: add missing inline docs 2023-08-24 15:35:27 +02:00
oSumAtrIX 41898d7547
feat: properly make use of logging facade 2023-08-24 04:41:44 +02:00
oSumAtrIX 1fcc591222
fix: specify correct class containing entry-point 2023-08-23 14:51:44 +02:00
oSumAtrIX b0e748daff
feat: use better logging text 2023-08-23 04:46:42 +02:00
oSumAtrIX ba758f00f4
feat: use simpler log 2023-08-23 04:32:28 +02:00
oSumAtrIX a9c2a5f096
fix: do not use absolute path from custom AAPT2 binary option 2023-08-23 04:29:58 +02:00
oSumAtrIX 47a20afd2d
docs: improve correctness 2023-08-23 03:53:24 +02:00
oSumAtrIX f8972eac3e
fix: use correct option name 2023-08-23 03:40:42 +02:00
oSumAtrIX 9edbbf3163
feat: add options command 2023-08-23 03:35:38 +02:00
oSumAtrIX 32da961d57
feat: use separate command to patch 2023-08-23 03:32:39 +02:00
oSumAtrIX 8a5daab2a3
build: add properties resource file 2023-08-23 03:30:13 +02:00
oSumAtrIX c0cc909626
feat: use separate command to uninstall 2023-08-23 03:30:04 +02:00
oSumAtrIX b74213f66e
feat: use separate command to list patches 2023-08-22 23:41:32 +02:00
oSumAtrIX 07da528ce2
refactor!: restructure code
This commit focuses on improving code quality in a couple of places and bumping the dependency to ReVanced Patcher.

BREAKING CHANGE: This introduces major changes to how ReVanced CLI is used from the command line.
2023-08-22 23:41:31 +02:00
programminghoch10 7174364ef8
feat: show full package name when listing patches (#240) 2023-08-13 13:42:16 +02:00
oSumAtrIX f9cf7d21b7
feat: Improve command line argument descriptions 2023-07-30 02:49:49 +02:00
oSumAtrIX 5eaad33dc1
fix: print original instead of kebab cased names 2023-07-24 14:18:15 +02:00
oSumAtrIX 20e1fdc18d
chore: add notice to move option 2023-07-11 05:11:24 +02:00
oSumAtrIX f6c221d72d
feat: use new patch naming convention 2023-07-11 05:06:46 +02:00
oSumAtrIX d0fc886428
fix: remove duplicate options entries. 2023-06-18 02:18:28 +02:00
oSumAtrIX 379687c814
fix!: support null as option value (#221)
BREAKING-CHANGE: serialize options as JSON instead of TOML
2023-05-04 02:30:10 +02:00
oSumAtrIX 31fb3166d9
fix: correct spelling mistake 2023-04-03 05:07:45 +02:00
oSumAtrIX ac3a8f66f7
fix: correctly word option descriptions
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2023-03-02 20:38:02 +01:00
oSumAtrIX 3718b7992c
build: update dependencies
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2023-02-27 00:53:27 +01:00
oSumAtrIX 6485e477a1
feat: connect to first device if given device was not found 2023-01-15 05:17:38 +01:00
oSumAtrIX 07a423b19e feat: remove option `--with-descriptions` 2023-01-01 18:11:10 +01:00
oSumAtrIX 31e4a41dd2 fix: do not list compatible packages if patches do not define them 2023-01-01 18:11:10 +01:00
oSumAtrIX b69e784785
feat: improve description of options (#185) 2022-12-31 19:17:57 +01:00
oSumAtrIX 545597959a
refactor: remove unused class `ZipFileUtils` 2022-12-16 01:23:37 +01:00
oSumAtrIX ad81a1b656
fix: don't log when package is incompatible and `exclusive` option is used 2022-12-15 23:41:42 +01:00
oSumAtrIX 74d73ca3a7
feat: simplify log message 2022-12-15 22:03:47 +01:00
oSumAtrIX ae91b0d597
fix: start with uppercase in log message 2022-12-15 22:03:29 +01:00
oSumAtrIX 1a67cd81da
fix: use correct prefix in log message 2022-12-15 22:00:08 +01:00
oSumAtrIX 2c7eb7274c
feat: improve missing compatibility annotation tracing log 2022-12-15 00:32:47 +01:00
oSumAtrIX 6e703eb8e8
fix: invalid header when writing a `ZipFile` (#169) 2022-12-14 01:14:00 +01:00
oSumAtrIX c590bf559c
feat: trace logs when compatibility annotation is missing (#166) 2022-12-11 20:08:52 +01:00
oSumAtrIX c9ae379c77
feat!: apply changes from ReVanced Patcher 2022-11-23 00:20:48 +01:00
oSumAtrIX 39e377bc48
feat: do not warn on incompatible packages 2022-11-20 00:34:00 +01:00
decipher 6a35cf7ea4
feat: use `am` instead of `monkey` to launch the app (#159) 2022-10-31 14:15:34 +01:00
oSumAtrIX 6e21d81964
fix: escape quotation mark in string 2022-10-05 20:26:15 +02:00
decipher 3a733e5137
feat: handle unmounting deleted files (#148) 2022-10-05 14:47:23 +02:00
decipher 4f4e1f9834
feat: unmount all occurrences in `/proc/mounts` (#131) 2022-10-05 14:20:41 +02:00
oSumAtrIX e035d93d2c
chore: migrate to new changes from the patcher 2022-10-05 04:12:46 +02:00
oSumAtrIX 839854d890
refactor: remove unused variable 2022-10-04 08:30:53 +02:00
oSumAtrIX b6dff6d832
feat: check, if input file exists 2022-10-01 05:19:42 +02:00
oSumAtrIX 467d8387e6
feat: remove unused option `-r` 2022-09-26 09:00:14 +02:00
Sculas cb0fde4908
refactor: clarify config header 2022-09-12 12:24:36 +02:00
Sculas 075bf406fd
refactor: improve OptionsLoader a lot 2022-09-09 22:50:15 +02:00
Sculas 3f5345af6e
feat: Patch Options CLI implementation (#132)
* feat: Patch Options CLI implementation

* fix: remove leftover log message
2022-09-08 22:35:09 +02:00
Sculas f4b04698d8
fix: don't print same patch multiple times 2022-09-08 22:19:53 +02:00
Sculas e3e74ac0e9
fix: broken deprecation message 2022-09-08 13:49:03 +02:00
Sculas 06d2139ebf
refactor: handle deprecation & cleanup 2022-09-08 12:52:00 +02:00
Nguyen Hoang The Vi 372470c77b
fix: mount bind revanced.apk from magisk's mirror
Some banking apps detect the mountpoint of youtube base apk to determine device is rooted. So mount bind from magisk's mirror to trigger magisk unmount and let it hidden along with magisk hiding.
2022-09-01 02:40:20 +02:00
oSumAtrIX 208c5bc5b0
build: bump patcher dependency version 2022-08-07 21:55:15 +02:00
Ankit Majumder 82efd9941f
refactor: spelling mistake (#114) 2022-08-06 09:54:37 +02:00
Sculas c3d8fecad0
revert: feat: remove extra zipalign step
This reverts commit c8e793efab.
2022-08-04 18:40:17 +02:00
bogadana c8e793efab
feat: remove extra zipalign step (#106)
* feat: remove extra zipalign step

* remove zipfs

* remove use

* reduce compression

* put back misc.xml

* revert stupid autofix
2022-08-03 21:36:38 +02:00
oSumAtrIX bc17298a80
feat: `frameworkFolderLocation` patcher option 2022-07-31 05:56:18 +02:00
oSumAtrIX 168c003a31
refactor: create methods in `MainCommand` class 2022-07-21 23:50:26 +02:00
Canny 96ec6a0384
fix: align every file 2022-07-21 23:49:25 +02:00
Robert d8dbffd7a7
feat: `--custom-aapt2-binary` option (#104) 2022-07-21 14:11:26 +02:00
n0k0m3 5f2bccc4e5
refactor: fix typo (#101) 2022-07-19 17:30:31 +02:00
oSumAtrIX 40c8500e38
refactor: create a variable for duplicate code 2022-07-19 00:50:26 +02:00
oSumAtrIX 9add2f9e82
refactor: fix spelling mistake & add private attribute to field 2022-07-19 00:48:01 +02:00
bogadana a942a57364
feat: more efficient zipalign 2022-07-19 00:19:47 +02:00
EdgE790 d9c5a179c5
fix: Log not showing in CLI (#80)
* Fix #79. Changed from default StreamHandler to FlushingStreamHandler which flushes after every log statement

* Added removal of handlers, so they will not be duplicated.

* Replaced removal of handlers with addition only in case if there are no handlers already.
Changed errorLogger name from hardcoded to reusing previous logger name, so it will have the same name if only first parameter is used.

* Replaced calls ::javaClass.name to ::class.java.name to have proper class names in loggers
2022-07-11 14:25:17 +02:00
oSumAtrIX 2015c2a1dc fix: `defaultExclude` unused 2022-07-11 01:16:44 +02:00
TheJeterLP a26b0ea64d
fix: Make clear what the --exclusive command actually does 2022-07-10 20:04:47 +02:00
oSumAtrIX eb83cabfff
fix: remove `excludePatches` check 2022-07-10 13:58:21 +02:00
bogadana 125fa06ca6
fix: null exception when resource patching is disabled (#85) 2022-07-10 12:19:09 +02:00
Itroublve 131100ef00
feat: `--uninstall` switch (#84)
This moves the move unmount script to a command
2022-07-10 12:17:47 +02:00
bogadana 8e91c12c5e
feat: `--exclusive` switch (#78) 2022-07-10 12:15:28 +02:00
bogadana ac7c7a9a1a
feat: better output for excluded patches (#77) 2022-07-10 12:13:26 +02:00
EdgE790 0ddc2b54b7
feat: separate logger to stdout & stderr (#63) 2022-07-03 16:18:13 +02:00
EdgE790 52b316150d
feat: separate options for `--list` (#60) 2022-07-03 15:57:25 +02:00
Aunali321 31a05b6768
refactor: comment for `unmount` step (#74) 2022-07-03 15:50:12 +02:00
bogadana 57a1e7c27f
feat: `--include` option (#76) 2022-07-03 15:49:25 +02:00
oSumAtrIX 20fa17957e
fix: wrong keystore output path 2022-06-28 00:44:12 +02:00
oSumAtrIX 20e15defc2 fix: wrong separator when using `ZipFileSystemUtils` 2022-06-28 00:12:22 +02:00
oSumAtrIX 9f91f63220 refactor: `ZipFileSystemUtils` 2022-06-28 00:12:22 +02:00
oSumAtrIX 88852a45ac refactor: migrate from `Signature` to `Fingerprint`
BREAKING CHANGE: Not backwards compatible, since a lot of classes where renamed.
2022-06-26 16:34:08 +02:00
oSumAtrIX df85fa37ef
feat: improve logging 2022-06-23 02:10:11 +02:00
oSumAtrIX 04805e45fe
refactor: logging and exception strings 2022-06-22 19:36:23 +02:00
Itroublve 5b8537e6b7
fix: keystore file not found exception (#57)
* fix: keystore file not found exception

* the fix

* fix oopsies
2022-06-22 19:22:19 +02:00
Lucaskyy 1dcdbc9fe9
fix: show actual version in CLI 2022-06-22 16:51:29 +02:00
Lucaskyy 46056956fe
refactor: fix consistency in logging 2022-06-22 16:44:07 +02:00
Lucaskyy 87ffaa4bdb
fix: add callback for addFiles 2022-06-22 16:42:02 +02:00
Lucaskyy 8a49dcc110
Merge remote-tracking branch 'origin/main' into main
# Conflicts:
#	build.gradle.kts
2022-06-22 16:25:53 +02:00
Lucaskyy 4a23cb69bc
feat: add logging back 2022-06-22 16:25:04 +02:00
oSumAtrIX d335846202
fix: use absolute file path for key store 2022-06-22 15:57:15 +02:00
Lucaskyy 51e091ce40
fix: remove logger from Signer.kt 2022-06-22 15:01:48 +02:00
Lucaskyy e5a37e0a5f
refactor: move signing logs 2022-06-22 15:00:24 +02:00
Lucaskyy c94471f464
fix: add back in: option to specify keystore file path 2022-06-22 14:58:12 +02:00
Lucaskyy 2c8a106151
revert: "feat: use of `java.util.logging.Logger`"
This reverts commit 07f6bdf330.
This reverts commit 6c4c1924ee.
2022-06-22 14:56:25 +02:00
oSumAtrIX 6c4c1924ee
feat: migrate logger to `slf4j` 2022-06-22 14:19:06 +02:00
oSumAtrIX 9331594706
feat: add option to specify keystore file path 2022-06-22 13:50:54 +02:00
oSumAtrIX 07f6bdf330
feat: use of `java.util.logging.Logger` 2022-06-22 13:50:54 +02:00
oSumAtrIX a48c0860e3
refactor: simply if condition 2022-06-22 13:50:54 +02:00
oSumAtrIX b30c7375a7
fix: migrate to changes of patcher 2022-06-22 12:06:53 +02:00