Comments (18)
Yep, need to fix this for 4.2. It seems lots of APKs are starting to do this.
Original comment by connor.tumbleson
on 18 Nov 2012 at 5:38
- Added labels: Priority-High, Milestone-v1.5.1
- Removed labels: Priority-Low
from android-apktool.
It's already there in 4.1.2 APKs. Eg. I just tried to decode
GalleryGoogle.apk+GalleryGoogle.odex. So far so good, it didn't produce any
errors. Then I tried to build it back into an APK and got tons of the "No
resource identifier found for attribute '...' in package '...'" errors.
Original comment by [email protected]
on 18 Nov 2012 at 7:15
from android-apktool.
The suggested workaround/fix worked though.
I had to run the following to replace in the resource XML files the
"com.android.gallery3d" resource package name with the actual package name
(from the manifest), which is "com.google.android.gallery3d":
find res -type f | xargs perl -pi -e
's/http:\/\/schemas\.android\.com\/apk\/res\/com\.android\.gallery3d/http:\/\/sc
hemas.android.com\/apk\/res\/com.google.android.gallery3d/g'
Original comment by [email protected]
on 18 Nov 2012 at 7:28
from android-apktool.
I can confirm this will work.
Only thing I had to do also is add:
parent="@*android:style/TextAppearance.Medium"
to line 168 of the styles.xml file of the GalleryGoogle output.
Original comment by [email protected]
on 18 Nov 2012 at 9:03
from android-apktool.
Issue 227 has been merged into this issue.
Original comment by connor.tumbleson
on 18 Nov 2012 at 9:09
from android-apktool.
My previous statement was a bit premature. The search&replace in the decoded
resource XML files works only as far as apktool's build command is involved.
I.e. the "apktool b GalleryGoogle GalleryGoogle.apk" command completes
successfully, but putting the rebuilt APK on the phone and launching the camera
app, it crashes, when I switch to camcorder mode.
However grabbing classes.dex from the rebuilt APK and putting it into the
factory APK (i.e. unzipping the original APK, putting the classes.dex -that I
took from the rebuilt APK- into the unzipped folder, rezip the contents of the
folder into a new APK and sign the APK) works indeed.
So I guess I'll have to wait for Brut.alll's proper solution. Until then I'll
have to manually do the APK rebuild so I can add the --rename-manifest-package
option to the aapt commandline. I just checked the current state (from the GIT
repo) and it seems the fix is not yet there. Hopefully it'll make into the
1.5.1 version. :-)
Original comment by [email protected]
on 25 Nov 2012 at 6:36
from android-apktool.
Issue 357 has been merged into this issue.
Original comment by connor.tumbleson
on 26 Nov 2012 at 3:56
from android-apktool.
About 70% with this little patch. All is going well currently. Just lost a bit
of time tracing down an AXmlPullParser problem, which ended up being the fact
that the namespace isn't attached to the package name in AndroidManifest.xml
which made it quite difficult to grab. Slight oversight on my part.
All that aside. Things are going well. Haven't had as much time as I wish.
Original comment by connor.tumbleson
on 29 Nov 2012 at 3:07
- Changed state: Started
from android-apktool.
Just a quick question, is there any support yet, or fix/workaround for
decompiling android 4.2 framework-res.apk? I posted issue 357 in comment 7 so
you can find the errors. It simply errors at "decompiling sources" and thats
it.
Thanks!
Original comment by [email protected]
on 8 Dec 2012 at 10:59
from android-apktool.
Apktool correctly grabs the renamed and original package name and stores it in
apktool.yml
packageInfo:
cur_package: com.android.inputmethod.latin
orig_package: com.google.android.inputmethod.latin
Now, we simply rename the manifest to cur_package, but during build use
--rename w/ orig_package.
Should have a Apktool v1.5.1 Pre Release 2 ready in a few days.
Original comment by connor.tumbleson
on 14 Dec 2012 at 3:17
from android-apktool.
I believe I have finally fixed this, testing continues but otherwise its Fixed.
Original comment by connor.tumbleson
on 19 Dec 2012 at 2:11
- Changed state: Fixed
from android-apktool.
may i get my hands on it? i would like to do some testing as well :)
Original comment by [email protected]
on 23 Dec 2012 at 1:45
from android-apktool.
http://miui.connortumbleson.com/other/apktool/test_versions/apktool_1.5.1PR2.jar
Apktool v1.5.1 PR 2
Original comment by connor.tumbleson
on 23 Dec 2012 at 1:57
from android-apktool.
:o OMG it worked! No errors!! :D OMG i love you BEST CHRISTMAS PRESENT EVERR!
:D thanks so much you seriously are amazing!!! :)
Original comment by [email protected]
on 23 Dec 2012 at 2:11
from android-apktool.
So I managed to decompile, change /res/values/colors.xml, then doing find res
-type f | xargs perl -pi -e
's/http:\/\/schemas.android.com\/apk\/res\/com.touchtype/http:\/\/schemas.androi
d.com\/apk\/res\/com.touchtype.swiftkey/g' and finally compile, sign and
install. But everytime I want to open SwiftKey's design settings, I get an FC.
Anyone knows why? :(
Original comment by [email protected]
on 26 Dec 2012 at 11:46
from android-apktool.
I tried to use new version Apktool v1.5.1 PR 2. But I didn't understand where I
need to put this string "--rename w/ orig_package".
I used this command:
C:\Users\admin>apktool b --rename w/ com.touchtype.swiftkey c:\1\6
If I build an app as usual (with this command: C:\Users\admin>apktool b c:\1\6)
but with new version of apktool, the command works, but there are still errors.
Example:
c:\1\8\res\values-v14\styles.xml:4: error: Error retrieving parent for item:
Noresource found that matches the given name
@*android:style/Theme.DeviceDefault.Dialog'.
P.S. packageInfo:
cur_package: android
orig_package: com.touchtype.swiftkey
Original comment by [email protected]
on 10 Jan 2013 at 12:18
from android-apktool.
That has nothing to do w/ the --rename. Its automatically done. Thats just a
bug according to styles.xml.
Post a new bug with apk and full error log.
Original comment by connor.tumbleson
on 10 Jan 2013 at 12:41
from android-apktool.
OK, I've attached the log and the folder, which I want to build.
P.S. I zipped the folder for attaching.
Original comment by [email protected]
on 10 Jan 2013 at 12:55
Attachments:
from android-apktool.
Related Issues (20)
- build failed with error HOT 1
- Exception in thread "main" java.lang.StringIndexOutOfBoundsException HOT 6
- setting.apk in 2.3.5 XXKJ3 HOT 2
- Error after Compile Framework HOT 1
- Exception in thread main java.lang.StringIndexOutOfBoundsException HOT 3
- Apk recompile error HOT 4
- get error when install framework...com.htc.resources.apk HOT 1
- src folder not created HOT 1
- Update smali to 1.3.0 HOT 1
- Compilation error HOT 8
- Decompiling apks remove \n , \' and add formatted="false" to strings HOT 1
- Compiling latest build nov 30th failed HOT 2
- [Error]Error in decode Backup.apk [MIUI] HOT 2
- build error, formatted="false" HOT 3
- Apktool won't compile HOT 6
- Unable to build HOT 5
- Multiple substitutions specified in non-positional format (1.4.2) HOT 28
- Error when decompiling lastfm.apk HOT 2
- Multiple substitutions error when using xliff (v1.4.3) HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-apktool.