Connor Tumbleson
7d22fc66b5
Initial testing of private namespace
...
- added sample (removed attribute names)
2017-12-14 10:55:35 -05:00
Connor Tumbleson
d46ba2fb82
add small test for #1157
2017-12-13 14:41:36 -05:00
Connor Tumbleson
23486830a9
Passing test for #1587
...
- fixes #1587
- refs: 0fa6418553
2017-12-07 17:10:30 -05:00
Connor Tumbleson
d414bbd3b4
add unit-tests for 1680
2017-12-07 16:38:38 -05:00
Connor Tumbleson
ee2b7206f1
Add test for #1674
2017-11-29 07:43:45 -05:00
Connor Tumbleson
0a3adab84c
Add test changes to detect encoding of raw font files
...
- refs #1662
2017-11-23 06:48:56 -05:00
Connor Tumbleson
3ec4f360ab
Add support for shorthand SDK for bounding check
...
- fixes #1630
2017-09-28 08:23:02 -04:00
Connor Tumbleson
bc00cce9bd
Add support for 4 non-positional attributes
...
- adds tests
- fixes #1611
2017-09-19 17:02:42 -04:00
Connor Tumbleson
f0f87c844e
Adds ability to skip asset files
...
- fixes #1605
- prevents rebuild
2017-09-19 15:51:04 -04:00
Connor Tumbleson
dc33533d76
add tests, make public method
2017-09-19 15:09:25 -04:00
Connor Tumbleson
a0ae7eaea8
Skip any file attempting to use relative paths
...
- fixes #1589
2017-09-03 18:12:57 -04:00
Connor Tumbleson
67b2325136
add font test
2017-08-24 22:49:43 -04:00
Connor Tumbleson
800394cf30
new qualifiers require v26 naming
2017-08-23 17:53:33 -04:00
Connor Tumbleson
adeffe3e98
Initial work at qualifier test suite changes
2017-08-23 17:04:26 -04:00
Connor Tumbleson
68a7eb7a74
example applications (sparse & not) tests
...
- update ARSCDecoder to detail sparse applications
2017-08-23 14:43:57 -04:00
Connor Tumbleson
a1cb15d721
add additional tests for (json/png) deflated unknown files
2017-08-15 17:01:53 -04:00
Connor Tumbleson
0f0ec681b7
Detect root file path on windows vs others
2017-07-26 08:22:27 -04:00
Connor Tumbleson
1c0d6abb75
update license headers
2017-07-05 12:45:51 -04:00
Connor Tumbleson
02c8b62b00
Prevent malicious directory/file work with unknown files
2017-07-05 12:45:17 -04:00
Connor Tumbleson
1597c12472
changed all license files
2017-07-05 12:05:52 -04:00
Connor Tumbleson
2a1160f720
Add unit test for kotlin applications
2017-07-04 09:55:50 -04:00
Connor Tumbleson
28848319af
Skip resources for test
2017-06-11 17:40:25 -04:00
Marvin Killing
4ce8a00180
Merge branch 'master' into issue-1498
2017-06-09 22:56:04 +02:00
Connor Tumbleson
dab59a2aec
Adding a few random AOSP 9 patch images to more test suite more robust.
2017-06-09 08:20:41 -04:00
Connor Tumbleson
b6751f893c
add test for #1511
2017-06-08 16:51:16 -04:00
Connor Tumbleson
e794508869
cleanup tests
2017-05-27 15:23:39 -04:00
Connor Tumbleson
f19317d87c
Prevent doctypes declarations
2017-05-27 15:12:54 -04:00
Connor Tumbleson
c3ea300b96
Add unit-test for #1508
2017-05-25 07:02:10 -04:00
Marvin Killing
f979f202c7
Add failing test for #1498
2017-05-09 21:54:37 +02:00
Connor Tumbleson
b09dce4050
Prevent loading styles if style position is outside of string
...
- fixes #1453
2017-05-08 09:03:13 -04:00
Connor Tumbleson
015f3a734b
Add unit test for #1456
2017-05-08 08:34:03 -04:00
Connor Tumbleson
2d5337d3cb
Keep baksmali options same as previous apktool
2017-04-25 08:42:01 -04:00
Connor Tumbleson
1b55105042
Skip UTF8 test on Windows
...
- fixes #1414
2017-01-19 06:12:41 -05:00
Connor Tumbleson
b60db0917d
Add support for 3 non-positional attributes
...
- fixes #1360 & fixes #1405
- add tests
2017-01-13 07:06:38 -05:00
Connor Tumbleson
0571cccaff
Merge pull request #1395 from iBotPeaches/issue/1394
...
Refactor ExtFile to brut.j.dir
2016-12-29 09:34:37 -05:00
Connor Tumbleson
78a7724725
manually replace %20 w/ space
2016-12-25 08:47:20 -05:00
Connor Tumbleson
891d0d39e0
Refactor ExtFile to brut.j.dir
...
- move to using Paths when possible
- adapt calls to FileDirectory to leverage Paths
2016-12-25 07:57:41 -05:00
Connor Tumbleson
b6127d2a31
Ignore filename checks to allow unicode filenames
...
- fixes #1369
- aapt binaries for mac osx
2016-12-24 07:45:54 -05:00
Connor Tumbleson
5798c9200f
Add unit-test (no unicode)
...
- #1369
2016-12-02 14:28:06 -05:00
Connor Tumbleson
76eb39b8c6
Add passing unit-test for #1298
2016-08-10 09:24:48 -04:00
Connor Tumbleson
3a982948ea
Adds full filepath for STORED files in case of multiple extensions
...
- fixes #1244
- prevents greedy extension check STORE`ing too many files
2016-07-29 09:21:52 -04:00
Connor Tumbleson
3c41d44d8c
add failing test (skipped) for #1274
2016-06-21 07:23:41 -04:00
Connor Tumbleson
c389139434
Handles APKs with missing versionCode/versionName properties
...
- fixes #1264
2016-06-08 07:24:27 -04:00
Connor Tumbleson
a7f3e9b4d0
add unit-test for #1234
2016-04-29 07:07:33 -04:00
Connor Tumbleson
87315af36e
Remove previous android:debuggable value to allow changing
...
- adds unit test
- normalizeNewlines moved to TestUtils
2016-04-28 08:31:36 -04:00
Connor Tumbleson
8689991626
clear /apktool/framework/1.apk in between tests
2016-04-27 07:37:14 -04:00
Connor Tumbleson
d05dc3296a
update tests for new internal framework
2016-04-23 15:12:21 -04:00
Connor Tumbleson
fc43ec2470
unit test to check image color of 9patch
2016-03-24 08:14:20 -04:00
Connor Tumbleson
ea2c821fa5
Add support for AndResGuard
...
- fixes #1170
2016-03-10 09:29:49 -05:00
Connor Tumbleson
f3e21023ac
Prefix integers only exceeding 9 digits to treat as string
...
- This prevents small numbers like "1" to become "\ 1"
- added unit tests
- fixes #1130
2016-02-10 08:05:54 -05:00
Connor Tumbleson
e82ef1034a
actually run issue 1063 unit test
2016-02-10 07:54:58 -05:00
Rover12421
123912d226
Apktool.yml file (MetaInfo) using object serialization
...
non-printable character more intuitive, does not affect printable
character view
2016-01-22 06:28:03 -06:00
Connor Tumbleson
9618ce9759
[skip] code spacing, right margin is 120 chars
2015-12-18 11:31:43 -06:00
Connor Tumbleson
ba7393d705
Fixes #767
...
Handles large int values in AndroidManifest.xml, by prefixing
with `\ ` which aapt treats a string. This prevents truncation
from overflow.
Superseeds PR#1007 - thanks to gio73 for initial research &
MarchMil for continued investigation.
2015-12-18 11:30:28 -06:00
Connor Tumbleson
8374839427
MNC, noticed recently in API 23, is no longer 0 padded. So mnc001 is now mnc1
...
- Frameworks between froyo and honeycomb have mnc001, etc
- A size check of ResConfig header for less than 32 (honeycomb) uses old decode method
- Greater than 32 bytes moves to new decode method of mnc# vs mnc###
2015-12-01 08:48:31 -06:00
Connor Tumbleson
5f5f50f6fd
Fixes edge case where mnc = 1, with no mcc field. Fixes #1072
2015-11-01 06:17:29 -06:00
Connor Tumbleson
26b883ac3b
Updated unit-tests to include API 23 tests
2015-10-08 06:58:32 -05:00
Connor Tumbleson
52dc52c2d3
add failing unit-test for reference in attribute
2015-09-12 15:07:32 -05:00
Connor Tumbleson
c659df9dce
Correctly add version qualifier when decoding
...
- fixes #928
2015-04-29 07:49:02 -05:00
Connor Tumbleson
960d111a1e
cleanup unit-tests to remove hacky renaming of control
2015-04-22 07:20:29 -05:00
Connor Tumbleson
5d405fa842
add a unit-test for provider attr changing
2015-04-18 08:44:25 -05:00
Connor Tumbleson
bb6cd98dfa
fix regression of lang qualifiers
...
- values-xx was improperly decoded as values-b+xx
- added unit test
2015-04-11 12:39:38 -05:00
Connor Tumbleson
da3b8c710d
cleanup messy logic for bcp qualifiers
2015-04-11 11:36:31 -05:00
Connor Tumbleson
aee0792e00
Suppress overwriting platformBuildVersion[Code/Name]
...
- fixes #890
- introduces unit-test comparing manifest
2015-04-04 07:40:38 -05:00
Connor Tumbleson
ae15b2a7f7
fixes #900
...
- removes aapt test (no longer needed)
2015-04-02 08:15:39 -05:00
Greg Leach
628286c022
Java NIO doesn't allow the preservation of the compression method (STORED vs DEFLATED), so unfortunately we need to fall back to ZipEntry-based output for unknown files.
2015-03-24 20:14:05 -07:00
Connor Tumbleson
39fea5fa2c
[tests] add test for shared library rebuild
2015-03-14 08:20:18 -05:00
Connor Tumbleson
dc02abcf51
Add support for more BCP combinations
...
- region, variant, script & language combined
- 2 char language, 2 char region
- 2 char lang, 4 char script, 3 char variant
2015-02-21 16:48:48 -06:00
Connor Tumbleson
505790fcfe
First Pass of BCP47 tests
...
- variant test
- script test
- 3 char packed test
- alone LTR test
2015-02-19 09:06:44 -06:00
Connor Tumbleson
af65dea319
Initial support for BCP47 tags
...
- needs script/variant support
- currently only region(s) supported
2015-02-17 11:48:39 -06:00
Connor Tumbleson
20504d1338
Fix improper handling of MNC_ZERO
...
- add test
- patch ResConfigFlags
2014-12-30 06:08:23 -06:00
Connor Tumbleson
499118219e
[skip] remove test files after completion
2014-12-25 14:01:34 -06:00
Connor Tumbleson
5dfa79934c
[tests] adds tests for shared resources & framework tagging
2014-12-25 12:21:12 -06:00
Connor Tumbleson
cd21bd37a8
[tests] add tests for lollipop (API 21)
2014-11-21 11:26:18 -06:00
Connor Tumbleson
e1a0b9eb8f
[tests] add test for watch (api 20)
2014-11-21 11:26:16 -06:00
Connor Tumbleson
40fdfc50a1
Options Cleanup
...
- remove ugly Hashmap passing
- create ApkOptions
- refactor based on ApkOptions
2014-11-01 21:07:02 -05:00
Connor Tumbleson
9031c22365
[skip] update all copyrights to 2014
2014-10-23 18:14:48 -05:00
Connor Tumbleson
869d287aaa
Cleanup
...
- switch to java7 try-with-resources
- add check in unit-tests for checking control
2014-10-22 22:03:59 -05:00
Connor Tumbleson
18b94d5974
Multiple Dex Support - part 4
...
- add unit tests
- minor cs fixes
2014-08-16 08:55:10 -05:00
Connor Tumbleson
8ad817441f
suppress warnings when coming back from Yaml
2014-05-12 17:12:04 -05:00
Connor Tumbleson
f5fc88e463
add travis-ci builds
...
[travis] skip test on travis
[travis] install 32bit libs
2014-05-09 17:52:29 -05:00
Connor Tumbleson
dbda71d2af
[skip] fix output to match a jar
2014-05-03 07:38:49 -05:00
Connor Tumbleson
d1eb0b01e1
[skip] fixed bad logger name
2014-03-06 09:40:49 -06:00
Connor Tumbleson
119f9d9680
Added jar decode unit-test
2014-03-02 08:46:51 -06:00
Connor Tumbleson
f130c995fb
added failing unit-test for bug 603
2014-02-16 11:16:59 -06:00
Connor Tumbleson
19a1a260a0
refactor aapt test into own test class, move helper function into TestUtils
2014-02-10 07:15:32 -06:00
Connor Tumbleson
7a162fb80f
add long-string unit-tests
2013-12-18 08:41:30 -06:00
Connor Tumbleson
f887709823
unused import removal
2013-11-23 08:37:20 -06:00
Connor Tumbleson
e91790e676
correctly handle incorrect type labeled <array>'s
2013-11-23 08:34:33 -06:00
Connor Tumbleson
6d5d889c27
adjust spacing in test files, removed unused imports
2013-11-15 13:08:27 -06:00
Connor Tumbleson
d2fc74d984
remove jre7 code from testing class, added comments for manifest changing
2013-11-15 13:07:07 -06:00
Connor Tumbleson
102cc0443d
fixed unit-test to properly detect if decode worked
2013-07-15 12:24:07 -05:00
Connor Tumbleson
0919fe5322
move unit test to @beforeClass and test its output as a separate test, due to parallel test running
2013-07-08 13:24:33 -05:00
Connor Tumbleson
ed67a3d94d
updated unit testing
...
-- styles.xml
-- layouts.xml
-- anims.xml
-- drawables.xml
-- attrs.xml
-- raw/blank_test.png
2013-05-12 07:21:13 -05:00
Connor Tumbleson
997df5cfc5
added more plurals/color unit tests
2013-05-11 12:50:59 -05:00
Connor Tumbleson
acc83919d0
add "/libs" unit testing, adjusted naming on previous unit tests
2013-05-09 22:13:00 -05:00
Connor Tumbleson
3a6d548756
fixed problem with nodpi, added drawable unit testing
2013-05-09 21:54:03 -05:00
Connor Tumbleson
8b182cacae
usage redo fixed #403
2013-03-20 21:36:20 -05:00
M1cha
3578010262
add support for automatically patch signatures
...
Conflicts:
brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java
2013-03-19 12:55:44 -05:00
Connor Tumbleson
e4d506ab27
removed --original
2013-03-19 08:52:24 -05:00
Connor Tumbleson
e82c0754de
Code cleanup of 2013
...
Signed-off-by: Connor Tumbleson <connor.tumbleson@gmail.com>
2013-02-12 21:12:17 -06:00
Connor Tumbleson
5a4ffe6ca0
fixed BuildAndDecodeTest, Thanks aspack
2013-01-18 06:39:48 -06:00
Connor Tumbleson
0673c1e2dc
Fixes issue #395 - checks for aapt during build
2013-01-17 10:01:19 -06:00
Connor Tumbleson
f82b2e1855
fixes issue #67 - only compresses resources.arsc if original apk had compressoin
2013-01-13 08:19:42 -06:00
Connor Tumbleson
3b1a8be980
Updated unit-tests for 4.2 APK support, added -a / --apt during build for location to aapt, reverted fix regarding <uses-sdk>
2012-12-23 15:13:01 -06:00
Connor Tumbleson
dd881e21d1
unify smali/baksmali/apktool properties into one folder
2012-09-20 19:28:24 -05:00
Connor Tumbleson
4db49ab347
Adding brut.apktool :/
2012-09-19 20:27:35 -05:00