yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace S5830 General] K.A.:
But even if they are there, it shouldn't affect recompile... :confused:
[Galaxy Ace S5830 General] SpaceCaker:
They do

Because aapt doesnt know them properly

( most of aapt atleast because they are based for GB apps mostly an later modde for ics )

So they dont know those folders
[Galaxy Ace S5830 General] Jeeko:
Thanks bro!! :D
[Galaxy Ace S5830 General] shandy1996:
Easier way to use ApkTool...

This is a great tutorial, but I'm lazy, so I don't like CD'ing to the correct directory all the time.

So, I added the files location to the PATH Variable in Environment Variables, like so:

Open Windows and right-click on Computer and click Properties.

Click Advanced Settings, and then Environment Variables.

Find the Path Variable, and click Edit.

There will be a bunch of paths, don't delete these! Go to the end of the string, and put a semi-colon (;) and the the path to the folder where your ApkTool Files are.

Example:

........;C:\ApkTool

Then click Ok/Save, and close all the windows.

Open command prompt, and type apktool.

If you get this:

Then success!

If you get:

"Apktool is not recognized as an internal or external command, operable program or batch file."

Then go back and make sure you have the folder where ApkTool files are located.

Thanks, hope it works, now you can run the apktool command no matter where you are! ;)

Proof:

I CD'd to a blank directory I created with no files in it whatsoever, called XDA.

I then ran the apktool command and got the desired output.

Success :laugh:

Hit that thanks if it worked :p

Peace,

shandy1996

---------- Post added at 09:32 AM ---------- Previous post was at 09:27 AM ----------

Why do I not get pictures to show up? :@
[Galaxy Ace S5830 General] PulseDroid:
^^ Nice, but wow then your very lazy, :p
[Galaxy Ace S5830 General] unmitigated:
good information
[Galaxy Ace S5830 General] shandy1996:
I am :D

I hate CD'ing to the directory every time.

So much easier to add it as a native CMD command, then i can use it no matter how deep in the filesystem I am :P

Peace,

shandy1996
[Galaxy Ace S5830 General] K.A.:
Yep, its a known method...nothing new. Nothing about being lazy or not, just saves time.
[Galaxy Ace S5830 General] bhumik147:
Doesnt works.. :(

CMD says :Java is not recognised as an internal or external command"
[Galaxy Ace S5830 General] K.A.:
Install JAVA JDK And SDK.
[Galaxy Ace S5830 General] ss2pheonix:
gtv apks

how would i get a gtv apk to recompile after changing <uses-feature android:name="com.google.android.tv" android:required="true" /> to <uses-feature android:name="com.google.android.tv" android:required="false" />

do i need the gtv framework? if so can someone supply it to me?
[Galaxy Ace S5830 General] SXUsr:
Is there another apk in your framework folder on your Phone? If there is install that too and try again.
[Galaxy Ace S5830 General] Alex.87:
Hello everyone, I'm trying to learn how to use apkmanager / apktool; operations that I have performed are:-start dependencies systemui and framework-res twframework-res decompiled-deleted-file-classes recompiled and put the phone in the system ui but there must be some problem because it crashes, let's talk about smali file where I had to change the wording onlongclick because I wanted the settings in the statusbar be opened with a single tap unlike the simplistic v10 where is held down, you have info about it?
[Galaxy Ace S5830 General] Alex.87:
who can help me,please?

EDIT: GRAZIE A TUTTI.
[Galaxy Ace S5830 General] Furiririri:
Hey!

Firstly, I would like to thank you for your tutorial. it appears to be quite helpful, though I had problems following the "Recompile"-step, which is why i am asking you for help... and because I do not have such high knowledge concerning editing files connected to android, but I do have the strong wish to gain such.

Well. afaik, I did everything you said correctly.

I got the APK-File that I tried to edit by using the application AirDroid (can be found in Play Store).

Everything worked out quite well at first; after installing the framework thing by typing "apktool if (name of application).apk" and decompiling the file, I decided to edit the "AndroidManifest.xml" file with "notepad ++" and erased some lines that contained the permissions that the app had and that I did not want her to have.

Then I typed (in the cmd-window) "apktool b (name of the folder) (name of the modified app).apk" and got this as result:

C:\android\apktool>apktool b (name of the folder) (name of the modified app).apk

I: Checking whether sources has changed...

I: Checking whether resources has changed...

I: Building resources...

C:\android\apktool\(name of the app)\AndroidManifest.xml:6: error: No resource identifie

r found for attribute 'xlargeScreens' in package 'android'

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce

ption: could not exec command: [aapt, p, -F, C:\Users\(name)\AppData\Local\Temp\AP

KTOOL3496877487656703167.tmp, -I, C:\Users\(name)\apktool\framework\1.apk, -S, C:\

android\apktool\(name of the app)\res, -M, C:\android\apktool\(name of the app)\AndroidManifest.

xml]

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

a:193)

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

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

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

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

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

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

Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U

