Commit Graph

1748 Commits

Author SHA1 Message Date
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
e5ac340cab [ci skip] minor spacing change 2015-12-18 09:46:28 -06:00
Connor Tumbleson
831765665f Handling empty (null) values again 2015-12-14 11:35:15 -06:00
Connor Tumbleson
b2d50bec5f [skip] code style cleanup 2015-12-14 07:10:14 -06:00
Connor Tumbleson
eabb7d819b Correctly read sparse ResourceTables.
Prior to this change, APKs usually went Package -> TypeSpec -> Config (all) -> Entries.
Reading all configs under that TypeSpec. Now we have packages that go
Package -> TypeSpec -> Config (single) -> Entries.

So we have to read this correctly to make sure we can correctly decode sparse and packed
Resource tables.
2015-12-14 07:03:09 -06:00
Connor Tumbleson
7e803aeac9 Gracefully handle null values 2015-12-14 07:00:46 -06:00
Connor Tumbleson
be4bdf1d75 Adds support for DATA_NULL_EMPTY 2015-12-14 07:00:12 -06:00
Connor Tumbleson
6c4167fba4 Fixes #1099
- Moves Config --> Type
 - Moves Type -> TypeSpec
 - ResType -> ResTypeSpec
 - ResConfig -> ResType

 This is to match AOSP and ease the transitions/updates of new AOSP drops
2015-12-07 20:48:57 -06:00
Connor Tumbleson
1e5dc3006e Add headerSize & chunkSize to Header class 2015-12-07 07:34:56 -06:00
Connor Tumbleson
af2f54245b [skip] remove confusing logic 2015-12-03 07:57:12 -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
0649d5a638 remove stillmaintained badge (site is dead) 2015-11-30 16:23:15 -06:00
Connor Tumbleson
b0eb58a426 Merge pull request #1084 from rover12421/readConfigFlags_read_setDeafultValue_28
set readConfigFlags read default value to 28
2015-11-17 08:52:14 -06:00
Rover12421
6f617db53f set readConfigFlags read default value to 28
fix if size == 28, remainingSize error.
2015-11-17 14:31:17 +08: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
a4b5c926f4 fixes #1056
- removes unneeded echo
2015-10-29 07:09:45 -05:00
Connor Tumbleson
9ca830e8a1 Merge pull request #1073 from CzBiX/google_code_url
update url of Google Code to GitHub
2015-10-24 05:49:34 -05:00
CzBiX
7b116d974f update url of Google Code to GitHub 2015-10-24 15:36:00 +08:00
Connor Tumbleson
83f3273a48 Merge branch 'master' of github.com:iBotPeaches/Apktool 2015-10-20 06:27:09 -05:00
Connor Tumbleson
3cc141025f Add deprecation notice for SmaliDebugging - #1061 2015-10-20 06:19:50 -05:00
Connor Tumbleson
ed35a9f72f switch from ssh to https 2015-10-19 17:47:29 -05:00
Connor Tumbleson
183eefc737 Merge pull request #1064 from zoujunhua86/master
add "flyme" to list of ignored renamed packages
2015-10-16 19:04:39 -05:00
zoujunhua
c30261bd15 add "flyme" to list of ignored renamed packages 2015-10-16 16:02:02 +08:00
Connor Tumbleson
8fee3499e3 add unit-test for #1063 2015-10-15 10:52:01 -05:00
Connor Tumbleson
3dea579f66 Prevent casting Strings/Styles to Attrs
- refs #957, #1060
2015-10-15 08:58:19 -05:00
Connor Tumbleson
76a940628f greedy .dex finder is finding dex files in unknown folders
- which android can't load unless its in /root of apk
2015-10-15 08:57:20 -05:00
Connor Tumbleson
e7c1bcefe8 Merge pull request #1059 from iBotPeaches/smali-submodule
Remove smali project in favor of smali submodule
2015-10-14 13:46:31 -05:00
Connor Tumbleson
92077203d8 have travis use github public URLs
attempt to run tests with default tasks

