Connor Tumbleson
67d80a133f
Ignore the unknown 4 bytes in Android N
2016-08-24 07:56:09 -04:00
Connor Tumbleson
64644a1242
update internal framework to API 24 (Nougat Final Preview)
2016-08-19 08:25:48 -04:00
Connor Tumbleson
76eb39b8c6
Add passing unit-test for #1298
2016-08-10 09:24:48 -04:00
Connor Tumbleson
00abedfa06
Check for null parent references to prevent crash
...
- fixes #745
2016-08-06 12:46:45 -04:00
Connor Tumbleson
bada6441ec
don't edit the original Manifest
...
- use dummy copy and restore original after build
2016-08-06 09:45:18 -04:00
Connor Tumbleson
d0baa841eb
Add support for getting literal values for references in android:scheme
...
- side affect of using public.xml to get constant resource ids
- fixes #1097
2016-08-06 08:31:58 -04:00
Connor Tumbleson
567907b187
Create fake names to prevent abuse from duplicate key names
...
- fixes #894
2016-08-06 07:57:19 -04:00
Connor Tumbleson
6e509695eb
Patch newest AndroResGuard format
2016-08-06 07:56:17 -04:00
Anthony Morris
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
Connor Tumbleson
2135ad3057
Prevent truncation of hex values in AndroidManifest
...
- fixes #972
2016-08-02 22:48:02 -04:00
Connor Tumbleson
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
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
475178605c
dump header size during failure
2016-07-21 08:29:06 -04:00
Connor Tumbleson
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
Connor Tumbleson
3c41d44d8c
add failing test (skipped) for #1274
2016-06-21 07:23:41 -04:00
Connor Tumbleson
a684bae43a
Fixes improper decoding of @empty value
...
- fixes #1270
- references #1116
2016-06-13 08:40:00 -04:00
Pierre-Hugues Husson
606e47bf55
Add @empty type
2016-06-13 08:23:08 -04:00
Connor Tumbleson
c389139434
Handles APKs with missing versionCode/versionName properties
...
- fixes #1264
2016-06-08 07:24:27 -04:00
Connor Tumbleson
d932c70cbe
Forces extensions to lowercase to prevent collisions
...
- references #1258
2016-05-31 07:34:46 -04:00
Connor Tumbleson
47dd120b38
Prevents package renaming of Adobe AIR applications
...
- fixes #1240
2016-05-04 08:04:28 -04:00
Connor Tumbleson
ba62238843
Skips unknown bytes if mismatch occurs after reading Configurations
...
- fixes #1131
2016-04-30 09:02:23 -04:00
Connor Tumbleson
a7f3e9b4d0
add unit-test for #1234
2016-04-29 07:07:33 -04:00
Sunil Shivanand
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
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
Benjamin Dobell
032a3e5e25
Reinstate minimalistic debug option to inject android:debuggable with aapt
2016-04-28 08:21:21 -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
2792b05b9d
Merge branch 'BurgerZ-patch-6'
2016-04-23 14:41:04 -04:00
Connor Tumbleson
27e92ebbfb
add AndroidManifest into internal framework
2016-04-23 14:40:56 -04:00
Andrei Zhukouski
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
Andrei Zhukouski
2ec2fe817a
Fix typo
2016-04-17 15:02:38 +03:00
Andrei Zhukouski
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
Connor Tumbleson
639ac84edb
Dont fallback to HighestResSpec Package if only 1 main package
...
- fixes #1220
2016-04-11 07:05:00 -04:00
Connor Tumbleson
f2f099a97b
Merge branch 'master' of https://github.com/mattsarett/Apktool into mattsarett-master
2016-03-24 08:14:32 -04:00
Connor Tumbleson
fc43ec2470
unit test to check image color of 9patch
2016-03-24 08:14:20 -04:00
Chirayu Desai
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
Connor Tumbleson
ea2c821fa5
Add support for AndResGuard
...
- fixes #1170
2016-03-10 09:29:49 -05:00
Connor Tumbleson
ee8e9cea3d
cleanup from removal of smali-debugging
2016-03-10 09:29:05 -05:00
Dave Nault
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
Matt Sarett
4f5cc1b903
Removing spaces
2016-03-04 11:27:19 -05:00
Matt Sarett
ae6f8083f1
Fix bug reencoding 9patch pngs
...
Fixes issue 1180.
https://github.com/iBotPeaches/Apktool/issues/1180
2016-03-03 18:17:11 -05:00
Connor Tumbleson
eabedeb211
remove unused file
2016-02-27 20:56:14 -05:00
Connor Tumbleson
cd852cd658
Removes SmaliDebugging
...
- fixes #1061
2016-02-27 20:20:53 -05:00
Connor Tumbleson
52e9e8a4d7
fix spacing & change warning message to use LOGGER
2016-02-16 08:18:26 -05:00
Christopher R. Palmer
4a02f5321c
decoder: Extend "keep-broken-res" to also ignore duplicate resources
2016-02-15 11:13:49 -05:00
Connor Tumbleson
b29df52b87
Cleanup unclosed streams plus formatting
...
- run FindBugs to find problems
2016-02-14 20:34:06 -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
Andrei Zhukouski
ce66e17ee0
Hacky fix FileNotFoundException if file name ends with space (issue #1145 )
2016-01-26 11:02:19 +03:00
Connor Tumbleson
fd579747a8
license additions and reverting non-needed changes
2016-01-22 07:17:07 -06: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
81404c8904
close streams that needed closing ( fixes #1143 )
2016-01-22 06:27:23 -06:00
Connor Tumbleson
d5ca4c12a1
fix #1123
...
- correctly handles @null in xml
- added unit test
2016-01-22 06:07:49 -06:00
Connor Tumbleson
0011498b52
[skip] rename var to match extension or file without extension
2016-01-06 12:49:55 -06:00
Andrei Zhukouski
22bd5b0acc
Fixes issue #1122
2016-01-04 13:15:54 +03:00
Ira Hanson
09525bf657
Change non-printable character for Windows compatibility
2016-01-03 16:51:29 -06:00
Ira Hanson
719553aef0
Test APKs with non-printable characters in filenames
2016-01-03 13:35:54 -06:00
Ira Hanson
8232ee0ea8
Consistently encode unknown filenames to prevent cast error
2016-01-02 21:40:15 -06:00
Connor Tumbleson
13b39903d2
empty or null values should not be matched
2015-12-26 06:59:57 -05:00
Connor Tumbleson
f9323943db
Handle Dexguard key names
...
- Temporarily replace with dummy value names till research is completed
- allows decode
2015-12-26 06:59:43 -05:00
Connor Tumbleson
a8a9c40a7b
add ResBoolValue to Style check
2015-12-26 06:58:39 -05: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
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
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
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
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
5e4bae0526
Only stores extension(s) of uncompressed files
...
- fixes #1053
2015-10-13 07:28:43 -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
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
Pierre-Hugues Husson
e7b294a3ea
Fix flags being defined as references
2015-09-10 18:07:00 +02:00
Connor Tumbleson
e8ad159438
Some APKs are reporting wrong pkgId
...
- fallback to renamed package to find that pkgId
2015-08-21 11:01:43 -05:00
Connor Tumbleson
579d7c561e
fixes #1021
...
- adds support for godzillaui
2015-08-15 10:29:24 -05:00
Connor Tumbleson
4219997470
update internal aapt to include various patches
...
- miui support for godzillaui
- miui support for 4 digit mnc/mcc
- no-op the compat functions
2015-08-15 10:20:05 -05:00
Andrew Grieve
392420c909
Adds doNotCompress list to apktool.yml
...
This is the list of files (resources, assets, etc) that are stored in
the .apk uncompressed.
For apps that use AssetFileDescriptor.openFd(), the adding compression
will break the call.
Maintains support for the resourcesAreCompressed key, but no longer
records it when decompiling (it instead records resources.arsc in the
doNotCompress list).
2015-08-14 11:52:33 -04:00
Connor Tumbleson
2033e305af
Prevent reading resources when -r / --no-res is used
2015-08-11 13:47:10 -05:00
Connor Tumbleson
099cc0fcb3
fixes #1005
...
- handles apks that have .9.xml files
2015-08-03 08:45:30 -05:00
Matt Mastracci
4249dde7cc
Propagate the raw int values to callers
2015-07-07 15:39:22 -06:00
Connor Tumbleson
d5f3b3fd5a
[skip] its com.miui.core now
2015-06-29 11:33:13 -05:00
Connor Tumbleson
b878cbd776
[miui] add a new ignored package
2015-06-06 10:43:48 -05:00
Connor Tumbleson
6ee029dd30
Read extra data if over known bytes
...
If the ResConfig had a size over KNOWN_CONFIG_BYTES
then the remaining bytes would be read twice, thus breaking
the next config. Fixes #924
2015-05-22 09:07:15 -05:00
Connor Tumbleson
2c1226fab8
[skip] use append instead of concat
2015-05-22 08:47:51 -05:00
Connor Tumbleson
8254764c6c
More robust ResFileValue detection
...
Previously in 4882396163
, strings that
resembled a filepath (ie res/foo/file), would be assigned to a
ResFileValue, which when attempted to be casted to ResScalarValue would
error out.
Attempting to check the filesystem for such files, slowed apktool's
execution majorly. In order to prevent this, the ClassCastException
and other checks related to checking ResFileValue when type is string
was added.
This allows bogus strings such as (res/foo/file) to be added, but the
exception is caught and allows decoding to continues. Fixes #921 .
2015-05-14 13:27:22 -05:00
Connor Tumbleson
9cb3df85d8
Catch attr lookup on internal attributes
...
Internal attributes will fail the AttrDecoder. Catch the errors
and simply return the undecoded value which will be correct. Fixes #913
2015-05-10 07:36:44 -05:00
Connor Tumbleson
48285bde03
Prevent frameworks from modifying sharedLibrary
...
Since all frameworks are decoded the same via readPackage(), reading
a framework that was a sharedLibrary would throw the sharedLibrary
flag for the apk. Since packageName isn't set until after the first
decode, we check the values to make sure we only set this variable on
the first apk decoded. Refs #936
2015-05-05 07:43:48 -05:00
Connor Tumbleson
1fb87e3e4c
Post smali 2.0.6 cleanup
...
- fix smaliDecoder/AccessorTest to use new DexFileFactory params
- remove unneeded ds/tree files
- cleanup unmerged lines
2015-05-02 06:59:36 -05:00
Connor Tumbleson
0003d56389
Switch to Proguard Gradle
2015-05-01 10:26:10 -05:00
Connor Tumbleson
c659df9dce
Correctly add version qualifier when decoding
...
- fixes #928
2015-04-29 07:49:02 -05:00
Connor Tumbleson
e407fe839b
Correctly rebuild /libs & /lib folder on [b]uild
2015-04-22 07:21: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
14589e3593
If passed string isn't a reference, don't look for it.
2015-04-19 07:44:57 -05:00
Connor Tumbleson
5d405fa842
add a unit-test for provider attr changing
2015-04-18 08:44:25 -05:00
Connor Tumbleson
3208624bf6
Moves all XML parsing related functions to new class: ResXmlPatcher
2015-04-16 08:24:30 -05:00
Connor Tumbleson
addbf8336d
[WIP] Wires up rewriter of @string references in provider attrs
...
- finds all <providers> in manifest
- finds corresponding @string in res/values/strings.xml
- does reference replacement w/ literal value
- fixes #636
2015-04-16 08:24:30 -05:00
Connor Tumbleson
becaf754a9
[skip] use IOUtils.closeQuietly()
2015-04-16 08:20:18 -05:00
Connor Tumbleson
3cdd8243c7
Read res header completely
2015-04-16 08:14:57 -05:00
Connor Tumbleson
7326867b09
re-add copy() method using try-with-resources
2015-04-16 08:12:20 -05:00
Connor Tumbleson
10afb3cd56
Merge branch 'del_BrutIO_copy' of https://github.com/rover12421/Apktool into rover12421-del_BrutIO_copy
2015-04-16 08:03:44 -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
7f487daaf2
[skip] put new github page project url
2015-04-05 10:21:50 -05:00
Connor Tumbleson
a561a95542
Don't ignore multiple dex files when -s is used
...
- fixes #904
2015-04-04 08:09:07 -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
Rover12421
407ffdc5fe
remove BrutIO copy method
...
`copy` method already in IOUtils
2015-03-30 13:30:52 +08:00
Greg Leach
39a2848340
Moving a couple utility functions into BrutIO. Also, formatting change to match spec.
2015-03-25 09:56:55 -07:00
Greg Leach
472a02db41
Formatting for right-hand margin
2015-03-24 20:22:05 -07: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
Rover12421
f3582b60db
buildUnknownFiles optimization
...
newFileSystem will file replication overhead
2015-03-18 09:15:26 +08:00
Connor Tumbleson
39fea5fa2c
[tests] add test for shared library rebuild
2015-03-14 08:20:18 -05:00
Connor Tumbleson
fac43a62b8
remove dependency on sharedLibrary in apktool.yml
2015-03-14 08:20:00 -05:00
Connor Tumbleson
0a74de4ab0
Shared Library Rebuilding Support
...
- handles references with shared resources
- adds support for --shared-lib
- update unit-tests
2015-03-14 08:04:33 -05:00
Connor Tumbleson
2f7ae8c001
[meta] Repo Cleanup
...
- Moved all license files to root
- Moved NOTICE to CONTRIBUTORS.md
- cleaned up .gitignore
- removed redundant gitignores
2015-03-14 08:02:57 -05:00
Connor Tumbleson
a766db9d50
update internal aapt to API 22
2015-03-12 17:44:22 -05:00
Connor Tumbleson
697de20454
update internal framework to API 22 (lollipop mr1)
2015-03-12 17:44:07 -05:00
Connor Tumbleson
40e75a0a39
[skip] sdk version (lollipop mr1)
2015-03-12 17:43:47 -05:00
Connor Tumbleson
2db8828efb
add support for TYPE_NULL
2015-03-12 17:43:17 -05:00
Connor Tumbleson
bbc6023068
gracefully handle apks that have strings that resemble filepaths
...
- ex string res/foo tries to map to resource res/foo
- looks for dot now, ie res/foo.xml
2015-03-06 17:04:43 -06:00
Connor Tumbleson
d9fda1feda
added additional unit-test, cleaned up spacing
2015-03-03 15:38:36 -06:00
Jeremy Hornberger
5076612c87
Ampersand in "<" gets replaced with "&" in plural strings
2015-03-03 15:38:35 -06:00
thuxnder
07b43d687c
use BufferedInputStream for APK
...
faster xml escape function
2015-03-01 10:29:34 -06:00
Connor Tumbleson
4638c06de4
Merge pull request #100 from iBotPeaches/bcp47-support
...
[WIP] Initial support for BCP47 tags
2015-02-25 16:46:22 -06:00
Furniel
ddb4f9770d
SPI are not 9patches
...
- skip these by copying raw
2015-02-24 12:36:43 +02: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
da347b22ba
[skip] remove unused import
2015-02-19 11:37:51 -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
db38c217ae
Update ResConfigFlags for BCP
...
- renamed country to region to match AOSP
- added support for values-xxx-rXX
- added support for BCP47
- default to BCP47 for values-xxx
2015-02-19 09:06:08 -06:00
Connor Tumbleson
d40710005f
Handle BCP additional fields (script & variant)
...
layoutDirection was being read in error. layoutDirection is read
via bit shifting over screenLayout (byte 32, 33)
The then removed layoutDirection freed up 2 bytes. This gave us
12 bytes of unknown space from byte 36 to 48. This corresponded
to localeScript[4] and localeVariant[8]
Adding proper support for those bytes fixed BCP support
2015-02-19 09:05:00 -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
3f571bebef
Handles unreadable $HOME gracefully
...
- superseeds PR 98 (rscarvalho)
2015-02-12 08:18:53 -06:00
Connor Tumbleson
81e6af093b
Removes general access bit hack
...
- fixed in aosp: android_libcore/commit/25681be69e19a834b00cfbf54cd99ac13f12b9ff
- reverts 42f69fd745
- reverts 47a5eac0b0
- fixes googlecode issue 744
2015-01-21 07:12:26 -06:00
Connor Tumbleson
e281f81546
[skip] during info message, don't show apk build dir
2015-01-19 07:25:21 -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
4882396163
Prevent casting strings that resemble filepaths to ResFileValues
...
- add testcase
- adapt changes
- introduce decodeManifestWithResources which uses attr decoding w/ resources
2014-12-26 08:08:50 -06:00
Connor Tumbleson
499118219e
[skip] remove test files after completion
2014-12-25 14:01:34 -06:00
Connor Tumbleson
c91ef3822e
[skip] code style updates
2014-12-25 12:21:30 -06:00
Connor Tumbleson
5dfa79934c
[tests] adds tests for shared resources & framework tagging
2014-12-25 12:21:12 -06:00
Connor Tumbleson
e9d21f84af
Handle apks that utilize Shared Resources
...
- shared resource is currently hardcoded to pkgId 2 like AOSP
- merry christmas
2014-12-25 09:56:25 -06:00
Connor Tumbleson
2bd1e595df
update internal aapt to API 21 (patched)
...
- removes implicit adding of version qualifiers (v4, v7, v13, v21)
2014-12-17 18:08:41 -06:00
Connor Tumbleson
ad70082ebf
fix placement of lollipop natural qualifier check
2014-11-21 11:26:18 -06:00
Connor Tumbleson
cd21bd37a8
[tests] add tests for lollipop (API 21)
2014-11-21 11:26:18 -06:00
Connor Tumbleson
0150835bb0
Add support for BCP-47
...
- Switch to BCP-47 was to move away from hideous java locale toString
- mnc1 padded to mnc01
- mnc10 padded to mnc010
2014-11-21 11:26:17 -06:00
Connor Tumbleson
554591a339
added support for TYPE_DYNAMIC_REFERENCE
2014-11-21 11:26:17 -06:00
Connor Tumbleson
fb67c0cd15
update internal aapt to API 21
2014-11-21 11:26:17 -06:00
Connor Tumbleson
e1a0b9eb8f
[tests] add test for watch (api 20)
2014-11-21 11:26:16 -06:00
Connor Tumbleson
50de34bbf1
add anydpi qualifier
2014-11-21 11:26:16 -06:00
Connor Tumbleson
e08e76152c
update internal framework to API 21 (lollipop)
2014-11-21 11:26:16 -06:00
Connor Tumbleson
daafeb284e
fixes regression introduced in 40fdfc50a1
...
- tagged framework support fixed
2014-11-21 11:25:07 -06:00
Connor Tumbleson
e8dae927d4
Merge pull request #95 from iBotPeaches/cleanup_options
...
Options Cleanup
2014-11-02 07:48:36 -06:00
Connor Tumbleson
9b1c7d22ef
JEB - Fix decompressor when string arrays aren't 4-byte aligned
2014-11-01 21:21:35 -05: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
a7d8ca9086
cs fixes, remove unused imports
2014-10-29 16:18:47 -05:00
Connor Tumbleson
d821717253
java7 try-with-resources and multi catch
2014-10-29 16:18:25 -05:00
Connor Tumbleson
9031c22365
[skip] update all copyrights to 2014
2014-10-23 18:14:48 -05:00
Connor Tumbleson
aba540885e
Gradle Refresh
...
- move common functions to functions.gradle
- use dependency aliases whenever possible
- update to gradle 2.1
- cleanup build.gradle files with proper spacing
- remove duplicated blocks
- compile incrementally (java)
Gradle Refresh v2
- alphabetical order dependencies
- added jdk8 to build tests
- moved script to file for travis
Gradle Refresh v2a
- fix travis
- remove pointless logging
jdk8 isn't ready for travis
2014-10-23 17:43:37 -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
3e6fc8c5ef
QMG are not 9patches
...
- skip these by copying raw
2014-10-22 21:56:54 -05:00
Connor Tumbleson
986b585f26
Removes hardcoded extension of PNG to allow OEM versions (qmg)
...
- adds unit-tests via two qmg files (one 9 patch, one regular)
2014-10-22 16:32:05 -05:00
Connor Tumbleson
1489869344
added unit-test and changelog note
2014-10-20 06:51:06 -05:00
Jeff Smith
db2478a71f
Handle ResStringValue when ResAttr expected in ResStyleValue
2014-10-18 23:40:04 -05:00
Connor Tumbleson
5bc76f197f
update internal framework to API 21 (lollipop)
2014-10-17 13:37:19 -05:00
Connor Tumbleson
99c1ab96da
add api 21 qualifiers
...
- watch
- tiny cs fixes
- tag MIUI related changes
2014-10-17 13:35:02 -05:00
Connor Tumbleson
06bcff5b6f
[skip] update changelog, code style fixes
2014-10-05 12:35:03 -05:00
Connor Tumbleson
62db52fe7b
Handle APKs with NULL padding on StringPools
...
- issue 664
2014-10-05 12:34:38 -05:00
Connor Tumbleson
76bf5ead25
Handle renamed manifests with "yi"
...
- issue 682
2014-10-05 12:33:47 -05:00
Connor Tumbleson
ce3c37c6ab
Handle ARSC files with multiple ResPackages
...
- superseeds - 68c1809a48
2014-10-03 11:31:43 -05:00
Connor Tumbleson
6138d26335
prevent execution if file is named same as apktool framework folder
2014-09-23 08:32:04 -05:00
Connor Tumbleson
7b0ba28a43
[skip] code style
2014-09-23 08:24:45 -05:00
Connor Tumbleson
49b6bf70e4
[skip] check result of .setExecutable()
2014-09-23 07:56:28 -05:00
Connor Tumbleson
ce15b50c1c
handles <string-array> / <array> that require formatted="false" attributes
2014-09-22 18:27:25 -05:00
Connor Tumbleson
3d2e935f08
[skip] cs fixes
2014-08-16 10:17:15 -05:00
Connor Tumbleson
56c953cd16
don't break BC, store classes.dex in /smali
2014-08-16 09:54:34 -05:00
Connor Tumbleson
b2b5eb5f01
[skip] cs fixes, added changes to changelog
2014-08-16 09:48:02 -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
7ef993cc75
Multiple Dex Support - part 3
...
- dexlib2 handles non classes.dex
- cleaned up functions
- cs fixes
2014-08-16 08:45:43 -05:00
Connor Tumbleson
c476ce16be
Multiple Dex Support - part 2
...
- CS fixes
- adds support for building multiple dex
- prevents extra dex from being unknown and extra dex
- adds unit-test
2014-08-16 08:29:57 -05:00
Connor Tumbleson
70eaab9971
Multiple Dex Support
...
- CS fixes
- added decode support for multiple dexes
- decoded to smali_[dex name]
2014-08-15 20:24:12 -05:00
Connor Tumbleson
04d3d1a03a
[skip] remove newline at EOF
2014-06-18 11:06:05 -05:00
Connor Tumbleson
2ca606c04d
Merge branch 'master' of github.com:teprrr/Apktool into teprrr-master
2014-06-18 11:01:20 -05:00
Connor Tumbleson
e126a51b4b
handles manifests with missing named attributes.
...
- fixes #512
2014-06-18 10:59:54 -05:00
Teemu Rytilahti
5eabf19157
Allow using the library externally by catching the exceptions while loading properties from unavailable classes.
2014-06-18 00:53:53 +02:00
Connor Tumbleson
848f0d6b5f
fixed regression introduced in: b149d7bd49
2014-05-30 06:33:17 -05:00
Connor Tumbleson
c29dffe554
fix array type values being misrepresented due to incorrect index
2014-05-25 12:37:14 -05:00
Connor Tumbleson
0ece6cf1b3
update internal aapts for "unknown error -19"
2014-05-25 11:26:29 -05:00
Connor Tumbleson
584d1cda18
ignore "com.lge.internal"
2014-05-18 06:48:01 -05:00
Connor Tumbleson
8ad817441f
suppress warnings when coming back from Yaml
2014-05-12 17:12:04 -05:00
Connor Tumbleson
a3897bfe0d
[spelling] Nul -> Null
2014-05-12 17:11:28 -05:00
Connor Tumbleson
fc0b584af1
[skip] adjusted spacing to match new standard
2014-05-12 17:01:08 -05:00
Connor Tumbleson
0bb217ac88
[skip] code spacing
2014-05-12 17:00:49 -05:00
Connor Tumbleson
b149d7bd49
cleaned up XmlPullStreamDecoder
...
-- removed optimize for manifest bool
-- take attr value once, then re-use
-- used passed ResTable, instead of re-init
2014-05-12 17:00:31 -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
b53101f69e
adds support for ignoring "com.lge"
...
-- fixes issue 630
2014-05-08 15:08:40 -05:00
Connor Tumbleson
dbda71d2af
[skip] fix output to match a jar
2014-05-03 07:38:49 -05:00
Connor Tumbleson
a031787ece
switch from URI to Paths
2014-05-03 07:37:52 -05:00
Connor Tumbleson
251a6bbb11
add unit-test for font tags in <array> item
2014-03-19 16:52:07 -05:00
Connor Tumbleson
25e9ed7281
add more modular support for renamed packages
...
-- There is no "set" rules for renaming a manifest, so we must adapt to patterns. There are some apks that have original package names as "android", "miui", "com.htc", etc. These are not meant for renaming, but exist to align that apk to a specific OEM framework system. (EX HTC system apks have a package id of com.htc). However, this pattern isn't true when framework apks are involved, as the intended behavior is to rename the package from xxx to com.htc (as an example).
-- We solve this by first identifying the active package via the packageId instead of package with most ResSpecs (we fall back on that though)
-- then with two hardcoded arrays of UNKNOWN_PACKAGES and ALLOWED_PACKAGES
2014-03-19 16:23:45 -05:00
Connor Tumbleson
74153661df
add unit-test for jpg image
2014-03-18 10:31:07 -05:00
Connor Tumbleson
1e3b66f9be
adds "miui", "android" and "com.htc" to list of ignored renamed packages.
2014-03-09 17:47:43 -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
b5dcce3738
abstracted unknown files out of resources, to remove dependencies on ResTable
2014-03-02 08:46:35 -06:00
Connor Tumbleson
0736aac013
fixes unknown files being ignored when -r is used
2014-02-22 13:59:36 -06:00
Connor Tumbleson
65b188ae96
fixes unknown files being ignored if prefixed with known file
2014-02-16 11:20:06 -06:00
Connor Tumbleson
f130c995fb
added failing unit-test for bug 603
2014-02-16 11:16:59 -06:00
Connor Tumbleson
f85dc478b2
Github pr #81 - correctly handle non-URI characters in filename
2014-02-10 07:17:56 -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
d90bea10ce
malformed styles
...
if styles are malformed html, then recreation fails with OutOfBounds,
end tag if error occurs to prevent crash
2014-02-09 20:45:16 -06:00
Connor Tumbleson
94b90a6dd2
add code style doc rules, adjusting stringblock to 120 margin
2014-02-09 19:23:25 -06:00
Connor Tumbleson
086139a037
code cleanup of 2014
2014-02-09 19:01:57 -06:00
Connor Tumbleson
c5a8f0c8a5
don't write a trailing /u0000 if its the last char of the string
2014-02-09 18:49:32 -06:00
Connor Tumbleson
541301278b
add unit-tests (very long strings - greater than 32768 chars)
2014-02-09 18:49:05 -06:00
Connor Tumbleson
ca314b9aae
fix abused lengths (strings over 32768) for UTF-16 strings
2014-02-09 18:48:40 -06:00
Connor Tumbleson
b1d1a0863d
remove old hashed binaries during proguard build, update gradle wrapper url
2014-02-08 18:05:57 -06:00
Connor Tumbleson
cc5ae0f1d1
update unit-tests to handle a simple resource in smali
2014-02-08 17:17:02 -06:00
Connor Tumbleson
e48ab8b9b9
threadsafe StringBlock
2014-02-07 07:35:03 -06:00
Connor Tumbleson
e3ed1a448a
refactor gradle version system for release, snapshots and non-git snapshots
2014-02-04 09:54:00 -06:00
Connor Tumbleson
dc2b2fecb8
cleanup new lines and fixup revision properties
2014-02-04 09:52:09 -06:00
Connor Tumbleson
2af523d5d4
correctly handles apk's with one package named "android"
2014-01-13 17:43:09 -06:00
Connor Tumbleson
501a6df677
only store renamed-manifest-package if the apk requires the change
2014-01-07 15:06:45 -06:00
Connor Tumbleson
f6a61ba1b4
rename variables to help user understand, remove unneeded ones
2014-01-07 13:08:48 -06:00
Connor Tumbleson
e254cec648
rework manifest renaming
...
Issue #526 , correctly handles apks where a renamed package is required, by comparing the package name present
in AndroidManifest.xml and resources.arsc. If different, we take the package name present
in resources.arsc (original) and replace it in the <manifest> tag of AndroidManifest.xml. The previous value in
AndroidManifest.xml (renamed) becomes the value to be passed to aapt on rebuild via --rename-manifest-package
Both these values along with the package id of the original are stored in apktool.yml, for use during the
rebuild
2014-01-07 10:59:37 -06:00
Connor Tumbleson
559a3024cc
Ignore multiple types
2014-01-06 06:39:51 -06:00
Connor Tumbleson
7a162fb80f
add long-string unit-tests
2013-12-18 08:41:30 -06:00
Connor Tumbleson
1d745ac0ad
correctly handles abused length strings - jtmuhone
2013-12-18 08:41:18 -06:00
Connor Tumbleson
52767a2a94
add unicode string unit-test and json string test
2013-12-17 16:50:48 -06:00
Connor Tumbleson
d5d03fe1e4
cleanup confusing logic - ntop001
2013-12-09 06:23:21 -06:00
Connor Tumbleson
259ff5ef01
fix nio2 windows problem - funorpain
2013-12-08 16:48:59 -06:00
Connor Tumbleson
f887709823
unused import removal
2013-11-23 08:37:20 -06:00
Connor Tumbleson
a1ca5019d8
fix spacing in ResArrayValue
2013-11-23 08:35:08 -06:00
Connor Tumbleson
e91790e676
correctly handle incorrect type labeled <array>'s
2013-11-23 08:34:33 -06:00
Connor Tumbleson
4b180bd13c
handle MNC_ZERO correctly
2013-11-22 16:22:53 -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
8d0801e6db
cleanup document related functions
2013-11-15 12:08:21 -06:00
Connor Tumbleson
feb71b2aa0
code cleanup (spacing)
2013-11-05 15:38:49 -06:00
Connor Tumbleson
f6623d8a12
add newer release api versions
2013-11-03 19:08:39 -06:00
Connor Tumbleson
acd0fcd9e3
update internal aapt's to API 19
2013-11-02 11:28:59 -05:00
Connor Tumbleson
9a31c135ac
update internal framework to API 19
2013-11-01 20:11:52 -05:00
Connor Tumbleson
bdb718f8a9
added xxxhdpi, added DENSITY_400, added MNC_ZERO
2013-11-01 20:10:39 -05:00
Connor Tumbleson
2ef25fe5e2
fix jar disassembling
2013-10-16 19:48:43 -05:00
Connor Tumbleson
87e39c4bb9
add todo
2013-10-12 15:44:47 -05:00
Connor Tumbleson
68c1809a48
Handles multiple package framework files correctly.
2013-10-12 15:40:06 -05:00
Connor Tumbleson
64bcb32d81
add method to return size of resPackage, (count of ResSpecs)
2013-10-12 15:39:43 -05:00
Connor Tumbleson
02ac674551
Add apktool version to output during decode/rebuild
2013-09-17 21:52:09 -05:00
Connor Tumbleson
27922bdb81
remove hardcoded seperator char
2013-09-17 21:48:31 -05:00
Connor Tumbleson
bd9dce78b4
add warning for unknown operating system and fix getFrameworkDir to use non hardcode seperator char
2013-09-17 21:44:57 -05:00
Connor Tumbleson
0e33e2d477
update to use FileDataStore
2013-09-15 10:35:00 -05:00
Connor Tumbleson
acd335f92d
output as stdout instead of stderr
2013-09-14 12:37:49 -05:00
Connor Tumbleson
d4b86475ca
fix for NPE w/ null version numbers
2013-09-12 17:46:14 -05:00
Connor Tumbleson
be4ae922de
stderr for error messages
2013-09-07 08:54:07 -05:00
Connor Tumbleson
054ddb1388
Fix for window builds due to java.nio
2013-09-07 08:53:07 -05:00
Connor Tumbleson
acea65f63a
fix NPE for outputting to a folder that already exists.
2013-08-15 10:16:52 -05:00
Connor Tumbleson
c27d514a16
update internal aapts to API 18
2013-08-15 10:04:07 -05:00
Connor Tumbleson
d12468a2f7
remove "Done"/"Loaded" messages, as output is becoming clogged.
2013-08-14 08:33:09 -05:00
Connor Tumbleson
6d5fb63ee4
[skip] fix spacing
2013-08-13 15:52:03 -05:00
Connor Tumbleson
dd5723cafa
remove useless check and fix SmaliBuilder to actually build debug files
2013-08-13 15:45:51 -05:00
Connor Tumbleson
f95f9b2f4b
debuginjector - adapt for dexlib2
2013-08-13 15:45:15 -05:00
Connor Tumbleson
5aa18eee2d
[SmaliMod] adjust handling for stream, files and dexlib2
2013-08-13 15:43:35 -05:00
Connor Tumbleson
3acff3ef34
remove DexFileBuilder, due to dexlib2
2013-08-13 08:42:27 -05:00
Connor Tumbleson
a4ac131479
[SmaliDecoder] force 1 job if debug mode
2013-08-13 08:42:04 -05:00
Connor Tumbleson
d07f52bd6a
fix prop location of smali/baksmali, add more checks
2013-08-12 12:28:28 -05:00
Connor Tumbleson
a8f6e40c02
update SmaliDecoder to handle jobs / odex files
2013-08-12 12:28:01 -05:00
Connor Tumbleson
1de4525534
add HelloWorld test smali file into unit-test
2013-08-12 12:27:25 -05:00
Connor Tumbleson
743e67ac9e
adapt build.gradle for new dexlib2 changes
2013-08-12 12:27:07 -05:00
Connor Tumbleson
ca67c00f83
wip
2013-08-12 09:16:51 -05:00
Connor Tumbleson
b0cee3c500
remove duplicate import
2013-08-12 09:16:51 -05:00
Connor Tumbleson
fb7fbf0805
pass api to DexFileFactory
2013-08-12 09:16:51 -05:00
Connor Tumbleson
af32d4da3e
decode sources after resources
2013-08-12 09:16:51 -05:00
Connor Tumbleson
570eaa7023
adapt SmaliDecoder to dexlib2
2013-08-12 09:16:51 -05:00
Connor Tumbleson
a2c8d64d84
adjust build.gradle to handle apktool / dexlib2
2013-08-12 09:16:50 -05:00
Connor Tumbleson
007a6d45a2
Update to smali 2b5
2013-08-12 09:16:50 -05:00
Connor Tumbleson
115db91fab
fixes space in filepath on windows
2013-07-26 16:36:26 -05:00
Connor Tumbleson
fbf8d8fbdf
update internal framework to API 18
2013-07-25 07:52:39 -05:00
Connor Tumbleson
102cc0443d
fixed unit-test to properly detect if decode worked
2013-07-15 12:24:07 -05:00
Connor Tumbleson
6a87c9ffd4
remove un-needed done.
2013-07-08 13:58:46 -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
6b173146ac
fix invalid casting
2013-07-08 12:27:55 -05:00
Connor Tumbleson
63b0dd1edb
fixes JDK bug: 5051418
2013-07-08 12:27:33 -05:00
Connor Tumbleson
932ef75635
remove extra - from --match-original
2013-06-25 08:29:45 -05:00
Connor Tumbleson
6fdf7b37e1
b3: added fixed windows aapt
2013-06-24 14:23:39 -05:00
Connor Tumbleson
65be443e05
regression: fix decoding a jar file.
2013-06-14 13:44:48 -05:00
Connor Tumbleson
6475ef8a77
ignore errors during Manifest alterations, to prevent crashing of apktool
2013-06-12 10:29:16 -05:00
Connor Tumbleson
832978a549
fixes issue 469, added -m / --match-original
...
fixes xml output not having newline after xml declaration
2013-06-12 10:04:28 -05:00
Connor Tumbleson
9f03d7d35c
removes hacky @*android fix
...
Updates unit-tests to actually use AOSP drawables/layouts/anims, instead of using 3rd party ones.
2013-06-05 12:36:24 -05:00
Connor Tumbleson
a4a22a2961
revert commit: 7d5d633b97
2013-06-05 11:58:17 -05:00
Ryszard Wiśniewski
38de56697a
Properly handle style with dot in its name and without a parent style.
2013-06-05 18:45:17 +02:00
Connor Tumbleson
09a978e015
fix for root unknown file on windows
2013-05-24 08:11:10 -05:00
Connor Tumbleson
cfac52a744
fix for Windows Env using FileSystem, thanks @BurgerZ
2013-05-24 07:55:33 -05:00
Connor Tumbleson
c6861e1241
move multi catches to multi-catch (java 7), fixed pkg id not being correctly read from apktool.yml
2013-05-12 10:15:36 -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
aa20036307
fixed problem with <items> showing up in colors.xml
2013-05-12 07:20:35 -05:00
Connor Tumbleson
ac745599ed
close, unclosed ZipFile
2013-05-12 07:20:07 -05:00
Ryszard Wiśniewski
d9cac893f9
Now one non positional substitution and one positional is detected as "multiple non positional".
2013-05-11 20:04:12 +02:00
Ryszard Wiśniewski
14f26474e6
Cleaned up the code related to multiple substitutions in xml strings.
2013-05-11 20:04:12 +02:00
Ryszard Wiśniewski
e7ee8cb178
Decode "%d %" with formatted="false". It's not necessary for current aapt, but it's more consistent with "%d % ".
2013-05-11 20:04:12 +02:00
Ryszard Wiśniewski
68f97980eb
ResXmlEncoders: replaced findNonPositionedSubstitutions() by more flexible findSubstitutions().
...
Also rewritten some bits.
2013-05-11 20:04:12 +02:00
Connor Tumbleson
997df5cfc5
added more plurals/color unit tests
2013-05-11 12:50:59 -05:00
Connor Tumbleson
9186858f33
added lib support for "/libs" folder.
2013-05-10 08:24:24 -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
f93a312308
Prevents double escaping of special chars in arrays.xml/<item> tags
2013-05-05 08:13:32 -05:00
Ryszard Wiśniewski
89133557ca
Added debugLinePrefix CLI option.
2013-05-04 22:04:26 +02:00
Connor Tumbleson
0b37a23874
remove old imports, update changes to reflect fixing of smali debug
2013-05-03 19:30:30 -05:00
Connor Tumbleson
a7236053bf
add unit-test and support for handling unknown files
2013-05-03 19:16:34 -05:00
Ryszard Wiśniewski
150a95f14a
Fixed "b -d" if there are .parameter directives with defined names (e.g.: .parameter "foo")
2013-05-03 14:08:59 -05:00
Connor Tumbleson
ae5e292b1f
Merge branch 'wip-2.0' of git://github.com/brutall/brut.apktool into brutall-wip-2.0
2013-05-02 12:56:46 -05:00
Connor Tumbleson
be73563c43
handle all version(s) as strings, and change java to 1.7
2013-05-02 12:56:18 -05:00
Ryszard Wiśniewski
fba0918b80
Now adding line breakpoints when debugging should be easier in Eclipse, Netbeans and IDEA.
2013-05-02 17:49:30 +02:00
Ryszard Wiśniewski
ed0e4eb64c
Fixed debug injection if there are annotated method parameters.
2013-05-02 17:49:30 +02:00
Ryszard Wiśniewski
fed7f763b9
Fixed "apktool b" with default app_path argument.
2013-05-02 17:49:30 +02:00
Ryszard Wiśniewski
6e7e0c0984
Fixed "-d" option of build command - it was always enabled.
2013-05-02 17:49:30 +02:00
Ryszard Wiśniewski
59da5db05f
Readded smali debugging feature.
2013-05-02 17:49:30 +02:00
Ryszard Wiśniewski
70deba0c5d
TypeName: added fromPath() and fromNameParts().
2013-05-02 17:49:30 +02:00
Connor Tumbleson
ccb76e1abb
adjust output for if|install for --frame-path
2013-05-02 07:08:14 -05:00
Connor Tumbleson
722369fbd7
set console width to 120 to allow documentation to fit perfectly
2013-05-01 21:55:33 -05:00
Connor Tumbleson
168075e493
remove dead imports
...
remove old kxml import
update snakeyaml to 1.12
2013-05-01 18:05:46 -05:00
Connor Tumbleson
db6ecadc00
fix spacing in installFramework()
2013-04-30 07:55:33 -05:00
Connor Tumbleson
d18ee186da
Update density ConfigFlags to ints, updated internal windows aapt.
2013-04-30 07:53:52 -05:00
Connor Tumbleson
47a5eac0b0
fixed install|if frameworks with commons-compress
2013-04-30 07:53:17 -05:00
Connor Tumbleson
9e50300ec2
update spacing
2013-04-07 07:37:52 -05:00
Lars Greiss
7d5d633b97
Apktool: Add new inverted TRDS qualifier
...
into awesome apktool
thanks and cheers
SlimRoms Team
2013-04-06 12:56:42 -05:00
Connor Tumbleson
069a0d5807
include updated aapt for unix and macosx
2013-04-06 12:55:51 -05:00
Connor Tumbleson
42f69fd745
fixes #439
...
Extends ZipFile using apache commons compress ZipFile, to have finer control over the header allowing some parts to be ignored,
ex: the general access bit
2013-04-06 12:50:42 -05:00
Connor Tumbleson
51013d9e0a
remove console width formatting
2013-04-03 22:57:27 -05:00
Connor Tumbleson
3a5530e67b
remove hardcoded htc stuff
2013-04-03 14:07:18 -05:00
Connor Tumbleson
9a6fd7de63
updated to isAdvanceMode() and updated spacing on file
2013-04-01 16:44:19 -05:00
Connor Tumbleson
a48c11dc1c
cleanup of various functions
...
Removed attr sorting that was never enabled and never worked, added @todo elements for unknown file handling, updated usage output
2013-04-01 16:41:27 -05:00
Connor Tumbleson
0ca74eca67
support for decoding unknown files, @todo add support for building unknown files
2013-03-31 17:13:10 -05:00
Connor Tumbleson
2e44e3a856
handle com.htc.resources correctly
2013-03-31 09:05:07 -05:00
Connor Tumbleson
4b8ed4c2b1
progress on UnknownFile handling
2013-03-31 09:04:12 -05:00
Connor Tumbleson
be77354859
only use --forced-package-id if prebuilt aapt is used
2013-03-29 14:49:04 -05:00
Connor Tumbleson
d8b774864c
fix comment on getAaptBinaryFile()
2013-03-29 14:45:54 -05:00
Connor Tumbleson
0c5871687f
fixes #440 includes prebuilt aapt binaries
2013-03-29 14:42:35 -05:00
Connor Tumbleson
90577d40e8
added OSDection, and prebuilt aapt
2013-03-28 19:51:08 -05:00
Connor Tumbleson
c5d2ecf96f
fixed #401 (versionCode / versionName)
2013-03-21 08:58:14 -05:00
Connor Tumbleson
c420a039e0
set --max-res-version if maxsdk version is present
2013-03-21 06:32:18 -05:00
Connor Tumbleson
669d6400d2
minor cosmetic changes to usage output, added publicize-resources
2013-03-21 06:12:35 -05:00
Felipe Barriga Richards
9677119324
Issue 359: Can't decompile Notif Pro 0.31 / Tested on other apk
2013-03-21 05:48:12 -05:00
Connor Tumbleson
43993551bd
updated changes, removed license from usage output
2013-03-21 05:44:58 -05:00
Connor Tumbleson
82eb3af7e7
forgot addition of --quiet and --verbose
2013-03-20 21:56:39 -05:00
Connor Tumbleson
b6afd4b580
removed unused imports in Main.java
2013-03-20 21:41:48 -05:00
Connor Tumbleson
8b182cacae
usage redo fixed #403
2013-03-20 21:36:20 -05:00
Connor Tumbleson
74493651e6
moar cli work
2013-03-20 20:37:52 -05:00
Connor Tumbleson
6757c0a79f
finished cli usage printout
2013-03-20 16:58:24 -05:00
Connor Tumbleson
dca0182339
progress on #403
2013-03-20 08:53:39 -05:00
M1cha
071ce71a61
apktool-lib: fix recompiling framework apk's with dependencies by using static package-id
2013-03-19 12:55:58 -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
69ee710e30
fixes #427 , correctly handles --frame-path
on build
2013-03-14 16:50:27 -05:00
Connor Tumbleson
ba00d532c6
add kxml2 (2.3.0)
2013-03-14 07:56:53 -05:00
Connor Tumbleson
e6cf72f1d2
Merge pull request #71 from rchiossi/master
...
Fix for Null Reference while extracting Resources.
2013-02-27 17:26:56 -08:00
Rodrigo Chiossi
bad8392487
Fix null mConfig in addMissingResSpecs()
2013-02-27 12:09:06 -03:00
Connor Tumbleson
8a9af4ab31
update known bytes to 38
2013-02-24 10:53:40 -06:00
Connor Tumbleson
626d7e7ecd
fixes #396 , update to smali v1.4.2
2013-02-16 07:32:39 -06:00
Connor Tumbleson
881bb56b4d
removing register and class path overrides
2013-02-16 06:47:17 -06: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
f504ceca43
minor comment change / cleanup
2013-02-03 11:50:31 -06:00
Connor Tumbleson
dbce4479b2
added -version to print out raw version number
2013-01-30 20:22:13 -06:00
Connor Tumbleson
39a9bf054c
actually commit previous commit
2013-01-29 21:26:08 -06:00
Connor Tumbleson
7fe733bf43
adding support for htc .r.9.png
2013-01-21 08:25:57 -06:00
Connor Tumbleson
484feea284
removing dead code, code cleanup
2013-01-19 16:35:48 -06:00
KDGDev
60f0d9848d
Optimized, not need function
2013-01-19 21:55:40 +04:00
Connor Tumbleson
c836995ead
optimizations to ApkDecoder regarding reading compression of resources.arsc
2013-01-18 14:26:14 -06:00
Connor Tumbleson
cb5bad5555
added ability to use --frame-path during install of frameworks
2013-01-18 08:19:19 -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
92eae964a9
fixes issue #394 , and changes building script to fatJar (instead of build)
2013-01-17 07:58:50 -06:00
Connor Tumbleson
bbee938b5c
deleted not-needed smali stuff, renamed license for smali to prevent conflicts, worked on Proguard
2013-01-16 21:51:04 -06:00
Connor Tumbleson
3947b4c941
cleaning up gradle build files, removing proguard
2013-01-16 19:18:32 -06:00
Connor Tumbleson
6744b2469c
gradle redo (moved each to their own project for organization)
2013-01-16 16:06:32 -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
aebdf7a519
only show -aapt info in verbose mode
2013-01-06 09:57:44 -06:00
Connor Tumbleson
e9196c28b8
output smali filename instead of filestream
2013-01-05 08:50:48 -06:00
Connor Tumbleson
2a7cf75682
ugh SpringSuite is half-commiting. Adjusting null -> "" for strings
2012-12-23 16:02:00 -06:00
Connor Tumbleson
c62f1c5f64
dont substring release build, as it pulls name directly from build.gradle
2012-12-23 15:23:12 -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
3b0ca62fb0
fix warnings related to <uses-sdk>
2012-12-23 10:10:36 -06:00
Connor Tumbleson
46bfe8b66f
new internal framework for API 17 (updated)
2012-12-23 09:24:17 -06:00
Connor Tumbleson
9d19ad1355
adding support for release / snapshot builds via gradle. kudos to #smali
2012-12-19 18:19:20 -06:00
Connor Tumbleson
559ed2853a
prevents renaming manifest if package is "android" and fixes deletion of tmp files
2012-12-19 07:57:52 -06:00
Connor Tumbleson
04b5508c3a
Android 4.2 support finally ? updated some internal libs, fixed --renamed-package
2012-12-18 19:40:42 -06:00
Connor Tumbleson
f065a5be92
properly store package information (manifest AND resources.arsc info) in apktool.yml for renamed packages
2012-12-13 21:14:41 -06:00
Connor Tumbleson
4410e466f5
Merge branch 'master' of github.com:iBotPeaches/Apktool
2012-12-01 12:37:16 -06:00
Connor Tumbleson
da68943022
Starting work on Bug #252
2012-12-01 12:36:51 -06:00
Robert Mays Jr
f83383a33b
Support for --framework <dir> command line argument to specify the location of the framework files (previously forced you to keep them in the home folder)
2012-11-29 18:30:21 -05:00
Connor Tumbleson
b4db7735a5
only check for layoutDir if over sdk 17
2012-11-19 07:56:19 -06:00
Connor Tumbleson
a7d7458ffc
Updatings links & documentation and SmaliDecoder fix
2012-11-19 07:48:15 -06:00
Connor Tumbleson
5b106e5c34
New API 17 resource identifiers. ~ Untested
...
Adjust naming to match brut.all conventions & added natural SDK check w/ new configFlags
2012-11-19 07:47:59 -06:00
Connor Tumbleson
6b31aeb7c4
Added SDK API 17 (Android 4.2) framework
2012-11-13 19:16:06 -06:00
Connor Tumbleson
1a9901a75d
updated github location and commented out --original function
2012-11-12 21:34:33 -06:00
Connor Tumbleson
5a290988bc
commenting out retaining original signature until fixed
2012-11-12 21:31:54 -06:00
Connor Tumbleson
85a4901e1d
fix useless helpers of mType variable
2012-11-03 18:33:41 -05:00
Connor Tumbleson
58ec5e1892
updating gitignore for compatibility w/ Eclipse & added fix for new MIUI
2012-11-01 14:23:19 -05:00
Zhukovskiy Andrey
ea8f6b666f
reference-array dirty fix (works)
2012-10-21 13:25:11 -05:00
Kevin C. Krinke
f9aaf2cc7e
Runtime.exec has problems dealing with spaces in arguments given. Lame resolution is to change the ~/Library/Application Support/apktool path to ~/Library/apktool. Fix is for OS X only. Do not think there is problems on other platforms with this.
2012-10-21 13:25:11 -05:00
Connor Tumbleson
689e0e59a6
updating JesusFreke's smali/baksmali. Fixed SmaliMod to handle removal of smaliLexer.
2012-10-08 18:50:34 -05:00
Connor Tumbleson
008e1004c2
fixes #45
2012-10-08 14:42:10 -05:00
Connor Tumbleson
5ab853a249
WIP - fixing corrupted frame due to gradle not copying resources
2012-09-27 21:05:50 -05:00
Ziggy
84393b100f
Fix version for build
2012-09-26 20:59:25 -04:00
Connor Tumbleson
a8a0f3c459
added backslash to fix resourceStream for embedded framework
2012-09-23 11:00:17 -05:00
Connor Tumbleson
ca623f6617
fixes #37 reverts public.xml change
2012-09-22 22:40:33 -05:00
Connor Tumbleson
18fc242bba
adding android-framework.jar fixes #34
2012-09-21 06:56:00 -05:00
Connor Tumbleson
c676ad1c60
forgot to update Properties.java lol.
2012-09-20 19:51:48 -05: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
Connor Tumbleson
60c806f2e2
Moving all REPOs into one
2012-09-19 20:19:12 -05:00