yashsingh1/xdaforums huggingface dataset:
[Android Software Development] DaOldMan:
Yes that's something only [MENTION=3924617]iBotPeaches[/MENTION] can fix. I made a test with the same result. The system doesn't accept the apk as signed correctly for some reason :(

Thanks a lot for rc4 !

Thomas
[Android Software Development] zelendel:
You shouldnt be signing system apks to begin with. They have to keep the samsung sig or else it wont work.
[Android Software Development] DaOldMan:
I probably was not understood (and you didn't read my post from 2 pages ago). The system doesn't accept the ORIGINAL SAMSUNG signature as valid :(. Hence the app is not recognised and doesn't appear in the app drawer :(

Thomas
[Android Software Development] DaOldMan:
Does LG have another framework resources file maybe beside the standard framework-res.apk ? In Samsung we have also twframework-res.apk for instance

Thomas
[Android Software Development] Zackptg5:
Hmm, there's framework-res.apk accompanied by a corresponding jar and odex file. The weird thing is that there's a framework2.jar and odex file but no apk for it.

There's also a lge-res.apk Is that it?
[Android Software Development] DaOldMan:
There is no jar and odex for framework-res :). There is framework.jar (not framework-res.jar) !

Install lge-res.apk with the "if" (install framework) modifier and life will be good again ;) You have to install both framework resources every time ! (framework-res and lge-res).

Thomas
[Android Software Development] Zackptg5:
That's it! Still got same decompile errors but a lot more files are present now than before.
[Android Software Development] DaOldMan:
Great, push the thanks button if it works :)

Thomas
[Android Software Development] mike the inkman:
I have a good kit for you linux guys. Should work for you if you have a good java install. Zip/unzip, install frameworks, decompile/compile, sign, zipalign, adb install/push/pull, fastboot flash recovery, heimdall flash recovery, and a flashable zip generator. Check it out.

http://xdaforums.com/android/development/toolkit-apk-munky-rench-t3026757/post58747626#post58747626
[Android Software Development] bovirus:
I'm not agree with you on your post linked that Windows is so terrible,

I'm using from a lot of time APKMultitool in Windows and I didn't have any problem.
[Android Software Development] djdarkknight96:
Funny enough there's a gimp extension on xda that will compile right from it. Even decompile and batch edit .9's keeping patch in tact. Create flashable zips from gimp..etc..It's called Katkit for Windows, Linux and I think he added Apple OS support too.

So he's just being biased...Windows works perfectly fine for me and I theme a TON!
[Android Software Development] bluflight:
[MENTION=3924617]iBotPeaches[/MENTION] RC4 work good and no problem, but i have one question:

- my APK MULTI TOOL report this while decompile or compile:

i of course deleted old apktool from my folder and put new one RC4
[Android Software Development] DaOldMan:
Totaly fine. I like it. Mine writes rc4...

Thomas
[Android Software Development] bluflight:
Thanks mate, solved, my mistake, now show correctly RC4 :good:
[Android Software Development] chandarakk:
final got it work well with rc4 ;D

but other 1 still can not compile

this 1 http://www.mediafire.com/download/xk21eaydrx5woz6/LGSettings.rar

please help in the next update :D
[Android Software Development] DaOldMan:
Please read few pages back about this or use search please.

Thomas
[Android Software Development] Phone_Guru:
Getting lots of errors when recompiling lollipop twframework-res with RC4. Error log attached
[Android Software Development] devadip:
Same errors to me!!
[Android Software Development] laura almeida:
When i tries to decompile Setting.apk or framework-res.apk of CM12 i am getting a folder called "values-ￎ@-rES"

Due to this folder I can't recompile

Deleting this folder would let me to recompile But the app doesn't work (with the same system signature)

Please Help

Thanks
[Android Software Development] chandarakk:
thanks bro for reply i read alot and serch too but still no solution even use dirty apktool please help :D
[Android Software Development] iBotPeaches:
To all of you using some crazy all in one tool or something that wraps around Apktool. Please don't use those as proof to me that Apktool doesn't work. These tools in the past have been known to mix Apktool's versions for decode / building in order to get around some bugs. Not to mention they utilize some crazy methods to decompile the APK, but thus not ensuring its correctly decoded. If you honestly think Apktool is the fault for something. Then this is your testing procedure.

