Yaroslav
d29411117e
fix: decoding references to private resources ( #2650 )
...
* fix: decoding references to private resources
* style: fix naming in constructor parameter
* test: add test to check build/decode private references
2021-10-17 12:01:54 -04:00
Connor Tumbleson
3b179f8750
refactor: rename ApkOptions -> Options/BuildOptions
2021-09-06 06:59:30 -04:00
Goooler
5c6d091f39
Merge branch 'master' into refine
2021-08-30 18:48:04 +08:00
Connor Tumbleson
caee50b35b
test: adjust test for SDK S/T
2021-08-29 07:22:05 -04:00
Goooler
94ed86db28
Code cleanups
2021-08-27 01:16:46 +08:00
Goooler
e25c3636ff
Update docs & licenses to use https
2021-08-26 07:40:32 -04:00
Connor Tumbleson
66b1c30fa0
style: use new form of junit assertions
2021-05-31 06:43:40 -04:00
Comnir
491d18058a
test: fix incorrect 3-byte encoding.
2021-04-03 13:47:13 +03:00
Comnir
f10060fe8f
fix: when decoding with UTF-8 fails, create a new buffer for the retry with CESU-8.
...
If the decoding fails and there are UTF-8 decodable bytes before the bytes that couldn't be decoded, then the read index of the original buffer is incremented and those bytes will be missing from the decode result.
Now we create a new buffer and the decoding will start at the original start offset.
issue #2546
2021-04-03 13:28:22 +03:00
Connor Tumbleson
468ead8f10
test: add testcase for static field values
2021-03-28 07:44:16 -04:00
Connor Tumbleson
447ba50332
refactor: drop author tags and support javadocs
2021-03-07 15:06:45 -05:00
Connor Tumbleson
b17832f0e1
style: add missing license headers
2020-12-11 07:07:54 -05:00
Comnir
961f1f94f6
Rename variables in tests.
2020-12-10 14:44:01 +02:00
Comnir
201b5976bb
Add tests for StringBlock#decodeString with failing tests for code points above 0x10FFFF (issue 2299).
2020-12-10 12:29:34 +02:00
Connor Tumbleson
6bd1ab603b
test: add triple dex test to aapt1
2020-11-27 10:51:54 -05:00
Connor Tumbleson
5658c959b4
test: add triple dex test on aapt2
2020-11-27 10:51:54 -05:00
Connor Tumbleson
231ce72483
test: add more tests for #2386
2020-11-27 09:22:41 -05:00
Connor Tumbleson
3101a05ef6
fix: add development next version (S) - API 31
2020-09-13 08:52:15 -04:00
Comnir
306959a6fb
fix the usage of debug flag (-d) when using aapt2
...
- when using aapt and debug flag, we remove the 'debuggable' attribute from AndroidManifest and aapt adds it back. (see issue 1621)
- when using aapt2 and debug flag, we add and set the value of 'debuggable' attribute ourselves.
2020-06-09 07:08:22 -04:00
Peter Retzlaff
408050ffde
Add tests to ensure empty, uncompressed files are put on the doNotCompress list.
...
Also, fix a bug where ext would retain its value from a previous
iteration of the loop, since we don't always overwrite it now.
2020-06-09 07:05:43 -04:00
Peter Retzlaff
05f81f9dd0
Change zero-byte-file tests so they test the correct behavior.
...
* The empty test file needs to be STORED in the testapp, so put it on
the initial doNotCompress list.
* It needs to have a file extension that matches the NO_COMPRESS_PATTERN.
* assertNotSame tests for object equality, which doesn't work for String
comparisons.
2020-06-09 07:05:43 -04:00
Connor Tumbleson
3f831c8221
refactor: copyright year should be year started, not current year
2020-04-11 06:33:05 -04:00
Frieder Bluemle
81ca785e02
Fix file header comment format
2020-02-29 17:37:46 -08:00
Daniel Malmqvist
dc312a5336
Fixes issue with decoding apk containing a zero byte 9patch
2019-09-19 13:34:06 +02:00
Connor Tumbleson
4aa933b31a
test: ensure we don't allow path traversal with win
2019-07-18 07:42:34 -04:00
Connor Tumbleson
342661cbaa
fix: correct license header on "DuplicateDexTest"
2019-07-14 07:30:41 -04:00
Connor Tumbleson
9edcc78ee5
style: clean test file
2019-07-14 07:29:32 -04:00
Daniel Malmqvist
d79724549c
Added new option to skip non classes[0-9]*.dex files
2019-07-14 07:17:20 -04:00
Connor Tumbleson
25a1cb02ef
fix: License 2019 update
2019-07-13 12:19:41 -04:00
Connor Tumbleson
5f43a1fbca
style: cleanup formatting
2019-06-01 09:27:41 -04:00
Adib Faramarzi
cfd50acd1d
Add unit tests
...
- add APK file containing a simple app that tries to use coroutines every 2 seconds, and would fail with earlier versions of APKTool
- add unit test for decoding the app
2019-05-30 22:12:57 +04:30
Connor Tumbleson
3037024022
test: add 32,767 byte string for aapt2
...
- https://issuetracker.google.com/issues/73456167
2019-04-26 14:11:41 -04:00
Connor Tumbleson
4030e94cb3
test: aapt2 test for raw qmg file
2019-04-26 11:14:51 -04:00
Connor Tumbleson
95fe0f3f02
test: assert SDK_Q works with insane test value (10,000)
2019-04-24 18:46:48 -04:00
Connor Tumbleson
bc7302a52b
test: assert that vertical/horizontal divs are added if missing
2019-02-17 13:07:32 -05:00
Vincent Barthelemy
72368fc0d4
bug: reproduce the bug were array resources are decoded as style bag
2019-01-29 10:06:32 +01:00
Connor Tumbleson
cfea3e0831
build: initial attempt at getting travis windows support
...
build: force windows onto the bash environment
build: update permission (+x) of clean-test file
build: "bat" instead of "exe" extension
build: attempt to support long-path names on windows
build: another attempt at long filepaths on windows
build: force +x on scripts prior to execution
build: exit with return code of last command
build: dump out current path
build: dump out current path - part 2
fix: remove 5 chars from path to drop down from 260 windows max path
build: correct gradlew.bat path and remove unneeded lines
fix: remove long path global configuration
fix: restore PATH setting for windows env
build: PATH resets between scripts, fix for windows
2019-01-09 17:43:40 -05:00
Connor Tumbleson
c833a32a6e
style: syntax changes for review
2019-01-04 18:05:51 -05:00
Connor Tumbleson
39faff0a21
test: allow aapt2 xsd test to run
2019-01-04 18:00:33 -05:00
Connor Tumbleson
a5cfe41a8f
test: add test for aapt1/aapt2
...
- ignore aapt2 due to failure
2019-01-04 17:45:51 -05:00
Connor Tumbleson
0dfa6c4656
test: add test to ensure empty ids.xml are generated for aapt1/aapt2
2019-01-03 16:56:25 -05:00
Connor Tumbleson
bec8778d7a
tests: update platformBuild* values to inherit from AndroidManifest
2018-12-18 18:07:40 -05:00
Connor Tumbleson
7a481f68e0
test: updates aapt1 tests to handle the new "compileSdk" attributes
2018-09-02 09:39:07 -04:00
Connor Tumbleson
b49bba19e4
test: don't enforce attribute order or compare attributes that don't exist
2018-09-02 09:37:59 -04:00
Connor Tumbleson
b7d33cb623
style: update license headers that are missing 2018
2018-08-23 16:14:24 -04:00
Connor Tumbleson
abdd536a18
test: add aapt1/aapt2 tests for "0byte" files
2018-07-20 15:21:44 -04:00
Connor Tumbleson
4bda4674f9
test: use correct "new" variable for tests
2018-07-20 15:20:39 -04:00
Connor Tumbleson
eecfc18c82
fix: add another example aapt1 version string
2018-07-02 11:37:55 -04:00
Connor Tumbleson
39ab6b636b
test: add "$" leading resource test
2018-06-14 16:30:16 -04:00
Connor Tumbleson
06aa8db942
test: navigation resource test added
2018-06-12 08:22:10 -04:00