Closed GoogleCodeExporter closed 9 years ago
The size difference is the change in compressed resources.arsc and a variety of
other things.
I'll look into it though. btw v1.5.1 is out :)
Original comment by connor.tumbleson
on 2 Jan 2013 at 10:21
[deleted comment]
I updated to 1.5.1, still not working, thanks for your time and helping me out.
Original comment by jsei...@apperian.com
on 3 Jan 2013 at 3:41
Maybe the issue has to do with disassembling factory-installed applications.
Original comment by jsei...@apperian.com
on 9 Jan 2013 at 8:53
Change the compression level of resources.arsc to 0 and see
And get a logcat of crash
Original comment by varun.ch...@gmail.com
on 12 Jan 2013 at 5:41
I've attached a test version of v1.5.2. Let me know if this works. I couldn't
get Facebook to crash, simply doing decompile -> recompile -> inject
resources.arsc / classes.dex back into original apk, along with entire /res
folder.
No FC.
Original comment by connor.tumbleson
on 15 Jan 2013 at 12:45
Attachments:
Does this new 1.5.2 solve issue #391?
Original comment by hue...@gmail.com
on 17 Jan 2013 at 12:19
Sorry, was planning on doing this and then forgot. Question- why do you need to
do something other than apktool d / apktool b / resign? What does inject
resources, classes.dex, and copy entire /res folder? Shouldn't the tool do this
automatically?
Thanks
Original comment by jsei...@apperian.com
on 18 Jan 2013 at 7:54
It means inject / insert those items into the original apk. Not the one Apktool
built. As Apktool builds it without a signature.
http://code.google.com/p/android-apktool/issues/detail?id=8&colspec=ID%20Stars%2
0Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Modified
Watch that bug if you can't inject resources. It'll probably be months though
before I add that feature.
Original comment by connor.tumbleson
on 18 Jan 2013 at 8:01
Ahhh so merely signing a system app after it is recompiled doesn't work,
because system apps need to be signed by the system cert?
Original comment by jsei...@apperian.com
on 18 Jan 2013 at 8:08
Or whatever cert (production, release, build) key that was used on that APK.
Which is why injecting prevents most of the FC errors due to invalid signatures.
Original comment by connor.tumbleson
on 18 Jan 2013 at 8:10
Ok, so there is no point in modifying anything in a factory app, because
classes.dex would then be modified, and I will not be able to re-sign with the
original cert, right? Therefore, it is impossible to modify factory apps
without access to the manufacturer's cert.
Original comment by jsei...@apperian.com
on 18 Jan 2013 at 8:13
Thats why you inject :)
You then can modify anything (w/ the exception of AndroidManifest.xml as the
cert is hashed off that). Then you can inject classes.dex or resources.arsc and
it'll work without problem.
Note the command I use below (7zip)
7za u -mx0 -tzip -r Test.apk classes.dex
u = update
-mx0 = store (no comrpession
-tzip = type zip
Original comment by connor.tumbleson
on 18 Jan 2013 at 8:17
I think I am missing something here.
As far as I understand, classes.dex becomes the smali folder in a disassembled
app. Are you saying that you can disassemble the app, reassemble it, then
extract the classes.dex, then use the 7zip command to inject it into the
original, overwriting the old classes.dex?
Original comment by jsei...@apperian.com
on 18 Jan 2013 at 8:36
You don't have to re-extract but yes your correct.
After `apktool b` there is 2 folders (dist and build).
Go to build/apk and there is the compiled (but not built into an apk), stuff.
So there is your classes.dex, etc. You can take those and inject them into the
original.
Original comment by connor.tumbleson
on 18 Jan 2013 at 8:40
Do we have to resign if we inject it into the original ?
Original comment by niranjan...@gmail.com
on 8 Jul 2013 at 10:21
Issue 551 has been merged into this issue.
Original comment by connor.tumbleson
on 22 Nov 2013 at 9:19
Hmm. Seems we have some protection from Facebook. See comment #4 -
http://code.google.com/p/android-apktool/issues/detail?id=551
Original comment by connor.tumbleson
on 26 Mar 2014 at 11:49
Original issue reported on code.google.com by
jsei...@apperian.com
on 2 Jan 2013 at 9:56