1. Download raw up to date Apktool (2.0.0 RC4)

2. Decode apk (apktool d name_of_apk.apk)

3. Build apk (apktool b name_of_apk)

4. If error occurs, generally apktool is at fault.​

I want to create a more stable application, but I simply can't trust these stacktraces when I sit here testing with Samsung, Xiaomi, Nexus, One+, Oppo, Sony OEMs and have no trouble at all. My only untested OEMs are LG & HTC. I can acknowledge bugs when they follow the above steps. Also a reminder that we have a bug tracker, so if you are in the mindset of "apktool is broken, fix this now". Then head over there and report the bug, making sure to include a stacktrace, apk and more.

I haven't been getting email notifications, so sorry about neglecting this topic.

Non related to all of that. I wrote a technical blog about the life of a bug in Apktool. Some bugs take me a lot of time to fix, so I wrote a little piece explaining the process. Its a fun read if any of you want to take a look - http://connortumbleson.com/2015/02/16/fixing-apktool-bug713/
[Android Software Development] fitosanitarium:
I've the same issue, but with SecSettings.apk from Galaxy S3 NEO

Do you solved this issue?

If yes How?

Thx in advance:)
[Android Software Development] zeroprobe:
Can anyone successfully recompile the latest GAPPS with apktool?

When I try to recompile Gmail I just receive a parse error.

To recompile seems as though it was successful, tried everything resigning, zip aligning.
[Android Software Development] Phone_Guru:
Gmail can't be successfully recompiled and flashed. You can edit and flash the layout, color etc. xml files though.
[Android Software Development] Psycho_666:
unfortunatly i haven't solved the issue yet.

still waiting for someone to help me out with that problem :(
[Android Software Development] CosmoDroid:
Hello there. I tried a lot but I can't seem to decompile the framework-res.apk. Everytime an error pops up. Can anyone of you please decompile the apk and change some values in res/xml/storage_list.xml and recompile and upload?

From

[COLOR="Red"]<storage
android:storageDescription="@string/storage_internal"
android:emulated="true"
android:mtpReserve="100" />
<storage
android:mountPoint="/storage/sdcard1"
android:storageDescription="@string/storage_sd_card"
android:removable="true"
android:maxFileSize="4096" />[/COLOR]

or

[COLOR="red"]<storage
android:storageDescription="@string/storage_internal"
android:emulated="true"
android:mtpReserve="100" />[/COLOR]

To

[COLOR="Green"]<storage
android:mountPoint="/storage/sdcard0"
android:storageDescription="@string/storage_sd_card"
android:removable="true"
android:primary="true"
android:maxFileSize="4096" />[/COLOR]

You don't have to sign the apk. Thank you.
[Android Software Development] hodragon:
Framework does not install or decompile. Corrupted file maybe?
[Android Software Development] CosmoDroid:
May be since it's API level 22.
[Android Software Development] iBotPeaches:
Jeez. I haven't even gotten my hands on anything API 22 yet. Curious if any changes in it (probably a framework update).

I've tracked down the new issue in CM builds. Basically, they added "Asturian". Which is the first 3 letter language qualifier I've seen. They pack 3 characters into 2 bytes using some fancy magic.

This pull request fixes that - https://github.com/iBotPeaches/Apktool/pull/100/files However, my testing is not yet complete. Stuff like `values-en-US-Latn-POSIX` is still not supported. Very close however.

Since I changed some underlying qualifier code. I'll release a snapshot build here for some quick tests to make sure no regression occurred.
[Android Software Development] Near_07:
i tried decompiling SystemUI.apk of Galaxy Note 4 . . here is the screenshot. although some of its system apps decompiles and recompiles succesfull. . thanks for this tool. hope this will also fully working for note 4 ;) [IMG="Apktool lollipop decompile error"][/IMG]
[Android Software Development] laura almeida:
Thank you so much dear

Lots of kisses
[Android Software Development] Dbj.Dhaval:
Getting this error
[Android Software Development] 93Akkord:
Would anyone know how to decompile the Musixmatch apk? This is the only app I have trouble with :crying:

