yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace S5830 General] teztaz--v3:
Thanks for share!

Thanks bro for sharing this!

Bcuz I have tried in other sites but I cannot understand it.. Many thanks to you..
[Galaxy Ace S5830 General] ikjadoon:
Great guide! :)

1) Like some people noted, here you only install framework-res.apk. Another guide showed this (http://xdaforums.com/showthread.php?t=1954886)

apktool if framework-res.apk (enter)
apktool if twframework-res.apk (enter)

Should I do both to be safe?

--

2) So, that same guide also doesn't even mention resources.arsc or "any XML files I edited."

He just mentions after re-compiling to,

9. Now open modded apk and stock apk in 7zip
10. Drag/drop meta-inf folder and AndroidManifest.xml from stock apk to modded apk
11. Rename modded apk same as stock apk. (capital/block letters)
example modded > settings.apk >Settings.apk
12. All done now push moded apk to phone and enjoy!!!

Who is right?

3) And here (http://xdaforums.com/showthread.php?t=1814441), the guy doesn't even install framework-res.apk. Is that...allowed?!
[Galaxy Ace S5830 General] viijay4b7:
First time I have started your tutorial. It was easy.

Initially I got error, when I used adbtool command. Once I installed java. everything is just fine.

Note: On winxp ;)

Will update more once I install the apk on my phone ;)
[Galaxy Ace S5830 General] Tomislav Veličanstveni:
I don't understand this step. How can I put modded xml files to the original apk file with win.rar? :confused: possible dumb question :o :laugh:
[Galaxy Ace S5830 General] PulseDroid:
If you didn't edit any xml's that needs to be decompiled you can use WinRAR.
[Galaxy Ace S5830 General] Tomislav Veličanstveni:
okay, got it ;)
[Galaxy Ace S5830 General] Reivaj1982:
Avoiding decompiling

Thanks a lot for this post, it was very usefull for me.

But, wath we can do to avoid that the rest of the people can see our code, or if the can decomplie it, just see rubbish

Thanks in advance!
[Galaxy Ace S5830 General] Rene_ajax:
with 7zip I cant see the xml files I edited... and now??
[Galaxy Ace S5830 General] PulseDroid:
Once the file is recompiled it won't show certain files.
[Galaxy Ace S5830 General] SpaceCaker:
Values folder is inside the resources.arsc

The smali folder is inside classes.dex
[Galaxy Ace S5830 General] PulseDroid:
Haha Space, go slow on the new guys.
[Galaxy Ace S5830 General] FenrirMX:
Overall, it seems simple enough, here's the deal though.

I install the framework. No problem

I decompile the apk (a live wallpaper). No problem

I modify an XML (just one of the color values). No problem.

I recompile. No problem.

I move the resources.arsc into the original apk. No problem.

I try to install it to my phone. NO GO. Says Install failed.

So, what went wrong? :confused:
[Galaxy Ace S5830 General] PulseDroid:
You have to sign the Apk. Try zipsigner2 from the market, always works for me. :)
[Galaxy Ace S5830 General] FenrirMX:
That was it, thanks a lot.
[Galaxy Ace S5830 General] Difusal:
I'm trying to compile an application but I'm having no luck. I can't even compile an untouched app, i.e., if I decompile mms.apk (no errors at all) and I tried to compile right on, it doesn't work! I have done this before when I still used windows 7 so idk why it isn't working.

One thing I noticed is that the frameworks get installed to C:\Windows\system32\config\systemprofile\apktool\framework\1.apk is that okay? I'm using windows 8 now if that makes any difference.

anyway, here is the output I get:

thanks!
[Galaxy Ace S5830 General] K.A.:
Check if that folder exists. If it does, delete the 1.apk and other files in there. Take the framework-res of the rom whose mms.apk you've taken, and do "apktool if framework-res.apk". Then decompile and recompile and see. Also, if it's stock, you'll need twframework-res.apk.

Also, shouldn't it be apktool b mms.apk? :confused:
[Galaxy Ace S5830 General] Difusal:
didn't work, it just gives me the same error.. :/

if I type apktool b mms.apk (instead of apktool b mms) I get:

C:\Android\apktool>apktool b mms.apk

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN

otExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Androlib.java:164)

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

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

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

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

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:

103)

at brut.androlib.Androlib.readMetaFile(Androlib.java:160)

