Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,782,463 Members 39,740 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Change nabvar size on CM11

Tip us?
 
Jerber
Old
#1  
Jerber's Avatar
Member - OP
Thanks Meter 10
Posts: 63
Join Date: Jun 2013
Default [Q] Change nabvar size on CM11

I would like to know how to change the navbar size, 34-36 dpi will be nice!, Im on official CM11 (I got the update about 2 days)
 
mbting
Old
#2  
mbting's Avatar
Member
Thanks Meter 19
Posts: 87
Join Date: Mar 2011
Quote:
Originally Posted by Jerber View Post
I would like to know how to change the navbar size, 34-36 dpi will be nice!, Im on official CM11 (I got the update about 2 days)
im using GravityBox Kitkat for that

you'll need Xposed framework for GravityBox to work.

and Xposed does not support ART runtime yet, so only Dalvik
 
AndyYan
Old
#3  
AndyYan's Avatar
Senior Member
Thanks Meter 850
Posts: 1,986
Join Date: Jan 2012
Location: Beijing
If you really need to get this done on ART, or doesn't want to use Xposed, just PM me and I'll do the mod for you. It's a simple framework-res mod that I've always been doing for myself.

Sent from Google Nexus 4 @ crSimple


Current devices:
Google Nexus 4 (CM11 Nightly)
Sony Xperia SP (CM11 Nightly)
Motorola Droid RAZR M (CM11 Nightly)
Google Nexus 7 (2013, WiFi) (CM11 Nightly)
Samsung Galaxy Gear (Null_ Build 23)
Samsung Galaxy S WiFi 4.0 (CM10.2 Unofficial)
HTC Incredible S (CM11 Unofficial)
Nokia N97-1 (RM-505 22.0.110 Pre-Hacked)

Quote:
Multi-core smartphones are like M&Ms:
They don't melt on the store shelf... Just in your hands.
 
Jerber
Old
#4  
Jerber's Avatar
Member - OP
Thanks Meter 10
Posts: 63
Join Date: Jun 2013
I had a insane battery drain on 4.3 with Xposed (official CM), so, I'm not sure if I should try, I don't want to have any problem, maybe I should try the framework mod
 
AndyYan
Old
#5  
AndyYan's Avatar
Senior Member
Thanks Meter 850
Posts: 1,986
Join Date: Jan 2012
Location: Beijing
Quote:
Originally Posted by Jerber View Post
I had a insane battery drain on 4.3 with Xposed (official CM), so, I'm not sure if I should try, I don't want to have any problem, maybe I should try the framework mod
Just send your /system/framework/framework-res.apk to GeForce8800Ultra [at] gmail [dot] com. PM me when you have sent it, and I'll handle the mod for ya. I'm in the final exam week, so you can expect to see it finished by Friday.

Sent from Samsung Galaxy Nexus @ CM11


Current devices:
Google Nexus 4 (CM11 Nightly)
Sony Xperia SP (CM11 Nightly)
Motorola Droid RAZR M (CM11 Nightly)
Google Nexus 7 (2013, WiFi) (CM11 Nightly)
Samsung Galaxy Gear (Null_ Build 23)
Samsung Galaxy S WiFi 4.0 (CM10.2 Unofficial)
HTC Incredible S (CM11 Unofficial)
Nokia N97-1 (RM-505 22.0.110 Pre-Hacked)

Quote:
Multi-core smartphones are like M&Ms:
They don't melt on the store shelf... Just in your hands.
 
Jerber
Old
(Last edited by Jerber; 17th January 2014 at 10:11 PM.)
#6  
Jerber's Avatar
Member - OP
Thanks Meter 10
Posts: 63
Join Date: Jun 2013
Here you have!

PD: Somebody knows how to fix this? (the red squares)
Attached Thumbnails
Click image for larger version

Name:	2.png
Views:	100
Size:	110.9 KB
ID:	2513718  
Attached Files
File Type: rar Frame.rar - [Click for QR Code] (7.09 MB, 5 views)
File Type: rar SystemUI.rar - [Click for QR Code] (1.06 MB, 6 views)
 
freemsk1
Old
#7  
freemsk1's Avatar
Senior Member
Thanks Meter 20
Posts: 121
Join Date: May 2008
Is there a guide somewhere on how I could modify framework-res myself?
Thanks in advance
 
AndyYan
Old
#8  
AndyYan's Avatar
Senior Member
Thanks Meter 850
Posts: 1,986
Join Date: Jan 2012
Location: Beijing
Quote:
Originally Posted by freemsk1 View Post
Is there a guide somewhere on how I could modify framework-res myself?
Thanks in advance
1) Decompile using apktool or any tool you like (I prefer APKChanger)
2) Edit /res/values/dimens.xml, change the bold numbers in these lines to the DPI you want:
Code:
    <dimen name="navigation_bar_height">48.0dip</dimen>
    <dimen name="navigation_bar_height_landscape">48.0dip</dimen>
    <dimen name="navigation_bar_width">42.0dip</dimen>
3) Recompile. Now you have the original file and the compiled one. Open both with WinRAR, drag the "resources.arsc" from the compiled one to the original one.

Done. The end result is the original framework-res.apk. Replace it in /system/framework/ (pay attention to permissions: rw-r--r--, 0755), reboot and all done.
Keep in mind that whenever you update your ROM, you have to modify the new ROM's framework-res again.

As for making it into a flashable ZIP... I use a pre-cooked template but you can do it with other tools.


Current devices:
Google Nexus 4 (CM11 Nightly)
Sony Xperia SP (CM11 Nightly)
Motorola Droid RAZR M (CM11 Nightly)
Google Nexus 7 (2013, WiFi) (CM11 Nightly)
Samsung Galaxy Gear (Null_ Build 23)
Samsung Galaxy S WiFi 4.0 (CM10.2 Unofficial)
HTC Incredible S (CM11 Unofficial)
Nokia N97-1 (RM-505 22.0.110 Pre-Hacked)

Quote:
Multi-core smartphones are like M&Ms:
They don't melt on the store shelf... Just in your hands.
The Following User Says Thank You to AndyYan For This Useful Post: [ Click to Expand ]
 
bexol
Old
#9  
Junior Member
Thanks Meter 2
Posts: 13
Join Date: Jan 2013
I had good results and no conflicts on CM11with Xblast tools on the Xposed framework. It seems to have a lighter touch than gravity for.

Just in case you don't want to mess with the files yourself.
 
AndyYan
Old
#10  
AndyYan's Avatar
Senior Member
Thanks Meter 850
Posts: 1,986
Join Date: Jan 2012
Location: Beijing
Quote:
Originally Posted by bexol View Post
I had good results and no conflicts on CM11with Xblast tools on the Xposed framework. It seems to have a lighter touch than gravity for.

Just in case you don't want to mess with the files yourself.
1) for people who has had problems with Xposed (like OP author)
2) for people who loves ART
3) for people who just hates Xposed and any 3rd-party additions (me )

Sent from Motorola Photon Q 4G LTE @ CM11


Current devices:
Google Nexus 4 (CM11 Nightly)
Sony Xperia SP (CM11 Nightly)
Motorola Droid RAZR M (CM11 Nightly)
Google Nexus 7 (2013, WiFi) (CM11 Nightly)
Samsung Galaxy Gear (Null_ Build 23)
Samsung Galaxy S WiFi 4.0 (CM10.2 Unofficial)
HTC Incredible S (CM11 Unofficial)
Nokia N97-1 (RM-505 22.0.110 Pre-Hacked)

Quote:
Multi-core smartphones are like M&Ms:
They don't melt on the store shelf... Just in your hands.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes