Make On Screen Buttons smaller - Xperia Z Q&A, Help & Troubleshooting

Hi,
I got here a rooted Xperia Z, and I asked myself it its possible to easily make the navigation bar (back,home,window manager) smaller than original.
Just to save some screen
I read something like you have to modify apk´s and change system files, can anyone maybe explain it in detail?
Or maybe there is already an app for it, which can change the size on the fly?
Thank you!

I cant give you a tutorial since I dont have the phone yet,but you should look into /System/build.prop, usually that is where the dpi is changed so you should look into code that has dpi or navbar in it. Other than that,you could look into Framework.jar but I used to soft brick my phone when I fiddled with stuff I don't understand so be careful. Anyway,you'll need root and I think build.prop gets rebuilt to default every time you reboot so you need some kind of mod to keep it changed. In a month or so we are gonna have Paranoid android ported so you will be able to change everything from the settings

On my Xperia T JB, you must change some files in /system/framework/framework-res.apk, you must also make some changes to /system/app/SystemUI.apk
I'm no expert (yet) so I can't help much after that..

xanthos84 said:
Hi,
I got here a rooted Xperia Z, and I asked myself it its possible to easily make the navigation bar (back,home,window manager) smaller than original.
Just to save some screen
I read something like you have to modify apk´s and change system files, can anyone maybe explain it in detail?
Or maybe there is already an app for it, which can change the size on the fly?
Thank you!
Click to expand...
Click to collapse
Yeah u can change the size!
you need to use apktool to edit framework-res.apk! Just tell me, do u know how to use apktool?
If yes then I will post the full tutorial step by step!
If No then I will post a few links along with the tut!
Btw u just need to edit framework-res.apk! No systemUI editing is required!
As for the dpi - if u change the dpi in the build.prop then its changed for the whole system, not only for the navigation bar! I had tried it once! My neo v 's default dpi is 240 and I decreased it to 140 - result- xperia home went crazy! Lolz!
Sent from my »Neo V«

Dev Jaskirat said:
Yeah u can change the size!
you need to use apktool to edit framework-res.apk! Just tell me, do u know how to use apktool?
If yes then I will post the full tutorial step by step!
If No then I will post a few links along with the tut!
Btw u just need to edit framework-res.apk! No systemUI editing is required!
As for the dpi - if u change the dpi in the build.prop then its changed for the whole system, not only for the navigation bar! I had tried it once! My neo v 's default dpi is 240 and I decreased it to 140 - result- xperia home went crazy! Lolz!
Sent from my »Neo V«
Click to expand...
Click to collapse
Hi Neo and thanks for your reply!
I am quite new to Android, so I have no experience into apktool.
Looking forward for your tutorial!
Thanks!

How TO Get Smaller Soft Keys
Bro You can call me DJ!
Neo V is the name of my device !! Sony Xperia Neo V!
By the way tell me if it works for you i will post it in the XZ dev section too for others!
Already did !- http://forum.xda-developers.com/showthread.php?p=38503045
Let's Begin:
First of all make a backup of your rom by going into the recovery ! Its good to have one incase something goes wrong!
To DO on your XZ-
1) Install root explorer
2) Navigate to system/framework/
3) Copy 'framework-res.apk' and 'SemcGenericUxpRes.apk' from that location to your SDcard.
4) Now connect your XZ to your PC.
To DO on your PC-
1) Install apktool v3 [you can find it easily on google! ]
2) After you are done with installing apktool open a cmd window in that location [ you can do that by right clicking in that window while keeping the shift key pressed, then click on the open command window here option from the drop down menu which appers].
3) Copy framework-res.apk and SemcGenericUxpRes.apk from your SDcard to your PC to the location where your apktool files are present.
4) Now in the cmd window which you opened earlier you need to type some commands -
apktool if framework-res.apk
now press 'enter key'
then
apktool if SemcGenericUxpRes.apk
press enter
The above 2 lines have installed the framework-res.apk and SemcGenericUxpRes.apk to your system which the apktool will later use as resources to decompile the framework-res.apk
now we need to decompile the framework-res.apk, for this type
apktool d framework-res.apk framework-res
it will perform a series of functions just wait for it till its finished!
when its done you will see that there is a new folder 'framework-res' in the window[location] where you have installed the apktool!
navigate to framework-res/res/values/
open dimens.xml using noteped++[yeah forgot to say that you need to install this too! ]
look for the lines 'navigationbar height' and navigationbar width'
the default size would be 48! just reduce it to what ever you want! 28 is recommended by me ! height = 28 and width= 24
Save the changes.
Now switch to the cmd window again
We are going to re-compile the framework-res.apk-
type-
apktool b framework-res framework-res-new.apk
when its done then you will have the new framework-res-new.apk with smaller softkeys!
5) Now copy it to your SDcard
6) Disconnect your XZ
7) Open root explorer in your XZ.
8) Copy the 'framework-res-new.apk' to your system/
9) Long press it and click on permissions
10) set it to rw-r--r--[1st row + + - ; 2nd row + - - ; 3rd row + - -][+ means ticked and - means unticked]
11) once done , rename the 'framework-res-new.apk' to 'framework-res.apk'.
12) Copy it to system/framework/
13) Press Yes when it asks to replace the original.
14) Then reboot your XZ [it might force reboot itself].
15) Done! now you have smaller softkeys!
Press the thanks button below if you found this helpful! It was quite difficult to type!

Dev Jaskirat said:
Bro You can call me DJ!
Neo V is the name of my device !! Sony Xperia Neo V!
By the way tell me if it works for you i will post it in the XZ dev section too for others!
Already did !- http://forum.xda-developers.com/showthread.php?p=38503045
Let's Begin:
First of all make a backup of your rom by going into the recovery ! Its good to have one incase something goes wrong!
To DO on your XZ-
1) Install root explorer
2) Navigate to system/framework/
3) Copy 'framework-res.apk' and 'SemcGenericUxpRes.apk' from that location to your SDcard.
4) Now connect your XZ to your PC.
To DO on your PC-
1) Install apktool v3 [you can find it easily on google! ]
2) After you are done with installing apktool open a cmd window in that location [ you can do that by right clicking in that window while keeping the shift key pressed, then click on the open command window here option from the drop down menu which appers].
3) Copy framework-res.apk and SemcGenericUxpRes.apk from your SDcard to your PC to the location where your apktool files are present.
4) Now in the cmd window which you opened earlier you need to type some commands -
apktool if framework-res.apk
now press 'enter key'
then
apktool if SemcGenericUxpRes.apk
press enter
The above 2 lines have installed the framework-res.apk and SemcGenericUxpRes.apk to your system which the apktool will later use as resources to decompile the framework-res.apk
now we need to decompile the framework-res.apk, for this type
apktool d framework-res.apk framework-res
it will perform a series of functions just wait for it till its finished!
when its done you will see that there is a new folder 'framework-res' in the window[location] where you have installed the apktool!
navigate to framework-res/res/values/
open dimens.xml using noteped++[yeah forgot to say that you need to install this too! ]
look for the lines 'navigationbar height' and navigationbar width'
the default size would be 48! just reduce it to what ever you want! 28 is recommended by me ! height = 28 and width= 24
Save the changes.
Now switch to the cmd window again
We are going to re-compile the framework-res.apk-
type-
apktool b framework-res framework-res-new.apk
when its done then you will have the new framework-res-new.apk with smaller softkeys!
5) Now copy it to your SDcard
6) Disconnect your XZ
7) Open root explorer in your XZ.
8) Copy the 'framework-res-new.apk' to your system/
9) Long press it and click on permissions
10) set it to rw-r--r--[1st row + + - ; 2nd row + - - ; 3rd row + - -][+ means ticked and - means unticked]
11) once done , rename the 'framework-res-new.apk' to 'framework-res.apk'.
12) Copy it to system/framework/
13) Press Yes when it asks to replace the original.
14) Then reboot your XZ [it might force reboot itself].
15) Done! now you have smaller softkeys!
Press the thanks button below if you found this helpful! It was quite difficult to type!
Click to expand...
Click to collapse
Thank you for posting!
I will try this later!!

Related

[GUIDE]Port Jelly Bean transition animations on EVERY ROM & EVERY PHONE

I wrote this tutorial that explains how to port Jelly Bean transition animations on EVERY ROM & especially on EVERY PHONE!!!.
1) First of all, you need to download and install APK MANAGER:
http://apkmultitool.com/?q=node/5
2) Extract with WinRAR, from the ROM you want to modify, the file framework-res.apk, that you can find in the directory \System\framework\.
3) Go to the apk manager folder and place the framework-res.apk file in the folder "place-apk-here-for-modding".
4) In the apk manager folder, double click on the file "Script". A cmd window will open.
5) Where it says "Please make your decision", write "22" (Set current project) and enter. Then enter "1" (to choose the first apk) and enter. Then enter "9" (Decompile apk) and enter.
The script will decompile the framework-res.apk.
6) Now go to your apk manager folder, go to projects\framework-res\res\anim\.
In this folder there are the animations of your rom. They consist in some .xml files decompiled.
7) Download this:
http://www.mediafire.com/download.php?8u5y88ais0awj1r
8) Copy the files from the folder "anim" of the zip downloaded into the anim folder and you are asked to replace the files; choose yes.
9) Now go to your apk manager folder, go to projects\framework-res\res\values\. Edit the file integers.xml.
Modify the values in those lines:
Code:
<integer name="config_shortAnimTime">150</integer>
<integer name="config_mediumAnimTime">300</integer>
<integer name="config_longAnimTime">400</integer>
to:
Code:
<integer name="config_shortAnimTime">200</integer>
<integer name="config_mediumAnimTime">400</integer>
<integer name="config_longAnimTime">500</integer>
and add these just below:
Code:
<integer name="config_activityShortDur">150</integer>
<integer name="config_activityDefaultDur">220</integer>
Save.
10) Return to Script. Enter "11" (Compile apk) and enter.
The script will rebuild the framework-res.apk.
11) You are asked if this is a system application. Enter "n" and enter.
12) Go to the folder "place-apk-here-for-modding" delete the file "unsignedframework-res.apk", click with the right mouse button on "framework-res.apk" and select "7zip > Open file", delete the folder "res" and "resource.arsc", go to the folder "projects\framework-res\build\apk\" select the folder "res" and the "resource.arsc", drag to zip and close.
13) Ready, now just replace.
CONGRATRULATIONS!!! YOU ARE DONE!!!
And if you think this tutorial is useful, CLICK THANKS!!!
P.S.: If you think that this post can help or interest people of other forums (with other devices), please share this post
Credits: Dinhodroid
Thanks nice guide and animations
Sent from my HTC Explorer A310e using xda premium
Thanks a lot
Sent from my GT-S5830 using Tapatalk 2
Good work. This is being used on my custom rom called ICS Redux for the Sidekick 4G! :good:
AW: [GUIDE]Port Jelly Bean transition animations on EVERY ROM & EVERY PHONE
Does that also work for gingerbread ??
I scratch that. I keep getting an error when recompiling.
KageBeast said:
I scratch that. I keep getting an error when recompiling.
Click to expand...
Click to collapse
that has nothing to do with this.
mv_style said:
that has nothing to do with this.
Click to expand...
Click to collapse
So me trying to put the animations on my phone and getting error when recompiling the framework-res has nothing to do with this? I believe you are wrong sir.
KageBeast said:
So me trying to put the animations on my phone and getting error when recompiling the framework-res has nothing to do with this? I believe you are wrong sir.
Click to expand...
Click to collapse
Can u compile and recompile other apps?
hey OP have u taken the original modders permissions to port here ?
mv_style said:
Can u compile and recompile other apps?
Click to expand...
Click to collapse
Yeah I can but i got this work. I had issues compiling the first time because i was also editing another xml but it worked the 2nd time.

modding framework-res.apk

this is my 1st modding so bare with me. ive tried few times today with sending framework to my phone and always ended with bootloop
so i gave up after few reflashes of rom (stock)
here is what i did so far
1. read many pages here and round web
2. pulled framework-res.apk via adb
3. copied my customized pngs to appropriate folders
4. pushed framework back to phone using adb shell...
5. bootloop.... .... ....
im adding my modified framework if any of more capable mods are willing to help
framework-res.zip
framework-res.rar -> rename to framework-res.z01
indycar said:
this is my 1st modding so bare with me. ive tried few times today with sending framework to my phone and always ended with bootloop
so i gave up after few reflashes of rom (stock)
here is what i did so far
1. read many pages here and round web
2. pulled framework-res.apk via adb
3. copied my customized pngs to appropriate folders
4. pushed framework back to phone using adb shell...
5. bootloop.... .... ....
im adding my modified framework if any of more capable mods are willing to help
framework-res.zip
framework-res.rar -> rename to framework-res.z01
Click to expand...
Click to collapse
Here is what you do
1- forget ADB
2- copy framework-res.apk from /framework to the sd card
2- move it from sd card to pc
3-using winrar or 7zip, click on add, and select your new icons ( make sure they are the same dimensions aka width and length)
4- move the app to your sd card
5- now on your phone, move the apk to /system and set permissions
6- move th apk to /system/framework and overwrite the existing apk
Press thanks if I helped
blakstar said:
3-using winrar or 7zip, click on add, and select your new icons ( make sure they are the same dimensions aka width and length)
Press thanks if I helped
Click to expand...
Click to collapse
they are same size i just used different colour instead boring white
will try tomorrow after i get home from work
ok i think i managed to get it work
i made recovery zip and i think it worked
expected more icons to be changed :\

[HOWTO] [DIY] Making your own Holo Theme for ICS

Hey people, I've just found it at O3D forums and I think I should share the information, as I don't have time for creating a good tutorial myself.
This way you can change colors for your own likes and make a lot kind of themes.
Before starting you should have your Apktool environment set up.
1. (only if you never saw APKTOOL in your life, otherwise, just jump it)
1· Download and install latest version of Java JDK
2· Download latest version of APK Multi-Tool as we'll be using it for un/packing APKs and push/pull them from/to our device.
3· Extract it anywhere you may like. If posible, in C:/ to avoid any kind of problems. Be sure to read README file before asking something about it.
4· Run Setup.bat, type 3 and press Enter. Close it.
5· Run Script.bat, type 0 and press Enter. Now let's type our framework's path.
6· /system/framework/framework-res.apk for basic framework file. This will be pulling it out from our phones.
7· Repeating Number 5, type /system/framework/lge-res.apk for LG's framework file.
8· Now move to X:\...\APK-Multi-Tool\place-apk-here-for-modding\ and copy both apks (framework-res + lge-res) and paste it at X:\...\APK-Multi-Tool\other\
9· Run Setup.bat again, type 2 and press Enter. Now both frameworks should be installed and we are ready to un/pack APKs from the version we're actually using (v30A/B/C/D...). Close it.
10· Back in Script.bat, type 0 again followed by Enter, then type the path of your desired APK. (/system/framework/xxxxxx.apk for frameworks & /system/app/xxxxxx.apk for apps). After pushing it, select it as your actual project.
11· Now type 9 followed by Enter. This will unpack our APK.
12· Now is the time for tunning anything you want to. Go to X:\...|APK-Multi-Tool\projects\xxxxxx.apk\ and you'll find there everything.
13· When it's done, let's re-pack it typing the option 11 followed by Enter. When repacking gets done, it will ask if you want to use any files from your original APK. Tell it Yes, otherwise your apk won't get signed.
14· When the extracting is done, move to X:\...|APK-Multi-Tool\keep\ and erase everything there BUT META-INF folder + AndroidManifest.xml. Now press anything at APK Multi-tool window and you'll get your APK ready to go.
15· Now type 8 to push it back to your phone and type the desired path. If it cames from /system/app/xxxxx.apk or /system/framework/xxxxx.apk.
If you get any error recompiling it, you should take a look at the log, typing 23 and fix it at the projects folder.
Click to expand...
Click to collapse
2.
potaturrias said:
When i maked this theme (my first theme) y used trial and error procedure.
The first step is replace or edit 9.png. pictures in drawable-hdpi folder located in framework-res.apk and lge-res.apk, you can do this quickly using this tools:
http://jgilfelt.github.com/android-actionbarstylegenerator (Check that the names of new pictures match with the old pictures)
http://android-holo-colors.com/
Many images have to edit them by hand
If you put more files than originally,for example switches in lge-res drawable-hdpi, you will get an error when try to compile.
The second step is replace xml files in drawable folder using xml files from zip file that you downloaded in the previous step.
If you don't get the desire result you have to edit styles.xml or drawable folder files or layout files to change backgrounds colors, text color,etc.
Remember there applications with lines in XML files that reference to framework or lge-res, for example:
android:textColor="@*android:color/transparent makes reference to transparent color defined in framework-res and
android:textColor="@com.lge.internal:color/transparent makes reference to transparent color defined in lge-res.
I hope that this mini guide help you, remember that you can make your theme based on this theme, will be easier i think.
Click to expand...
Click to collapse
Thanks to @potaturrias!

[MOD] Change 4G/H+/H/3G icons on your BUTTERFLY S

So guys ,
i've created this Mod to set Static Operator Icons (like iOS) .
In my opinion, static icons are more beautiful and these icons especially with great design for the graphic design. I don't like the tipical android operator icons with arrows up and down and bad resolution .
4G becomes LTE
H+ become H+(with checkmark)
no preview for now
H becomes H (with checkmark )
3g becomes 3G (restiled)
(all this icons, and others more, are natively contained inside Stock HTC Rom ...)
How to :
1.use the Root Explorer on your phone and navigate to the System/App folder, now COPY your SystemUI.apk to the SDCard folder.
2.Now plug your phone to your computer. I would suggest copying the SystemUI.apk to your Desktop and keep it as a backup, then copy another one to your Desktop for editing purposes.
3.Once you have copied one to your desktop, right click on it, and click on 7-Zip -> Open Archive. Navigate to res -> drawable-xxhdpi. Now Unzip the zip file you just downloaded from here, then drag those files here attached (without their folders) to the 7Zip window that you opened up. Click yes to overwrite, wait for the process to finish, then close the window.
4.Now copy that SystemUI.apk that it's in your desktop (your edited one) and paste it back to your phone's SDCard and overwrite the one that's there.
5.Now, open Root Explorer App, on the top, click where is says Mount R/W. Scroll down and tap on the sdcard folder. Find the SystemUI.apk, long press it then press copy. After that, press back, then go to the System/App folder. Once again, press the Mount R/W button, if it says Mount R/O then don't press that. Then simply paste the SystemUI.apk and hit yes when it asks you to overwrite it.
SystemUI might crash, don't worry about it.
6.After Device respring itself , return to Root Explorer App, Scroll down and find the newly upgraded SystemUI.Apk in the System/App folder, (be sure it says Mount R/O then don't press that) long press it and press Permissions.
Now set your permissions like this
X=Checked
O= Unchecked
X----X-----X
X----O----O
X----O----O
After that just Restart your phone!
That's it!
thx, will try it
thank
thanks for this
networmx34 said:
thanks for this
Click to expand...
Click to collapse
Hi can You post systemui.apk ready modded ??
tornado75 said:
Hi can You post systemui.apk ready modded ??
Click to expand...
Click to collapse
I have made a SystemUI.apk for easier to change the icon. Please follow the instruction above to apply.
View attachment SystemUI.apk
Phone need to be rooted s-off first and unlocked bootloader?

[Tutorial] Customize soft key height / navigation bar resize

This works on any Rooted Android device. I tried to make the guide easy for those who don't know much. Please backup before attempting this mod.
REQUIREMENTS:
1. ROOT
2. Install root browser on the device: https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree
3. Install Android Multitool the computer: http://www.mediafire.com/download/7px0d9i51cv5boc/AndroidMultitool_3.3.zip
TUTORIAL:
1. Use root browser and copy /system/framework/framework-res.apk to /sdcard
2. Save framework-res.apk from /sdcard to AndroidMultiTool Files folder in your computer
2. Now we need to Decompile the apk with AndroidMultiTool. Run AndroidMultiTool.exe
3. Under Decompling, select the framework-res.apk file and click decompile. Decompiled files will show up in Decompiled_apk folder
4. go to the folder Decompiled_apk/framework-res/res/values/
5. Open dimens.xml with notepad
6. change values for:
<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>
Use 25 for all dip values to match status bar; or use a bigger number for all three values to make them bigger. Then save.
7. Now we need to Compile the apk with AndroidMultiTool. Under Compiling, select the folder /decomplied_apk/framework-res and click OK. Then click compile. After it's done, you can close Android Multitool
8. Go to the original framework-res.apk in the Files folder and rename it to framework-res.zip
9. Open framework-res.zip and copy AndroidManifest.xml and META-INF folder to your desktop.
10. Go to compiled_apk/framework-res folder
11. Rename framework-res.apk to framework-res.apk.zip
12. Copy and replace AndroidManifest.xml and META-INF folder from your desktop in the framework-res.apk.zip
13. Rename framework-res.zip back to framework-res.apk
14. Copy framework-res.apk into your device /sdcard.
15. Then use root browers to copy and replace framework-res.apk into /system/framework
16. Your device will reboot by itself with the new smaller soft keys
REFERENCES AND THANKS TO:
Flextrick : http://forum.xda-developers.com/nexus-4/themes-apps/mod-customize-navigationbar-height-t2306742
Flextrick : http://forum.xda-developers.com/showthread.php?t=2326604
Charles Chow : http://chromloop.com/2013/07/how-to...on-bar-in-cyanogenmodcm10-1-on-nexus-4-guide/
there's also a way to enable the softkeys http://forum.xda-developers.com/galaxy-s3/themes-apps/mod-how-to-enable-soft-keys-t1960460.
the question is, after I enable the softkeys to my SGNote 3 would your instructions above work?
Update:
I tried your process, upon decompiling, the tool said that the .apk file is not found or is not readable -,-'
its not working.
Under framework-res folder no sub folder res creating, and in android multi tool log showing 7 errors relating with java. please get back to me.
Doesn't work for me
I try 3 times, always stuck on boot screen.
Not working, followed each steps with detailed.
Phone stuck in bootloop..
---------- Post added at 12:06 PM ---------- Previous post was at 12:03 PM ----------
barrugo said:
I try 3 times, always stuck on boot screen.
Click to expand...
Click to collapse
Sad
I've got a problem: This tool can't decompile framework-res.apk, says it can't find it! How do I resolve this?

Categories

Resources