yashsingh1/xdaforums huggingface dataset:
[Android Software Development] sixfearstheseven:
Those are all for CM9. I'm using a Droid Incredible, which doesn't have a CM9 build yet.

What files in the new version are changed? If I knew, I could probably put those files in the framework for the Incredible.

If you use the CM9 Trebuchet launcher, you only need to change the dpi to 225 ONLY IF you go into launcher settings and choose to remove Google search bar. That opens up quite a bit of screen space that can actually be used for widgets and icons.

However, I'd really like to know what you changed to get the icons smaller.
[Android Software Development] sixfearstheseven:
I found it.

It's in dimens.xml, navigation bar width and height. I'm trying it at 228 dpi instead of 248 dpi. What did you set it to?
[Android Software Development] nonione:
hey guys i managed to get it working on the sensation :) only thing bugging me is the lockscreen is screwed up i can still unlock the phone it looks ugly

for the record i only modified bools.xml
[Android Software Development] sixfearstheseven:
Changing the dpi to 220 or 230 from 240 in build.prop should help even things out.
[Android Software Development] mattmanwrx:
Please put in code tags next time, looks neater... :)

Anyway, it is plurals error, try with the attached apktool...
[Android Software Development] acidash:
Hi, i'm wondering did you manage to resolve the Galaxy Note on-screen button issue?
[Android Software Development] TpmKranz:
Gonna keep it in mind next time. ;)

Thank you, it works now. :)

Though it looks little weird on my Desire Z. :D

Gonna switch between modified and original framework-res.apk, depending on my mood.

By the way: can you tell me what the problem with my apktool was?
[Android Software Development] mattmanwrx:
I cant actually remember... if you open up where the error states, line 79 in any translation file, it shows the error... you need a %1 and a %2 where there the newest apktool gives it as like 1 and 2 or something... as i say, i cant remember.. :)
[Android Software Development] alen1901:
hi, i tried that apktool, but it's the same, i have plurals.xml line 79 error. man, it's annoying. i can decompile fine, and compile fine. only if i edit xml's, i get this error. maan, hate that, tried few versions of apktool and nothing.. :/
[Android Software Development] mattmanwrx:
The apktool attached does not give plural (line 79 in .xml) errors... Please make sure you are using the one I provided.. or please post your error... As I say this does not give plural errors, 100% :)
[Android Software Development] alen1901:
Nevermind, i downloaded another one and its working. Strange thing is, i have to change version to de/compile systemUI and change to another version to de/compile framework. But its working. :D

Sent from SpeedMachine i9023
[Android Software Development] KBanause:
Have you installed the framework before decompiling the SystemUI.apk (java -jar apktool.jar if framework-res.apk)?
[Android Software Development] zhuhang:
how the experience on X8?
[Android Software Development] alen1901:
Yea, ofcourse. I said its all working fine now, i just need to change between versions. Strange but its working and im not complaining. :p

Sent from SpeedMachine i9023
[Android Software Development] siavash2death:
can anyone tell me what's the problem?and how to solve it?? it happened when i decompile the framework-res.apk and tried to recompile it with apk multi tool. it`s from sandvold 0.6.1.1 ics rom for htc desire.
[Android Software Development] siavash2death:
please,someone guide me!
[Android Software Development] mattmanwrx:
post in the apk multi tool thread... Someone there will be able to help you..
[Android Software Development] Chagrim:
No sorry, still no softkeys in Note..
[Android Software Development] FrankyDoodle:
There seems to be a problem with this since I cant find values in the framework so I can't do this,

Here are my files if anyone here can help me please do so :)
[Android Software Development] mattmanwrx:
Values is a core part of the framework, so has to be there... You have decompile the apk using apktool to see the values...

Apktool is attached to the op, so it can be done following the tutorial...

What phone and rom is this frameworks from?
[Android Software Development] FrankyDoodle:
Galaxy Gio