... 4 more
[Galaxy Ace S5830 General] K.A.:
Yep. your mms.apk did not decompile properly. Install frameworks and decompile again. The error shows that the folder containing decompiled apk is missing apktool.yml file, which means decompile wasn't done properly.
[Galaxy Ace S5830 General] SpaceCaker:
You get that because you cant compile a apk to a apk
[Galaxy Ace S5830 General] Difusal:
yes, but I get a lot of errors when "apktool b mms" as well
[Galaxy Ace S5830 General] Difusal:
is something missing in my path?

C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\android\android-sdk\platform-tools;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Android\apktool\;C:\Program Files\Java\jdk1.7.0_15\bin\;C:\Android\sdk\tools\
[Galaxy Ace S5830 General] K.A.:
you need to do "apktool b mms xxx.apk"

replace xxx with whatever name you want for the new apk.
[Galaxy Ace S5830 General] Difusal:
C:\Android\apktool>apktool b mms new.apk

I: Checking whether sources has changed...

I: Checking whether resources has changed...

I: Building resources...

W/asset ( 5676): Asset path C:\Windows\system32\config\systemprofile\apktool\f

ramework\1.apk is neither a directory nor file (type=1).

ERROR: Asset package include 'C:\Windows\system32\config\systemprofile\apktool\f

ramework\1.apk' not found.

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl

ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-

sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Henrique\AppData\Local\T

emp\APKTOOL7834780375363419715.tmp, -I, C:\Windows\system32\config\systemprofile

\apktool\framework\1.apk, -S, C:\Android\apktool\mms\res, -M, C:\Android\apktool

\mms\AndroidManifest.xml]

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

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

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

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

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

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

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not

exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:

\Users\Henrique\AppData\Local\Temp\APKTOOL7834780375363419715.tmp, -I, C:\Window

s\system32\config\systemprofile\apktool\framework\1.apk, -S, C:\Android\apktool\

mms\res, -M, C:\Android\apktool\mms\AndroidManifest.xml]

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

a:357)

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

... 5 more

Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd

k-version, 16, --target-sdk-version, 16, -F, C:\Users\Henrique\AppData\Local\Tem

p\APKTOOL7834780375363419715.tmp, -I, C:\Windows\system32\config\systemprofile\a

pktool\framework\1.apk, -S, C:\Android\apktool\mms\res, -M, C:\Android\apktool\m

ms\AndroidManifest.xml]

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

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

a:355)

... 6 more
[Galaxy Ace S5830 General] Difusal:
I just tried to do the exact same thing on another windows 8 computer and it worked like a charm! What the hell is wrong on my computer??

And the framework installed correctly in C/users. my laptop is installing in system32... -.-
[Galaxy Ace S5830 General] SpaceCaker:
As i can see on ur pc you dont have the frameworks installed

(1.apk)
[Galaxy Ace S5830 General] K.A.:
Exactly.

You need to do

apktool if framework-res.apk

in the folder containing the framework-res of the ROM whose mms you're trying to mod. If it is stock you will need to do

apktool if twframework-res.apk
[Galaxy Ace S5830 General] cpaixao:
Hi, great tool and good guide! Congratulations!

Can we find out what is blocking an apk installation by reading its xml manifest?

Thanks!
[Galaxy Ace S5830 General] Lt.Win:
Thank you! This helped me a LOT.

Sent from my HTC Wildfire™ S powered by Jelly King®

"My name is Win. And if you are reading this, you have been defeated."

[HELP THREAD] Official Wildfire S Help Thread!
[Galaxy Ace S5830 General] Sami Kabir:
Ok I'm a bit confused at the end...

can you please explain it in detail.. like the instructions, etc..? Thanks :D
[Galaxy Ace S5830 General] marvinlh:
im trying to follow the instructions for this thread to get the aosp mms working with wicked sensations tw rom, im also following the instructions from http://xdaforums.com/showthread.php?t=2086834 this is my first time trying to attempt this over even trying to decompile and im kinda stuck. I was at the step where it says install the system framework but its a no go. right now im trying toswich files around in the framework2.jar but cant seem to even get started. any help would be much appriciated
[Galaxy Ace S5830 General] MnM:
i have changed the app logo in res/drawable-hdpi and then i directly tried to recompile via cmd but only to find that the res file has become invalid...any solution??
[Galaxy Ace S5830 General] K.A.:
If you're only replacing icons and not editing xmls, it is better to only extract the apk instead of decompiling it. Its easier and hassle free.
[Galaxy Ace S5830 General] MnM:
And then zip it back??

