[Android 5.1] How to mod file Framework-res.apk - Nexus 4 Q&A, Help & Troubleshooting

Same title, i wanna mod file framework-res.apk so resize navigation bar. My device was dead line touch panel.
tks all

tudo5696 said:
Same title, i wanna mod file framework-res.apk so resize navigation bar. My device was dead line touch panel.
tks all
Click to expand...
Click to collapse
The following method works for L 5.1. For 5.0.1 there is another way.
This will change the Navbar height:
1. decompile frameworks-res.apk
2. open framework-res/res/values/dimens.xml and look for the following variables and change to desired value:
navigation_bar_height
navigation_bar_height_landscape
navigation_bar_width
3. re-compile frameworks-res.apk
If you want to resize the icons too, then:
1. decompile SystemUI.apk
2. navigate to SystemUI/res/drawable-xhdpi/ and look for files starting with "ic_sysbar_" and resize them to your desired dimensions.
3. re-compile SystemUI.apk
cheers

greg17477 said:
The following method works for L 5.1. For 5.0.1 there is another way.
This will change the Navbar height:
1. decompile frameworks-res.apk
2. open framework-res/res/values/dimens.xml and look for the following variables and change to desired value:
navigation_bar_height
navigation_bar_height_landscape
navigation_bar_width
3. re-compile frameworks-res.apk
If you want to resize the icons too, then:
1. decompile SystemUI.apk
2. navigate to SystemUI/res/drawable-xhdpi/ and look for files starting with "ic_sysbar_" and resize them to your desired dimensions.
3. re-compile SystemUI.apk
cheers
Click to expand...
Click to collapse
i can't de-compile framework-res.apk. you can help me do it step by step. contact me: [email protected]. Big tks to you!

tudo5696 said:
i can't de-compile framework-res.apk. you can help me do it step by step. contact me: [email protected]. Big tks to you!
Click to expand...
Click to collapse
Sorry, but i won't do that for you Everything is here on xda and it's not hidden or something. Just read a bit, that's all.

greg17477 said:
Sorry, but i won't do that for you Everything is here on xda and it's not hidden or something. Just read a bit, that's all.
Click to expand...
Click to collapse
oh, tks. i will try

Related

[Q] can you change the size of the on screen buttons