remove notifications & override install command

add git config setup for travis-ci

set email/name globally on travis-ci

run applyPatches before compileJava

remove incremental java build

add "build fatJar proguard" to script run

applyPatches before running script

Update build.gradle

add wrapper to footer (post cleanup)
2015-10-14 13:34:30 -05:00
Connor Tumbleson
3d8a50fc7d add smali submodule 2015-10-14 07:47:01 -05:00
Connor Tumbleson
ca917cf103 update build.gradle to handle patching smali 2015-10-14 07:42:30 -05:00
Connor Tumbleson
7786ba6fdd add old "brut.apktool.smali" folder to ignore 2015-10-14 07:41:54 -05:00
Connor Tumbleson
65f756d21c add smali patches 2015-10-14 07:39:07 -05:00
Connor Tumbleson
7316a6935b remove smali project in preps for submodule 2015-10-14 06:22:32 -05:00
Connor Tumbleson
5e4bae0526 Only stores extension(s) of uncompressed files
- fixes #1053
2015-10-13 07:28:43 -05:00
Connor Tumbleson
2aca068fee start next dev cycle (2.0.3-SNAPSHOT) 2015-10-12 17:20:42 -05:00
Connor Tumbleson
ee9d44c785 version bump (2.0.2) 2015-10-12 15:12:27 -05:00
Connor Tumbleson
0fb21a3758 update internal aapt to API 23 2015-10-12 06:21:25 -05:00
Connor Tumbleson
b54e40ad21 update internal framework to API 23 (marshmallow) 2015-10-08 06:59:05 -05:00
Connor Tumbleson
26b883ac3b Updated unit-tests to include API 23 tests 2015-10-08 06:58:32 -05:00
Connor Tumbleson
a29839bab2 Added API 23 qualifier "roundness" 2015-10-08 06:58:11 -05:00
Connor Tumbleson
0abaab1173 bump smali to 2.0.8 as per 613c493e9698812c0531acf073bc7ca9e4538eac 2015-09-30 14:29:17 -05:00
Alex Light
89ef73b927 Make smali respect order of implements
Previously smali would reorder implements directives to be
alphabetical in the dex file. In the Java 8 Language the order of
interfaces may affect the order of initializer invocation when using
default methods. Therefore we will preserve this order in
smali/baksmai.

Bug: 24338722

Change-Id: I6851b02a5402c7d4cd4b60af54052c320e48d0bf
2015-09-30 14:18:32 -05:00
Ben Gruver
7a3d09cc47 Add ability to list methods/fields/types when assembling with smali
This can be useful in analyzing why you are going over the 64k
method/field/type limit
2015-09-30 14:17:16 -05:00
Ben Gruver
52fd17a436 Handle invalid debug item offsets more gracefully 2015-09-30 14:16:48 -05:00
Ben Gruver
fd489e990c Add backwards compatible version of DexFileFactory.loadDexFile and Opcodes
Keep the old prototype, so we don't break existing code.
2015-09-30 14:16:29 -05:00
Ben Gruver
008b12f97c Replace a missed usage of Iterators.emptyIterator() 2015-09-30 14:16:15 -05:00
Ben Gruver
5cd9d01a9e Remove usages of the deprecated Iterators.emptyIterator() method 2015-09-30 14:14:05 -05:00
Connor Tumbleson
027e135d41 Merge branch 'phhusson-fix-flag-ref' 2015-09-12 15:07:58 -05:00
Connor Tumbleson
0d53923e24 Merge branch 'fix-flag-ref' of https://github.com/phhusson/Apktool into phhusson-fix-flag-ref 2015-09-12 15:07:49 -05:00
Connor Tumbleson
52dc52c2d3 add failing unit-test for reference in attribute 2015-09-12 15:07:32 -05:00