yashsingh1/xdaforums huggingface dataset:
[Android Software Development] kufikugel:
rofl sorry and I just saw that I did not read your log completly.....hmm then I have no idea what was the cause. Always compile on linux here without problems. Check if you really replaced aapt in android-sdk, and as well the apktool

Please recheck and report back if you have again a problem
[Android Software Development] iBotPeaches:
The problem is that Apktool 1.5.3 relies on the AAPT in your $PATH variable. Which yours is NOT the one apktool needs, it needs that new one that was provided a few posts back. You can either update the aapt in your $PATH variable, or using a new feature during rebuild --aapt /path/to/new/aapt

This is a thing of the past in 2.0, as aapt is included.
[Android Software Development] alteredlikeness:
Ahh.. yup. That's gotta be it. Forgot to update the PATH to appt and/or did not replace it in the sdk.. I will check it out when I get home later. Thanks again!
[Android Software Development] pauldiddy:
thanks for your awesome tool and your help! :good:
[Android Software Development] iBotPeaches:
Worked fine for me: http://pastebin.com/x6phksfj

So find $HOME/apktool/1.apk and delete that. Your framework is out of date. By deleting that file, Apktool will re-create it using the one provided inside it. So make sure your using Apktool 1.5.2, as that has the most up to date framework.
[Android Software Development] olegfusion:
Hello. I have a problem. Can't decompile Contacts.apk using apktool (any version). Contacts are from Pnatech Discover, android 4.0.4. Please help!

I: Loading resource table...
W: null
Exception in thread "main" java.lang.NullPointerException
at brut.androlib.res.data.value.ResValueFactory.factory(ResValueFactory.java:66)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:227)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:182)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:170)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:135)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:110)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:491)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)
at brut.androlib.Androlib.getResTable(Androlib.java:50)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:189)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
[Android Software Development] {davros}:
http://pastebin.com/f33pCFEc

slims apktool and aapt

errors in apktool b
[Android Software Development] zelendel:
Wow that is one of the simplest errors I have ever seen lol

/home/davros/android/apktool/Hangouts/res/values-tr/plurals.xml:119: error: Apostrophe not preceded by \ (in %1$d Hangout'ta %2$d ileti)
[Android Software Development] {davros}:
ya now its to the ... no default translations

http://pastebin.com/d5CVuTcZ
[Android Software Development] zelendel:
The no default translations is known and not really an issue. It should still build a working apk
[Android Software Development] SXUsr:
It doesn't build a working one for me no matter which tool or way I've tried, I always bootloop.
[Android Software Development] zelendel:
If you are working on the same apk as above it should not bootloop you. What are you editing?
[Android Software Development] SXUsr:
Nothing yet. It first happened after using Virtuous so I went back to using command prompts which then showed the translation errors, I've done everything as I've always done but just can't find a working solution, I've used different tools, aapts, combinations of original and built files but it just wont have it.

Modding anything else, SystemUI, Phonebook etc works perfectly but this Xperia Z JB framework has got the better of me.
[Android Software Development] zelendel:
Is the translations the only errors? Have you installed all the needed frameworks for the device or rom?
[Android Software Development] SXUsr:
Yes and yes, I've been modding for the last few years so can usually sift through or solve certain problems myself, but this is the first time I've gone for so long without a fully modded framework because I just can't figure it out.
[Android Software Development] DeNitE:
Inverted Apps

Has anyone tried decompiling the latest apps with the inverted built in... (MMS for example)...

They decomplile... but with errors and the inverted files are left out...

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected. Dropping resources: drawable-v8-ERR0

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected. Dropping resources: drawable-sw600dp-hdpi-ERR1

Suggestions? Are these just too new still?
[Android Software Development] raziel23x:
Have you tried the beta1 of 2.0 or the 1.53 builds? Both these builds you have to compile yourself but also take note these builds are experimental
[Android Software Development] DeNitE:
Hmm... Not finding any links for those...
[Android Software Development] iBotPeaches:
That's not your problem. So don't bother. You need a special aapt / apktool combo. There was one posted for that inverted change a few pages back.
[Android Software Development] DeNitE:
Worked Perfectly!

Thanx so much
[Android Software Development] SXUsr:
Just found out that the latest XPERIA Jelly Bean frameworks can't be recompiled without issues with the latest apktool. EDIT: Doesn't matter now thanks to this - [INFO] Custom framework-res.apk resources.arsc using vendor overlays
[Android Software Development] Southrice:
Trying to install this mod, Add 0.0K/s meter on statusbar ICS/JB

So I pulled both framework-res.apk and SystemUI.apk

I'm using PAC-ROM

But when I'm trying to install framework-res.apk I get this

Any Idea why this is happening? Thanks
[Android Software Development] plegdroid:
Morning Matey, the framework installed. there warnings, some apk are not built to standard, and throw up warnings. does systemui decompile/recompile ? :)

ⓐⓝⓓⓡⓞⓒⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Android Software Development] plegdroid:
[MENTION=4157252]Southrice[/MENTION]

Out on a limb, but could try and delete public xml, and let it rebuild it at recompile :)

ⓐⓝⓓⓡⓞⓒⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Android Software Development] dejanxxxx:
Phone.apk -recompile -error

When want recompile Phone.apk, I get this error.I spend 6 hours that solve problem ,and nothing.On whole tools for deompile/recompile, geting same error.
[Android Software Development] jotha:
There is no dist folder until the apk is built. And when the compiler throws an exception like in your case, it ofc can't build the apk...

The warnings you get at decompiling are neglectable. The decompilation runs completely OK.

The errors you get on compiling with

"C:\Users\Vincent\Desktop\apktool\SystemUI\res\values\public.xml:126: error: Publ

ic entry identifier 0x7f0208e8 entry index is larger than available symbols (ind

ex 2280, total symbols 2279)."

show that you made errors with resources. You inserted lines in public.xml (125 and 126) with invalid resource numbers or removed the referring parts for those resources from other xml. As a consequence you get the exception in the end. Use valid resource numbers and your compile will work...
[Android Software Development] zelendel:
Here is your issue, I am betting you removed it from the drawables xml

C:\Users\Vincent\Desktop\apktool\SystemUI\res\values\public.xml:126: error: Publ

ic symbol drawable/notification_item_background_color_pressed declared here is n

ot defined.

If You removed it on purpose you have to remove the line from the public xml as well. This is the reason for the other error. I had the same thing when I removed the Status bar ref in the drawables xml. I had to remove the ref in the public xml as well.
[Android Software Development] Southrice:
Freakin awesome, thanks guys, that worked.
[Android Software Development] jakTomas:
hey all ,, i'm trying to edit the framework-res.apk and i'm getting this error ,, i only got this error on the new version of miui ,, never had it before

looking to disable the crt animation on galaxy nexus

anyone can help
[Android Software Development] cowsquad:
Have you installed framework-res.apk and framework-miui-res.apk?

I bet you haven't ?
[Android Software Development] iBotPeaches:
Anytime. ANY time. You see a directory error. That is AAPT complaining. MIUI requires its own aapt.

Grab the Apktool 2.0 AAPT's here: https://github.com/iBotPeaches/Apkt.../apktool-lib/src/main/resources/prebuilt/aapt
[Android Software Development] jakTomas:
i did ,, same problem :P

where should i put the file ,, i've run it and i guess its not for windows 64 bit
[Android Software Development] iBotPeaches:
You don't run aapt. (well directly anyway). When you rebuild there is a parameter called --aapt. So do this

apktool b --aapt C:/Windows/blah/blah/aapt.exe apk_folder
[Android Software Development] jakTomas:
still not working :/

if its working for u ,, could u do it for me please