This is the message I am getting:

I: Using Apktool 2.0.0-RC4 on Musixmatch.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\xxxxxx\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=, name=package, value=0x00000004
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Writer.java:157)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:33)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:114)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:99)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:339)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:133)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:104)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
[Android Software Development] Carotix:
hi [MENTION=3924617]iBotPeaches[/MENTION]

thanks a lot for rc4 , i modded all s4 lollipop apps ... i made them inverteds and transparents.

I can't with only one .. Contacts app ... i made a lot of tests but when i flash it, i lose it and the same is for s5 device and i think for note4 also ...

please , take a look if you can

thanks again
[Android Software Development] tobitege:
Hmmm... any further hints or logs you could provide or expect OP to guess your steps? :p
[Android Software Development] stangdriver44:
Love this tool!

I love this tool and have been able to make my phone look and do what I want because of it.

My question is how do I decompile Lollipop correctly so the folder name are correct. Like with the v4 and v13 at the end. I can change them manually but not sure how values folders are supposed to be named since they are put in resource folder in compiled apks?

I am using rc4 on Windows 8.1 for tmobile s5
[Android Software Development] claude96:
[MENTION=4751298]Carotix[/MENTION] unfortunately same here ( galaxy note 4 ), I tested it without making a single change, just decompile & recompile and the app won't show in app drawer ( I think it's a known issue with SecContacts_Note.apk in lollipop roms)

[MENTION=4877142]tobitege[/MENTION] logs would be helpful if there was errors , the app doesn't give any errors when recompiled ( and it's not the META-INF or the AndroidManifest.xml, I use both from original folder in decompiled apk folder ), the app just won't appear in app drawer !!!

[MENTION=364033]stangdriver44[/MENTION] have you tried recompiling without renaming the folders !, it worked for me so far .
[Android Software Development] stangdriver44:
I've tried, yes. I can make my mods and usually, if it's just xml take the compiled xml and push via 7zip or even vrtheme and it works, the problem I have is in the resources.arsc file I believe? Let me try it again and grab a log if it fails. Thanks
[Android Software Development] hello00:
has anybody managed to recompile cm12 framework?
[Android Software Development] laura almeida:
Check this --> https://code.google.com/p/android-apktool/issues/detail?id=761

Snapshot build seems to work perfectly fine
[Android Software Development] hello00:
omg thank you! ive been busting my ass for hours searching for clues! you are a life saver!! :victory: :highfive:
[Android Software Development] Azharkanorwala:
Hello I Was Looking by the forum,i am also a noob :p in the development thing,I also decompiled LGSettings.apk Without problem,There were no problems in decompiling(no errors of 'False Value') and yes there are two framework file for Lg phones-lgframework-res.apk and lge-res.apk,but i am having errors in other apps of False values in System apps like File-manager and Gallery.apk. If Someone could help
[Android Software Development] cowsquad:
I think anyone can help. But without a log no one can. I know you are having errors. But what errors lol
[Android Software Development] Faiyaz5yaz:
unable to install framework from 5.1 stock lollipop ..

help !!!
[Android Software Development] zelendel:
Gonna have to wait until that is pushed to aosp branch by Google. Not much he can do until then.
[Android Software Development] xdagee:
Fixed

No worries, I got it to work.
[Android Software Development] DallasCZ:
help

hello, i try to made a minor modification to an keyguard.apk.

It is from 4.4.2 android ROM for nubia devices.

i installed framwork-res.apk and nubia-res.apk frameworks and using "apktool b keyguard" command to recompile the apk.

I can decompile the file, but when try to comile it (even without any chabges) i get this error: pastebin link

