yashsingh1/xdaforums huggingface dataset:
[Android Software Development] gogodu5sU:
I followed sixfearstheseven steps using apk-multi-tool.

Decompiled a working framework with navigationbar, recompiled it without making any changes and i get big lockscreen, big statusbar, tablet settings...

So, yes it has something to do with the way it's beeing recompiled.

Edit:

Got it working. Download the latest apktool from here http://code.google.com/p/android-apktool/downloads/list,

the aapt.exe from the first post and put them into \\Apk_Multi-Tool\other.

The cool thing now, if you set

<dimen name="navigation_bar_width">0.0dip</dimen>

the navigationbar is hidden in landscape (good for gaming) but still there for navigation in portrait mode, love it! :D

The only problem that remains is that the keyboard is still to far down.
[Android Software Development] sixfearstheseven:
Ooh I didn't even think to ask if you guys were using the latest aapt. The old one doesnt work with ics. I've been using APK Multi Tool too. Its much easier to use than apktool

Sent from my Ice Cream Sandwiched-out Droid Incredible
[Android Software Development] hackergnome:
the Rom is CM9 for Defy...

alpha 13/12 version...

plz pm me wen its done... or i will keep an eye on this thread anywayz...

n i only want the nav bar thats all nothing else...

Thnxin advance...
[Android Software Development] sixfearstheseven:
Sorry about not having done it yet. I've been really busy this weekend. My wife has been dragging me all over the place. Right now she wants to go take our puppy to see Santa at PetSmart :-| I'll try to get it done asap

Sent from my Ice Cream Sandwiched-out Droid Incredible
[Android Software Development] KBanause:
I followed the tutorial on post #1 (enable navigation bar and make the height smaller). But in the unlock screen with pin the "emergency call" button nearly vanishes (it should be right below the carrier name). See screenshot. Any clues?

I'm on stock ICS 4.0.3
[Android Software Development] KBanause:
-- delete --
[Android Software Development] aztex00:
I am unable to replicate your results.

Here's what I've done:

Attempt: Update aapt.exe, but leave apktool.jar alone

Result: Successful compile, but with tablet behavior.

Attempt: Update aapt.exe and apktool.jar

Result: Error during compile: "An Error Occurred, Please Check The Log (option 24)". I can then complete the compile, but the file size is even smaller than the 4.xMB and I get boot loops.
[Android Software Development] sixfearstheseven:
Use APK Multi Tool. I know it uses apktool to compile and decompile, but I don't trust apktool on its own. It has never worked for me while Multi Tool has never failed me.

And I'm sorry I haven't tested this myself so that I can contribute anything useful. I keep saying I will but this weekend has been so busy. I finally had free time tonight but the season finale of Homeland was on (what a ****ty ending!!!) so I promise I'll try it out in the morning to see what happens on my end

To those of you having problems: remind me which version of which ROM you're using so I know which ROMs to test

Goodnight

Sent from my Ice Cream Sandwiched-out Droid Incredible
[Android Software Development] gogodu5sU:
My current rom is Android 4.0.2 with a 4.0 framework.

I don't have a SDK for 4.0.2, only for 4.0 and 4.0.3, that's why i can't recompile anything else i guess...

I checked your framework-res.apk, you have two new folders in the apk under "framework-res.apk\res\":

1--- drawable-mdpi-v13

2--- layout-v13

I had those too, make sure your compiled apk does not have those. Otherwise, most likely, tablet settings.
[Android Software Development] sixfearstheseven:
Well, I tried replicating the results and now my phone is toast. Everything was fine. I recompiled, modified, recompiled, moved framework to phone with Droid explorer, but when I rebooted my phone, I got a black screen and my phone vibrated five times, then nothing.

Pulled battery, but couldn't get in to recovery for a while. Now I can finally get in to recovery, but my SD card won't mount, so I can't reflash a ROM or restore a back up.

Not sure where to go from here. I'm gonna buy one of those adapters that allow you to fit a microSD card into a regular SD card slot on my PC so o can hopefully access my backups from there, backup the backups, format SD card, and try to restore from recovery again.

If that doesn't work, I don't know what to do. Tried factory reset already but get the black screen and 5 vibrates. Can't run unrevoked because it doesn't see my phone, and neither does Droid Explorer, which uses advanced, which means adb isn't going to see my phone either.

Any suggestions? If there's nothing I can do, I guess I'll just have to buy a Galaxy Nexus.
[Android Software Development] evilisto:
i experienced some layout problems with stock ics rom too..:o :o if I remember right, previous roms don't(or less) have these problems.

i have no idea now. that lockscreen problem probably can be fixed by modifying lockscreen related xmls but there are still some other minor layout problems too..(camera and etc)
[Android Software Development] KBanause:
for now I'm back to the original framework. I have the feeling that activating the navigation bar is changing Androids behaviour.

KeePassDroid for example gets killed much faster. I select an entry and before I can switch back to the app where I need the credentials KeePass got killed. Without the NavBar it stays in memory much longer (this is just an example)
[Android Software Development] ssmr2t:
Can someone please help me with this? I can not get it to stick for the life of me!!
[Android Software Development] trvstw:
Atrix? :) (@ssmr2t)
[Android Software Development] madquack:
Edit, works perfectly with APKManager 5.02 using a SGS2i777 running 4.0.3 AOSP Alpha.
[Android Software Development] invaderjohn:
ok could someone please help me with this. ive tried everything in this thread.. allways get the same errors and the framework i compiled gets around 3.3mb wich is less than half the size the original is, and allways get bootloops, so i give up since ive tride now for like 3 hours to make it work

i use onecosmics ics rom for i9000, could some nice soul that made it work please help me out ?
[Android Software Development] Shivammcool:
Could someone please make a video for how to do this please?
[Android Software Development] bp328i:
This is the issue I'm running into, when I just use 7zip to open the un-edited framework I don't have these two folders. Then when I decompile they show up. And when I recompile and use 7zip again there now in the recompiled framework.

I can decompile and recompile without making any changes and all is fine but when I make a change and recompile thats when I get the tablet layout. I tried to delete the files and recomplie but that's a no go so how do I make xml edits and recompile without these two file showing up?
[Android Software Development] rawr4dj:
HELP. I am now bricked.

While replacing the modded framework file with my original one on my phone om Root explorer app, I guess I did it wrong and all of a sudden my phone just started saying random stuff force closed before i could save the permissions of the new framework file. Needless to say I am now stuck in a bootloop and have no idea how to just undo all the damage I have done. Help would be greatly appreciated. If you want to just PM me that would be nice to.
[Android Software Development] crazy4tricks:
you can try with this one i made for motorola defy

Navigation Buttons-signed.zip

For Undo:

Framework-signed.zip

or else

1.reboot into recovery make a backup of your data ( just in case if you want your custom apps and other data)

2. wipe data factory reset

3. reboot in to recovery

4. backup and restore

5. advance and select your latest backup

6. restore data

7. reboot.

enjoy.

other way

just flash the same custom rom you were using via recovery or you can extract and pm me the framework-res.apk form your custom rom. i will make a update zip for you.

cheers
[Android Software Development] evilisto:
must read

sorry but i didn't expect this many people have problems with modifying apk files.....

(there are many guides about this in xda)

firstly, recompiled apk's smaller size is normal. read this FAQ in apktool project page :

http://code.google.com/p/android-apktool/wiki/FAQ

and i recommend to read this post : Modifying XML files and adding resources

the most important parts is here :

if you done all these steps correctly, that should be working. if not, it would be better to ask your rom dev..
[Android Software Development] d-iivil:
Thanks for the tutorial! Can anyone hint me how to make the search icon always visible like many ICS ROMs has?
[Android Software Development] evilisto:
that is much more complicate than this.. you have to add search icon and some code(smali) to SystemUI.apk

then edit navigation bar layout(SystemUI.apk/res/layout/navigation_bar.xml) and some more xml files..

maybe you can find source code for that in galaxy nexus forum.
[Android Software Development] empiire:
Everything has worked 100% fine until initial boot. Then the phone bootloops. All the pngs are there, the framework XMLs were edited and recompiled fine... I don't know what could be wrong. :l Any ideas?
[Android Software Development] evilisto:
if you replaced original resources.arsc with re-compiled one properly, that should be work..
[Android Software Development] netwokz:
I was able to get it to work on my 3D. I had to roll back to alpha 2... here is my framework-res: framework-res-ICS-NAV-BUTTONS.zip - 3.9 MB (CDMA EVO 3D ICS_DECK_ALPHA7)
[Android Software Development] sparkyman216:
Has anyone done this on a Motorola phone,?
[Android Software Development] crazy4tricks:
which motorola model I got this working for my defy. if you want to try you can check my previous post for the link.

Cheers.
[Android Software Development] sparkyman216:
I hot them but size is messed up on everything
[Android Software Development] jenablinsky:
thanks dude :)
[Android Software Development] sparkyman216:
I can't get the status bar to shrink
[Android Software Development] SignalX:
can we use for cm9?
[Android Software Development] 309041291a:
Video tutorial please :)

Nexus S - CyberGR Hybrid ICS (0.5), Matrix Kernel (15)
[Android Software Development] Toisan:
strange, i got it to work, but with the big statusbar too, and settings look like on tablets -.- it´s so cool, i dont have to touch keys :D but so i cant live with it...-.-
[Android Software Development] sparkyman216:
Same thing happen to me with the status bar.
[Android Software Development] mattmanwrx:
Hi everyone...

I have changed the bool, and played around with the dimens, is there anything else i can try?

My navigation bar (soft keys) are very small so the keyboard doesnt overlap,but i would want them bigger, if possible...

I have started a thread here, with screenshots, and my framework attached... http://xdaforums.com/showthread.php?t=1471795

Any help is appreciated...thanks...
[Android Software Development] evilisto:
i read linked thread... but.. why you set bar height to 24? :confused:

in my test, 37 is suitable for wvga device...

see this changelog (my mod for nexus s)

and if you want to make buttons sizes bigger, the easiest way is to edit png files in SystemUI.apk.

http://www.mediafire.com/?758mnayrlt3dee4

this zip include 4 png files. add those files to SystemUI.apk (/res/drawable-hdpi/) using 7-zip or other program. you don't have to decompile SystemUI.apk. just replace original PNGs to these files.

then you can get default size buttons with bar height 37..

(same button image size to default(48) bar height)

and to other people who have problem with messed ui : the most sure method is compiling from source.

edit these files :

frameworks_base / core / res / res / values / config.xml

frameworks_base / core / res / res / values / dimens.xml

and replace png files in frameworks_base / packages / SystemUI / res / drawable-hdpi with above png files.
[Android Software Development] mattmanwrx:
Thanks for your response...

I set them to 24 cos anything else would overlap the keyboard, and I obviously need the keybaord! :) 37 is still too big for me, would you like a screen shot with it at 37?

The buttons are only small cos I had to change them to 24dip... I have also been playing around with the LCD densisty in the build.prop, but that then gives market issues...

So I dont think I can just change the image size, as it will not show the full image... (I am confident with android, and theming.. I actually found the ShowNavigationBar in bools before I found this thread!)