Unofficial CyanogenMod 9 beta 8
[Android Software Development] mattmanwrx:
I havent had any work on samsung phones, but will do it tomorrow morning...
[Android Software Development] mattmanwrx:
attached, untested by me, usual rules apply! :)
[Android Software Development] FrankyDoodle:
Gets me into bootloop :(
[Android Software Development] mattmanwrx:
Yes, I've never really got any working on a Samsung phone...
[Android Software Development] Daniel.96:
I have succesfully decompiled framework-res.apk, then I modified it and when I try to build/ compile it again i´with apktool b, it says the following :

c:\DECANDCHANG\decompiled_Framework>apktool b
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\D\AppData\Local\Temp\APKTO
OL8308699300498332896.tmp, -x, -S, c:\DECANDCHANG\decompiled_Framework\.\res, -M
, c:\DECANDCHANG\decompiled_Framework\.\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\D\AppData\Local\Temp\APKTOOL8308699300498332896.tmp, -x, -S, c:\DECANDCHANG
\decompiled_Framework\.\res, -M, c:\DECANDCHANG\decompiled_Framework\.\AndroidMa
nifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more

c:\DECANDCHANG\decompiled_Framework>

Any ideas what to do ?
[Android Software Development] mattmanwrx:
Post in apktool thread, more people to help...

http://xdaforums.com/showthread.php?t=640592
[Android Software Development] HypoTurtle:
Try copying the entire framework folder instead of just the apk, and see if this sorts the problem.
[Android Software Development] 309041291a:
I switched over to MIUI and my ROM supports on-screen controls. They are in landscape view too though. I was wondering if someone could help me get rid of them again. So if anybody is willing to help ill upload my files so they can set the landscape height to 0 (I think that's how you get rid of the on-scree keys in landscape.)

Thanks :P

MIUI v4 (Oodie 2.5.25)

Matrix Kernel (CFS - 20.0)

Intellidemmand (800/100)

Deep Idle (On - Noop)

Live OC 110 (800/1000)
[Android Software Development] mattmanwrx:
Upload and I'll see if I have time to do that today... :)
[Android Software Development] 309041291a:
Thank you :). It's the framework.res file right?

MIUI v4 (Oodie 2.5.25)

Matrix Kernel (CFS - 20.0)

Intellidemmand (800/100)

Deep Idle (On - Noop)

Live OC 110 (800/1000)
[Android Software Development] mattmanwrx:
Yep, thats the one ;)
[Android Software Development] 309041291a:
There were two in this ROM. I wasn't sure which to upload, so I put them both in. The first is framework-miui.res, the second is the 'normal' framework.res. Thank you!

Framework-MIUI

View attachment framework-miui-res.apk

Framework

View attachment framework-res.apk
[Android Software Development] mattmanwrx:
attached - navigation bar width set to 0.0 :)
[Android Software Development] 309041291a:
Thank you :)

Edit: Boot loop when replacing the file

Nexus S (GSM i9020a)

MIUI v4 (Oodie 2.5.25 - 4.0.4)

Matrix Kernel (CFS - 20.0)

Intellidemmand (800/100)

Deep Idle (On - Noop)

Live OC 110 (800/1000)
[Android Software Development] alen1901:
You should try to make update.zip.

In most of times phone will bootloop if you manually replace.

Sent from SpeedMachine i9023
[Android Software Development] 309041291a:
How do I do that?

Nexus S (GSM i9020a)

MIUI v4 (Oodie 2.5.25 - 4.0.4)

Matrix Kernel (CFS - 20.0)

Intellidemmand (800/100)

Deep Idle (On - Noop)

Live OC 110 (800/1000)
[Android Software Development] mattmanwrx:
Try this, http://xdaforums.com/showthread.php?t=936175 can get complicated though...
[Android Software Development] 309041291a:
I'm never going to figure this out :/....

Can somebody help me or make the update.zip for me? I honestly have no idea what I'm doing, I don't want to break my phone. Sorry for the noobness :/

Nexus S (GSM i9020a)

MIUI v4 (Oodie 2.5.25 - 4.0.4)

Matrix Kernel (CFS - 20.0)

Intellidemmand (800/100)

Deep Idle (On - Noop)

Live OC 110 (800/1000)
[Android Software Development] mattmanwrx:
Get a theme that is for your phone, and replace the framework-res.apk for the one I gave you... Remove anything else..

In the updater-script, remove most things, apart from anything relating to mount, package_extract system and unmount...

It might be easier to either pm me your updater-script, or upload it here...
[Android Software Development] 309041291a:
Where is the uploaded script located?

Nexus S (GSM i9020a)

MIUI v4 (Oodie 2.5.25 - 4.0.4)

Matrix Kernel (CFS - 20.0)

Intellidemmand (800/100)

Deep Idle (On - Noop)

Live OC 105 (800/1000)
[Android Software Development] alen1901:
Meta-inf folder. Edit script with notepad + +

Sent from SpeedMachine i9023
[Android Software Development] pcboyy:
Hi guys,

I'm using CM9 SGS2 latest nightly 8June

I'm having a common problem like others have experienced

I: Building resources...
invalid resource directory name: c:\users\kozok\downloads\framework\res/drawable
-sw600dp-hdpi
etc..
etc..

I've googled around and spent whole night for solution but I give up :( I'm asking anyone who is kind hearted to recompile this framework apk to make it On Screen button enabled. It seems like apktool doesn't work at all on my PC :cry:

My utmost appreciation for your help :)
[Android Software Development] thekd53:
Well, another forum member and I have had problems recompiling after making edits. Help? E739 Cm9.

(Sorry for no zip, on mobile)
[Android Software Development] 309041291a:
I did the theme suggestion but nothing changed.

Edit: Hang on, I think I know what the problem is. I want to try and fix it first, if I need help I'll report back :)

Nexus S (GSM i9020a)

MIUI v4 (Oodie 2.5.25 - 4.0.4)

Matrix Kernel (CFS - 20.0)

Intellidemmand (800/100)

Deep Idle (On - Noop)

Live OC 105 (800/1000)
[Android Software Development] plegdroid:
afternoon, try this one, enjoy :)

http://db.tt/Ha318IxD

cm9 cfx 4.0.4 nightlys
[Android Software Development] 309041291a:
So here is my updater-script. I opened it with text viewer on ES File Explorer (on my phone). All I want to do is change the framework (provided by matt). So can someone tell me what it should look like?

Updater-script:

ui_print(" ");

ui_print(" ");

ui_print(" ");

run_program("/sbin/sync");

run_program("/sbin/sysctl", "-w", "vm.drop_caches=3");

package_extract_dir("tools", "/cache/tools");

package_extract_file("MOD.config", "/cache/tools/MOD.config");

set_perm(0, 0, 0755, "/cache/tools/mount.sh");

run_program("/cache/tools/mount.sh");

package_extract_dir("MORPH", "/Utmp/");

package_extract_dir("XTRAS", "/Utmp/XTRAS");

set_perm(0, 0, 0755, "/cache/tools/tar");

set_perm(0, 0, 0755, "/cache/tools/zipalign");

set_perm(0, 0, 0755, "/cache/tools/run.sh");

run_program("/sbin/sync");

run_program("/cache/tools/run.sh");

run_program("/sbin/umount", "/Utmp");

run_program("/sbin/umount", "/system");

run_program("/sbin/umount", "/data");

I took this from the Blue Infinitum theme. I basically took out all of the custom apk files. I only have the framework file I'm trying to replace. Everything else (including folders) is still there.

Nexus S (GSM i9020a)

MIUI v4 (Oodie 2.5.25 - 4.0.4)

Matrix Kernel (CFS - 20.0)

Intellidemmand (800/100)

Deep Idle (On - Noop)

Live OC 105 (800/1000)
[Android Software Development] mattmanwrx:
u can try this flashable.zip attached, dont know if it will work though!
[Android Software Development] bswann:
I have a DX2 running MIUI v4 and I have tried to enable the soft keys like 15 times and I cannot get it to re-compile with apktool. I did get it to work with Android Suite but when I flashed it the keys were not there and I got some error about the USB activity and then I had to reflash to get my phone working again.

If I upload my framework-res.apk will some please edit it for me?
[Android Software Development] mattmanwrx:
I can try, but as it is miui, it will probably not work (it has its own framework)...

Did this flashable.zip work for you?
[Android Software Development] 309041291a:
It's okay everyone. I appreciate all of your effort, but I went back to ICS. The on-screen keys caused too much trouble

Nexus S (GSM - i9020a)

GummyNex (1.2.1 - 4.0.4)

Intellidemmand (800/100)

Live OC 105 (800/1000)

Deep Idle (On - Noop)

BLX - 96 (Custom DPI - 212)
[Android Software Development] bswann:
Thanks! I just flashed back to ICS in hopes that you will do this for me.

Here is the ICS framework-res.apk - ICS framework

Thanks for trying it out for me.
[Android Software Development] mattmanwrx:
Hi,

I'm really sory I forgot to do this!

However, it is now attached!
[Android Software Development] bswann:
Thank you! I'll try it out when I get off work. The dev just tweeted that he's pushing out an update so I hope there wasn't any changes to the framework, lol.
[Android Software Development] mattmanwrx:
If there is just upload new framework and I'll do the edit... Infact, upload it anyway, just to be safe...

I should rememeber to do it this time..! ;)
[Android Software Development] theDroidfanatic:
Theres no values in my 'res' folder, what do i do? Thanks

Sent from my HTC One X running CyanogenMod 9, build#56 :cool:
[Android Software Development] mattmanwrx:
U have to decompile the apk first, using apktool or apk multi tool... :)
[Android Software Development] theDroidfanatic:
Will try :)

I renamed it to framework-res.zip amd extracted it. Got everything, but no values :S gonna try decompliling.

Sent from my HTC One X rocking a CyanogenMod 9 nightly by Interpresentation :cool:
[Android Software Development] mattmanwrx:
No, you will need to decompile it... The values get built and put into *I think* resources.arsc...

You can open up a .apk in winzip/winrar anyway, just right click and open with... ;)
[Android Software Development] acidash:
Just wondering. Did anyone manage to get the on-screen buttons working on stock rom for galaxy s3?
[Android Software Development] mattmanwrx:
I haven't had any on screen buttons work on any Samsung rom...
[Android Software Development] ThEuNdYiNg1:
I tried this it wont work, my apps just keep closing over and over again, nothing appears on the bottom of the screen. I have a mytouch 3g slide, can you help me?

edit:i have got it working but my settings is messed up, my status bar is lower then needed and lockscreen is on a whole new level of messed up
[Android Software Development] csking33:
I have the same problem, got them working on cm9 droid x2. Has a fix been posted for this? I've googled all over and looked through the thread but haven't found anything besides changing the dpi, which makes it look better.. but not good.

I'd have to say that I'm most confused by the settings.. this how the settings would look on a tablet right? Why would the phone think it's a tablet when I didn't change the dpi at all?
[Android Software Development] DnickDominic:
I keep getting compiling errors

can you help me out. thanks

heres my framework-res
[Android Software Development] mattmanwrx:
Yes, this is "tabletfied" your phone... It is strange, and I see know reason for it to do it! Very strange! As far as I know there is no fix, well, I don't even know what caused it... You could try again? Or upload your framework-res.apk and I'll make the change and see if it still does it?
[Android Software Development] mattmanwrx:
Attached...

Not flashable.zip - Not tested - take a backup!

P.S. What were your compiling errors? Maybe I could help you with them? Always good to learn!
[Android Software Development] csking33:
Yeah maybe I'll upload it. I have done it multiple times with the same result every time. I wish we knew the reason behind this though.
[Android Software Development] mattmanwrx:
Please upload and ill do the change and see if it is the same...

As stated before, very strange that it changes it "tablet mode"...
[Android Software Development] alen1901:
I had this problem too. My lockscreen would be fu***d, and in settings tablet mod. Didnt know how to resolve it, so i gave up. :D

Sent from SpeedMachine i9023
[Android Software Development] DnickDominic:
it compiled ok just that everytime i adb pushed it..it booted then i unlocked then rebooted..i had a bunch of fc's ..should i have flashed it instead of adb...but thanks

EDIT:it accually did have compiling issues but i read to use the aapt from sdk tools then use the 1.4.1 decompile then 1.4.3 recompile
[Android Software Development] mattmanwrx:
Theres no way for me to test... I just make the edit and upload...

It could be permissions... Maybe set the permission to 644?
[Android Software Development] luislm:
I get this error when trying to recompile framework-res.apk

/home/luis/gs2/resframework/res/layout-sw600dp/keyguard_screen_sim_pin_landscape.xml:5: error: Error: String types not allowed (at 'gravity' with value 'bottom|left|center').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL800230494467288748.tmp, -x, -S, /home/luis/gs2/resframework/res, -M, /home/luis/gs2/resframework/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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, /tmp/APKTOOL800230494467288748.tmp, -x, -S, /home/luis/gs2/resframework/res, -M, /home/luis/gs2/resframework/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more

I'm using apktool v2 as v1.4.3 and v1.4.4 do not work either. I also have upgraded aapt with no result.

Thanks in advance.
[Android Software Development] csking33:
Attached framework.

Thanks for your help.
[Android Software Development] mattmanwrx:
Cant decmpile, maybe a bad upload?

Anyway, it is line 5 of that xml...

framework/res/layout-sw600dp/keyguard_screen_sim_pin_landscape.xml:5: error: Error: String types not allowed (at 'gravity' with value 'bottom|left|center').

Need to fix that and it will compile...
[Android Software Development] mattmanwrx:
Attached, not know what will happen though!!
[Android Software Development] csking33:
Thanks, I will try it when I get home.

Edit: I love you! It worked! I was using apk multi tool to do this so that might be the problem. I did use the new aapt but i just realized the the apktool.jar used to decompile was an older version so that may have been the issue. I will try again using these tools but for now, I and the dx2 community thank you.
[Android Software Development] ThEuNdYiNg1:
here is my framework apk
[Android Software Development] luislm:
I edited the XML file and the APK file compiled with no errors. Nevertheless, it caused a bootloop. Anyway, thank you for your advice.

GT-I9100 < CM9
[Android Software Development] mattmanwrx:
I'm not 100% on the xml's but I think you can remove bottom (and then the line) and it might not bootloop... Just a guess?
[Android Software Development] mattmanwrx:
Attached, dont know the outcome, I just did the change!

Fingers crossed for you!
[Android Software Development] ThEuNdYiNg1:
didnt boot, you sure you edited my framework?
[Android Software Development] zachf714:
Buttons

Hey I have the OG Droid and I cant get it to compile
[Android Software Development] mattmanwrx:
and your error message when trying to compile?
[Android Software Development] zachf714:
This is it

invalid resource directory name: C:\Users\Zach Frank\apktool\framework-res\res/d

rawable-sw600dp-hdpi

invalid resource directory name: C:\Users\Zach Frank\apktool\framework-res\res/l

ayout-sw600dp

invalid resource directory name: C:\Users\Zach Frank\apktool\framework-res\res/l

ayout-w600dp

invalid resource directory name: C:\Users\Zach Frank\apktool\framework-res\res/v

alues-h720dp

invalid resource directory name: C:\Users\Zach Frank\apktool\framework-res\res/v

alues-sw600dp

invalid resource directory name: C:\Users\Zach Frank\apktool\framework-res\res/v

alues-sw600dp-land

invalid resource directory name: C:\Users\Zach Frank\apktool\framework-res\res/v

alues-sw600dp-w1024dp

invalid resource directory name: C:\Users\Zach Frank\apktool\framework-res\res/v

alues-sw600dp-w1280dp

invalid resource directory name: C:\Users\Zach Frank\apktool\framework-res\res/v

alues-w360dp

invalid resource directory name: C:\Users\Zach Frank\apktool\framework-res\res/v

alues-w480dp

invalid resource directory name: C:\Users\Zach Frank\apktool\framework-res\res/v

alues-w500dp

invalid resource directory name: C:\Users\Zach Frank\apktool\framework-res\res/v

alues-w600dp

invalid resource directory name: C:\Users\Zach Frank\apktool\framework-res\res/v

alues-w720dp

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

ption: could not exec command: [aapt, p, -F, C:\Users\ZACHFR~1\AppData\Local\Tem

p\APKTOOL2008196814510399169.tmp, -x, -S, C:\Users\Zach Frank\apktool\framework-

res\res, -M, C:\Users\Zach Frank\apktool\framework-res\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\ZACHFR~1\AppData\Local\Temp\APKTOOL2008196814510399169.tmp, -x, -S, C:\User

s\Zach Frank\apktool\framework-res\res, -M, C:\Users\Zach Frank\apktool\framewor

k-res\AndroidManifest.xml]

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

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

a:191)

... 6 more
[Android Software Development] mattmanwrx:
Need to install the framework-res.apk - Please take a look here - http://code.google.com/p/android-apktool/ - or in the apktool thread - http://xdaforums.com/showthread.php?t=640592
[Android Software Development] mattmanwrx:
read on the apktool google codes site, or post in the apktool thread!!
[Android Software Development] zachf714:
Thank you!!!

Thanks to your help I finally got it.
[Android Software Development] x-dira:
How to Enable Softkeys in statusbar on cm9?
[Android Software Development] mattmanwrx:
Like this you mean...?

http://xdaforums.com/showthread.php?t=1548306
[Android Software Development] x-dira:
thanks reply!

same picture!

[/URL]
[Android Software Development] mattmanwrx:
That picture is a tablet UI on the phone? I wouldn't know how to do that...