Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
l.m.prowse
Old
#501  
l.m.prowse's Avatar
Senior Member
Thanks Meter 15
Posts: 214
Join Date: Sep 2010
Location: Camborne, Cornwall
Quote:
Originally Posted by mattmanwrx View Post
I logged out and logged in again and it now looks ok!!

anyway, Attached to the post is the .rar that contains your framework-res.apk, you will need to replace this yourself. Either create a flashable zip, or adb it over. You can try root explorer, but some people (see last post yesterday) say it can cause issues! Obviously untested by me, so please do take a backup (either nandroid or of your framework-res.apk)...

I just decompiled and recompiled (without any modification) using this apktool attached to this post... I then made the changes and compiled again, with no errors (again!)

Try with that apktool I linked to...!
Thanks it worked! and the apktool worked as well
 
mattmanwrx
Old
#502  
mattmanwrx's Avatar
Recognized Themer
Thanks Meter 2478
Posts: 4,538
Join Date: Aug 2010
Location: London

 
DONATE TO ME
Quote:
Originally Posted by l.m.prowse View Post
Thanks it worked! and the apktool worked as well
No problem, glad it worked for you...
Am here to help!
Dont Forget to Hit the Thanks Button
Creator of

Sign Up Today To Bring Your Idea To Android
Check out - www.mattman.org - for all below downloads + more!

HTC One X Blue/Green/Red Status Bar Mods

HTC One X Modified Boot Animation


Sandvold Beta ICS Mods
Motorola RAZR i (Stock atm)
Nexus 7 - Carbon ROM
HTC One X - Carbon ROM
Asus Transformer - My ParanoidAndroid Build
HTC Desire - Retired!
 
santoshsadani009
Old
#503  
santoshsadani009's Avatar
Senior Member
Thanks Meter 99
Posts: 162
Join Date: Oct 2011
Location: Jabalpur
Hello,
I followed this guide and successfully added the on screen buttons to my CM9 build. However, i just want to ask, if there is a way i just get the Menu key, home key and the back key?

Thanks. Also, thanks for the amazing guide.
 
mattmanwrx
Old
#504  
mattmanwrx's Avatar
Recognized Themer
Thanks Meter 2478
Posts: 4,538
Join Date: Aug 2010
Location: London

 
DONATE TO ME
Quote:
Originally Posted by santoshsadani009 View Post
Hello,
I followed this guide and successfully added the on screen buttons to my CM9 build. However, i just want to ask, if there is a way i just get the Menu key, home key and the back key?

Thanks. Also, thanks for the amazing guide.
So you want to remove the "Recent Apps" key - or replace it with a Menu button that is there full time?

If you want menu key there all the time, it will show on lockscreen too, all the time!!
Dont Forget to Hit the Thanks Button
Creator of

Sign Up Today To Bring Your Idea To Android
Check out - www.mattman.org - for all below downloads + more!

HTC One X Blue/Green/Red Status Bar Mods

HTC One X Modified Boot Animation


Sandvold Beta ICS Mods
Motorola RAZR i (Stock atm)
Nexus 7 - Carbon ROM
HTC One X - Carbon ROM
Asus Transformer - My ParanoidAndroid Build
HTC Desire - Retired!
The Following User Says Thank You to mattmanwrx For This Useful Post: [ Click to Expand ]
 
santoshsadani009
Old
#505  
santoshsadani009's Avatar
Senior Member
Thanks Meter 99
Posts: 162
Join Date: Oct 2011
Location: Jabalpur
Quote:
Originally Posted by mattmanwrx View Post
So you want to remove the "Recent Apps" key - or replace it with a Menu button that is there full time?