sers\(name)\AppData\Local\Temp\APKTOOL3496877487656703167.tmp, -I, C:\Users\(name)\a

pktool\framework\1.apk, -S, C:\android\apktool\(name of the app)\res, -M, C:\android\apk

tool\(name of the app)\AndroidManifest.xml]

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

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

a:191)

... 6 more

C:\android\apktool>

...and I have absolutely no idea what I could do now.

I searched for "recompile" in this thread, but I could not find my problem. hopefully I do not annoy anybody by posting my problem here... have to admit that I am a bit afraid of this.

PS: I have installed the latest Java Update and .NET framework, my computer is running on Windows 7... need further info?
[Galaxy Ace S5830 General] Beatsleigher:
Definitely a great guide!

Now, to find out what Facebook's been doing wrong and to (hopefully) make some positive changes :p
[Galaxy Ace S5830 General] SpaceCaker:
u probaply moddified line 6 of androidmanifest.xml

C:\android\apktool\(name of the app)\AndroidManifest.xml:6: error: No resource identifie

r found for attribute 'xlargeScreens' in package 'android'
[Galaxy Ace S5830 General] MostafaEG:
i want to translate qq 2013

hell all,

I want to translate the apk of the qq 2013 , I want to translate it to English

its url is ( id=com.tencent.mobileqq) , I cant send full link yet

a tried to use apk tool but I didn't succeed , can u help me please ?
[Galaxy Ace S5830 General] Rishabhv:
app not installing

