yashsingh1/xdaforums huggingface dataset:
[Android General] Primokorn:
Contacts.apk - 4.4.2 CM11

Hi

I'd like to decompile the Contacts.apk (/system/priv-app) from a CM11 based ROM even after having installed the framework-res.apk:

I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x7f040020 layout/contact_picker, config=-sw600dp
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:63)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:193)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:162
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:128)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
3)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:604)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:66)
at brut.androlib.Androlib.getResTable(Androlib.java:49)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:93)
at brut.apktool.Main.cmdDecode(Main.java:169)
at brut.apktool.Main.main(Main.java:85)

Do I have to update Java/JDK/JRE?
[Android General] KuaQ:
Hi, when i try to decompile facebook messenger app i have this error:

Its possible to fix it?
[Android General] cristicaras:
Hello my friends.My name is Chris,from Romania.I'm 53 year old.Please help me.I use Textra SMS.It is possible to add,or modify a stock bubble color with yellow text and black background ??? Thank you,and excuse me for me poor english.Best regards.
[Android General] XPS_93:
twframework-res.apk

Hi, excuse me, where can "twframework-res.apk" be found? It wasn't inside system/framework. . . :(
[Android General] SXUsr:
Is there another apk file in the framework folder?

You can change it to anything you want, decompile, edit a png here, an xml there, sign it, done.

If you're using a Sony ROM which you could assume from your sig, you don't have one, you need the SemcGenericUXpres.apk.
[Android General] Primokorn:
Of course many more. I finally used APKStudio to decompile.
[Android General] cristicaras:
How decompile / recompile Skype ???