just turn off the crt animation and reduce the size of nav bar to 36
[Android Software Development] iBotPeaches:
Look at the error. Notice how slashes go from backslash to forwardslash. Delete the dir or fix the bad directory path.
[Android Software Development] jakTomas:
i did correct the slashes

apktool b --aapt C:\Users\abed\aapt.exe 2
[Android Software Development] isko95:
how can i start to use it? i downloaded the file, but i dont know how to start, it is my first time to use it!

PLEASE REPLY
[Android Software Development] iBotPeaches:
That internal resources.arsc file has more than 1 package. Multiple packages inside a resource Apktool doesn't like. I can't promise anything immediately, but looking into it.

EDIT: Seems to be more of renamed manifest problem. Need to open up my IDE and set some breakpoints to be sure.
[Android Software Development] Bejda:
The trick is to rename com.google.android.inputmethod.latin to com.android.inputmethod.latin in manifest?

Edit: sorry I didn't had time to elaborate , I even don't know where we are in the discussion here..was just passing by here lol.

It's just that I've read this solution (probably around here) and it worked for me with Google Keyboard.
[Android Software Development] SXUsr:
[Advice/Guide] APK Modding In 2013 Made Simple...
[Android Software Development] nobody573:
Hello guys i had a Problem whit the apktool and Samsung leak 4.2.2

The Problem is when i recompil the SecPhone.apk then gives me an error com.android.phone stopt when i want make an videocall

The Problem is in the resources.arsc (values id's)

i hope you understand me

Greetz
[Android Software Development] DJBhardwaj:
[MENTION=3924617]iBotPeaches[/MENTION] Here I am getting an error while recompiling MIUISystemUI.apk: http://pastebin.com/myNkwA9i

What is did was:

1) apktool if framework-miui-res.apk

2) apktool d MIUISystemUI.apk

3) Modified some values in /res/layout/status_bar.xml

Now when try and recompile with apktool b MIUISystemUI, i get the above error. Kindly guide me how to recompile successfully.

---------- Post added at 06:15 PM ---------- Previous post was at 06:14 PM ----------

I hope you have granted appropriate permissions to this file already?
[Android Software Development] varun.chitre15:
If you had read a few pages back, you would have knew that invalid resource directory issues are caused due to faulty and old aapt. Use the latest aapt from first post, and replace it with the one in path.
[Android Software Development] nobody573:
Yes i have done
[Android Software Development] DJBhardwaj:
Then its a bad recompile :cool:

---------- Post added at 08:08 PM ---------- Previous post was at 07:49 PM ----------

Not working. Downloaded aapt from here: http://code.google.com/p/android-apktool/downloads/list

Could you please direct me if I am wrong?
[Android Software Development] iBotPeaches:
That invalid directory has forward slashes and backslashes in it.

GOOD: /this/is/a/good/directory/path
BAD: /this/is/a\bad/directory\path

I don't think Apktool causes this, as the resource generation class all uses the same variable for identifying the separator char, and if it was wrong the entire path would use the wrong portions, not just one segment.

If I can download that same APK and decode / rebuild without any error. It makes me think its more a localized computer / user problem.
[Android Software Development] nobody573:
Yes i know that is what i mean but i see not the problem

what i do i decompil the secphone.apk and go in values/color and edit the some color (hexcode) then i fix the string error and recompile and die log say it is all ok, but when i want make an videocall becomes i an FC all the other thinks is going

---------- Post added at 04:58 PM ---------- Previous post was at 04:53 PM ----------

a friend from me had it taste and he is a Good Rom dev for many years and he had the apk de/ and recompile and becomse the same problem and he is a crack for Android programming
[Android Software Development] DJBhardwaj:
wow! clueless about this :fingers-crossed:

Let the god (iBotPeaches) himself help you out
[Android Software Development] tubstermania:
Keyboard still not working

Now I have built it (by changing deleting the "google" part from manifest at top only and at top and then other occurance, and then I have tried:

a) moving straight to phone

