Commit Graph

156 Commits

Author SHA1 Message Date
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
3d2e935f08 [skip] cs fixes 2014-08-16 10:17:15 -05:00
Connor Tumbleson
584d1cda18 ignore "com.lge.internal" 2014-05-18 06:48:01 -05:00
Connor Tumbleson
b53101f69e adds support for ignoring "com.lge"
-- fixes issue 630
2014-05-08 15:08:40 -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
1e3b66f9be adds "miui", "android" and "com.htc" to list of ignored renamed packages. 2014-03-09 17:47:43 -05: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
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
87e39c4bb9 add todo 2013-10-12 15:44:47 -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
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
d12468a2f7 remove "Done"/"Loaded" messages, as output is becoming clogged. 2013-08-14 08:33:09 -05:00
Connor Tumbleson
007a6d45a2 Update to smali 2b5 2013-08-12 09:16:50 -05:00
Connor Tumbleson
6a87c9ffd4 remove un-needed done. 2013-07-08 13:58:46 -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
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
be73563c43 handle all version(s) as strings, and change java to 1.7 2013-05-02 12:56:18 -05:00
Connor Tumbleson
db6ecadc00 fix spacing in installFramework() 2013-04-30 07:55:33 -05:00
Connor Tumbleson
47a5eac0b0 fixed install|if frameworks with commons-compress 2013-04-30 07:53:17 -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
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
M1cha
071ce71a61 apktool-lib: fix recompiling framework apk's with dependencies by using static package-id 2013-03-19 12:55:58 -05:00
Connor Tumbleson
69ee710e30 fixes #427, correctly handles --frame-path on build 2013-03-14 16:50:27 -05:00
Connor Tumbleson
626d7e7ecd fixes #396, update to smali v1.4.2 2013-02-16 07:32:39 -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
7fe733bf43 adding support for htc .r.9.png 2013-01-21 08:25:57 -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
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
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
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
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
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
5ab853a249 WIP - fixing corrupted frame due to gradle not copying resources 2012-09-27 21:05:50 -05: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
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