Zipping it back will convert it in zip form... Hw do i convert it bck to apk??

Sent from my cRaCkPoT
[Galaxy Ace S5830 General] K.A.:
Use APK Manager for such jobs. It will extract apk and zip it back in apk format.
[Galaxy Ace S5830 General] SpaceCaker:
Just rename .zip to .apk ;)
[Galaxy Ace S5830 General] Milamber33:
Or better yet, just open the .apk with 7zip and paste the replacement file in without extracting at all. ;)
[Galaxy Ace S5830 General] Minimilised_MR:
I Edited a .smali file but 7ZIP isn't showing all the contents inside the apl :( Any help?
[Galaxy Ace S5830 General] SpaceCaker:
U need to decompile it and compile then move classes.dex
[Galaxy Ace S5830 General] Minimilised_MR:
Okay I successfully recompiled after editings...now what should i do exactly ?

from which apk should i move?

orignal to new

OR

new to orignal??
[Galaxy Ace S5830 General] SpaceCaker:
Go to build folder

Copy all stuff except androidmanifest.xml tp ur apk u extractes
[Galaxy Ace S5830 General] Minimilised_MR:
Done. It Work's Thanks Bro.!

(y) +1
[Galaxy Ace S5830 General] Kirpman:
whenever I try to decompile, it does something like creates a folder.

For example i try to compile SystemUI.apk, It makes a folder called SystemUI and inside that folder there is another folder called "smali" but this one is empty...whats wrong?
[Galaxy Ace S5830 General] PulseDroid:
Any error..?
[Galaxy Ace S5830 General] K.A.:
Obviously improper decompile. Install framework first.
[Galaxy Ace S5830 General] Kirpman:
in the file is the response what I get when trying to install framework...
[Galaxy Ace S5830 General] K.A.:
For bad magic values, follow this : http://www.xda-developers.com/android/modified-apktool-for-troublesome-system-apks-on-ics/

Should help. Don't forget to install framework or you'll run into problems again.
[Galaxy Ace S5830 General] GeoVali99:
I have java installled on my computer.Do I have to instal java JDK/JRE if I have it?I'm asking because it says just java and I don't know if it's the good one.

And I need to install twframework-res.apk too?
[Galaxy Ace S5830 General] GeoVali99:
Well...with normal apktool I got bad magic values at decompiling so I used the hacked one.

The decompiling was fine butat recompiling I got this:

C:\android\apktool>apktool b secsettings secsettings-new.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'bluetooth_tethering_cannot_connect_while_connected_to_wif
i' has no default translation in C:\android\apktool\secsettings\res; found: bg c
s da de el en_US es_ES es_US et fi fr ga hr hu is it kk ko lt lv mk nb nl pl pt_
PT ro ru sk sl sr sv tr uk
aapt: warning: string 'lgt_service_global_auto_roaming_call_customcenter_summary
_nocall' has no default translation in C:\android\apktool\secsettings\res; found
: de es_ES fr it pl ru
aapt: warning: string 'onscreen_keypad' has no default translation in C:\android
\apktool\secsettings\res; found: bg cs da de el en_US es_ES es_US et fi fr ga hr
hu is it kk ko lt lv mk nb nl pl pt_PT ro ru sk sl sr sv tr uk
aapt: warning: string 'sdcard_code_size_label' has no default translation in C:\
android\apktool\secsettings\res; found: ru
aapt: warning: string 'sdcard_data_size_label' has no default translation in C:\
android\apktool\secsettings\res; found: ru
aapt: warning: string 'torchlight_dialog_message' has no default translation in
C:\android\apktool\secsettings\res; found: ru
aapt: warning: string 'torchlight_dialog_title' has no default translation in C:
\android\apktool\secsettings\res; found: ru
I: Building apk file...

C:\android\apktool>

The bad recompiled apk had smaller size.