what i am doing wrong?
[Android Software Development] zelendel:
You didnt install the other framework file which is systemui apk. Remember base android has 2. The framework res and system ui, then you also have any other one that the OEM adds to it.
[Android Software Development] DallasCZ:
thank you...but even with systemui.apk i got the same error :(
[Android Software Development] zelendel:
Then it could be that the apk is self corrupting. Many apps have begun doing this to prevent being modded. I would go over the errors and make sure all the drawables that it says are missing are there in the xml and the folder.
[Android Software Development] DallasCZ:
but the apktool wont compile the apk due to the mentioned errors :(
[Android Software Development] lichti1901:
But i mean i dont sign it on Galaxy Nexus and flash it without a single issue. I directly grab it from /dist folder.

Gesendet von meinem GT-I9300 mit Tapatalk 2
[Android Software Development] djdarkknight96:
Lol, I understand that but they said they were told not to sign them at all. I do it just by habit and I saw someone say to sign all system apps in ics. I was already signing them since froyo actually but probably didn't need to.

DarkJelly Gnex on JellyBean sent this using the app
[Android Software Development] maxib123:
Wondering if anyone can help, decompiled framework-res.apk fine, replaced 2 png files and edited 2 lines relating to the clock on the lockscreen, now all i get is "error: Public symbol xxxx/xxxx/xxxx declared here is not defined on pretty much every file

any ideas?
[Android Software Development] djdarkknight96:
There should be lines in the log that have "ERROR" in caps in front of them..usually means a bad .9.png. if that happens it triggers more errors that are not really errors. If you post the log we can help you better though.

DarkJelly Gnex on JellyBean sent this using the app
[Android Software Development] maxib123:
After learning how to output the whole log, I think I have found the problem caused by the "framework tool" app that i used previously before decompling the apk
[Android Software Development] Ticklefish:
I've always used 7zip to copy the META-INF folder from the original apk to the compiled one and it works every time. I did read somewhere ages ago that all system apps (framework-res, SystemUI, etc) had to have the same signing as each other or they wouldn't work.

That could be complete nonsense for all I know. Copying the META-INF folder only takes a few seconds and works so I've never experimented. Maybe the need to have them signed is something that Android removed?

(By the way, and this isn't relevant, what are we supposed to say that a signed app has? Is it a 'signing', a 'signature', a 'sign'..what?)
[Android Software Development] cowsquad:
I didn't know there was a new version of apktool until today :confused:
[Android Software Development] MrDSL:
I never signed any system apps either but people kept telling me when installing my trans mms that it wouldnt show up..Could never figure out why and then one day it happened to me on a cm9 nightly. I generic signed it and it worked and worked for everyone else who was having problems before so I just generic sign all my ics system apps now to make sure.
[Android Software Development] TMFGO45:
Did you delete the public.xml?

Sent from my Galaxy Nexus! (CNA 3.2 , Popcorn 11.6, TWRP 2.2)
[Android Software Development] maxib123:
Am i right to assume that was directed at me? if so no i didnt
[Android Software Development] iBotPeaches:
MobileTechVids just sent my device back. Development will be started again. Going after the SystemUI and T9Map stuff.

Will need testers. Please just respond here if your interested in testing builds that may break APKs. You won't spread this apktool versions and use them solely to report back bugs.

Also, only test these builds if your one of the people affected by those 2 above bugs.
[Android Software Development] MrDSL:
do you mean the FC that happens anytime you edit Contacts.apk? If so I'd definitely be interested in testing that.
[Android Software Development] maxib123:
Any chance you could have a quick look at my post a page back... Wondering if its a bug with the apktool
[Android Software Development] TMFGO45:
When making changes, you should delete public.xml. It will rebuild itself.

Sent from my Galaxy Nexus! (CNA 3.2 , Popcorn 11.6, TWRP 2.2)
[Android Software Development] maxib123:
Thanks, but deleting public.xml made no difference, gives exactly the same errors

EDIT:However I fixed it anyway... thanks everyone who tried to help
[Android Software Development] :
what happens when you delete those listed folders? (=
[Android Software Development] Ticklefish:
Have you tried installing com.htc.resources.apk? I had a similar issue with my framework-res.apk until I installed one of the resources files (SemcGenericUxpRes.apk since I'm on a Timespace rom) and tried again. Then it de- and recompiled without any trouble at all.
[Android Software Development] Pneuma1985:
Hey ibot I had a ? for you about the ugly white spaces in the code in 4.0.3 resources.. I was wondering when we decompile it and then recompile does it fix the white spaces? Reason I ask is b/c the white space definitely doesnt make the .apk any more efficient if it compiles like that? J/w I mean it does make it quite tough to search through the xml with tons of white spaces between each line.
[Android Software Development] zelendel:
Thats why I said to double check all the errors after you decompile. Make sure all the files are there. If they are not then you will have to add them. If not it could be that the apk is self corrupting. In that case then you wont be able to mod it at all. I know of at least 100 apps that have started to do this. They have made their apks un-moddable. They will corrupt themselves if it is decompiled or unzipped.
[Android Software Development] foreverloco:
First off,

Thank you for the continued work on this incredible tool. Without it we would all be lost and stuck!

Same problem.

RC3 - RC4 cause some apks to create new folders with v# values and not only does it create those new folders, but also duplicates some of the xmls from the original non v# folders into the new v# folders.

Vrtheme zips will be useless if using apktool RC3-RC4 because even if you don't add the v# folder and add the xml(s) in it to the non v# folder, the resources.arsc itself will not match with the original apk and will just cause fc's.

Everything was fine with RC2 which I have kept using with 4.4.4, but now that official lollipop is dropping for most of US Samsung phones means no more vrtheme zips if apktool continues to create and duplicate folders and files.

Pics attached showing before decompiling and after of the Tmo Note edge 4.4.4 SystemUI.apk using apktool RC4
[Android Software Development] Ticklefish:
Looks like lge-res.apk is still causing problems.

Using RC4, I installed framework-res.apk, tried to decompile lge-res.apk and...

The files are here: https://mega.co.nz/#!Lwo0HT4b!v5hNt5cLMdz7lAR_ujACVBZVvKKSGTXI4N5LR6eOWb8

Can anybody help?
[Android Software Development] stangdriver44:
You are absolutely correct! I rely on vrtheme for a lot of my mods and themes because of the universal compatability and the reduced size of the zip files for users. My only solution at this point is to manually add the v# and recompile. My resources.arcs have been flashing fine that way. The only problem is that not all devs are following the new standard LP format and recompiling their apks without the v#. Which is fine and surprisingly the apks still works, it just makes their files incompatible with my vrtheme zip and thus causing fc issues for some dev user not being able to use my mod or making me make special zip just for them. Does that make sense?

So we just need everyone to follow the same format for vrtheme to work across the board. Standard Lollipop has v# extensions, so recompiled apks need to have this as well!!!

So the folders have to look similar to the screenshot. That is SystemUI.apk but that is the general idea for standard LP format
[Android Software Development] zelendel:
Did you install the LG -res as well before decompiling?
[Android Software Development] zelendel:
I wouldnt count on everyone following it just to make it work with vrtheme. Most couldnt careless about vrtheme zips. Just make it work for you and dont worry about what others are doing.
[Android Software Development] stangdriver44:
I've already come that conclusion. I guess if the other devs want their roms to work with my themes and mods they will follow that format. I will definitely not be making multiple versions of my themes and mods to work with other people's work!

There are only a couple of other active devs for the Tmo S5, so I do think they are working on the changes though.

Thanks for the reply!
[Android Software Development] iBotPeaches:
Yeah this is a problem. It wasn't apparent because I had a bugged "0.apk" framework, so I couldn't detect the error. (Note that making a 0.apk won't work for you). I have fixed this problem locally so the decode works, but then there is literally 10,000 errors on rebuild. This is because of an incompatibility between our "--forced-package-id" and "--shared-lib" options. Basically I need to not use --forced-package-id, if the pkgId is 0 (which is a shared library) and then use --shared-lib in place of "--forced-package-id".

So give me a few days. It's close.
[Android Software Development] Ticklefish:
Thanks very much! :)

---------------------------------

Sent from Tapatalk

------------------------------
[Android Software Development] iBotPeaches:
Had a bit more time than I thought this morning - https://github.com/iBotPeaches/Apktool/pull/109/files

Pending some more tests and a change so everyone doesn't have to update their apktool.yml, it should be good. Thanks for finding that bug.
[Android Software Development] Ticklefish:
Always a pleasure! Lol

Thank you for squashing the bug. :)

---------------------------------------

Sent from my iPad (yes, really!)

------------------------------------