b) copying resources from new to original apk then to phone

c) copying manifest and meta-inf from original to build then moving to phone

It keeps giving me weird file sizes, like, the file size always goes down from what it should be, in 2 ways: the file size of the original is 15.6kb, and the rebuilt is 11.2kb, and also,

when I put it on phone, it drops from 11.2 to like 10.8kb, for no reason

, and I can't install it "can't parse package" error

I tried copying it to like 40 different locations, and I then copied the original, no issue with actually transfering the file, so I don't know why this is happening. Its not an issue with losing connection during transfer.

Here is the original apk

Here is the built apk, with no modification, straight from apktool build
[Android Software Development] nobody573:
the problem comes whitout mods too

I have no idea what can i do
[Android Software Development] DJBhardwaj:
Moved all my stuff to C:/work, still the same error :(
[Android Software Development] iBotPeaches:
Send me the apk. So we can dispel this myth or prove me wrong.
[Android Software Development] nobody573:
i make an zip and post this here then you can Taste but the problem is we want you taste it ?? why the apk let themselves recompile whitout error ??
[Android Software Development] DJBhardwaj:
No need to prove you wrong. By the way, I just solved it by using the aapt from here (I guess its from you too).

---------- Post added at 08:56 PM ---------- Previous post was at 08:54 PM ----------

What exactly are you trying to do?
[Android Software Development] nobody573:
Ok i had the tools from here https://code.google.com/p/android-apktool/ i think the are correct or not ?? and i work whit apk manager

---------- Post added at 06:30 PM ---------- Previous post was at 06:15 PM ----------

What want exactly to do

I want decompil the SecPhone.apk then i go to res/values/color and write the hexcode to an other hexcode then recompil the apk and go in the build folder. Add the new resources.arsc in the original apk and flash it on my phone.

And when i make a normal call it is all ok when i want make a videocall i get an fc
[Android Software Development] DJBhardwaj:
Yes, this is the correct tool.

Try not to use APK Manager and do everything manually.

Eh, I doubt something, was the video calling working normally before the edit? I might somehow be the ROM bug
[Android Software Development] nobody573:
Yes befor works correct. I had taste it only whit cmd too but is the same outcome

here is the log from catlog. This log says me he find a Image not

And Thanks for the help
[Android Software Development] DJBhardwaj:
Upload the apk and tell me at which file, what value do you want to change. I will try and give it you.
[Android Software Development] David_Vaz:
Error,,,

--- Decompilando Settings.apk

Exception in thread "main" java.lang.UnsupportedClassVersionError: brut/apktool/Main : Unsupported major.minor version 51.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Could not find the main class: brut.apktool.Main. Program will exit.
[Android Software Development] nobody573:
here please the apk and the finish values/color.xml that you see my edit Hexcode

SecPhone.apk Download
[Android Software Development] DJBhardwaj:
What are you trying to do here? what command ?
[Android Software Development] David_Vaz:
Isn't command, i'm used kitchen from PureMod user of www.dev-puremod.es

Thanks for the reply! :)
[Android Software Development] DJBhardwaj:
Then It doesn't belong here, I am sorry.

Which ROM are you using? and are you interested in decompiling Settings.apk?

---------- Post added at 10:34 AM ---------- Previous post was at 10:31 AM ----------

Please upload and link your framework-res.apk too from /system/framework/
[Android Software Development] David_Vaz:
I'm building my ROM... Maxium ROM :D :D
[Android Software Development] nobody573:
here Please 1.apk = framework-res.apk and 2.apk = twframework-res.apk

framework
[Android Software Development] DJBhardwaj:
Not so my field of expertise :fingers-crossed:

---------- Post added at 11:04 AM ---------- Previous post was at 11:03 AM ----------

I'm going on a vacation tonight, yet I will give it a shot and deliver to you may be tomorrow :highfive:
[Android Software Development] Bejda:
Ok i had time to check a few things yesterday and now i remember things a little more lol,actually i didn't manage to recompil correctly that GoogleKeyboard...

