Commit Graph

1583 Commits

Author SHA1 Message Date
e23eb9cf6b Use Guava's LittleEndianDataInputStream.
This replaces the custom LittleEndianDataInputStream with
guava's implementation. To do this, I had to fix ExtDataInput
to better handle the case where skipBytes doesn't skip all the
bytes (the tests failed without this, and succeed with it). This
appears to be the main difference between the two implementations.
Guava's implementation is preferred because it is already a
dependency and because its license is clearer (the previous
implementation had a vague "public domain" comment in the thread
which may not be legally sufficient).

Fixes #1166
2016-08-05 14:36:34 +01:00
10d09f208c Dependency Updates
- baksmali (2.1.3)
 - findbugs (3.0.1)
 - junit (4.12)
 - snakeyaml (1.17)
2016-08-04 11:07:14 -04:00
2783ec34d0 Update to smali 2.1.3
- fixes #1269
2016-08-03 07:43:02 -04:00
2135ad3057 Prevent truncation of hex values in AndroidManifest
- fixes #972
2016-08-02 22:48:02 -04:00
e6faa56c96 Correctly handle ResTable_typeSpec by using unsigned bytes to prevent overflow
- fixes #1185
 - allows applications that have large typeSpec indexes to work
2016-08-01 23:26:00 -04:00
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
475178605c dump header size during failure 2016-07-21 08:29:06 -04:00
a4270d065e moving to 2.2.0 due to no longer patch release 2016-06-21 08:04:10 -04:00
ed7b094b02 move default framework location on windows/unix
- unix - $HOME/.local/share/apktool
 - windows - $HOME/AppData/Local/apktool
 - #1277
2016-06-21 08:03:00 -04:00
3c41d44d8c add failing test (skipped) for #1274 2016-06-21 07:23:41 -04:00
a684bae43a Fixes improper decoding of @empty value
- fixes #1270
 - references #1116
2016-06-13 08:40:00 -04:00
606e47bf55 Add @empty type 2016-06-13 08:23:08 -04:00
c389139434 Handles APKs with missing versionCode/versionName properties
- fixes #1264
2016-06-08 07:24:27 -04:00
d932c70cbe Forces extensions to lowercase to prevent collisions
- references #1258
2016-05-31 07:34:46 -04:00
1c8a2fa8c9 start new dev cycle (2.1.2-SNAPSHOT) 2016-05-31 07:34:30 -04:00
77d24530d5 version bump (2.1.1) 2016-05-07 16:55:49 -04:00
8d57d95a5f update to smali 2.1.2 2016-05-07 16:54:36 -04:00
47dd120b38 Prevents package renaming of Adobe AIR applications
- fixes #1240
2016-05-04 08:04:28 -04:00
2f67a36c72 Merge pull request #1237 from iBotPeaches/issue/1131
Skips unknown bytes if mismatch occurs after reading Configurations
2016-04-30 10:19:32 -04:00
ba62238843 Skips unknown bytes if mismatch occurs after reading Configurations
- fixes #1131
2016-04-30 09:02:23 -04:00
3e566930c7 Merge branch 'padlar-issue/1234' 2016-04-29 07:08:03 -04:00
a7f3e9b4d0 add unit-test for #1234 2016-04-29 07:07:33 -04:00
7c1ce8bb6e Issue 1234 - Use literal value of versionName when used
When reference string is used for versionName in AndroidManifest.xml,
fetch the literal value of the referened string in the output apk.

This patch doesnt modify the original apk.
2016-04-28 16:25:42 +02:00
96185168a5 Merge branch 'Benjamin-Dobell-aapt-debug-mode' 2016-04-28 08:31:48 -04:00
87315af36e Remove previous android:debuggable value to allow changing
- adds unit test
 - normalizeNewlines moved to TestUtils
2016-04-28 08:31:36 -04:00
032a3e5e25 Reinstate minimalistic debug option to inject android:debuggable with aapt 2016-04-28 08:21:21 -04:00
8689991626 clear /apktool/framework/1.apk in between tests 2016-04-27 07:37:14 -04:00
d05dc3296a update tests for new internal framework 2016-04-23 15:12:21 -04:00
2792b05b9d Merge branch 'BurgerZ-patch-6' 2016-04-23 14:41:04 -04:00
27e92ebbfb add AndroidManifest into internal framework 2016-04-23 14:40:56 -04:00
e768fc6cf6 Merge branch 'patch-6' of https://github.com/BurgerZ/Apktool into BurgerZ-patch-6 2016-04-23 14:03:16 -04:00
513e4b752b Copy AndroidManifest.xml
Copy AndroidManifest.xml along with resources.arsc from the framework apk file instead of creating the fake entry.
2016-04-22 08:32:42 +03:00
36e1b7955c update readme to show gitter chat 2016-04-20 08:05:48 -04:00
2ec2fe817a Fix typo 2016-04-17 15:02:38 +03:00
6e065f15a0 Support of official aapt
Create fake AndroidManifest.xml file inside each installed framework file to support official aapt from Google.
2016-04-17 14:48:51 +03:00
639ac84edb Dont fallback to HighestResSpec Package if only 1 main package
- fixes #1220
2016-04-11 07:05:00 -04:00
607af3c2ee start new dev cycle (2.1.1-SNAPSHOT) 2016-03-28 07:28:26 -04:00
180728d6b8 version bump (2.1.0) 2016-03-27 17:07:20 -04:00
01e4113558 Merge branch 'mattsarett-master' 2016-03-24 08:15:28 -04:00
f2f099a97b Merge branch 'master' of https://github.com/mattsarett/Apktool into mattsarett-master 2016-03-24 08:14:32 -04:00
fc43ec2470 unit test to check image color of 9patch 2016-03-24 08:14:20 -04:00
ecb46ec5e7 Merge pull request #1201 from chirayudesai/ledatainputstream
Replace little endian data input stream implementation
2016-03-23 20:37:01 -04:00
26b60364fb Replace little endian data input stream implementation
* Drop LEDataInputStream (which had a restrictive license)
  with LittleEndianDataInputStream, which is public domain.

A minor change has been made to the new class, removing
the interitance of InputStream.
This makes it's behaviour indentical to the previous implementation,
and unit tests pass.

Fixes #1166
Source: http://www.peterfranza.com/2008/09/26/little-endian-input-stream/
2016-03-23 19:58:16 +05:30
a7535f36d9 add github issue template, move files to .github 2016-03-16 08:48:47 -04:00
ea2c821fa5 Add support for AndResGuard
- fixes #1170
2016-03-10 09:29:49 -05:00
ee8e9cea3d cleanup from removal of smali-debugging 2016-03-10 09:29:05 -05:00
285da3836c Merge pull request #1187 from dnault/bugfix/1186-framework-parsing-performance
#1186 Performance: usage of String.format in ARSCDecoder.addMissingResSpecs
2016-03-08 07:36:33 -05:00
2f1326c6ca #1186 Performance: usage of String.format in ARSCDecoder.addMissingResSpecs
Reduces the time it takes to parse the Android framework by ~50%.

The synthesized name now has no leading zeroes, but this doesn't appear to matter since the numeric part of the name isn't used anywhere.
2016-03-07 11:33:07 -08:00
4f5cc1b903 Removing spaces 2016-03-04 11:27:19 -05:00
ae6f8083f1 Fix bug reencoding 9patch pngs
Fixes issue 1180.
https://github.com/iBotPeaches/Apktool/issues/1180
2016-03-03 18:17:11 -05:00