If you want menu key there all the time, it will show on lockscreen too, all the time!!
Yeah i wish i could get only those three keys (Used to samsung's key layout) . I guess i will have to stick with AOKP then. Anyways, thanks for the amazing guide. Very easy to understand for a guy (like me) who never tried modding!
 
mattmanwrx
Old
(Last edited by mattmanwrx; 30th July 2012 at 01:47 PM.)
#506  
mattmanwrx's Avatar
Recognized Themer
Thanks Meter 2478
Posts: 4,538
Join Date: Aug 2010
Location: London

 
DONATE TO ME
Quote:
Originally Posted by santoshsadani009 View Post
Yeah i wish i could get only those three keys (Used to samsung's key layout) . I guess i will have to stick with AOKP then. Anyways, thanks for the amazing guide. Very easy to understand for a guy (like me) who never tried modding!
No no, you cando it... just the menu key will always show (unless you built from source, and can modifiy it yourself)...

Decompile SystemUI.apk - navigate to res/layout/navigation_bar.xml, and then you'll see all the xml writing...

The first linear layout is the first set of keys...

Highlighted below - Blue is Back, Red is Home, Sky Blue is Recent Apps, Magenta is Menu... The ones inbetwwen are spacing...

Obiously below is not a smiley, it is just that it is easier to view in quote tags than code tags!
Quote:
<LinearLayout androidrientation="horizontal" android:id="@id/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="true">
<View android:visibility="invisible" android:layout_width="40.0dip" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonVi ew android:id="@id/back" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonVi ew android:id="@id/home" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonVi ew android:id="@id/recent_apps" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonVi ew android:id="@id/menu" android:visibility="invisible" android:layout_width="40.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
</LinearLayout>
You will need to play around with and make it all look how you want, you can delete, add or change how you want it!!

See the below screen shots I had of my old desire, with added buttons in too!


Need any help, feel free to post, I'll see if I can help!!
Dont Forget to Hit the Thanks Button
Creator of

Sign Up Today To Bring Your Idea To Android
Check out - www.mattman.org - for all below downloads + more!

HTC One X Blue/Green/Red Status Bar Mods

HTC One X Modified Boot Animation


Sandvold Beta ICS Mods
Motorola RAZR i (Stock atm)
Nexus 7 - Carbon ROM
HTC One X - Carbon ROM
Asus Transformer - My ParanoidAndroid Build
HTC Desire - Retired!
 
santoshsadani009
Old
#507  
santoshsadani009's Avatar
Senior Member
Thanks Meter 99
Posts: 162
Join Date: Oct 2011
Location: Jabalpur
Quote:
Originally Posted by mattmanwrx View Post
No no, you cando it... just the menu key will always show (unless you built from source, and can modifiy it yourself)...

Decompile SystemUI.apk - navigate to res/layout/navigation_bar.xml, and then you'll see all the xml writing...

The first linear layout is the first set of keys...

Highlighted below - Blue is Back, Red is Home, Sky Blue is Recent Apps, Magenta is Menu... The ones inbetwwen are spacing...

Obiously below is not a smiley, it is just that it is easier to view in quote tags than code tags!


You will need to play around with and make it all look how you want, you can delete, add or change how you want it!!

See the below screen shots I had of my old desire, with added buttons in too!

Need any help, feel free to post, I'll see if I can help!!
Hey man, thanks for your help. appreciate it a lot!

I will modify the script as per you told me in your last post but first, i gotta solve the problems i have been having after compiling. I made edits to framework, compiled, and signed (it's not needed i guess) the apk.

After this, i booted to recovery, cleared dalvik cache, clear system data, and then pushed the Apk via Adb. And after it boots up, i can see the nav bar and even use it. but the trebuchet and android keyboard got FC. Did push and install nova via adb so i can work it, but nothing works. Everything FCs. Any solution?

Also, I read in this thread that the framework-res could be buggy. How can i know if it's buggy or not? I have attached the apk in this post below. Thanks for your help!
Attached Files
File Type: apk framework-res.apk - [Click for QR Code] (5.45 MB, 6 views)
 
mattmanwrx
Old
#508  
mattmanwrx's Avatar
Recognized Themer
Thanks Meter 2478
Posts: 4,538
Join Date: Aug 2010
Location: London

 
DONATE TO ME
Do you know if the permissions are correct? Maybe fix permissions in recovery?
Also, I have never ever signed any system app, just alway leave the signatures in place.. that could be it..? Maybe try again with signing?

Sent from my HTC One X using xda premium
Dont Forget to Hit the Thanks Button
Creator of

Sign Up Today To Bring Your Idea To Android
Check out - www.mattman.org - for all below downloads + more!

HTC One X Blue/Green/Red Status Bar Mods

HTC One X Modified Boot Animation


Sandvold Beta ICS Mods
Motorola RAZR i (Stock atm)
Nexus 7 - Carbon ROM
HTC One X - Carbon ROM
Asus Transformer - My ParanoidAndroid Build
HTC Desire - Retired!
 
santoshsadani009
Old
#509  
santoshsadani009's Avatar
Senior Member
Thanks Meter 99
Posts: 162
Join Date: Oct 2011
Location: Jabalpur
Quote:
Originally Posted by mattmanwrx View Post
Do you know if the permissions are correct? Maybe fix permissions in recovery?
Also, I have never ever signed any system app, just alway leave the signatures in place.. that could be it..? Maybe try again with signing?

Sent from my HTC One X using xda premium
Thanks for your help so far man!! It looks promising! I'll try It as soon as i reach home.

Cheers.
 
santoshsadani009
Old
#510  
santoshsadani009's Avatar
Senior Member
Thanks Meter 99
Posts: 162
Join Date: Oct 2011
Location: Jabalpur
After looking for errors and compiling the framework again and again for nearly 6 hours restlessly, I finally managed to get it working without errors!! Works well and finally i can use the most stable ROM for my device easily (Capacitive keys are broken). I was pushing the framework-res to ROM zip and setting compression mode to normal, instead of store mode. Silly me!

And for the most amazing part, i asked how can i mod them to show menu keys at all times. Well, now, I don't need it anymore. As soon as i enable the navbar, CM9 gives me an option in system settings to customize what keys would i like to have in navbar. Awesome stuff!

Thanks mattmanwrx for your help! Thanks evilisto for this amazing guide.

The Following User Says Thank You to santoshsadani009 For This Useful Post: [ Click to Expand ]
 
Post Reply+
Tags
ics on-screen buttons
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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...