well I followed every step and I was able to recompile it. I just changed the minSDK version of the app from 9 to 8 in android manifest and recompiled it. now when I try to install it on my device it says APPLICATION NOT INSTALLED :( any idea how can I get through this. its a fresh app and nothing related to it is installed on my device.
[Galaxy Ace S5830 General] nysokheng:
While Recompile the apk, I got this error like shown in the pictures. I followed your instruction already. Can you help?
[Galaxy Ace S5830 General] ArnoJeroen:
I decompiled settings.apk and, without any editing, I recompiled it again.

Strangely I get these errors.

What am I doing wrong?

Microsoft Windows [versie 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle rechten voorbehouden.

C:\Users\Arno>cd..

C:\Users>cd..

C:\>cd androidtools\apktool

C:\AndroidTools\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Arno\apktool\framework\1.apk

C:\AndroidTools\apktool>apktool d settings.apk settings
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\Arno\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...

C:\AndroidTools\apktool>apktool b settings settings-new.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\AndroidTools\apktool\settings\res/layout-h72
0dp
invalid resource directory name: C:\AndroidTools\apktool\settings\res/layout-sw6
00dp
invalid resource directory name: C:\AndroidTools\apktool\settings\res/layout-sw6
00dp-land
invalid resource directory name: C:\AndroidTools\apktool\settings\res/layout-sw7
20dp
invalid resource directory name: C:\AndroidTools\apktool\settings\res/layout-w72
0dp
invalid resource directory name: C:\AndroidTools\apktool\settings\res/values-sw6
00dp
invalid resource directory name: C:\AndroidTools\apktool\settings\res/values-sw6
00dp-land
invalid resource directory name: C:\AndroidTools\apktool\settings\res/xml-sw600d
p
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Arno\AppData\Local\Temp\AP
KTOOL6678504394471953372.tmp, -I, C:\Users\Arno\apktool\framework\1.apk, -S, C:\
AndroidTools\apktool\settings\res, -M, C:\AndroidTools\apktool\settings\AndroidM
anifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Arno\AppData\Local\Temp\APKTOOL6678504394471953372.tmp, -I, C:\Users\Arno\a
pktool\framework\1.apk, -S, C:\AndroidTools\apktool\settings\res, -M, C:\Android
Tools\apktool\settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more

C:\AndroidTools\apktool>
[Galaxy Ace S5830 General] Karim Kahale:
Hii , thanks for your tutorial.

I am having a problem at the very last step : I just don't understand how to do it exactly :(
[Galaxy Ace S5830 General] PinkSox:
HELP!!

There is NO way this works for me! The framework will NOT install - Galaxy Note 2, Cdn.

I have been at this for day and tried everything I can find!
[Galaxy Ace S5830 General] SpaceCaker:
apktool if framework-res.apk

apktool if twframework-res.apk

and also add ur frameworks properly and cd correct directories
[Galaxy Ace S5830 General] PinkSox:
Thank you!! Those were missing! Now I just have to figure out how to decipher what it all means
[Galaxy Ace S5830 General] -Jesco-:
C:\apktool>apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080291 drawable/ic_ab_back_holo_dark, config=-xhdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:384)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)

C:\apktool>

i got that :\
[Galaxy Ace S5830 General] mharis05:
Okay, I'm trying to decompile stock mms.apk from my Nexus 4 and getting following exception:

C:\Windows\apktool>apktool d Mms.apk Mms
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Windows 7\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=uiOptions, value=0x0
0000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=parentActivityName,
value=0x00000040
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Unknown Source)
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(StaticXmlSerializ
erWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrappe
r.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java
:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)

Any idea what may be causing it?

Also, can somebody confirm that the framework-res.apk to be used is required to be extracted from your device?
[Galaxy Ace S5830 General] joelquerty:
how can i sign my project?
[Galaxy Ace S5830 General] amtra:
Yes for dmpcle framework-res.apk must need. insal framework and dmpcle
[Galaxy Ace S5830 General] rolling56:
Anyone have a link for these please? TIA!
[Galaxy Ace S5830 General] PulseDroid:
Try this, I use it for every app, use 'test_key'

Here Is the link.
[Galaxy Ace S5830 General] rolling56:
Will try when I get home. Thank you.

