Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
evilisto
Old
(Last edited by evilisto; 1st March 2012 at 09:59 AM.) Reason: add some more tweaks(?)
#1  
evilisto's Avatar
Senior Member - OP
Thanks Meter 2228
Posts: 483
Join Date: Nov 2010
Default [HOWTO] enable on-screen buttons in ICS rom




sorry for my poor english.. i write this guide by request.

this is pretty simple thing..


1. decompile framework-res.apk
- you need apktool.jar 1.4.3 version to decompile ics apk.
download 1.4.3 : http://code.google.com/p/android-apktool/downloads/list
download 1.4.2 : http://code.google.com/p/android-apk...r.bz2&can=1&q=
(if you have problems with 1.4.3, use 1.4.2 instead)

2. open /res/values/bools.xml with a text editor

3. find "config_showNavigationBar" and set to true




4. to turn off capacitive buttons backlight, maybe you need to edit arrays.xml
- it does not work on my nexus s but seem to be working well on some other devices..



-----------------------------------------------------------------------------
* 5 [WVGA devices only] it would be better to slightly resize navigation bar height to avoid keyboard overlapping problem (see this post).
(or you have to lower lcd density but that cause app compatibility issues)
: open dimens.xml and find the line "navigation_bar_height".



and you need one more step to compensate buttons sizes.

download : 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. (replace original PNGs to these files).
-----------------------------------------------------------------------------

6. recompile
- you need new aapt.exe from latest platform-tools.
download : http://www.mediafire.com/?0q52u6v8vdkpq1i

7. done


*if you don't know how to modify apk file, read this post first.
-
Attached Thumbnails
Click image for larger version

Name:	howto-ics-buttons_01.jpg
Views:	24518
Size:	34.7 KB
ID:	796576   Click image for larger version

Name:	howto-ics-buttons_02.jpg
Views:	24267
Size:	30.1 KB
ID:	796577   Click image for larger version

Name:	howto-ics-buttons_03.png
Views:	19180
Size:	16.3 KB
ID:	817589  
| Google+ |
The Following 110 Users Say Thank You to evilisto For This Useful Post: [ Click to Expand ]
 
KBanause
Old
#2  
KBanause's Avatar
Senior Member
Thanks Meter 310
Posts: 1,946
Join Date: Jul 2010
Location: Munich

 
DONATE TO ME
Where did you get apktool 1.4.2?
Device: Nexus S i9023
Rom: rooted Stock 4.1.1

Device: ASUS Transformer Prime
Rom: stock ICS 4.0.3 (rooted but locked bootloader)


Follow me: @KBanause
Visit: http://forum.oxygen.im/. A forum by AdamG
 
ciscogee
Old
#3  
ciscogee's Avatar
Senior Member
Thanks Meter 187
Posts: 858
Join Date: Aug 2011
Location: Wa State

 
DONATE TO ME
How would I disable the onscrwen keys in twlauncher 4. 5? Cause we already configured the ics keys to be our softkeus?

Sent from my SCH-I400 using xda premium
posted via esp with help from fingers
 
Fr4gg0r
Old
#4  
Fr4gg0r's Avatar
Recognized Developer
Thanks Meter 657
Posts: 643
Join Date: Aug 2010

 
DONATE TO ME
Quote:
Originally Posted by KBanause View Post
Where did you get apktool 1.4.2?
yes interesting question
 
evilisto
Old
#5  
evilisto's Avatar
Senior Member - OP
Thanks Meter 2228
Posts: 483
Join Date: Nov 2010
Quote:
Originally Posted by KBanause View Post
Where did you get apktool 1.4.2?
here it is : http://www.multiupload.com/YWJHOSZ7GJ

you can find it here


Quote:
Originally Posted by ciscogee View Post
How would I disable the onscrwen keys in twlauncher 4. 5? Cause we already configured the ics keys to be our softkeus?

Sent from my SCH-I400 using xda premium
sorry but you'd better ask your rom dev to do it..
The Following 5 Users Say Thank You to evilisto For This Useful Post: [ Click to Expand ]
 
KBanause
Old
#6  
KBanause's Avatar
Senior Member
Thanks Meter 310
Posts: 1,946
Join Date: Jul 2010
Location: Munich

 
DONATE TO ME
Quote:
Originally Posted by evilisto View Post
here it is : http://www.multiupload.com/YWJHOSZ7GJ

you can find it here
Thanks. At least I was able to recompile the framework-res.apk wothout any errors. Now I have to check if I can use it without bootloops
Device: Nexus S i9023
Rom: rooted Stock 4.1.1

Device: ASUS Transformer Prime
Rom: stock ICS 4.0.3 (rooted but locked bootloader)


Follow me: @KBanause
Visit: http://forum.oxygen.im/. A forum by AdamG
 
Perka
Old
#7  
Perka's Avatar
Senior Member
Thanks Meter 2770
Posts: 3,329
Join Date: Sep 2010
Quote:
Originally Posted by evilisto View Post
here it is : http://www.multiupload.com/YWJHOSZ7GJ

you can find it here




sorry but you'd better ask your rom dev to do it..
Worked for me with this apktool

Edit: decompile that is

THX!
 
pingpongboss
Old
#8  
pingpongboss's Avatar
Senior Member
Thanks Meter 219
Posts: 453
Join Date: Apr 2010
Location: San Jose

 
DONATE TO ME
Could you got a little more in-depth on step 5? Whats the correct way to recompile the apk with aapt?
Software Engineer working on Android at Google. In my spare time, I hack on projects like [APP][2.1+] StandOut - Create Floating Apps.
 
evilisto
Old
#9  
evilisto's Avatar
Senior Member - OP
Thanks Meter 2228
Posts: 483
Join Date: Nov 2010
Quote:
Originally Posted by pingpongboss View Post
Could you got a little more in-depth on step 5? Whats the correct way to recompile the apk with aapt?
just put aapt.exe in the same folder as apktool.jar. that's all
The Following 2 Users Say Thank You to evilisto For This Useful Post: [ Click to Expand ]
 
miniura
Old
#10  
Junior Member
Thanks Meter 0
Posts: 19
Join Date: Oct 2009
can someone please help me with using apktool and decompiling my framework-res?

 
Post Reply+
Tags
ics on-screen buttons
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...