i was wondering if there was a way to change the size of the soft buttons for home, back, ect. I was hoping to make them smaller as to not interfere with games and other apps. as well as making the home screen larger and better looking. please if any one has any info on this i would appreciate it. i am not a developer but do have lots of android experience so any info may be useful. Thanks
EDIT: with new firmware out if you have updated the frameworks posted here so far wont work. i am trying to get someone to post a new framework from the new firmware. Hopefully someone will. Thanks
The icons you're interested in are located in the drawable folder of the framework-res.apk (buttonbar_sys_*), along with the relevant xml files. I tried resizing the existing icons, but all you get is smaller icons! The buttonbar remains the same size. I'm currently looking at which xml file to edit to resize the bar itself.
cool looks like a start at least. keep me updated. thanks
You can remove side panel alltogether. Buttons will then placed in the top status panel. Root is needed.
From Archos Gen8 FAQ on 4pda.ru (can't posting outside links, sorry):
In the /data/local.prop file add string
Code:
ro.board.has_buttonbar=no
reboot
to change buttons size, install app LCD Density
add to local.prop sting
Code:
ro.sf.lcd_density=120
reboot
PS. Perhaps with modified buttons from reply #2 we don't need the last step, as it change font size too.
you can also use the app 'lcd density' to change the resolution of the screen, which makes the buttons smaller.
tashtego said:
You can remove side panel alltogether. Buttons will then placed in the top status panel. Root is needed.
From Archos Gen8 FAQ on 4pda.ru (can't posting outside links, sorry):
In the /data/local.prop file add string
Code:
ro.board.has_buttonbar=no
reboot
Click to expand...
Click to collapse
This (and other system settings) can also be found here at XDA
to change buttons size, install app LCD Density
add to local.prop sting
Code:
ro.sf.lcd_density=120
reboot
Click to expand...
Click to collapse
Just to clarify, you either need to add that string to local.prop or install LCD Density, no need for both. The only problem with this is that it changes the size of the entire UI, and makes the icons in the status bar really tiny. That really bugs me!
PS. Perhaps with modified buttons from reply #2 we don't need the last step, as it change font size too.
Click to expand...
Click to collapse
There are different images for the icons in the notification bar. They are also in the drawable folder, but are called stat_sys_*. Also, simply resizing those doesn't work either. Tried it, but the icon area stays the same, so the smaller icons are just stretched out to fill the space - doesn't look good!
Why all the guys want to kill the softbuttons?
Without them, it don´t work
The only thing is bad on the buttons is the fact that they still there by playing games
But on my Archos 5 IT , theres an fullscreen mode with that you can disable the bar/buttons by playing games.. maybe a dev can look at it
Lennb said:
Why all the guys want to kill the softbuttons?
Without them, it don´t work
The only thing is bad on the buttons is the fact that they still there by playing games
But on my Archos 5 IT , theres an fullscreen mode with that you can disable the bar/buttons by playing games.. maybe a dev can look at it
Click to expand...
Click to collapse
no, kill them than install softkeys, it works for me, no any problem^^
Reading through gen8 thread on 4pda.ru i have found another method:
For example, for 32px notification bar height, unpack framework_res.apk and change file \res\values-long-mdpi\dimens.xml as follows:
Code:
<dimen name="full_statusbar_height">32.0px</dimen>
<dimen name="compact_statusbar_height">32.0px</dimen>
<dimen name="statusbar_button_width">40.0px</dimen>
<dimen name="statusbar_button_height">32.0px</dimen>
And don't forget string "ro.board.has_buttonbar=no" in the \data\local.prop
No need to resize images. They will be scaled down automatically.
See attached screens.
ahh looks like progress , im guessing im going to need root if i want to change the framework_res.apk? which one is best for this archangle, uruk or churlis method?
tashtego said:
Reading through gen8 thread on 4pda.ru i have found another method:
For example, for 32px notification bar height, unpack framework_res.apk and change file \res\values-long-mdpi\dimens.xml as follows:
Code:
<dimen name="full_statusbar_height">32.0px</dimen>
<dimen name="compact_statusbar_height">32.0px</dimen>
<dimen name="statusbar_button_width">40.0px</dimen>
<dimen name="statusbar_button_height">32.0px</dimen>
And don't forget string "ro.board.has_buttonbar=no" in the \data\local.prop
No need to resize images. They will be scaled down automatically.
See attached screens.
Click to expand...
Click to collapse
Can you attach your moded framework-res.apk? I have an A70S if that matters. I don't knw how to mod the xml myself so please help out
tashtego said:
Reading through gen8 thread on 4pda.ru i have found another method:
For example, for 32px notification bar height, unpack framework_res.apk and change file \res\values-long-mdpi\dimens.xml as follows:
Click to expand...
Click to collapse
Nice find, thank you so much for sharing. Was still looking at xml files in the drawable folder.
Bickmista said:
ahh looks like progress , im guessing im going to need root if i want to change the framework_res.apk? which one is best for this archangle, uruk or churlis method?
Click to expand...
Click to collapse
Won't work with Archangel root, as that doesn't allow you to make changes to system files.
saprano614 said:
Can you attach your moded framework-res.apk?
Click to expand...
Click to collapse
Will be making some changes to my custom framework, so check out my thread over the next few days.
i need A framework for an 70it. I don't think that the one for a 101 will work on mine. But I don't know.
fisha21 said:
Won't work with Archangel root, as that doesn't allow you to make changes to system files.
Click to expand...
Click to collapse
cheers just one more question, would this work on the A43?
Attaching zipped framework apks, 32px and 24px versions fo 70IT, courtesy by bokorez from 4pda.ru. He used rooting method from here: http://forum.xda-developers.com/showthread.php?t=930197 (permanent r/w). I myself now only waiting for tablet, so i can't check files yet. Use it for your own risk please
It would be fine if somebody much knowledgeable than me would explain here, how to upload these files on the device.
Thanks alot. that helped out a great deal.
EDIT: I think that both are the same. i used them both and they worked but both changed the size to the same. i think that they are both 32px.
tashtego said:
Reading through gen8 thread on 4pda.ru i have found another method:
For example, for 32px notification bar height, unpack framework_res.apk and change file \res\values-long-mdpi\dimens.xml as follows:
Code:
<dimen name="full_statusbar_height">32.0px</dimen>
<dimen name="compact_statusbar_height">32.0px</dimen>
<dimen name="statusbar_button_width">40.0px</dimen>
<dimen name="statusbar_button_height">32.0px</dimen>
And don't forget string "ro.board.has_buttonbar=no" in the \data\local.prop
No need to resize images. They will be scaled down automatically.
See attached screens.
Click to expand...
Click to collapse
Ok I can't find that file in the framework-res.apk. there is no values-long-mdpi folder. A little help
saprano614 said:
Ok I can't find that file in the framework-res.apk. there is no values-long-mdpi folder. A little help
Click to expand...
Click to collapse
I don't know why, but if you open apk with archiver program, there is really no such folder, but if use
Code:
apktool -v d -s framework-res.apk
you get:
Code:
$ ls framework-res/res/values-long-ldpi/
dimens.xml
I think that both are the same. i used them both and they worked but both changed the size to the same. i think that they are both 32px.
Click to expand...
Click to collapse
No, they are different. File framework-res/res/values-long-ldpi/dimens.xml are the same in both versions and contain "24.0px" value (this is error, i suppose). Files framework-res/res/values-long-mdpi/dimens.xml are different and contain "24.0px" and "32.0px" values in 24- and 32-version respectively.
It seems i need to sort it out with the author on 4pda.ru, as i don't have device yet. Or you can try to change file dimens.xml in the folders values-long-* by yourself.
tashtego said:
Attaching zipped framework apks, 32px and 24px versions fo 70IT, courtesy by bokorez from 4pda.ru. He used rooting method from here: http://forum.xda-developers.com/showthread.php?t=930197 (permanent r/w). I myself now only waiting for tablet, so i can't check files yet. Use it for your own risk please
It would be fine if somebody much knowledgeable than me would explain here, how to upload these files on the device.
Click to expand...
Click to collapse
Very happy with the 32px framework!
Next step is to get button savior working properly (return and menu and search get disable themselves after a while , only home keeps working... ) and get completely rid of those buttons on the side AND in the bar
sibere said:
Next step is to get button savior working properly
Click to expand...
Click to collapse
Not sure if you saw the following posts on the enable system settings thread?
yepayepa said:
Mates,
I've investigated why Button Savior won't work, and I've found the solution.
In Uruk (since I'm using it), /system/bin/input shell script miss execute attributes.
So, as root just do this:
chmod +x /system/bin/input
That's all.
Cheers.
Click to expand...
Click to collapse
aznmode said:
Ok so here's exactly what I have to do to get all button on Button Savior to work.
Again I'm rooted via SDE so I'm not sure if this works for Archangel root.
1. With Root explorer, go to System> Bin and look for "input" file.
2. Press and hold for option to pop up and select "Permissions" and check all read, write, etc.
3. Reboot the device
4. Then press the regular Menu button (NOT on Button Savior yet) and go to Settings> Applications> Development then uncheck and recheck USB Debugging and hit OK.
5. Now on Button Savior press the either back or menu button.
6. The Superuser permission will pop up and select yes. If superuser is already set previously then a dialog box will shortly appear stating superuser permission applied.
7. Wait till the dialog box goes away, then press the back button. It should now back up one screen. If you press menu nothing will happen since you are in the Development screen which doesn't have a menu option so don't panic if that happens.
From here you can go back to home and test each button and they should all work now.
Each time you reset the buttons might not work again so what you need to do is go back and uncheck/recheck debugging first before pressing any of the Button Savior buttons. If you press any of Button Savior before recheck/unchecking debugging then it wont work. You'll need to reboot. To be safe uncheck/recheck it every reboot prior to using Button Savior.
The permissions should not be affected on reboot. The only time the permission gets unchecked is if you do the 10 second reset (holding power button for 10 seconds). In this case you have go back to step 1.
Click to expand...
Click to collapse

[Q] Icon change help

I am trying to make a CyanogenMod icon theme and I need to ask a few questions:
What do you do if you want to change icons of an app on SD? Do you push and then make a folder?
How do you change the icons of Google Apps (ie Play Store, Gmail)?
Can anyone help me?
1 decompile the apk,
2 navigate to res/drawable-ldpi/
and locate for the icon,
3 change, edit, and paste with your desired icon (make sure that it is proportional to the old one),
4 recompile the apk
deathnotice01 said:
1 decompile the apk,
2 navigate to res/drawable-ldpi/
and locate for the icon,
3 change, edit, and paste with your desired icon (make sure that it is proportional to the old one),
4 recompile the apk
Click to expand...
Click to collapse
It's so simple... Thanks for the help
But how to make it into flashable zip?
make a edifier script
Code:
package_extract_dir("system", "/system");
check out kuro's guide in the general section on how

[MOD] Add top number row to Swype

Hello guys,
Since I use a Samsung device, I'm used to the extra number row on top of the keyboard so I modded Swype to have that extra row. However since Swype is to be purchased and not distributed, I'll only tell here how to do it for your legally purchased copy. And this is a bit complicated and for advanced users and you need to be rooted. You also need Root Explorer. Here we go:
1- First buy/download Swype from Google Play.
2- Go to /mnt/asec/com.nuance.swype.dtc-1 folder, copy pkg.apk to your sdcard, rename it to com.nuance.swype.dtc-1.apk.(keep a backup of this file at all times)
3- Go to /mnt/asec/com.nuance.swype.dtc-1/lib folder copy the files (libnmsp_speex.so and libswypecore.so) to your sdcard.
4- Using apktool (I used version 1.52) decompile com.nuance.swype.dtc-1.apk.,
5- Go to decompiled folder\res\xml folder. kbd file pertaining to your language is to be edited, I edit kbd_qwerty.xml for English using Notepad++.
6- Check the attached kbd_qwerty.xml in portrait folder and notice the extra row section I added to the top. You can in fact add secondary characters to numbers or customize the keyboard completely, rearrange letters, add symbols etc.
7- Once done, save the file and go to decompiled folder\res\xml-land folder and edit the landscape for the layout, kbd_qwerty.xml file, notice the attached file in landscape folder.
8- Once done, save the file and go to decompiled folder\res\values folder and edit the dimens.xml file. Here I raise the height of the keyboard and height of the key to 270dip and 54dip respectively, check the top rows of the attached dimens.xml. Also increase the keyboard height for landscape (if you want) by changing the dimens.xml under res\values-land folder.
9- Once done, recompile the folder with apktool, go to decompiled folder\dist folder and copy the apk here to a different folder and rename it to temp.apk.zip
10- Open temp.apk.zip with 7z/winrar and copy the resources.arsc and kbd_qwerty.xml files from res\xml and res\xml-land folders to your PC(obviously keep the 2 files in seperate folders not to overwrite)
11- Then, rename the original apk from step 2 to com.nuance.swype.dtc-1.apk.zip , open with winrar and first delete resources.arsc file, then drag the resources.arsc file from step 10 to the archive, it will be added. Staying in winrar, go to res\xml folder and replace the file with kbd_qwerty.xml from step 10 (the portrait version). Do the same with res\xml-land folder and the landcape file.
12- Once finished rename the file back to com.nuance.swype.dtc-1.apk, don't sign it, don't delete META-INF folder, leave it as it is.
13- Now, on your phone, uninstall Swype. Reinstall it from the apk file on Step 2. Go to /data/app-lib/com.nuance.swype.dtc-1 folder and move the 2 files (libnmsp_speex.so and libswypecore.so) to system/lib folder. You have to mount the System R/W from Root Explorer on this step. Fix the permissions so these 2 files have the same permissions with other files there. If you can't find these files just use the ones from Step 3.
14- Once done, copy com.nuance.swype.dtc-1.apk from Step 12 to /system/app and fix the permissions so that it has the same permissions as other files there.
15- Then delete the com.nuance.swype.dtc-1.apk from /data/app/ folder. Restart your phone.
This should be it if you followed it exactly, tracing and Dragon voice dictation also works. While you're doing all this work (takes 10 minutes by the way), you might also consider changing how Swype looks (theming) and changing many other things like swype thickness, colors etc. Please note that this is for advanced and rooted users and please don't ask me to give you the modded apk, you have to do it on your legally bought version. You might consider doing backups just in case anything goes wrong. Have fun.
And a quick tip: if you swype from swype icon to symbol key(123), arrow keyboard opens up.
You can also add arrow keys by copying arrow keys from kbd_edit.xml, check the 2nd screenshot.
Please hit the thanks button if you think this is useful.
Nice how to. But may u should tell that the latest Android versions store purchased apps in data/app-asec as asec version, this need special procedure to get a apk from the asec format.
Can you please update this tutorial to 4.3 ? I couldn't find the files in the mentioned paths. . I'm on stock rooted 4.3 on gt9500
Sent from my GT-I9500 using XDA Premium 4 mobile app
lesalloum said:
Can you please update this tutorial to 4.3 ? I couldn't find the files in the mentioned paths. . I'm on stock rooted 4.3 on gt9500
Sent from my GT-I9500 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
It works same for me on 4.3 stock rooted i9500, maybe you could do a file search to find the necessary folder. Here is another screenshot with the updated Swype(1.6.2.22328), where I made number buttons smaller like original Samsung Keyboard and hide the suggestions bar to save space.
ozkaya said:
Hello guys...
9- Once done, recompile the folder with apktool, go to decompiled folder\dist folder and copy the apk here to a different folder and rename it to temp.apk.zip
....
Click to expand...
Click to collapse
using the current play store version (1.6.3.22544), i decompiled com.nuance.swype.dtc-1.apk (/mnt/asec/com.nuance.swype.dtc-1/pkg.apk) using APKTool 1.52. i made no changes and attempted to recompile without success.
the first error displayed by apktool is:
"C:\Users\Phil\apktool\com.nuance.swype.dtc-1\res\values\arrays.xml:545: error: Found tag dimen-array where item is expected"
i do use APKTool successfully to mod other apps so i am familiar with the process.
QUESTION: what frameworks file are you using when making your mods? are you using a TW ROM frameworks? that's the only other variable i can think of...
EDIT: well, i just tried using TW framework too without success
PhilDX said:
using the current play store version (1.6.3.22544), i decompiled com.nuance.swype.dtc-1.apk (/mnt/asec/com.nuance.swype.dtc-1/pkg.apk) using APKTool 1.52. i made no changes and attempted to recompile without success.
the first error displayed by apktool is:
"C:\Users\Phil\apktool\com.nuance.swype.dtc-1\res\values\arrays.xml:545: error: Found tag dimen-array where item is expected"
i do use APKTool successfully to mod other apps so i am familiar with the process.
QUESTION: what frameworks file are you using when making your mods? are you using a TW ROM frameworks? that's the only other variable i can think of...
EXIT: well, i just tried using TW framework too without success
Click to expand...
Click to collapse
Latest version of Swype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
ozkaya said:
Latest version of Skype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
Click to expand...
Click to collapse
i'll give this a shot tomorrow, thanks a lot!
ozkaya said:
Latest version of Swype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
Click to expand...
Click to collapse
it works!!!
thanks man, appreciate the help and info!
I've been going nuts trying to edit swype for a week now and still can't seem to get it to work. All I want to do is change the suggested word color and maybe a few other minor color related things. I assumed just changing the color codes in /res/values/styles.xml that seemed to pertain to the holo theme would work but I can't ever get the app to install. Not even sure where to begin to ask for help on this one but if anyone has any advice I'd greatly appreciate it.
Ok I've tried this a hundred times following all the steps completely and it just wont work.
Once I go to install the final apk it always tries to install then sais App Not Installed.
TeknoGodz said:
Ok I've tried this a hundred times following all the steps completely and it just wont work.
Once I go to install the final apk it always tries to install then sais App Not Installed.
Click to expand...
Click to collapse
You don't install the final apk, in fact you can't since the certificate is no longer valid. You copy the final apk in place as in Step 14.
I would love this! I have used Swype for years but I would love a number row. To be honest I have no idea how to follow those instructions! I have a rooted phone - what can I do?
Am I right in concluding that you can't use TB to backup and restore the finished product and this will have to be done manually? I did this on my rooted Note 3 and I keep going back to my stock image because I don't want to have to keep doing the steps when I flash a new ROM or ROM update.
Would I maybe just have to do steps 12 onward every time?
mr.BeBoT said:
Am I right in concluding that you can't use TB to backup and restore the finished product and this will have to be done manually? I did this on my rooted Note 3 and I keep going back to my stock image because I don't want to have to keep doing the steps when I flash a new ROM or ROM update.
Would I maybe just have to do steps 12 onward every time?
Click to expand...
Click to collapse
When you install a new ROM, you install original Swype from apk file then you move the lib files to /system/lib, copy the modded apk to /system/app and delete original apk from /data/app folder. So it is 4 steps once you have the modded apk ready, should take no more than 5 minutes.
thumm138 said:
I've been going nuts trying to edit swype for a week now and still can't seem to get it to work. All I want to do is change the suggested word color and maybe a few other minor color related things. I assumed just changing the color codes in /res/values/styles.xml that seemed to pertain to the holo theme would work but I can't ever get the app to install. Not even sure where to begin to ask for help on this one but if anyone has any advice I'd greatly appreciate it.
Click to expand...
Click to collapse
This is similar. Please go through the steps, you don't (can't) install the modded apk, you move it in place.
ozkaya said:
This is similar. Please go through the steps, you don't (can't) install the modded apk, you move it in place.
Click to expand...
Click to collapse
Yeah I realized that after I posted and still nothing. I'm no programmer but I've never NOT been able to change a few things and recompile. Not sure how just changing a few color codes is causing such a problem. Shame such a nice keyboard has such little customization and few themes. Don't get me wrong I like orange but it really doesn't mesh at all with the rest of the UI. Thanks for the reply though.
ozkaya said:
This is similar. Please go through the steps, you don't (can't) install the modded apk, you move it in place.
Click to expand...
Click to collapse
I did all that and it changed the height of the keyboard, but didn't add any additional number row.
kdb_qwerty or whatever it's called is the default that comes up when you install it, right? Becuase I tried again and specifically made sure to use this one and it just wont give me the extra row, just the height.
TeknoGodz said:
I did all that and it changed the height of the keyboard, but didn't add any additional number row.
kdb_qwerty or whatever it's called is the default that comes up when you install it, right? Becuase I tried again and specifically made sure to use this one and it just wont give me the extra row, just the height.
Click to expand...
Click to collapse
It depends on your system language. Try kbd_qwerty_panlatin.xml.
ozkaya said:
Latest version of Swype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
Click to expand...
Click to collapse
Thank you for this change, this is exactly what I was looking for to compile.
Once again my Swype is blue!!! :victory:
here's my creation, what do you guys think?
the theme is "Lucid" from the pay store: https://play.google.com/store/apps/...lucid&pcampaignid=APPU_8szYUoedK9PNsAThnoDQDQ