Sent from #15
[Galaxy Ace S5830 General] qmobilea2:
Same error with me :confused:
[Galaxy Ace S5830 General] PulseDroid:
Try decompiling and recompiling an app without doing any mods. If that works, it's your mods, and I'll support further in PM.
[Galaxy Ace S5830 General] Aggror:
I cannot recompile. It shows this error.. :(
[Galaxy Ace S5830 General] alveos:
Doesnt work for me, i am getting errors.
[Galaxy Ace S5830 General] Doug_74:
SecMms.apk help

I have been trying to modify the SecMms.apk to work with Softbank, your guide in spot on and I thank you. The problem I have is when I get to this step "use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "-new" apk and copy them into Original apk" 7zip takes 'resources.arcs' when copying and cuts the file size almost in half, is this normal?

The other problem I have is the SecMms.apk will not install. Neither the original one I copied or the the one I modified?

I would appreciate any help anyone could offer.

4.2.2-I9505ZHUAME1
[Galaxy Ace S5830 General] PulseDroid:
Has the APK been signed? If not, see Here.
[Galaxy Ace S5830 General] Doug_74:
Yes I am using ZipSigner, but the apk still does not work. ZipSigner will not work in auto, but I tried to sign with all the other options (media, platform, shared, and testkey) all of which sign the apk, but the results were the same each time, failure to install.

1. I am using XDA Assistant app to install the apk, if that matters.

2. All I have done to the original SecMms.apk to simplify troubleshooting was decompile it, recompile it, moved the resources.arsc from the new SecMms.apk to the original SecMms.apk keeping the apk name the same and I utilized 7Zip to accomplish the moving of the resources.arsc file, as per your instructions.

These are the scenarios I have tried:

I have tried to delete the original SecMms.apk and paste the new copy in, this does not work as I get the parse error.

I have tried to install the new SecMms.apk with the original one deleted and I get "Installing..., then x Application not installed".

I have tried to install the new SecMms.apk with the original SecMms.apk still installed and I get "Installing..., then x Application not installed, Package with that name and different signature already installed" This leads me to believe that I need a different signature for the apk?
[Galaxy Ace S5830 General] rolling56:
I installed JDK and SDK and still get this when i try to install framework for SystemUI.apk in the folder.

Any help would be appreciated.

Running XP Pro 32bit (ya is old but should work?)
[Galaxy Ace S5830 General] PulseDroid:
Java Jre 7?
[Galaxy Ace S5830 General] rolling56:
yes

I know it's probably not the cause but would running NoScript for FireFox for my browser keep it from working?
[Galaxy Ace S5830 General] rolling56:
I should mention i have uninstalled all Java instances and cleaned up the registry on my PC, shut down, reinstalled JDK only, shut down and same thing.

I can decompile this .apk but nothing is in the folder/s it creates.
[Galaxy Ace S5830 General] rolling56:
Tried installing ADT bundle for windows and still get the same message in my earlier Cmd attachment.

Does anyone have the file i seem to be missing or am i reading it wrong?
[Galaxy Ace S5830 General] PulseDroid:
Try decompiling with this and see if you get the same error.
[Galaxy Ace S5830 General] PulseDroid:
Fix a corrupted Java Jre ( Development package )

Download JavaRa

Run with Administrator permissions

Click Remove Java Runtime

Click on Additional Tasks

Select the following and click Run

( Remove Startup Entry, Remove Outdated JRE Firefox Extensions, Clean JRE Temp Files. )

Re-install from here:

Note that JavaRA might have updated and has onscreen instructions to help you fix your JRE.
[Galaxy Ace S5830 General] Lupus13:
nice guide :D thanks
[Galaxy Ace S5830 General] rolling56:
Thank you for all your help PulseDroid but it still won't install the framework so i will try next on my laptop but it has XP Pro on it also....

Update:

No luck with my laptop either dang it.............Might take the files with me to a friends one day. Thank you again for your time.
[Galaxy Ace S5830 General] noobpremium:
how to port that systemui to other device?:confused::confused::confused:
[Galaxy Ace S5830 General] Ph33zy:
I'm trying to decompile a market apk so that I can change the name of the app (cuz of my OCDness). I'm able to decompile the file fine, but I cannot compile the project even when though I haven't made any modifications.

The weird thing is that it used to work on a previous version of the app, but not the latest and greatest. Am I missing something?
[Galaxy Ace S5830 General] Ryuinferno:
Mind posting the error log?

Just wondering, why is JRE/JDK 32 bit is specified? If the machine is 64 bit, using the 64 bit version shouldn't be a problem...
[Galaxy Ace S5830 General] PulseDroid:
I get errors when running JRE 64 bit on my 64 bit computer, but sure it would probably work for you okes :)
[Galaxy Ace S5830 General] amtra:
Here is my error while decompiling systemui.apk
[Galaxy Ace S5830 General] :
I am getting same error :/
[Galaxy Ace S5830 General] Illidan Pornrage:
One thing I dont quite get is, why does one not have to re-sign the file? I mean is it just checked wether a signature is there, but not if its fitting?
[Galaxy Ace S5830 General] Ryuinferno:
Did you reinstall the framework-res.apk? Cause different ROM have different ids...the error shown refers to an unknown resource id...

If it's a user apk, then yes, you must resign; but if it's a system apk, you don't have to because the system doesn't recognise foreign signatures unless you disable the signature check...
[Galaxy Ace S5830 General] :
Yes... I installed framework-res.apk and twframework-res.apk still errors :|
[Galaxy Ace S5830 General] terminal13:
Thanks!
[Galaxy Ace S5830 General] Ryuinferno:
Post your error log instead...
[Galaxy Ace S5830 General] :
Same as Amtra's noting is different :/
[Galaxy Ace S5830 General] Ryuinferno:
Ok...extract framework-res and twframework-res from the same ROM as the SystemUI...then reinstall them...they have to be from the same ROM...
[Galaxy Ace S5830 General] :
They were of the same rom :/
[Galaxy Ace S5830 General] Ryuinferno:
Then I have no idea...there are either two causes:

1. The SystemUI is already modded, so there are other dependencies

2. Apktool problem (old version or internal bug, need to report to the developer)
[Galaxy Ace S5830 General] :
Can you link me to download link of APKTool you downloaded :confused:

Thanks,

Arnav.G
[Galaxy Ace S5830 General] Vivek_Neel:
Get the latest apktool

Here
[Galaxy Ace S5830 General] :
Dang it.. Same error :(
[Galaxy Ace S5830 General] Vivek_Neel:
Before decompiling systemui

Register your mobile framework.. usingcommand as apktool if .apk
[Sprint Samsung Galaxy Note II] yourbrotherrex:
Anyone know what it does?
[Sprint Samsung Galaxy Note II] akamara13:
Where do you see or hear of the 4.2 OTA?
[Sprint Samsung Galaxy Note II] Chuck_IV:
It's not for us, but I saw it's rolling our for the Nexus
[Sprint Samsung Galaxy Note II] yourbrotherrex:
Whoops: my bad, wrong forum..
[Galaxy Y GT-S5360 General] brilliantnw:
What custom kernel that is FAST Booting. and really good.
[Galaxy Y GT-S5360 General] ttocs99:
Try and you wil find out

Sent from my GT-S5360
[Galaxy Y GT-S5360 General] nikufellow:
Such questions are really subjective please avoid them if possible - try for yourself and select the one which best suits your usage !
[Nexus 4 General] enyceckk:
Is your Nexus 4 having any problem? Please report them here.

I would like to know b4 ordering this phone.

Thanks
[Nexus 4 General] spencer88:
Like can we hold off on the negative threads unless we actually have a damn problem?
[Nexus 4 General] enyceckk:
People got the phone already. not sure what u mean.
[Nexus 4 General] steviewevie:
One thread for potentially different "problems" ? Does that really make sense ?
[Nexus 4 General] Vangelis13:
What are you trying to achieve with this thread? Will you send the score / results to Google / LG for reviewing or something? Or is it just for gossiping purposes..?

Thread reported
[Nexus 4 General] jahmgwapo:
Actually, this may help decide others to continue to buy an NX4.
[Nexus 4 General] Vangelis13:
A thread with a poll on possible problems? No, it won't help anyone.
[Nexus 4 General] enyceckk:
None of these above is a problem? Are you saying there are actually more problems than in this list?
[Nexus 4 General] efrant:
The problem is that the phone has been out long enough yet. Let's wait on the problem threads/polls until the device has been at least shipped to a few people, and they have some comments on it. Thanks.
[Xperia Play Q&A, Help & Troubleshooting] pedyvirus:
Guys what the best ics custom Rom that has WiFi and...(I don't want official ics)

Plz help me because all of the roms that I installed Dont have WiFi or touchpad work
[Xperia Play Q&A, Help & Troubleshooting] chery2k:
Did you try gin2jellybean rom?
[Xperia Play Q&A, Help & Troubleshooting] ridder215215:
http://xdaforums.com/showthread.php?t=1822118.

It says that Wifi and touchpads work.
[Xperia Play Q&A, Help & Troubleshooting] pedyvirus:
Are jin2jealybean roms complete now?