Change size of navigation bar - Nexus 4 General

In my opinion the navigation bar is very large. In AOKP there is an option to resize it. But sadly Cyanogenmod doesnt offer this option. So i googled a bit and found this thread:
http://forum.xda-developers.com/showthread.php?t=1793096
This guy wrote a script to change the size of the Bar. Sadly it didnt work with Android 4.2.2. (Don't know what's about 4.2.1)
So i modified it a bit and then it worked perfectle.
What you need to do:
- Download the attached script
- Download apktool from http://code.google.com/p/android-apktool/ and place it in the same directory like the script.
- Get /system/framework/framework-res.apk from your device via adb pull or copy it with root explorer to your sd card and use mass storage
- Start the script (See below for detailed inscrutions)
- Backup your working framework-res.apk on your phone (Just in case if something went wrong)
- Replace /system/framework/framework-res.apk with the file the script created. (It has to be named "framework-res.apk of course!)
- Reboot. (I used fix permissions in clockwork mod, just in case if there are some permissions wrong)
Instructions for the Script:
Of course you need to install python.
On Linux you can make it executeable with chmod +x patch-framework.py and then run ./patch-framework.py.
Or you can just run python patch-framework.py.
I never tried to run python on Windows, so maybe somebody want to wrire instructions for it?
The script needs some parameters:
path to framework-res.apk
name of othe new framework
-h to show the help/usage
I started the script like this:
Code:
./patch-framework.py -w 36.0 -s 36.0 -sl 36.0 framework-res.apk framework_new.apk
-w width of navigationbar
-s height of navigationbar
-sl height of navigationbar in landscape mode
Have fun with your smalle Navbar
Feel free to ask if you have questions
Thank you m11kkaa for doing the main work!

How about changing the size of the notification bar?
For me, the notification bar is very small. Coming from a Galaxy SI, I find it real hard to see the icons when I've got it windshield mounted in my car. Any way to make the notification bar bigger?
moflolo said:
In my opinion the navigation bar is very large. In AOKP there is an option to resize it. But sadly Cyanogenmod doesnt offer this option. So i googled a bit and found this thread:
http://forum.xda-developers.com/showthread.php?t=1793096
This guy wrote a script to change the size of the Bar. Sadly it didnt work with Android 4.2.2. (Don't know what's about 4.2.1)
So i modified it a bit and then it worked perfectle.
What you need to do:
- Download the attached script
- Download apktool from http://code.google.com/p/android-apktool/ and place it in the same directory like the script.
- Get /system/framework/framework-res.apk from your device via adb pull or copy it with root explorer to your sd card and use mass storage
- Start the script (See below for detailed inscrutions)
- Backup your working framework-res.apk on your phone (Just in case if something went wrong)
- Replace /system/framework/framework-res.apk with the file the script created. (It has to be named "framework-res.apk of course!)
- Reboot. (I used fix permissions in clockwork mod, just in case if there are some permissions wrong)
Instructions for the Script:
Of course you need to install python.
On Linux you can make it executeable with chmod +x patch-framework.py and then run ./patch-framework.py.
Or you can just run python patch-framework.py.
I never tried to run python on Windows, so maybe somebody want to wrire instructions for it?
The script needs some parameters:
path to framework-res.apk
name of othe new framework
-h to show the help/usage
I started the script like this:
Code:
./patch-framework.py -w 36.0 -s 36.0 -sl 36.0 framework-res.apk framework_new.apk
-w width of navigationbar
-s height of navigationbar
-sl height of navigationbar in landscape mode
Have fun with your smalle Navbar
Feel free to ask if you have questions
Thank you m11kkaa for doing the main work!
Click to expand...
Click to collapse

dcrandon said:
For me, the notification bar is very small. Coming from a Galaxy SI, I find it real hard to see the icons when I've got it windshield mounted in my car. Any way to make the notification bar bigger?
Click to expand...
Click to collapse
Ive never tried it, but im pretty sure you can make it bigger. I used a height of 36px in my example. Just try it with 45, or 50...i think it should work

Thanks dude, I used 36px height...

moflolo said:
In my opinion the navigation bar is very large. In AOKP there is an option to resize it. But sadly Cyanogenmod doesnt offer this option. So i googled a bit and found this thread:
http://forum.xda-developers.com/showthread.php?t=1793096
This guy wrote a script to change the size of the Bar. Sadly it didnt work with Android 4.2.2. (Don't know what's about 4.2.1)
So i modified it a bit and then it worked perfectle.
What you need to do:
- Download the attached script
- Download apktool from http://code.google.com/p/android-apktool/ and place it in the same directory like the script.
- Get /system/framework/framework-res.apk from your device via adb pull or copy it with root explorer to your sd card and use mass storage
- Start the script (See below for detailed inscrutions)
- Backup your working framework-res.apk on your phone (Just in case if something went wrong)
- Replace /system/framework/framework-res.apk with the file the script created. (It has to be named "framework-res.apk of course!)
- Reboot. (I used fix permissions in clockwork mod, just in case if there are some permissions wrong)
Instructions for the Script:
Of course you need to install python.
On Linux you can make it executeable with chmod +x patch-framework.py and then run ./patch-framework.py.
Or you can just run python patch-framework.py.
I never tried to run python on Windows, so maybe somebody want to wrire instructions for it?
The script needs some parameters:
path to framework-res.apk
name of othe new framework
-h to show the help/usage
I started the script like this:
Code:
./patch-framework.py -w 36.0 -s 36.0 -sl 36.0 framework-res.apk framework_new.apk
-w width of navigationbar
-s height of navigationbar
-sl height of navigationbar in landscape mode
Have fun with your smalle Navbar
Feel free to ask if you have questions
Thank you m11kkaa for doing the main work!
Click to expand...
Click to collapse
What file is it actually adjusting to change this? Looking at old tutorials, there was a dimens.xml file on the Galaxy Nexus but this doesn't seem to exist on my Nexus 4

Jeevez said:
What file is it actually adjusting to change this? Looking at old tutorials, there was a dimens.xml file on the Galaxy Nexus but this doesn't seem to exist on my Nexus 4
Click to expand...
Click to collapse
it is res/values/dimens.xml

Ffs stop using Quote from Op
Sent from my Nexus 4 using xda app-developers app

There is a way for doing it from phone?
Sent from my Galaxy Nexus using Tapatalk 4 Beta

invalid syntax ... :\

M7ammad.eb said:
invalid syntax ... :\
Click to expand...
Click to collapse
Any solution?

back button too large?!?
I went with 30 dpi, everything is fine except for the back button, which is a bit larger.
Any ideas anyone?
Thank you!!

Hi, i would like to resize (change height) of notification panel on LG optimus g e975 stock OS (android 4.1.2). Is it possible? thnaks in advance

Instead of all these settings,.why just don't use Gravity box and do it with a few clicks?
Unleashed by my Nexus 4

I'm having the exact same issue. Any fixes?

i never got round to it
i was searching endlessly for this when i had my nexus 4 and i never got round to saying thankyou for posting this, it helped me out so much.

Related

changing the system font?

i've read up on this but im still a little confused. lets say i have the ttf fonts downloaded onto my sd card. from there, what commands do i have to put into terminal emulator to replace the default system font? & do i have to rename to droidsans first?
jonesyruless said:
i've read up on this but im still a little confused. lets say i have the ttf fonts downloaded onto my sd card. from there, what commands do i have to put into terminal emulator to replace the default system font? & do i have to rename to droidsans first?
Click to expand...
Click to collapse
Code:
cp /sdcard/yourfont.ttf /system/fonts/DroidSans.ttf
cp /sdcard/yourfont.ttf /system/fonts/DroidSans-Bold.ttf
why dont you just get metamorph and do it that way?
ArniPL said:
Code:
cp /sdcard/yourfont.ttf /system/fonts/DroidSans.ttf
cp /sdcard/yourfont.ttf /system/fonts/DroidSans-Bold.ttf
Click to expand...
Click to collapse
it says "cp: cannot create '/system/fonts/droidsans.ttf': file exists.
jonesyruless said:
it says "cp: cannot create '/system/fonts/droidsans.ttf': file exists.
Click to expand...
Click to collapse
Try this:
Code:
adb remount
adb push yourfont.ttf /system/fonts/DroidSans.ttf
adb push yourfont.ttf /system/fonts/DroidSans-Bold.ttf
wheww after several different attempts i finally did it. i ended up renaming the fonts in my sdcard to the default system font names, then putting this into better terminal emulator.
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cp /sdcard/DroidSans.ttf /system/fonts
cp /sdcard/DroidSans-Bold.ttf /system/fonts
reboot
Click to expand...
Click to collapse
thanks for your help guys helvetica looks amazing on this!
just did this, worked very well except for some dodgy characters and some icons with names spreading onto 2 lines - helvetica is a little bit too tall so it cuts off the bottom in places. possibly can be solved with some theming? idk, will get around to it, but thanks
march83 said:
just did this, worked very well except for some dodgy characters and some icons with names spreading onto 2 lines - helvetica is a little bit too tall so it cuts off the bottom in places. possibly can be solved with some theming? idk, will get around to it, but thanks
Click to expand...
Click to collapse
yeah, i believe it's missing characters in the ttf file. i think chacheinjection did some fiddling to get it working a bit better. maybe pm him.
Yeah i got it working, you need to add a load of extra space characters, i can start a tutorial thread for fixing this font issue if yall want.
cacheinjection said:
Yeah i got it working, you need to add a load of extra space characters, i can start a tutorial thread for fixing this font issue if yall want.
Click to expand...
Click to collapse
would appreciate that actually, thanks. it's beginning to bug the hell out of me...

[MOD] Disable menu unlock for lockscreen

Since the issue was brought up in this thread, I decided to modify the necessary file to make this change happen for a bunch of themes that are available here.
Theme creators, feel free to uses the updated files in your respective themes if you feel users would appreciate this change. I'll also take down the file(s) if you wish as well.
The change will make it so that pressing the menu button while on the unlock screen will not unlock the phone. By default, this seems to happen. All files are for DJ05 and DJ05 themes. If you have a request for this for the theme/rom you are using, feel free to post here and I'll do my best to create an updated file for you.
The files are all CWM flashable zip files. Be aware that after applying the change, the first reboot will take significantly longer than normal, but subsequent restarts should be normal. As always, be sure to make a backup before applying this just in case. I have not tested all of these, but the same change was made to all files for each theme. Please post back with any issues.
Available Files
Stock DJ05
Gingerbread Grey theme
Gingerbread Black theme
AOSP Theme
Darkstart Theme
Incognito Remix Theme
Matted Blues Theme
NexTheme
SuperDark Theme
DOWNLOAD HERE
If you wish to perform this change yourself, you will to download the baksmali.jar and smali.jar files from here and then use the following steps to perform the change (adapted from this post)
1. Use adb to pull out /system/framework/android.policy.jar
2. Type the following command
Code:
java -jar baksmali.jar -x android.policy.jar -o android.policy
3. Open LockScreen.smali and find the .method shouldEnableMenuKey()
4. Change "return v4" so it reads "return v6"
5. Save LockScreen.smali
6. Use the following command to compile the changes back
Code:
java -jar smali.jar android.policy -o classes.dex
7. Copy the newly made file classes.dex into android.policy.jar
8. Push the file to /sdcard
10. On your phone, do:
Code:
$ su
# cd /sdcard
# cp android.policy.jar /system/framework/android.policy.jar
# sync
Thank you so much for doing this!
Does this work for other lock screens that can be dled from the market?
jamesbdh said:
Does this work for other lock screens that can be dled from the market?
Click to expand...
Click to collapse
I have no idea. If the lockscreen changes the file /system/framework/android.policy.jar then odds are, applying any of these updates will break the market lockscreen. It all depends on how they make the change.
Good work. Does there happen to be an option buried in there that will enable vibrate instead of sound off?
good day. From the Fascinate sporting the XDA app.
chopper the dog said:
Good work. Does there happen to be an option buried in there that will enable vibrate instead of sound off?
good day. From the Fascinate sporting the XDA app.
Click to expand...
Click to collapse
I never even thought of looking for that. Thanks for the idea, I'll look into it and see if it can be done

[HOWTO]: 1% steps on gingerbread

at first, it would be nice if any mod can modify the title to: [HOWTO] 1% battery mod on gingerbread and delete all following posts.
further i'm sorry for my poor english - hopefully everyone here can follow my steps!
the hard thing on changing battery icons on gingerbread is, that there are only 7 steps: 0, 10, 20, 40, 60, 80 and 100... that means you have to edit or replace two xml files (more later).
IMPORTANT: please make a backup of your rom! i'm not responsible if your device won't boot after modding! also it is possible that your google/facebook etc. accounts are deleted after flashing back your modded framework. but you can easily readd them again!
WHAT YOU NEED:
apk manager from here: http://www.multiupload.com/GXW01G6URJ
battery icons or a framework-res.apk with your desired icons
a rooted gingerbread rom
your original framework-res.apk (guide to extract later on)
WHAT YOU GET (IN ATTACHMENT):
stat_sys_xml_dateien.zip (stat_sys_battery.xml and stat_sys_battery_charge.xml with 100 steps)
framework-res.apk (modified by me with circlemod battery (i hope it's okay to use them in here! btw. many thx to devs (was it mdj?) for this icons). THIS FRAMEWORK WAS ONLY TESTED BY ME ON MDJ GINGERBREAD 2.2!!!
screenshot of the circle battery mod on gingerbread
FIRST STEPS:
extract apk manager to a a desired folder and conenct your phone to debug mode
start script.bat and change kompression level to 0 (type 19, afterwards 0)
type in 0 to download framework-res.apk from your phone. it asks for the path, type: /system/framework/framework-res.apk and hit enter
if asked for a name, type framework-res.apk and hit enter and confirm with Y to be your current project
type 9 and hit enter to decompile your framework and wait until it's finished
have a look in the folder "projects" - there will be a folder "framework-res.apk" now.
navigate to the subfolder: res/drawable-hdpi and delete ALL png files with the name stat_sys_battery_X.png and stat_sys_battery_charge_animX.png (while X stands for the according number). do this also with stat_sys_battery_unknown.png and stat_sys_battery_charge_animfull.png (IMPORTANT: delete last two ones only if you have a replacement icon or you will get errors on compiling!!!)
also delete following two xml files in subfolder projects/framework-res.apk/res/drawable: stat_sys_battery_charge.xml and stat_sys_battery.xml
now it gets tricky:
depending on the amount of your custom icons you have on charging, you may have to edit your stat_sys_battery_charge.xml file and delete or add the percentual steps! if you have 100 custom png's for charging animation, you can use the stat_sys_battery_charge.xml i attached (it also includes a stat_sys_battery.xml with 100 steps if you need)
now it's time to paste your modified/downloaded stat_sys_battery_charge.xml and stat_sys_battery.xml into subfolder /res/drawable/ (where you deleted the original of gingerbread before!)
go back to apk manager and type 11 to compile your framework
when it asks "is this a system apk?", type Y for yes. confirm again with Y and let apk manager create a new folder, called "keep". a list of files appears, and after that DON'T CONFIRM!!!
first you have to navigate into this "keep" folder and delete again exactly what you deleted above (stat_sys_battery_X.png, stat_sys_battery_charge_animX.png, stat_sys_battery_unknown.png, stat_sys_battery_charge_animfull.png, stat_sys_battery.xml, stat_sys_battery_charge.xml) and ADDITIONALLY the file resources.arsc
now you can confirm in apk manager to complete the compiling process. as far as i know, these steps with keep folders are needed to include the right id's automatically in public.xml! if any errors occur, feel free to post your log in this thread (see log by typing 21 in apk manager)
flash your new created framework-res.apk by entering 8.
if you didn't anything wrong, you should have your new % battery icons after reboot! as mentioned before, your desktop background maybe messed up and/or your accounts are deleted. you can solve this by just readd accounts and change background again.
Those ID's are hexadecimal numbers (dictated by the 0x prefix), and are sequential:
0 - 17302168
10 - 17302169
100 - 17302170
20 - 17302171
40 - 17302172
60 - 17302173
80 - 17302174
RJackson said:
Those ID's are hexadecimal numbers (dictated by the 0x prefix), and are sequential:
0 - 17302168
10 - 17302169
100 - 17302170
20 - 17302171
40 - 17302172
60 - 17302173
80 - 17302174
Click to expand...
Click to collapse
thx for your explanation! but i found out that it isn't necessary to edit public.xml. on decompiling, it adds automatically the missing lines when png's are listed in stat_sys_battery.xml...
finally i got it working if someone else wants the 1% increments, i can write a little tutorial.
Yea very interested. I can't stand the stock one. I knew how to do all the theming stuff on sd builds using the theme porters. Nand is different though. So please write that up, also will you post your battery mod for gingerbread
HOWTO added in 1st post!
fruchtfliege said:
HOWTO added in 1st post!
Click to expand...
Click to collapse
Thanks for the tutorial. Question though, is this for sd builds or for nand? Or does it not matter?
it is only for nand-builds. on sd-builds it should be similar, but afaik you don't have to adb the framework-res.apk. you should find here a lot of threads about modifying sd-build statusbars, because it is not that hard like on nand builds.
Cool, I'm using nand. Yea through sd builds thing stuff was easy. I couldn't change the compression in the emulator. How were you able to change it? Also is that framework at the bottom the one we use to achieve what the picture looks like?
Background changed and accounts gone as mentioned, but it worked perfectly - well worth it!
How did you change the compression when running the batch file?
Edit: Nevemind im retarded.
When i press the 9 to decompile it it gives me some B.S error Saying could not find C:\place-apk-here-for-modding.... The directory name is invalid. Could someone make this work on JDMS nand build?
Alos when i pull the framework res file from my phone it doesnt show up in "projects" Theres nothing in there. However it does show up in "place-apk-here-for-modding" folder..
Alos when i pull the framework res file from my phone it doesnt show up in "projects" Theres nothing in there. However it does show up in "place-apk-here-for-modding" folder..
Click to expand...
Click to collapse
the adb pulled apk files are stored in "place-apk-here-for-modding" folder, not in projects! a project in this folder will only be created after decompiling an apk!!!
Also is that framework at the bottom the one we use to achieve what the picture looks like?
Click to expand...
Click to collapse
you just get the statusbar at top (in fact only + battery icon). the bottom icons and background are custom with using launcher pro.
Can you think of a certain reason why i keep getting an error when i try to decompile it?
This is the error i get
--------------------------------------------------------------------------
|Wed 01/19/2011 -- 20:11:24.04|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
'java' is not recognized as an internal or external command,
operable program or batch file.
1631 KB/s (4121004 bytes in 2.466s)
Could Not Find C:\Users\Matt\Desktop\New folder\place-apk-here-for-modding\../pl
ace-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\Matt\Desktop\New folder\place-apk-here-for-modding\../pl
ace-apk-here-for-modding/unsignedframework-res.apk
'java' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .
i think you have to install java sdk. without it, the compiling tools are not included, like on jde (i think it's called jde...)
but i'm going to make flashable zips of these files for clockwork mod. only problem is, that i don't know much about linux commands i couldn't get it working. i should start a new thread asking about this.
If you jump on irc you would get your answer in like 5secs. Room is #htc-linux-chat on freenode. Thanks for the suggestion about sdk. That does make sense now that I think about it;p
thank you for the hint. i will ask for help at chat tomorrow. i'm also working on different statusbar colours of gingerbread with original icons. before release i have to get this cwm zip flash thing working!
fruchtfliege said:
at first, it would be nice if any mod can modify the title to: [HOWTO] 1% battery mod on gingerbread and delete all following posts.
Click to expand...
Click to collapse
Just a heads-up mate - you obviously can't delete any posts, but you can change the title. Edit the first post and go into advanced mode to change it.
Good luck with your project
thank you! i have changed the title now.
Hey Fruit Fly, any progress on that cwm zip?
not really. i forgot my hd2 at home (i do theme works at work) and couldn't test the cwm zip files. on sunday evening i can test everything and tell you whats working and what not!
rafpigna from #htc-linux-chat gave me another choice of flashing easy with an adb script (thank you for that). but some users on german android forum told me it's not working. have to bugfix the files first
Yea let me know the outcome;p

[MOD] Lower Auto-Brightness levels to save battery

This is best done after you flash a ROM as you might lose some settings.
(I noticed my wall paper changed and i had to sign back into Google account)
---This framework-res.apk file is different for every ROM---
Hi,
I wanted to share a little mod that could help in extending battery life - lowering default auto-brightness levels. As all of You know our big, bright SuperLCD is an excelent display but for that it uses most of our battery:/
I like the idea of auto-brightness but I find it too bright for most of the time. Setting brightness manualy to one level makes it either too dim or it uses too much battery and switching it all the time that You go outside or turn on the light is a little bit inconvenient.
In order to lower auto-brightness levels You have to change values in framework-res.apk/res/values/arrays.xml and here is how (read whole post first )
These are stock HTC Raider values:
Click to expand...
Click to collapse
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>75</item>
<item>75</item>
<item>75</item>
<item>97</item>
<item>120</item>
<item>142</item>
<item>170</item>
<item>198</item>
<item>227</item>
<item>255</item>
</integer-array>
These are values that I use and found best for me:
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>20</item>
<item>40</item>
<item>50</item>
<item>70</item>
<item>90</item>
<item>100</item>
<item>130</item>
<item>155</item>
<item>180</item>
<item>225</item>
</integer-array>
These brightness levels are corresponding to the amount of light that light sensor is getting - the lowest value is while in the low light the highest when for example your phone is in direct sunlight. Brightness values are defined by numbers 1 is the lowest possible setting and 255 is the maximum brightness that can be set.
As You can see I was pretty aggressive with lowering these values and yet the screen is still bright in every situation. You can set them a little bit higher or lower in order to suit your preferences.
Here is a guide on how to perform this mod on any framework-res.apk using apk manager (thanks for the guide goes to desean):
1. Download APK manager and unpack somewhere
2. Grab framework-res.apk from your phone under \system\framework\ (e.g. adb pull) and place it in the "place-apk-here-for-modding" folder
3. Run Script.bat and select option 9
4. Once done, go to projects\framework-res.apk\res\values\arrays.xml and edit your values as per first post.
5. Once edited, compile the apk using option 11
6. Qn: Is this a system apk. Ans: y
7. Qn: Aside from the signatures, would .... least. Ans: y
8. Prompt: In the apk manager folder u'll find a keep folder..... done then press enter on this script. Press any key to continue . . . You have to go to "keep" folder and delete resources.arsc because arrays.xml have been changed. After this You can press any key in apk manager window.
9. Once done, input 25 in apk manager and select "unsignedframework-res.apk" by entering the number that stands for it. After selecting it You should see in apk main window in the top right corner "Current-App: unsignedframework-res.apk".
10. Now press 5 to zipalign apk. You will find your completed, zipaligned apk under place-apk-here-for-modding\unsignedframework-res.apk.
11.Rename it back to framework-res.apk and adb push the file back to your phone
Click to expand...
Click to collapse
To send it back to your phone
Prerequisites have...
The file you are pushing must be placed in the platform-tools folder of adb so if you are pushing file "framework-res.apk" this needs to be downloaded/copy and pasted in C:\android-sdk-windows\platform-tools
1: go to run and type cmd (or just open your command prompt)
2: cd C:\android-sdk-windows\platform-tools
3: adb remount
4: adb devices *if everything is set up right this should output a serial number*
5: adb push FFFFFFF.FFF /#####/###### *i hope my notes help here you need to put the file name in for the F(s) and in the pound signs you put the destination on the devices:
Code:
adb push framework-res.apk /system/framework
7. adb reboot this is how you finish
Click to expand...
Click to collapse
You have to copy the file to your phone with ADB or you will get a boot loop and have to re install your ROM.
Link for APK Manager HERE
If you have problems with apk manager showing java error (like it did) this post helped me fix that
Sources:
http://forum.xda-developers.com/showthread.php?t=1235212
http://forum.xda-developers.com/showthread.php?t=695701
http://forum.xda-developers.com/showthread.php?t=642437
APK Manager 4.9 download link (currently original thread link down)
http://www.zshare.net/download/99034654c32618ba/
WOW! I was just about to ask if anyone knew how to accomplish this! Thanks dude!
Edit: Er..phone just went into a bootloop. Lemme try again..
Edit2: I first replaced the framework-res.apk using root explorer...big mistake, phone went into a bootloop and I couldnt adb to it to push the apk correctly, whoops. Just reinstalled the ROM I was using and pushed the apk using adb and all is well.
I noticed two other very similar looking values: config_autoBrightnessLcdBacklightValuesUp and config_autoBrightnessLcdBacklightValuesDown. Is it necessary to change these as well?
m0biusace said:
WOW! I was just about to ask if anyone knew how to accomplish this! Thanks dude!
Edit: Er..phone just went into a bootloop. Lemme try again..
Edit2: I first replaced the framework-res.apk using root explorer...big mistake, phone went into a bootloop and I couldnt adb to it to push the apk correctly, whoops. Just reinstalled the ROM I was using and pushed the apk using adb and all is well.
I noticed two other very similar looking values: config_autoBrightnessLcdBacklightValuesUp and config_autoBrightnessLcdBacklightValuesDown. Is it necessary to change these as well?
Click to expand...
Click to collapse
Yes you have to use adb ill put that in the first post,
to be honest i am not entirely sure what that is for i assume, that it is when you move the slider what values it displays when you slide it, i noticed a change without changing those values.
also i changed the button back lights to 200, i find it more than enough for me.
Is there a working mirror to APK manager? The link in the thread is down.
uploaded
sbddude said:
Is there a working mirror to APK manager? The link in the thread is down.
Click to expand...
Click to collapse
uploaded here
http://www.zshare.net/download/99034654c32618ba/
Serious props to you jul644 for detailing this process! I've always hated how the Hero, Evo, & now Vivid I've had never got dark enough in pitch black rooms, and now I'm excited to fix that problem. I was curious though since I just modded my battery meter using UOT Kitchen, if I could drop in the backlight-modded framework-res.apk via 7-zip replacing the UOT framework-res.apk file then flash it via recovery. I wonder if that would make me sign into Google and mess with settings like you mentioned. Thanks.
How-To with UOT
jul644 said:
You have to copy the file to your phone with ADB or you will get a boot loop and have to re install your ROM.
Click to expand...
Click to collapse
How, if it's possible, do we integrate this modded framework-res.apk into a UOT Kitchen zip flash file? I want to mod my battery icons and would like to install at the same time so one doesn't interfere with the other. Should I upload the framework-res.apk from this to UOT Kitchen (with my original SystemUI.apk) and then change the battery icons, then download and flash?
Thanks for your help!
*****EDIT - 2/15/2011*****
Ok so I did the framework-res.apk edits by decompiling/recompiling per jul644, uploaded that into UOT Kitchen along with original SystemUI.apk and com.htc.resources.apk. I chose my battery icon mod, downloaded, cleared all the caches and flashed in recovery with no problems ) Just wanted to let you guys know how to make it a recovery flashable zip instead of pushing via ADB.
ICS?
So can anyone confirm or deny if this still works wit ICS will be trying it myself, when I get a chance, but would rather not waste time if it wont work!
It does work, I have done it. ICS it's just more difficult to decompile & recompile. I added it & 1% stock-style battery icons into Pirateghost's CWM .56 flashable ROM.
Keep getting errors when recompiling using stock telstra ICS+ root
error on 1st line after selecting option 11 ie. step 5 above
could not find sources????
Any suggestions what I am doing wrong????
---------- Post added at 09:37 PM ---------- Previous post was at 09:24 PM ----------
okay also getting this error twice before it de-compiles
the system cannot find the path specified
then seems to decompile happily???????????
Any suggestions?
I'm getting an 'Operation not permitted' when I try to remount before pushing the file back. Anyone else having this problem? I'm running a WCX GB ROM (no ICS, I'm on Rogers).
formicae said:
I'm getting an 'Operation not permitted' when I try to remount before pushing the file back. Anyone else having this problem? I'm running a WCX GB ROM (no ICS, I'm on Rogers).
Click to expand...
Click to collapse
are you trying to remount your sd card? if so do not, just select charge only
No, just trying to remount as per the instructions in the first post, so /system is R/W. Setting it to charge only. No dice.
I tried doing it in recovery (by mounting /system, then going through the ADB commands, all of which are successful), but the result is a bootloop once I'm done.
Edit: It's also worth noting that newer versions of APK Manager/Multi-tool seem to have different numbering for the operations. In step 9, number 22 sets the compression level, whereas I think it used to set the active APK (which I think is 25 now).
I ended up taking the stock framework-res from the ROM, modifying the arrays.xml values as per the OP instructions, then going through the UOT Kitchen (I had a battery mod anyway). Worked perfectly.
Thanks to pauley for reporting success earlier, which provided me with the workaround.
Has anyone done this that could possibly create a flashable zipped version of it? I tried to do it myself but with the new APK Multi Tool things were different to the instructions of OP and I couldn't get it to work
Edit: Nvm managed to fix it and make my own flashable zip. Thanks for the effort OP
I have tried to do this... And I keep getting an error on the recompile side...
Just wondering... Does apkmanager require windows 7 or something... Or is there some reason it wouldn't work on windows xp?
Sent from my HTC PH39100 using Tapatalk 2
rignfool said:
I have tried to do this... And I keep getting an error on the recompile side...
Just wondering... Does apkmanager require windows 7 or something... Or is there some reason it wouldn't work on windows xp?
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
The errors I encountered when compiling were solved by:
1) Putting Java in the windows path
2) Putting ADB in the windows path
3) Not having any spaces in the APK Manager file path
There are no OS dependencies that I'm aware of. Just open the log from within the APK manager and you should be able to identify the error.
The problem is I don't really speak java all that well...
Could I just move the java executable to the working directory?
Sent from my HTC PH39100 using Tapatalk 2
rignfool said:
The problem is I don't really speak java all that well...
Could I just move the java executable to the working directory?
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
For java, all you have to do is download the JDK (i got the 32 bit version), and then add 'C:\Program Files (x86)\Java\jdk1.7.0_03\bin' to the windows path so it becomes something like:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\MATLAB\R2011a\runtime\win64;C:\Program Files\MATLAB\R2011a\bin;C:\Program Files (x86)\MKVToolNix;C:\Program Files (x86)\Java\jdk1.7.0_03\bin;C:\Android\android-sdk\platform-tools\;C:\Android\APKMultiTools\
For Windows XP, you'd probably be running 32 bit and so it would be installed in the regular program files.
pod0087 said:
For java, all you have to do is download the JDK (i got the 32 bit version), and then add 'C:\Program Files (x86)\Java\jdk1.7.0_03\bin' to the windows path so it becomes something like:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\MATLAB\R2011a\runtime\win64;C:\Program Files\MATLAB\R2011a\bin;C:\Program Files (x86)\MKVToolNix;C:\Program Files (x86)\Java\jdk1.7.0_03\bin;C:\Android\android-sdk\platform-tools\;C:\Android\APKMultiTools\
For Windows XP, you'd probably be running 32 bit and so it would be installed in the regular program files.
Click to expand...
Click to collapse
thanks for the help! can you tell me the new number system with apk manager?

[THEME][DARK][ME176CX asus memo]A SystemUI.apk mod by fenirskoonk

This is a dark theme starwarz inspired for the asus memo 176cx, cx not tested on c version, also Kitkat 4.4.2.
Backup and replace SystemUI.apk (make sure to chmod, & the unsigned one works 4 me).
This theme updates icons & text & background in notify panel & status panel.(unchanged is nav bar and status icons, use xpose).
Download contains: new-unsigned/new-signed/myorginal/scriptexamples
11mb urlis{tinyurl.com/z9o52ut} No cross-site linking! If my dropbox gets slamed I will pull teh file.
Futher instructions in readme, but I forgot:
BACK UP and DELETE SystemUi.odex in /system/pri-apps. New file will not work with this file! Odex must match their parent apk!
Simple instructions:
1:Have Root, have busybox installed.
2†:Install script runner; use a script to mount /system/ rewritible; back up SystemUI.apk/SystemUI.odex to sd, delete SystemUI.odex, copy new SystemUI.apk and chmod 777 it twice for some reason. For testing reverse what you just did with a sleep inbettwen just in case.
3: profit!
4: use a file manager to fix perms to whatever its supposed to be i forget, google it.
†or manually back up orginal systemui.apk/odex, delete odex, and then copy new file into /system/, set its permissions (fat32 of ur sd does not save those) then copy that one into /system/priv-apps/ over the old one, hit the ok button for xyz seconds till it restarts systemui. Don't panic, cross fingers. Done. Just besure to nix that systemui.odex!!! And chmod before hand/change permissions.
Yours fenirskoonk!
Well wheres the screenshots? and the C model will work... the only differences about cx and c is the camera and why dont you simply put the commands you want it to do on updater script instead of us having to do it manually. i also recommend you to recheck your thread because its a total mess. and now im gonna ask something really simple, what folders did you change so it could change the icons from inside status bar? and what file did you edit to change the text? tell me and ill make my own themes and try to make them most aosp as possible..
sure thing nr sharnky
A: i don't have a image upload site i want to bother with plus grabbing a tinyurl cause i need ten silly posts too have an img inline with a post. The screen shots are in the zip, download and don't whine please.
Ab: I don't have a C model I have the CX and when I tried a C model SystemUI.apk it did not work, you can test that & the reverse then post your verifyible scientific results instead of conjecture. I simply state for the the lay masses that is untested on a C model.
B: I don't know how too nor care to mess with the update thru recovery process type scripts, packaging, signing, that's a whole other mess. You do it. Besides I am not running a custom recovery anyhow just root.
C: SystemUI.apk is the only file altered, using apktool+scite+paint.net. If you cared to read the above post. Also note I went thru every xml file and changed almost every single instance of those nasty turquoise and white color combo. I also went thru every single icon version of the notify and status panels(panels not the bars dork). i didn't alter as I sated, the nav BAR icons, nor status BAR icon like baterry/clock or whatever.
D. 1/10/90 rule, be the ten % and mod the content us 1% produce. 90% people consume amd complain!
E: like wise you have my permission to regeritate my post to not be a mess as you say. Feel lucky any one bothered! There are NO other themes I am even aware for this device.
Make your own, or mod mine.
Next I make Hello-Kitty theme just for you boi
-Fenirskoonk
http://postimg.org/image/eqkxjjmvr/
http://postimg.org/image/ic6g2lbk5/
https://tinyurl.com/z9o52ut

Categories

Resources