What should I do?
[Galaxy Ace S5830 General] PulseDroid:
C:\android\apktool>apktool b secsettings secsettings-new.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'bluetooth_tethering_cannot_connect_while_connected_to_wif
i' has no default translation in C:\android\apktool\secsettings\res; found: bg c
s da de el en_US es_ES es_US et fi fr ga hr hu is it kk ko lt lv mk nb nl pl pt_
PT ro ru sk sl sr sv tr uk
aapt: warning: string 'lgt_service_global_auto_roaming_call_customcenter_summary
_nocall' has no default translation in C:\android\apktool\secsettings\res; found
: de es_ES fr it pl ru
aapt: warning: string 'onscreen_keypad'[B] [COLOR="Red"]has no default translation[/COLOR][/B] in C:\android
\apktool\secsettings\res; found: bg cs da de el en_US es_ES es_US et fi fr ga hr
hu is it kk ko lt lv mk nb nl pl pt_PT ro ru sk sl sr sv tr uk
aapt: warning: string 'sdcard_code_size_label' has[B] [COLOR="Red"]has no default translation[/COLOR][/B] in C:\
android\apktool\secsettings\res; found: ru
aapt: warning: string 'sdcard_data_size_label' has[B] [COLOR="Red"]has no default translation[/COLOR][/B]in C:\
android\apktool\secsettings\res; found: ru
aapt: warning: string 'torchlight_dialog_message' [B] [COLOR="Red"]has no default translation[/COLOR][/B]in
C:\android\apktool\secsettings\res; found: ru
aapt: warning: string 'torchlight_dialog_title' has no default translation in C:
\android\apktool\secsettings\res; found: ru
I: Building apk file...

C:\android\apktool>

Did you change anything at the languages?
[Galaxy Ace S5830 General] GeoVali99:
No,I did a test recompile without any change to see if it works.
[Galaxy Ace S5830 General] K.A.:
The decompile was improper...
[Galaxy Ace S5830 General] GeoVali99:
What should I do?I installed both frameworks:frameworrk-res and twframework-res.
[Galaxy Ace S5830 General] K.A.:
Which one did you install first?

Also, in your decompiled folder, go to res folder and see what all folders you have..
[Galaxy Ace S5830 General] GeoVali99:
Framework-res.apk

In res folder I have lots of folders:anim,animator,drawable,layout,menu,mipmap,raw,values and xmls.They are more,but these are the classes of them.
[Galaxy Ace S5830 General] RAMBOcoder:
I wanna know what step I missed. I downloaded an APK using Real APK Leecher (WhosHere).

Decompiled successfully (installed framework).

Replaced an .mp3 file

Recompiled apk.

Apk wouldn't install!

If I changed the apk to a .rar, replace the mp3 that way, the program ill install (after using apk signer from Play store) however I can't login (you need a login/pass). I tried to reset my password, still didn't work.

All I wanted to do was replace the annoying in-app sound effect!

Thanks
[Galaxy Ace S5830 General] PulseDroid:
You need to sign the app.

Try zipsigner from the playstore, use the Automatic Test key. and remember to save as APK not as ZIP!
[Galaxy Ace S5830 General] GeoVali99:
How can I do a proper decompile and recompile?Because I got the problem listed higher.
[Galaxy Ace S5830 General] RAMBOcoder:
Read closely, I signed the app. If I didn't sign it, how could I not install it? Obviously, I saved as apk. I'm not a noob...

By the way, for the decompile/recompile, I also signed the app but the program wouldn't launch after install.
[Galaxy Ace S5830 General] PulseDroid:
You can install it if it isn't signed. If it still won't install, you used the wrong key.
[Galaxy Ace S5830 General] :
I'm trying to apply the CRT animation ( Link ). I have FrameworkFlasher is not working for me, if gives an echo off error when recompiling. Instead I have manually pulled framework-res.apk (and systemUI.apk) with ADB and decompiled it with apktool. I then changed the line in bools.xml from 'false' to 'true and recompiled it with apktool. I merged the new framework-res with the old one (resources.arsc, where the values reside). That goes well.

The problems start when I try to push framework-res.apk with ADB. I need to have /system/ set as rw and I have to give framework-res.apk on the phone all permissions with ES file explorer in order to push. Otherwise ADB gives errors like 'Read only file system' or 'permission denied'.

When I have pushed the moddified framework-res.apk with ADB, the phone reboots but gets stuck on booting on the ASUS logo (loading logo is turning but it hangs).

I now have to restore my ROM with CWRM for the second time. I thought I would start with something easy (before moving on to transpart statusbar and battery icons) like the CRT mod but that doesn't even work.

Any advice?
[Galaxy Ace S5830 General] SpaceCaker:
Make flashable package

Because sometimes adb sends 9KB files
[Galaxy Ace S5830 General] GeoVali99:
And if I edited .smali files?How can they be in the original apk?Also,I don't find the values-hdpi folder in the framework-res to change one xml file.In the decompiled folder it is,but in the original apk file I don't find it.What should i do?

Sorry for noobish questions.
[Galaxy Ace S5830 General] svavrek:
Kinda wondering... all I did was open the systemui.apk and found the status_bar.xml and decompiled it. I then edited it to change the status bar text color per another tutorial on here. I saved the xml file, and now I have gone to recompile it and its throwing me some error...

E:\Development\Tools\APKTool>apktool b systemui_note2 new.apk

I: Checking whether sources has changed...

I: Checking whether resources has changed...

I: Building resources...

E:\Development\Tools\APKTool\systemui_note2\res\layout\status_bar.xml:16: error:

Error parsing XML: duplicate attribute

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

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

KTOOL8041936813185383088.tmp, -I, C:\Users\Suze\apktool\framework\1.apk, -S, E:\

Development\Tools\APKTool\systemui_note2\res, -M, E:\Development\Tools\APKTool\s

ystemui_note2\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\Suze\AppData\Local\Temp\APKTOOL8041936813185383088.tmp, -I, C:\Users\Suze\a

pktool\framework\1.apk, -S, E:\Development\Tools\APKTool\systemui_note2\res, -M,

E:\Development\Tools\APKTool\systemui_note2\AndroidManifest.xml]

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

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

a:191)

... 6 more

Any ideas?? In the end, all I want to do is edit the status bar text so the whole text is blue... or red or whatever color I want.
[Galaxy Ace S5830 General] K.A.:
The status_bar.xml has duplicate attributes on line 16.

that is, some attribute [like ex : android_gravity] is written twice. Find which one is written twice and delete one of them.
[Galaxy Ace S5830 General] K.A.:
If you're just replacing images, do NOT decompile. Just EXTRACT it..
[Galaxy Ace S5830 General] viv_jen:
extract using winrar ?
[Galaxy Ace S5830 General] svavrek:
Beautiful. Thank You!! So simple when I pay attention LOL! Ok, going to try now... hopefully all my text on the status bar is blue like I want.

----Rebooting now---

the font size for the click went down to 14 which I wanted, it is the nice blue, but no other text is... here's the line:

<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

Question is where do I find the text to change its color for the battery percentage and the vibrate/sound icon? I think the icon is a png file I can do that later but the battery percentage text I'd like to be blue... as well. I edited the styles.xml to make the style

<item name="android:textColor">@android:color/holo_blue_light</item>

Which is, essentially, what I want everything up top to be...
[Galaxy Ace S5830 General] K.A.:
7zip or ApkManager.

---------- Post added at 04:26 PM ---------- Previous post was at 04:25 PM ----------

Everything except clock text is icons, even battery percentage is icons. You need to edit the pngs for that.
[Galaxy Ace S5830 General] svavrek:
Thank you. Assuming those are going to be in the sysUI\res\drawable or drawable-hdpi or something right? And you just photoshop them up?
[Galaxy Ace S5830 General] K.A.:
Yup, and yup. MAYBE if it doesnt work through systemUI.apk, you will then need to look into framework-res.apk and change icons in there.

---------- Post added at 06:46 PM ---------- Previous post was at 06:42 PM ----------
[Galaxy Ace S5830 General] Rock-Ace:
Nice to know the fine details from ground level

Thanks a lot for such informative tutorial :o
[Galaxy Ace S5830 General] jeffreyjicha:
I get an exception trying to load framework-res.apk???:confused::confused:

Edit: Just looked at OP again. That darn 32-bit JDK

Edit2: Got it. For some reason, adding "--frame-path" to the end of "apktool if framewor-res.apk" fixed my problem
[Galaxy Ace S5830 General] Fang Leone:
The aapt.exe opens and closes can someone help me
[Galaxy Ace S5830 General] Whiplashh:
Whenever I decompile, it only has one empty folder... any clue why?
[Galaxy Ace S5830 General] K.A.:
Can you copy paste the log for the decompile here?
[Galaxy Ace S5830 General] Whiplashh:
I will when I get home.

Sent From My Rooted, S-OFF'd Blackberry Curve using the iOS XDA Application for Android.
[Galaxy Ace S5830 General] K.A.:
What value did you change and what all folders does the decompiled folder contain?
[Galaxy Ace S5830 General] SpaceCaker:
Ics/above apk

Remobe all those folders wich contains those names inside res

Ylthen recompile

Those are folders specificly for Xhdpi/ HD phones so we wont need them and our framework wont need them to