Things is i did decompil it just to have look,had same errors as you at recompil,read that android.manifest trick,did it and yeah it just compiled without errors,that's all.

On another side the modifications i wanted to make was just about some .png's so i just went to unzip the original apk and push images within.Once the apk on my phone sd i had the "can't parse package" and ZipSigner app from market did the trick..that's all part2.

As you can see i confused things a little :o

So yesterday i went back to this matter, decompil,edited manifest for it recompil and had same issues as [MENTION=4820988]tubstermania[/MENTION] (apk's size doesn't matter but corrupted apk/"can't parse package" with or without modifications).

Only thing i got for now is that if you delete public.xml before recompil the apk seems ok and package installer works (but we modified package manifest for com.android.inputmethod.latin that is probably the same as LatinIME.apk so it state the same apk with different sign is already installed if you have it...a workaround to keep both installed could be to modify again GoogleKeyboard manifest to make it a system/app + extract its lib to use it on your rom /system/lib folder maybe...)

Unfortunately if it's ok on package installer side now the app gives fc :(

I have a log of the FC (hope it's not too short/incomplete if someone wish to have a look):

http://pastebin.com/2wF2npQ8

And here's the error that gives apktool if i try to decompil that already modded/giving fc apk:

http://pastebin.com/J1GxeBFa

Sorry for the long post and mentions,actually [MENTION=4820988]tubstermania[/MENTION] linked me to another place to keep talking about this but i thought that maybe some part of the story belonged here..i hope it can be of any help on apktool matter and then won't be just an annoying post.
[Android Software Development] denseye:
Hello.

I just came on that problem that I did'nt know, even though I decompiled/recompiled several framewok-res ...

Someone can explain why this problem appears on some framework-res, and not on others ?...

If the only solution is hex editing, how can I proceed ?

I mean : do I have to hex edit the apk after recompiling or hex edit the resources.arsc ?...

(in my case, I want to mod a framework-res.apk with ID 1 and that uses a package ID 7 of an other apk ... and after compilation all the ID in my new public.xml are transformed from 0x01... to 0x08...)

last question : I just read problem is corrected in beta 2, but I can't find a compiled version of wip-2.0 ... does anyone can provide one to try ?.

thank you for your responses
[Android Software Development] DaOldMan:
Hi,

Using your tools on windows I got this weird problem. If I decompile/recompile settings.apk of AOKP without ANY change they work. Only this setting: Security-->SMS message limit gives me a FC :( Do you know WHY ?

Many thanks,

Thomas
[Android Software Development] Bejda:
I'm facing about the same issue (windows also but cm + aokp builds + any others I think [that specific feature comes from cm sources first i'd say?] and only if resources.arsc modified).

Not sure something can be done on apktool side and even if it's kinda hard to debug I guess...makes me think a little about that video-call issue related above (Samsung device also btw?You too?).

If it happens you find anything that may help let me know please :)
[Android Software Development] David_Vaz:
Man, the problem as been fixed! I'm updated Java on mi computer :D :D :D

Thank you!
[Android Software Development] DJBhardwaj:
hehe, one of the worst mistakes that we make :fingers-crossed:
[Android Software Development] texture:
I have a problem with the framework ids of my device...when I recompile with apktool 1.5.2 ids are moved from 0x0c to 0x02 and the device don't boot.

So i try to compile apktool from sources,i obtain this jar file: apktool-cli-2.0.0-Beta2 ...I tried with it to recompile the framework but the ids changes again from 0x0c to 0x02
[Android Software Development] tubstermania:
Yeah if someone could assist with this issue it would be great, seeing as it was duplicated :)
[Android Software Development] nobody573:
what for a device you have ??

and we can i see that whit the ids that the ids are moved
[Android Software Development] texture:
Oppo Find 5.