Connor Tumbleson
a073bad32d
Revert "tests: update test to use new "noCompressAssets" property"
...
This reverts commit 653472d006
.
2018-04-06 14:58:56 -04:00
Connor Tumbleson
923ae6e9b8
Revert "tests: refactor tests to use assertEquals instead of hacky assertTrue"
...
This reverts commit d6e3d013e7
.
2018-04-06 14:58:48 -04:00
Connor Tumbleson
4d89228686
Revert "decode: store uncompressed assets to new property"
...
This reverts commit 14eedde165
.
2018-04-06 14:58:42 -04:00
Connor Tumbleson
0700c684b6
Revert "build: introduce "buildUnknownAndUncompressedAssets""
...
This reverts commit e35f66b0e0
.
2018-04-06 14:58:35 -04:00
Connor Tumbleson
72196f3544
Revert "fix: normalize paths for uncompressed assets & unknown files"
...
This reverts commit ca25a26944
.
2018-04-06 14:58:11 -04:00
Connor Tumbleson
46ebcb0fab
Revert "fix: don't use deprecated property "doNotCompress""
...
This reverts commit 258fb82fe2
.
2018-04-06 14:57:24 -04:00
Connor Tumbleson
bb42ef068e
Revert "fix: Applications with implicit sdk versioning lose that information"
...
This reverts commit 25a164dd10
.
2018-04-06 14:57:09 -04:00
Connor Tumbleson
db59f93e36
fix: ignore package "FFFFFFFFFFFFFFFFFFFFFF" to prevent wrong renaming
...
- refs: #1752 / #1471
2018-04-06 14:46:39 -04:00
Connor Tumbleson
041659c43f
style: output "built apk" when task is completed
2018-04-06 14:03:42 -04:00
Connor Tumbleson
25a164dd10
fix: Applications with implicit sdk versioning lose that information
...
- This is a temporary hack to keep application building, but will not
work due to missing nearly all resources.
- refs: #1761
2018-04-06 14:02:41 -04:00
Connor Tumbleson
2d190d019c
fix: remove 6 year old experimental smali resource tagger
...
- refs: #244
- Regular expressions are not the way to fix this. Too many situations
in smali where patterns won't work. Correct fix would be to hook dexlib
2018-04-06 12:03:08 -04:00
Connor Tumbleson
258fb82fe2
fix: don't use deprecated property "doNotCompress"
2018-04-06 10:49:08 -04:00
Connor Tumbleson
ca25a26944
fix: normalize paths for uncompressed assets & unknown files
2018-04-06 10:31:28 -04:00
Connor Tumbleson
e35f66b0e0
build: introduce "buildUnknownAndUncompressedAssets"
...
- processes assets that are stored (uncompressed)
- additionally process unknown files
- modifies application after build process
- prevents "too long" execution command
- fixes #1272
2018-04-05 17:07:55 -04:00
Connor Tumbleson
14eedde165
decode: store uncompressed assets to new property
2018-04-05 17:07:55 -04:00
Connor Tumbleson
d6e3d013e7
tests: refactor tests to use assertEquals instead of hacky assertTrue
2018-04-05 17:07:55 -04:00
Connor Tumbleson
653472d006
tests: update test to use new "noCompressAssets" property
2018-04-05 17:07:55 -04:00
Connor Tumbleson
bd9c9c7cec
decode: only store full relative path to uncompressed assets
2018-04-05 17:07:55 -04:00
Connor Tumbleson
cb6b6dfda8
options: deprecate "doNotCompress", introduce "noCompressAssets"
2018-04-05 17:07:55 -04:00
Connor Tumbleson
e679d71615
test: rename all resources towards new location
2018-04-03 07:24:00 -04:00
Connor Tumbleson
de730ff774
test: move all resources outside of brut/apktool folder
2018-04-03 07:23:32 -04:00
Connor Tumbleson
c7ac2c05e2
update internal framework to API P (Android P Preview - x.x)
...
- refs: #1742
2018-03-13 11:05:15 -04:00
Connor Tumbleson
7621fdb79c
Assume Android P will be API 28
...
- refs: #1742
2018-03-12 15:34:32 -04:00
Connor Tumbleson
1713495ea7
aapt2: move test resources to math structure of tests
2018-03-05 11:00:47 -05:00
Connor Tumbleson
a693f316e0
aapt2: add test to confirm pkgId of 0x80
2018-03-05 10:29:58 -05:00
Connor Tumbleson
722870e6b9
aapt2: don't init XMLUnit if not using the full xml diff
2018-03-05 10:29:44 -05:00
Connor Tumbleson
8ae5d529cb
aapt2: patch yml files to have proper forcedPackageId param
2018-03-05 10:29:20 -05:00
Connor Tumbleson
3f8d9fa835
aapt2: patch system for decoding pkgId between 0x7f - 0xff
2018-03-05 10:28:50 -05:00
Connor Tumbleson
4403329e2e
aapt2: enable --use-aapt2 command
2018-02-28 18:40:25 -05:00
Connor Tumbleson
448d14592f
aapt2: don't rebuild compile stage unless needed
2018-02-28 18:40:13 -05:00
Connor Tumbleson
646eb54102
aapt2: refactor testsuite
...
- split from aapt1/aapt2 (those that do building)
- tests that just test decode (no aapt) split
- categories for androlib/encdoers/util for various others
2018-02-28 15:11:39 -05:00
Connor Tumbleson
09148902ef
aapt2: start of tests for aapt2
2018-02-28 13:27:13 -05:00
Connor Tumbleson
d2c808dd7d
aapt2: refactor loading of aapt/aapt2 binaries
...
- change: die out if invalid aapt path is provided
2018-02-28 11:25:56 -05:00
Connor Tumbleson
f05bd31e59
aapt2: sparse resource pulling from yaml
2018-02-28 11:05:07 -05:00
Connor Tumbleson
3c84590a1a
aapt2: treat verbose output as fine
2018-02-28 10:58:38 -05:00
Connor Tumbleson
6f45869068
aapt2: update binaries
...
- refs: 595581e599
2018-02-22 11:22:41 -05:00
Connor Tumbleson
dc9d1866a5
test: rewrite test suite to use BaseTest extending
2018-02-22 11:22:41 -05:00
Connor Tumbleson
593b357ed1
support test for lib/libs folder
2018-02-22 11:22:41 -05:00
Connor Tumbleson
828ba8aef3
aapt2: kill off aapt1 testsuite, rebuild from scratch
2018-02-22 11:22:40 -05:00
Connor Tumbleson
200ad0250b
aapt2: add linux/windows binaries
...
- very buggy
2018-02-22 11:22:40 -05:00
Connor Tumbleson
5d95b388aa
aapt2: beginning use of aapt2 vs aapt1 params
2018-02-22 11:22:40 -05:00
Connor Tumbleson
5a8bc45653
aapt2: aapt2 is a staged build (compile and link).
...
- we destroy the "compile" stage item after a link, but keep the pending directory
- apktool then cannot complete link stage
- if aapt2 is used, lie to system and re-process
- todo: rethink this
2018-02-22 11:22:40 -05:00
Connor Tumbleson
a8bdad628a
aapt2: wire up zipPackage() instead of using aapt1 for final apk package
2018-02-22 11:22:40 -05:00
Connor Tumbleson
9e5df69d17
aapt2: remove unneeded newline
2018-02-22 11:22:40 -05:00
Connor Tumbleson
f5caccbc2e
aapt2: flag for aapt2 and sparse resources to meta-info/apkOptions
2018-02-22 11:22:40 -05:00
Connor Tumbleson
0827b2b7a2
aapt2: read the type spec and infer if sparsely packed
2018-02-22 11:22:40 -05:00
Connor Tumbleson
88987e60b3
aapt2: Add a flag to determine if sparse resources or not
2018-02-22 11:22:40 -05:00
Connor Tumbleson
f8edbc9332
aapt2: add support for "--use-aapt2" option
2018-02-22 11:22:40 -05:00
Connor Tumbleson
f57c73d421
aapt2: copy "BuildAndDecodeTest" to aapt2 for temporary testing
2018-02-22 11:22:40 -05:00
Connor Tumbleson
ac1402aa7e
aapt2: binary install for mac
2018-02-22 11:22:40 -05:00