yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Ticklefish:
I'm getting a strange warning recompiling a Sony KitKat framework-res.apk..

W/ResourceType( 7284): No known package when getting flags for resource number 0x010100f4
W/ResourceType( 7284): No known package when getting flags for resource number 0x010100f5
...and on and on and on and on....

The relevant framework (SemcGenericUxpRes.apk) was installed before decompiling and no changes were made before recompiling. But the APK is FC'ing, so I'm guessing these warnings aren't good..

The resources mentioned are in public.xml and in the rest of the APK, so I'm not at all sure what's going wrong here.. :confused:

This is your error. You've got a lot of lines that look like this:

C:\apktool\whatsapp\res\values\public.xml:1670: error: Public symbol drawable/picker_e24c declared here is not defined.

Looks like you've deleted some icons without removing them from public.xml..
[Android Software Development] niaboc79:
Easy way is to push the code inside a working apk and compile with old apktool then decompile same resulting apk with latest apktool.

Smali code will be automatically converted ;)
[Android Software Development] Uchiha_Dev:
thank you sir, but [MENTION=4315551]Ticklefish[/MENTION] already helped me, and now i am helping other people by porting apktool 1.5.2 smali to apktool 2.0 :3
[Android Software Development] Aman Dewett:
Bro I know that error mean but in actual i did not deleted any one of file, nor i touched public.xml. That's the actual problem i did not deleted any file but still he's saying files are missing. either i checked twice file names given in error they are available in that folder but still apktool giving this error that files are not there. Please help!
[Android Software Development] Morningstar:
If you have a lot of public symbol not defined errors, you need to look at the first error line in the log. That will be the actual error.
[Android Software Development] Thebear j koss:
Does the apk build right after decompile without changes? What did you change? Did you muff a 9 png? That can cause public errors like you are seeing.

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] Aman Dewett:
No i did not muff 9 png nor i remove anything, i just replace some png's with same name... and one more thing which will confirm that it's apktool error, today i decompile other apk and replace only one png and apktool give same error that files are missing but in actual i did not even touched those folders.

before apktool was working perfectly it's something happens from yesterday, do i need to install new window or any other solution and i did replace apktool with new apktool and also deleted apktool folder which contain 127 and 1 frameworks, it was re-created by new apktool but no profit,same error. Help please
[Android Software Development] Thebear j koss:
Does it compile without any changes?

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] Aman Dewett:
yes it's compiling without any changes but if i replace even one png's(ofcos with the same name and size) it gives me this error.
[Android Software Development] Thebear j koss:
So it's definitely something you are doing, it is not apkrool. Are you keeping the name exactly the same and the file extension .png all case sensitive?

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] Morningstar:
It's not an apktool problem, it's something that you're doing. Post a log with the error you're getting, so we can see what's happening.
[Android Software Development] Aman Dewett:
need Help

here it is bro please help me.

One thing i wanna tell that log is saying that png's are missing but i checked them twice they are available in the given path and i don't even touched public.xml. To get sure that png's are not missing i did it 20 times and 20 time i didn't touched those png's those are giving error. But still i'm getting this error i don't know why please help and please check last lines of error log may it help you to find exact error. And just to inform that i MOD many apk's before so i'm not a NOOB that i did this silly mistakes like removing png's and try to compile. It was fine before the problem started from day before yesterday.
[Android Software Development] Aman Dewett:
Yes bro i'm not a nob i did mod many apk's before i can't do silly mistakes like that.. but still i'm getting this type of error i don't no why :(
[Android Software Development] Thebear j koss:
Not saying you are a noob, but there is something you are doing that is causing this. If it builds without changes, whatever you are doing is causing the error. There are a million errors, so either something is named wrong, you deleted a file, or a 9 png is muffed. The error should be the 1st thing popping up in your log. Try clearing your log, restarting apktool, and then recompile and post the log. You are getting all upset and there are people trying to help, but we can't see what you are doing.

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] Morningstar:
That's not a complete log, and doesn't contain whatever the problem is. Please post the full thing (and in a regular format, like .txt or .xml or something-not everyone uses word).
[Android Software Development] Aman Dewett:
Thank you

You guys were right, there was something that i did wrong. Problem was that 9 png is muffed. I muffed it by simple dragging it on photoshop. Sorry if i irritated you. and at last please tell me which is best way to change color of .9 png??
[Android Software Development] Morningstar:
There are all sorts of ways you can edit 9patch images. I typically move the 1px border to a separate layer in Gimp, make whatever changes I want, then merge the modified layer with the border layer.
[Android Software Development] Thebear j koss:
https://www.google.com/search?q=how...74j0j4&sourceid=chrome-mobile&espv=1&ie=UTF-8

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] Deltadroid:
Has anyone tried to deodex Google Keyboard from the Nexus 5 Android M preview? I know its premature... but I was just curious if there are patches to fix it.

Regards.
[Android Software Development] zelendel:
Without being able to look at the complete source code the chances are slim to none
[Android Software Development] superdild:
Android M

i'm testing apktool v2.0.0 to de/recompile android M nexus5 framework-res.apk, it's working well on first attempt :)

navbar height mod ok

saluti, mario
[Android Software Development] :
So a quick question, why does the resources.arsc being corrupt everytime i build the apk ?

seems like its either bad load of framework or something because it always crashes
[Android Software Development] DUHAsianSKILLZ:
Hi I seem to get this error when recompiling secsettings apk from Tab 4 TW LP. It decompiles fine but recompiling with out any changes shows me this. (log) https://drive.google.com/file/d/0B5DZenb7A53cM2lDNGZkSHlJVjg/view?usp=sharing

I have used the latest and many different apktools such as the advanced apktool and all that and same thing. Any help? Thanks!
[Android Software Development] Thebear j koss:
There is a drawable assistant blah blah blah icon missing. Try to find it or make 1. Or go into the xml it is called from and delete that reference

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] :
The file drawable/assistant_menu_icon_messages_search (most likely png) file isn't found. previous comment explained how to fix :)

And should most likely be present in any drawable **** folder (doesn't have to be in drawable folder can be in drawable-xhdpi

Good luck
[Android Software Development] PIRATA!:
Hi there.

What do you think about this?

BurSoft Portable - Batch ApkTool

I'm looking at it and it looks quite interesting...
[Android Software Development] :
If doing as the name tells it be good. It but haven't looked at it. Will do

And what version is the correct one to get a working resources compressed file. I've tried the snap build and latest stable
[Android Software Development] iBotPeaches:
So I've been sitting on the fence on one bug and its associated change and it is the final blocker on releasing 2.0.1.

If you feel comfortable with building from source and understand what is being talked about in that report. I urge you to build the source, test it out on the apk, and see if it experiences the problem(s) mentioned in the bug report.
[Android Software Development] :
i've downloaded it, and changed the README to english, going to upload to another host but i must say it looks promising, nice share bud
[Android Software Development] Lanchon:
Public service announcement: DexPatcher grew in scope and now bundles Apktool and dex2jar...

THE ALL-NEW DEXPATCHER PREVIEW IS UP !!!

Come take a look ! :)

​
[Android Software Development] PIRATA!:
The file I've grabbed is the stand-alone one, that is approximately 65Mb and it's the one that ends with the "s" in its filename....can't retrieve it now as I don't have my files with me.

Your welcome, and thank you for the README in eng that world be a nice thing.

I've tried it to decompile a file for my S5 deodexed KNOX 0x1 for enabling Private Mode, and recompiling it went well.

But still haven't tried it on system....
[Android Software Development] wernerml:
for those who tried a hundred "clicks" in those m..fu..king Russian characters/buttons, and almost gave up searching:

download link: BatchApkTool301s.7z
[Android Software Development] bovirus:
[MENTION=1230237]wernerml[/MENTION]

Did you download APKTool301batch?

Could you uplaod it on emdiafire/mega/etc?
[Android Software Development] wernerml:
http://xdaforums.com/showpost.php?p=61173273&postcount=3300
[Android Software Development] bovirus:
I tried to downlaod from .ru web site,.

But teh first link the page say that link is wrong and ask to downlaod in otehr page.
[Android Software Development] wernerml:
man... here ---> http://stg262.rusfolder.com/download/?43511689&HyUKz9JnlmYlPXemTI9P75KuK%2BXA%2FOw8ST2ZnuCO2m5dlR3ybAENA4eLHVJaZaOgdADJR8nK3TY%3D
[Android Software Development] zelendel:
Ok guys this topic is about this ApkTool and not others. And just a reminder. 4pda links are banned here so no posting links from them
[Android Software Development] jdpeck:
I am on the 2.0 apktool and it has been working fine. With the latest cm update it broke the expanded status bar header in themes. I pulled systemUI off my phone to fix it but the apk would not decompile. Tried to install framework from the rom and it would not install, ketp getting error "Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file"

I updated my android sdk but still getting the same thing. any ideas what could be wrong?

thanks
[Android Software Development] thereal_bigjake:
I compiled apktool for the first time the other day because of this and now system apks decompile fine.

http://ibotpeaches.github.io/Apktool/build/
[Android Software Development] :
Decompilation isn't an issue here neither,

it's only the recompile that is an issue,

Always get's a corrupt archive

oh and thanks for the build link i honestly thought i needed Linux to build :laugh:
[Android Software Development] PIRATA!:
I tried to reach you through PM.

Just world like to know if it's the same version as from the Russian website with only the README in English.

If so or other, can you post (in PM if not possible here) only the files you have replaced/added?

Tnx.
[Android Software Development] djdarkknight96:
I tried but getting Java failed and I know it's working because android studio and Eclipse work fine..tried installing gradle but it's like pulling teeth to understand where they want the files and variable path..etc gives me headaches..lol

I have a person to build but I wanna learn too so I'll keep trying but if I'm missing something obvious please tip me any suggestions.

On Windows btw
[Android Software Development] laura almeida:
I have one question

I tried decompiling Settings.apk from CM12.1 using Apktool v2.0.1-dirty

Decompiling completed successfully with lots of warnnings as shown below.

C:\Users\Laura\Desktop\Loli>apktool d Settings.apk
I: Using Apktool 2.0.1-dirty on Settings.apk
I: Loading resource table...
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: drawable-ERR0
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: drawable-v21-ERR1
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: drawable-mdpi-ERR2
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: drawable-hdpi-ERR3
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: drawable-xhdpi-ERR4
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: drawable-xxhdpi-ERR5
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: drawable-xxxhdpi-ERR6
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: color-ERR7
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: style-ERR8
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: style-sw720dp-ERR9
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: style-v21-ERR10
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: style-land-ERR11
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: style-sw600dp-land-ERR12
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Laura\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

After that I recompiled without changing anything.

C:\Users\Laura\Desktop\Loli>apktool b Settings -c
I: Using Apktool 2.0.1-dirty
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Copy original files...
I: Copy AndroidManifest.xml...
I: Copy META-INF...
I: Building apk file...
I: Copying unknown files/dir...

Original Settings.apk size = 26.8 MB

Recompiled Settings.apk size = 24.9 MB

Recompiled one is working without any problems.

My question is where did the 1.9 MB went ?
[Android Software Development] :
so what about the git requirement ;)
[Android Software Development] djdarkknight96:
The who? I have git to submit code review changes but I've never built with it..noob city here lol
[Android Software Development] jdpeck:
Thanks for the info. I've never built anything before and I'm out of town for a few weeks for work. Don't want to even attempt to sync any repos over this crappy hotel wifi. Guess I'll wait until I get home
[Android Software Development] :
well it said it required it so that's what it needs :P

---------- Post added at 05:54 PM ---------- Previous post was at 05:52 PM ----------

pretty much trashed or compressed.
[Android Software Development] Ticklefish:
It looks like it was dropped by apktool...

W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. [b]Dropping[/b] resources: drawable-ERR0

I don't think your APK was decompiled correctly, after all.. :(
[Android Software Development] bdorr1105:
I am having zero issues with 2.0.1 dirty using BDfreaks Advanced APK Tool
[Android Software Development] thereal_bigjake:
Iirc, it's been a few days, I opened git and picked an option to open a shell from within git. I then ran the first command and got a java error so I then changed directories to C:/, all the commands worked after changing directories.

I'm on Windows 8.1 [MENTION=2126467]djdarkknight96[/MENTION]
[Android Software Development] Primokorn:
With these instructions I tried to install apktool but I can't install framework-res.apk.

framework-res.apk, apktool (wrapper script) and apktool.jar (RC4) are located into /usr/local/bin

I open the terminal from this directory and here is what I have:

arnaud-Lenovo-G500 bin # apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Invalid value type: 0
at brut.androlib.res.data.value.ResValueFactory.factory(ResValueFactory.java:64)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:242)
at brut.androlib.res.decoder.ARSCDecoder.readComplexEntry(ARSCDecoder.java:230)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:200)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:188)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:156)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:113)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:678)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:660)
at brut.androlib.Androlib.installFramework(Androlib.java:641)
at brut.apktool.Main.cmdInstallFramework(Main.java:240)
at brut.apktool.Main.main(Main.java:87)
arnaud-Lenovo-G500 bin #

arnaud@arnaud-Lenovo-G500 ~ $ java -version

java version "1.8.0_45"

Java(TM) SE Runtime Environment (build 1.8.0_45-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

Thanks for any help (I'm on Linux for a few days :)).

NOTE: ia32-libs is automatically installed with Linux Mint (17.1) and I did a chmod +x for the 3 files.
[Android Software Development] Thebear j koss:
Need to update your apktool. You did everything but check the OP. Lol. RC4 is old, v2.0 is the last stable release.

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] thereal_bigjake:
Does apktool work worth java 8? I always use java 7 and use these commands to install on Linux Mint:

sudo chown -R Your username:Your username apktool

sudo chown -R Your username:Your username apktool.jar

sudo chmod +x apktool

sudo chmod +x apktool.jar

sudo cp apktool /usr/local/bin

sudo cp apktool.jar /usr/local/bin
[Android Software Development] Primokorn:
lol I didn't check the date. I saw 2.0RC4 so it's a more recent version than 2.0 :D Thanks it works.

[MENTION=4850572]thereal_bigjake[/MENTION] so java 8 works fine.
[Android Software Development] :
yes it does, i use Windows 10 and java jdk 87xxx and it works great, not sure if it causes my issues with the broken resources.arsc

but i can recompile and decompile but i have to add files manually to a working zip :silly:

but to my surprise, BD tool seems to do the thing, i got a working apk :eek:
[Android Software Development] laura almeida:
It did.

That's weird part.

I did a full wipe and flashed rom using this modified Settings.apk

Everything is working perfectly.

I have gone through all the settings.

I have re configured all my settings.

No FC's

Everything is working as expected.
[Android Software Development] sasiskas:
Hey guys, I have a problem.

I'm trying to use apktool, but I just can't make it work, It wont generate any files or folder. I don't get any error, but I cant decompile anything.

[IMG="screenshot"]http://i.imgur.com/5gjhs9I.png[/IMG]

also tried "apktool d a.apk"

tried on various apk files

tried using advanced apktool.

I'm using win7 x67 home, Java RE 7 x86 and x64, I didn't want to ask for help..and tried to find a solution by my own..but I can't. I have followed any guide I could find online ...but nothing.

Thank you.
[Android Software Development] ct_moi:
Hi,

Link for faq in the first post:

http://ibotpeaches.github.io/Apktool/documentation/

Need to install framework

apktool d NameApk.apk

apktool b NameApk

That's all.
[Android Software Development] sasiskas:
Thank you for your reply, I did read the faq before posting.

I found what caused the problem.. I'm sharing in case it happens to someone else.

My anti-virus updated and had a new feature "auto sandbox", so it was detecting apktool as a possible malware or something, so it was sandboxing it.

Everything works fine now.

Thanks
[Android Software Development] balla48801:
Any fix for Registers over v15. Here is the error. Anytime I try to add register over 15 I get this even if the register before edit is already over 15.

Log For : SystemUI.apk

Log Type : Recompiling

Log Recorded At : Sun 14-06-2015 0:14:21.68

Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak

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

..\3-Out\SystemUI.apk\smali\com\android\systemui\statusbar\phone\PhoneStatusBarPolicy.smali[1645,1] Invalid register: v24. Must be between v0 and v15, inclusive.
..\3-Out\SystemUI.apk\smali\com\android\systemui\statusbar\phone\PhoneStatusBarPolicy.smali[1647,4] Invalid register: v24. Must be between v0 and v15, inclusive.
..\3-Out\SystemUI.apk\smali\com\android\systemui\statusbar\phone\PhoneStatusBarPolicy.smali[1653,4] Invalid register: v24. Must be between v0 and v15, inclusive.
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:355)
at brut.androlib.Androlib.buildSources(Androlib.java:295)
at brut.androlib.Androlib.build(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:255)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
[Android Software Development] Aman Dewett:
Need help

I tried to mod systemui.apk according to this Method i just replace some png's like wifi,bluetooth and signal bars etc, i also changed their sizes according to default size. But still i'm getting this error. i have attached the error log please read the log and help me. :confused:
[Android Software Development] Thebear j koss:
Line 88 has your error. There is an xml in your drawable folder that is pulling an apktool dummy resoutce and it can't be found. Looks like you edited the file it is trying to us3.

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] Aman Dewett:
But i didn't edited any of .xml file nor i touched any other folder than

hdpi

. i attached some of screenshots as you said error in line 88 and line 88 saying no resource found. but i checked but there is no " APKTOOL_DUMMY_042e" named any xml. please check screenshots and help me.
[Android Software Development] Thebear j koss:
Change in the drawable xml the apktool dummy to [MENTION=3944923]drawab[/MENTION]le/ic_contact_picture. And make sure there is a png or xml representing this resource.

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.
[Android Software Development] Basil3:
If you're not editing xmls, and not changing any .9 images, why aren't you just vr theming?
[Android Software Development] Aman Dewett:
I did the same as you said me to do, now i got this error please check attachments.
[Android Software Development] Aman Dewett:
I don't think so there is any vr themes nor xposed for asus zenfone with lollipop yet.
[Android Software Development] Thebear j koss:
Sorry, either check in your framework for that drawable ic contact picture. It is probably a png. If it is an xml, make sure it is readable. If it isn't that xml with apkvtool dummy that you changed delete the android in that line, so it just says [MENTION=3944923]drawab[/MENTION]le/ic_contact_picture.

LEGALIZE IT.

Mattias Duarte ruined android. Material design sucks.