[GUIDE] Remove/change gradient on navbar and statusbar- Change navbar icons [ROOT]

A very simple guide on removing the disgusting shadow effect on the homescreen, plus changing the icons in the navbar.
EDIT: Useless guide. Every change can be made using themes. Coming from a N5 confuses me too much. Thanks @vobiscum
Since usually we would make this changes in xposed, and since xposed is not aviable (for now, I hope), we need to change some png images in the SystemUi.apk container located in #/system/priv-app/systemui folder.
This is just one way to achieve our goal, I made it supereasy for beginners.
Attention: don't extract and compress again any system apks with 7zip or similar programs: it will result in a bootloop. Just replace the needed images directly in the container. If you need to do something else, google APK-Tool.
1)Get a root explorer from googleplay. I'm using FX File Manager (it needs a plugin for root privileges);
2)Go to #/system/priv-app/systemui folder and copy systemui.apk;
3)Paste it in a pc-redeable partition or in the external sd;
4)Get the file and extract it with 7zip or winrar. Don't delete the systemui.apk imported.
5)Navigate in the excracted folder and get the files you want.
---Gradients are located in res/drawable-xxhdpi-v4, their names are: nav_background.9.png and status_background.9.png.
---Navbar Icons are located in res/drawable-xxhdpi-v4 and drawable-ldrtl-xxhdpi-v4.
6)Open the files with Photoshop or Gimp and edit them on your taste. Want a ghost navbar? Do it.
7) Drag and drop the modified files in the Systemui.apk according to their original locations;
8)Put the modified file on your sd/phone;
9)IMPORTANT: DO A BACKUP VIA TWRP
10)Copy-paste via root-explorer the SystemUi.apk back in place. It may be requested to remount the folder in r/w.
11) DONE! If you get some lag/problems, just reboot. If it bootloops, go for twrp.
nice work there, some genuinely earned thanks :good:
it will result in a bootloop
Click to expand...
Click to collapse
i guess this is to do with the odexed apk's..?
sminki said:
i guess this is to do with the odexed apk's..?
Click to expand...
Click to collapse
I think that is to do with zipaligning, but don't ask me further, I'm pretty noob about this. I know that many apks works well even after they are recompiled as a zip; but some resources need a particular procedure. This way avoids any problem due to recompiling.
For editing xml, I generally use APKtool and replace the original META-INF folder and AndroidManifest.xml, this is the proper way to recompile it (http://forum.xda-developers.com/showthread.php?t=2203166).
Smokehrbar88 said:
I think that is to do with zipaligning, but don't ask me further, I'm pretty noob about this. I know that many apks works well even after they are recompiled as a zip; but some resources need a particular procedure. This way avoids any problem due to recompiling.
For editing xml, I generally use APKtool and replace the original META-INF folder and AndroidManifest.xml, this is the proper way to recompile it (http://forum.xda-developers.com/showthread.php?t=2203166).
Click to expand...
Click to collapse
Man made a theme is too easy no need root
https://plus.google.com/+MassimoBotta/posts/27CAAv91Lth
vobiscum said:
Man made a theme is too easy no need root
https://plus.google.com/+MassimoBotta/posts/27CAAv91Lth
Click to expand...
Click to collapse
So you can change navbar icons with a theme? Well, damn me. Damn Haweii. How about other pngs in SystemUi.apk (for example the gradient?)
Not useless, and to be honest, I prefer getting my hands dirty pulling things apart rather than relying on other people, gives you a better understanding of how things work

HELP! How to edit ICON SPACING in SystemUI

Hey guys! I just wanted to share my problem.
I want to edit the icons in status bar. I search it on Google on how to edit the icon spacing in the status bar and they say you need to edit "dimens.xml" but when I try to extract my systemui, I haven't seen that file. Which file do I need to edit? And what tools should I use in order to edit it? I'm using Motion rom anyway. Thanks in advance

			
				
Try to use Apktool
dnjscjf098 said:
Try to use Apktool
Click to expand...
Click to collapse
How??
how to use from apktool
Keith Empeynado said:
Hey guys! I just wanted to share my problem.
I want to edit the icons in status bar. I search it on Google on how to edit the icon spacing in the status bar and they say you need to edit "dimens.xml" but when I try to extract my systemui, I haven't seen that file. Which file do I need to edit? And what tools should I use in order to edit it? I'm using Motion rom anyway. Thanks in advance
Click to expand...
Click to collapse
you should install apktool to your pc
after finish install and installing rom framework
decompile apk file and go to ../res/values/dimens.xml
then u can control your app spaces size and dimens
after finish editing !
you should compile again apk file then sign it and use !
mhs5941 said:
you should install apktool to your pc
after finish install and installing rom framework
decompile apk file and go to ../res/values/dimens.xml
then u can control your app spaces size and dimens
after finish editing !
you should compile again apk file then sign it and use !
Click to expand...
Click to collapse
Thank you!!
Ill try.

Categories

Resources