Thanks, Matt
[Android Software Development] Sirvenomitsac:
I give up, keep getting all kinds of errors, change aapt.exe, and there is no way I can get the apk to re compile. :(
[Android Software Development] mattmanwrx:
What errors are you getting when compiling?
[Android Software Development] Sirvenomitsac:
There you go, the full log.txt, I tried uninstalling and installing everything again, it starts to compile, but I get no an error after a while. First it was something to do with res/drawable-sw600dp-hdpi and others. Then after updating the aapt, java errors, and now gives me errors that the res file has wrong code.

I tried everything, read all of the posts. I suck at this, probably the solution is simple, I hope so :confused:

Thanks!
[Android Software Development] mattmanwrx:
I see that after you updated the aapt it is trying to build, but has the plurals error. I'm using an older apktool.jar, 1.4.2, which is on the first post.

Try using that, as with 1.4.3 it does give the errors with plurars...

To make it easier, I've attached the one I found on XDA boards, which works fine for me!
[Android Software Development] Sirvenomitsac:
thank you so much! it finally compiled, now comes the part where I try to send it to the phone without errors.. :P
[Android Software Development] mattmanwrx:
No Problem, there are some good guides on XDa...

Flashable.zip guide (maybe the easiest, just make sure you have a backup incase it doesnt boot) - Bottom of this post

and here is a very good guide to adb, which can get messy if you're not familiar with it!
[Android Software Development] Sirvenomitsac:
I tried the zip guide, but when I try to flash I get "E: error in /emmc/res.zip (status 0)

Any ideas?

I am sorry to bother you with all of this. Thanks again
[Android Software Development] mattmanwrx:
No Problem at all,

Can you post it here? so I can take a look at what you have done!?
[Android Software Development] Sirvenomitsac:
the zip? here it is. My home button died, can not be repaired, and I am trying to get this working on the ICSSGS RC3.1 ROM. First time I try doing something like this (yeah you could have never guessed... haha)
[Android Software Development] mattmanwrx:
ok, that file I said to look at, although the guide is good, it may only be for the Nexus S. Busybox maybe in a different place, and the the devblock points may also be different! Sorry for that!

Also, I see the file got compressed, when you workwith android, from what I know, you have to change the compression to "Store", please see the attached screen shot (using winzip).

I have updated the updater-script, for what I know with my HTC Desire... You can try to flash it, and it *should" work... However, please take a nandroid before hand, as it could go wrong!

Plus, I signed the file, with this little, yet brilliant tool found here

Hopefully it helps you, and it works...! Fingers crossed! :D
[Android Software Development] Sirvenomitsac:
:confused: same error, don't know how to continue. I guess I'll have to read more on how to create the update script for the galaxy s
[Android Software Development] mattmanwrx:
I just downloaded the rom you are making these for, and checked their updater-script... All looks fine with my script I wrote, but I did make a school-boy error.. After double checking it, I missed a "," here and there, and forgot to change a mount point...

Please re try the one attached to this post, again, nandroid just in case! if not, look into the ADB functions!
[Android Software Development] Sirvenomitsac:
my phone hates that zip I guess, again, same error. Looking into adb now, thanks for the effort, and sorry for bothering you with this.
[Android Software Development] mattmanwrx:
no problem, sorry we couldnt get it sorted... another thing I have just remembered is that you only have internal memory, and I have nver really played around with a device with just internal memory... All my .zips have been from an SD card..

The emmc is the memory, so it cannot pull it from the memory... I have done some Googling around, but I cannot find a good example, and I'm guessing you know how to flash things from the "emmc" as you have flashed your rom!

Anyway, back on topic for those that want ICS Navigation Bar!
[Android Software Development] mattmanwrx:
Look at my post 1 page back... and use the apktool i attached..
[Android Software Development] jellydroid13:
im getting this:

W: could not find resources
[Android Software Development] mattmanwrx:
Have you installed the ics framework? Check out the apktool repository here www.code.google.com/p/android-apktool/
[Android Software Development] jellydroid13:
how do you install it?
[Android Software Development] mattmanwrx:
www.code.google.com/p/android-apktool/wiki/FrameworkFiles

Apktool if framework-res.apk - if standing for install framework...
[Android Software Development] jellydroid13:
did that but still getting the same error.
[Android Software Development] mattmanwrx:
And this is when building the apk? You have installed framework files, decompiled, made the changes then tried to compile again?
[Android Software Development] jellydroid13:
yes all those in order.

just to clarify im supposed to be installing framework-res.apk right?
[Android Software Development] mattmanwrx:
Brut.alll seems to be aware of this, but says it isnt a problem... www.code.google.com/p/android-apktool/issues/detail?id=267

Can you upload your framework-res files, plus a link to you rom, and i can take a look at it tomorrow morning...

Also worth updating your aapt.exe, and using both the apktool.jar tools in the first post (different folders), seeing if there is any difference...
[Android Software Development] jellydroid13:
here you go. i just pulled the framework-res from it. also it compiles but im missing all the value folders which includes the bools.xml

http://bit.ly/wNOVdW
[Android Software Development] Mk.Xal:
Work like a charm.

Unfortunately there is no way to disable bouton backlight on the SII witm CM9 alpha but I will keep this little modification in my mind for the future.

Thank you :)
[Android Software Development] mattmanwrx:
The

W: Could not find sources

is normal procedure, and the APK still builds, I woundn't worry about it...

I managed to decompile, see bools.xml, edit bools.xml and then recompile, so there is no problem...
[Android Software Development] PoorCollegeGuy:
Hello,

Just stopping by to let ya know that this thread has been featured on the XDA Portal

When my phone eventually gets ICS, I'll be back putting the real buttons on it :)
[Android Software Development] kylon:
great post

37dp for 240 lcd?

and the button with the 2 rectangles,what it does?is it working?
[Android Software Development] mattmanwrx:
I noticed that on twitter last night! Thought wow, I've posted in a thread which is on the portal!! :)

The two rectangles are recent apps (like holding the home button)..

I had to change my dimentions to 24 (very small) as 37 was still overlapping the keybaord making the keyboard unusable, you can see the thread I started about it here ..
[Android Software Development] GazaIan:
The values folder is 'invisible' when the apk is compiled. most of what you need in values, including bools.xml, is stuffed into resources.arsc. You can take this file from the new apk and stick it into the old one. Then, push back the old one with the new resources. This guide seems to have changed since I did a few months ago, but that was what I did to get it to work.
[Android Software Development] -juanito-:
i downloaded apktool.jar 1.4.3 then extracted and open apkool but nothing happin :(
[Android Software Development] -juanito-:
any help ??
[Android Software Development] kevdliu:
finally got it working on my incredible 2. but the lockscreen is so messed up that i cant even unlock my phone. :(
[Android Software Development] kevdliu:
happened to me when i used 1.4.3. try 1.4.2 instead and dont forget to use the aapt in the op
[Android Software Development] -juanito-:
i downloaded apktool.jar 1.4.3 then extracted and open apkool but nothing happin

any help ?
[Android Software Development] kedai:
Cannot decompile ics apk too. What's the latest aapt version? Mine is s 0.2

Anyone got aapt for linux?
[Android Software Development] McDV:
Thank you, you brought me into the right direction. Apktool 1.4.3 works, but the aapt-version offered on the Google-Code-page isn't suitable. Since I'm running a Mac I also couldn't use the EXE from the op, so I just installed the latest SDK and took the SDK out of platform-tools. That works! :)
[Android Software Development] kedai:
Which version is that? Aapt v

Mine is 0.2 (from sdk too) and didn't manage to decompile
[Android Software Development] McDV:
It's v 0.2, too.

But for decompiling you don't even need aapt, only for compiling.

If you are using a Mac, here are some hints - maybe something went wrong for you:

First of all, get apktool 1.4.3 and the additional Mac-files offered on the apktool Google-code-page! That Mac-package contains a file "apktool" and a file "aapt" - but that version of aapt didn't work for me, so I only took the "apktool"-file.

In addition you need the apktool.jar (version 1.4.3) mentioned above.

Last but not least take the proper aapt-file out of the latest SDK.

Now you need to get all those files into your PATH, that's /usr/local/bin on your Mac.

Open a Terminal window and switch to the folder where you got those files. Then type:

sudo -s

to get root-access you need.

After that type:

cp apktool /usr/local/bin/apktool
cp apktool.jar /usr/local/bin/apktool.jar
cp aapt /usr/local/bin/aapt
exit

Now you should be able to decompile an apk using:

apktool d framework-res.apk

and you will get all the files an a folder named "framework-res".

To recompile just type

apktool b framework-res out/framework-res.apk

to get a new apk in the folder "out".

I hope this will help you out! :)
[Android Software Development] kedai:
I'm running linux. And have done exactly the same as you say. However I can't decompile systemui. Will paste the error when I'm at the computer. Thanks
[Android Software Development] KBanause:
Before you decompile systemui you have to install the framework using apktool:

apktool if framework-res.apk
[Android Software Development] kedai:
Thanks! that's the step i missed.
[Android Software Development] kylon:
I m also having problems to compile

Apktool 1.4.3 ,aapt from the op, and win 7
[Android Software Development] mattmanwrx:
Error message? Is it plurals on line 79?
[Android Software Development] kylon:
this errors
[Android Software Development] mattmanwrx:
So plurals line 79... use the apk tool I attached to a post around 5 pages back...
[Android Software Development] -juanito-:
guys i want installing on-screen buttons in my phone but i don't want see it..just i want apps read my phone as he have on-screen buttons to have Action Bar..can i make the size of the navigation bar is 1.0dip ??
[Android Software Development] mattmanwrx:
I guess it is possible, but some apps (like xda) put the action bar (is that the three dots, yes?) In the "navigation bar"...
[Android Software Development] KBanause:
wrong (as long as I understand this article correctly).

Those 3 dots you are meaning are old way to show "There's a menu". Apps with minSdkVersion AND targetSdkVersion lower than 11 are showing them.