Hi.Please help me.I use Skype Mod v 19.1 inverted.I decompiled Skype.apk and, without doing any modification,I recompiled the application. In the attached picture you can see the errors. Why ??? I do something wrong ? I try install application compiled in "dist" folder, but it can not install. any idea ??? Thank`s in advance. Best regards.
[Android General] sp1312:
your tutorial is grt....

i works everything fine... everything goes well also but when i install that apk it force closes...

i installed framework 1 nd 2 both... i tried to copy resource.arsc to decompiled apk then copied androidmenifest.xml nd meta-inf folder...

after all that try it didnt work...

is their something missing???
[Android General] ibanez7:
Hi, don't resource.arsc to modified apk, i will make your editing in the apk is gone.

Okay, for all with problem when decompile and recompile apk, i'm sure the adroid SDK needed update, or JDK/java need update or patched on your PC's
[Android General] Damonwang:
you donot have put back the resources.arsc ,when you recomplie it will be create!
[Android General] sp1312:
Thnx... will try...
[Android General] Teshand:
Hello, I want to edit some .apk from the system/app folder. But in the tutorial it says that framework 2 has to be installed also. But I can't find the second framework file from my ROM. I can see only one framework file. It's Sony Xperia LT29i Rockers v 2.1 ROM. Where can i find the second framework file (twframework.apk) ? Any help will be appreciated...
[Android General] Dzepar:
In your framework folder you should have UxpRes.apk something, that's second framework in Sony.

Sent from my ST26i
[Android General] prit4u:
image quality is bad

ok i have edited phone.apk and made full screen caller image but the image quality is too bad. any solution plz ??
[Android General] ibanez7:
The framwork 2 of SONY ROM (also on my ROM : Rockers X) is SemcgenericUxpRes.apk

But Attention : for stock SONY ROM 4.3+, don't use this general apktool for editing framwork-res.apk etc.. But use advanced apktool by Bdfreak

Creat with yourself of find for your device (DPI).. on OP is for HDPI device...

Sent from Xperia TX powered Rockers X ROM
[Android General] prit4u:
help again please

actually u did not get my point friend. my screen mdpi (320x480) i edited phone.apk and expanded caller image size to 315x315 from 96x96 ok. it expanded well but when i call sm1 or smbody call me then that image is stretched. i want to know that should i edit Contacts.apk too ? and if yes then what files should be edited in Contacts.apk . how can i improve image quality ? ok see thumbnail for ur satisfaction :)
[Android General] satrowii:
package name....

Can anybody here tell me how to change the package name of an apk?
[Android General] pocthird:
i think you have to rename the package :D

or look inside the manifest i'm sure you're good enough in english to find something :) but you will have to use apktool to view or edit it as it is encrypted .
[Android General] chandarakk:
not work kitkat 4.4.2 SecSettings.apk for f180 LG

framework-res and lge-res work well
[Android General] Hamidreza2010:
i cant see the screenshot of the fist post

can you uploaded to another host?
[Android General] Primokorn:
They are working fine so the problem is your side. Check your hosts file.
[Android General] kdcom:
Need help with icons

I have a free app I use for my company but i want to change the icon's, I have the new icons and have tried APK Icon Editor and APKtool and I have successfully changed the icons and the app with load and log in but the map in the app will not work after I alter the apk. Can anyone help me out with this? I can send my files and paypal some money for your time.
[Android General] Dzepar:
If you want to chang icon, you shold just open apk with 7zip rename icon as I 7zip and make it same size just drag and drop replace. That's it. :)

Sent from my ST26i
[Android General] JT1510365:
help please

hi i can not install java jdk on my computer! When I open the setup program it just says that the system is missing a file like regkeydelete.

Can someone help me?
[Android General] kdcom:
This does not work the map inside the app does not load after I change the icons.
[Android General] kasvet-efza:
i'm using apk studio, want to recompile settings.apk

but the error like this

i have used just apk tool but same result

I: Using Apktool 2.0.0-Beta9 on set

I: Smaling...

I: Building resources...

C:\Users\USER\Downloads\Yeni klas?r\set\res\values\styles.xml:240: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.TextSelectHandle'.

C:\Users\USER\Downloads\Yeni klas?r\set\res\values\styles.xml:268: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.IconMenu'.

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\USER\AppData\Local\Temp\brut_util_Jar_7600495542920186716.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-name, 4.2.2-eng.scm.1397570312, -F, C:\Users\USER\AppData\Local\Temp\APKTOOL619070354528373019.tmp, -0, arsc, -I, C:\Users\USER\apktool\framework\1.apk, -S, C:\Users\USER\Downloads\Yeni klas?r\set\res, -M, C:\Users\USER\Downloads\Yeni klas?r\set\AndroidManifest.xml]

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:435)

at brut.androlib.Androlib.buildResources(Androlib.java:363)

at brut.androlib.Androlib.build(Androlib.java:286)

at brut.androlib.Androlib.build(Androlib.java:258)

at brut.apktool.Main.cmdBuild(Main.java:236)

at brut.apktool.Main.main(Main.java:88)

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\USER\AppData\Local\Temp\brut_util_Jar_7600495542920186716.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-name, 4.2.2-eng.scm.1397570312, -F, C:\Users\USER\AppData\Local\Temp\APKTOOL619070354528373019.tmp, -0, arsc, -I, C:\Users\USER\apktool\framework\1.apk, -S, C:\Users\USER\Downloads\Yeni klas?r\set\res, -M, C:\Users\USER\Downloads\Yeni klas?r\set\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:470)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:416)

... 5 more

Caused by: brut.common.BrutException: could not exec command: [C:\Users\USER\AppData\Local\Temp\brut_util_Jar_7600495542920186716.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-name, 4.2.2-eng.scm.1397570312, -F, C:\Users\USER\AppData\Local\Temp\APKTOOL619070354528373019.tmp, -0, arsc, -I, C:\Users\USER\apktool\framework\1.apk, -S, C:\Users\USER\Downloads\Yeni klas?r\set\res, -M, C:\Users\USER\Downloads\Yeni klas?r\set\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:89)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:464)

... 6 more

[MENTION=4569900]ibanez7[/MENTION]
[Android General] califpornia:
When trying to decompile Settings.apk from Android L preview:

W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103047e

W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103047e

W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103047e

W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103047e

W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103047e

W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103047e

W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103047e

W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103047e

W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103047e

W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103047e

W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103047e

I: Regular manifest package...

I: Decoding file-resources...

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0108064f

W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x010806e5

W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x010806e5

I: Decoding values */* XMLs...

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030334

at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)

at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)

at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)

at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:44)

at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)

at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:440)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)

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 General] Oohhlala:
im using your rom, rocker 2.1 and when i recompile setting.apk, i got this error

Settings.apk\res\values\styles.xml:87: error: Error: Boolean types not allowed (at 'com.sonyericsson.uxp:semcTextAppearanceBadge' with value 'true').

i tried to used advance apk tool by bdfreak and tickle my android tool and there was same result.plz tell me how to solve this :o
[Android General] Ronal rai:
**** recopile***

i decopile systemui.apk but i coludnt recompile it...

plz help!!!:confused:
[Android General] arman12345:
Recompiling Problem

Hi there :)

I have a problem in recompiling an apk. I have followed your steps but when I recompiled after editing using your code, the apk didn't recompile, I have attached a screenshot of the problem I am facing.

Thanks in advance
[Android General] ibanez7:
okay, here it looks like having a lot of errors, I will update the tools after the victory day of my religion. Maybe with the new method of decompiling/recompiling/signing/zipaligning. Thank

Send from Xperia TX Powered by Rockers X™
[Android General] robertogl:
Hi, i've this problem:

http://i.imgur.com/g7vtc7D.png

How can i fix that?
[Android General] Ainz_Ooal_Gown:
this seems really complicated but can someone decompile and recompile this app to work for every android http://xdaforums.com/fire-tv/themes-apps/flappy-birds-family-t2838195 it only works on Amazon Fire TV and Amazon Fire Phone
[Android General] L4zyD0g:
sir how to open the sdk manager tool ? after extracting it :angel:
[Android General] AA9:
SuperTUT

I love this Tutorial

Thaks bro :good:
[Android General] sp1312:
i installed android sdk nd all but still i m getting this error...

thnx in advance...
[Android General] rwilco12:
Congrats! You compiled your app successfully!

That's not actually an error. It's an informational warning that a string in the recompiled app doesn't have a corresponding translation in the translation strings.
[Android General] sp1312:
Thnq....
[Android General] SkubiDoo:
Hey!

I've tried lot of different apktools and other appz but without succes. When I try to decompile/recompile app it's okey, I have no problem. Problem starting when I need to change strings in PL translations in framework-res.apk

I can't compile this file :( Can anyone try to do it and explain me what I'm doing wrong? ( I'm doing eventying as in this instruction )

https://mega.co.nz/#!JQAmVS5Y!7jWT0a9XHnmj-4u3bbpWQmPa0axyUTysY8rw7UkrSf4

I need to change values-pl/string.xml

Change 6 matches "Użyj tego nagrania" to "OK"
[Android General] stephenoktara:
cool detail tutorial, hidup indonesia...

semoga semakin berkembang dan semakin keren !!
[Android General] rwilco12:
Can you post the actual error message? It's hard to troubleshoot because we don't know what device you're working with and don't have all the original framework files to replicate the issue. Posting the error message will give us something to work with. :)
[Android General] MikiGry:
What if i want to decompile and recompile only framework ?

I have to install framework in apktool or just decompile ?

Wysłane z mojego nexusowego tablecika.....
[Android General] Dzepar:
You'll have to install framework.

Sent from my D2303
[Android General] AnonymousZ:
Can You Help Mod Family Guy Quest for Stuff?

I Have The Original APK and The Modded APK, What Do I Need To Transfer From The Modded One To The Original One To Make The Mods Work? I Tried To Transfer The lib folder and The Meta-IF File With The Androidmanifest File But It Still Don't Work.
[Android General] AnonymousZ:
Thanks For The Links and Info.

Trying To Learn New Things and This Is Interesting!
[Android General] Alexjrbr:
Problem compiling

Good evening, I'm having trouble compiling the framework-res and Mms my device, it displays the following error in the print below. How to troubleshoot?
[Android General] calebdaking:
nice one, I will this on Sunday when am less busy, thumb up.

---------- Post added at 11:35 PM ---------- Previous post was at 11:29 PM ----------

pls, can it break my android?
[Android General] D2Y aka E:
hello ,, if you can make updates apktool I'll be

working on a custom rom base lollipop ,,,
[Android General] davez32:
not working

so Im new to this i copied over calculator.apk extracted it with apktool edited the icon png in photoshop recompiled with apktool signed it copied to the phone and it always says app not installed when i do the installer ??

any ideas?

Casio c811

android version 4.1.2

thanks
[Android General] Dzepar:
If it's System app you need do copy it with right permission to system/app folder.

Good Luck.

Xperia M2 D2303 on K.K. 4.4.4
[Android General] davez32:
thanks :)

edit found it nm

that worked thanks now on to my next issue anyone know where the images for the bar at the bottom in this screen shot might be? not the icons but the bar with the app drawer icon in the middle.

s8.postimg.org/7x07o4h1h/Screenshot_2015_01_11_18_11_43.png

edit guess i cant post outside links

ive checked framework-res already

Casio c811

android version 4.1.2

thanks again
[Android General] manikar:
​

SystemUI.apk

please help me im getting errors in recompiling the systemui.apk ..... i here by request you to enable all the widgets and give me re-compiled apk please do this favour to me./.....

im just guiding you that you head over in to values and edit in the bools.xml and set all the widgets to true in that. and recompile and then upolad to me here it self thank you (system ui/res/values/bools.xml)
[Android General] Dzepar:
You need proper framework in order to de/recompile SystemUI. You need to install framework on your pc than try ti de/recompile.

Good Luck.

Xperia M2 D2303 on K.K. 4.4.4
[Android General] manikar:
please do this favout to me you please instal this attached framework-*res.apk and de & recompile the apk after modifying the system ui as stated by me above please
[Android General] mygoldeneye:
Windows 8.1 - Error When Decompiling

I am on Windows 8.1 When I try to decompile my app I get this error

C:\Users\Julie\Desktop\[NEW][Window XP_7_8][GB_ICS_JB] Apktool_baksmali + Signer b

y ibanez7(1)>apktool if framework-res.apk

I: Framework installed to: C:\Users\Julie\apktool\framework\1.apk

C:\Users\Julie\Desktop\[NEW][Window XP_7_8][GB_ICS_JB] Apktool_baksmali + Signer b

y ibanez7(1)>apktool d kik.apk

I: Baksmaling...

I: Loading resource table...

Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars

c file

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56)

at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes

ources.java:469)

at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav

a:74)

at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav

a:66)

at brut.androlib.Androlib.getResTable(Androlib.java:50)

at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:174)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)

at brut.apktool.Main.cmdDecode(Main.java:141)

at brut.apktool.Main.main(Main.java:72)

Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000

at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)

at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:44)

at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10

2)

at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)

... 8 more

C:\Users\Julie\Desktop\[NEW][Window XP_7_8][GB_ICS_JB] Apktool_baksmali + Signer b

y ibanez7(1)>
[Android General] Dzepar:
You're missing a layout, it's bad decompile or you deleted something.

Good Luck.

Xperia M2 D2303 on K.K. 4.4.4
[Android General] Badshahjii:
Getting Error in Decompiling apk

Exception in thread main brut.androlib.AndrolibException Could not decode ars

c file

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java56)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java40)

at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource

s.java540)

at brut.androlib.Androlib.installFramework(Androlib.java495)

at brut.apktool.Main.cmdInstallFramework(Main.java224)

at brut.apktool.Main.main(Main.java76)

Caused by java.io.IOException Expected 0x001c0001, got 0x00000000

at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java48)

at brut.androlib.res.decoder.StringBlock.read(StringBlock.java44)

at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java10

2)

at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java83)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java49)

... 5 more

Now what should i do brother?
[Android General] ashish_zarekar:
hey bor i need your help.

i have whatspp which is older version. and when i install and use it after one day it ask me to update.

every time i open i got message box which say install update and it have 2 buttons 1 .Install 2.Later.

so i dont want it ask me to update.so which value should i change after decompile it ?​
[Android General] Cloud Strife 48:
Cannot Decompile

Can you please tell me how to fix this?
[Android General] Zidni:
Please help me

What Problem With My SystemUi.apk Or Framework-res.apk?

Please Read The Log

Log:
[Android General] Dzepar:
You need to install second framework.

Xperia M2 D2303 on K.K. 4.4.4
[Android General] Zidni:
i have only one framework-res.apk
[Android General] Dzepar:
This is your error:

If you use Sony, in system/framewor/HERE folder you'll have "SemcGenericUxpRes.apk" which is second fram-res.

insall it like framework you should be good ;)

Good Luck.
[Android General] Zidni:
i installed framework-res.apk & systemui.apk but haven't 2nd framework.

and the result is same

please help me.

my jb systemui decompile correctly. but problem with kk.

sorry for bad english
[Android General] Dzepar:
What rom are you using? Try deleting in C:\Users\apktool\framework 1.apk and reinstall it again. Nobody can help you if you don't give as more details.

All the Best.
[Android General] Zidni:
thanks for giving me

time

I almost forgot about mediatek-res.apk

I just

solve this matter.
[Android General] v1rgil:
Help me guys, how can I edit the resources from an android game? Thanks
[Android General] csanuragjain:
Decompile & Recompile using single tool

Hi,

Since decompilation, modification and recompilation of apk required several tools so I created a java GUI tool APKRepatcher which helps you to modify an existing apk using a simple user friendly GUI. It lets you edit java/smali code from an APK and rewrite the changes back to the modified signed APK. Additionally, it provides you option to convert Dex, Jar, Class, Smali, Class from one format to another.

github.com/csanuragjain/apkRepatcher

Thanks
[Android General] stucroft:
Hi I want to replace a picture within an app is it just a matter of decompiling the app changed the picture then recompile the app ?

Stuart
[Android General] ibanez7:
Thank you mate.... I hope this is useful. :)
[Android General] chandarakk:
this guide work on Deodex apk file?

i try all the step go well but after install settings.apk via Cwm go well to but it show

http://imageshack.us/photo/my-images/69/settingsir.png/

from y ? i just edit some word only (not del) (device_info_settings.xml) i edit in this xml please help
[Android General] ibanez7:
Sure mate, .... This guide works on deodexed rom.. Make sure that you change, replace, or whatever it is .. that you do not miss a single word. you try to repeat again, perhaps there is a missing.. if you get still problem... please post the logcat or xml file that you edit ;)