HELP! How to edit ICON SPACING in SystemUI - Galaxy Grand 2 Q&A, Help & Troubleshooting

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.

Related

How to change text labels in ext. power menu (to replace download with screenshot)

Ok, here is the idea. Since the Download option in the Extended Power Menu is working, but will give you a non working download mode. I thought why not replace it with a Screenshot function?
I've already successfully replaced the function and the icon, but it still says Download. in the tutorial I followed they say edit this file:
res/values/strings.xml which should be in framework-res.apk
but the file does not exist! Does someone know how to change it then?
Edit: Added a screenshot!
Edit2: Never mind! I forgot to decompile with APK Manager I'll post the download soon
Edit3: framework-res.apk gives me a bootloop somehow.. hmm I followed the steps correctly
Can someone please do the following things because I get a bootloop after only changing the text "Download"
1. Put framework-res.apk in /place-apk-here-for-modding/ and start APK Manager, press 9
2. Go to projects/framework-res.apk/res/values and open strings.xml in notepad
3. Scroll to the bottom and change:
<string name="reboot_download">Download</string>
to
<string name="reboot_download">Screenshot</string>
4. Now when you are in APK Manager press 11
5. The output will be /place-apk-here-for-modding/unsignedframework-res.apk
Please send me that file. Thanks in advance
i'd like to help but all i can find looking for apk manager are links to megaupload
here you go
in public.xml theres a reference to reboot_download. i don't really know but if its not needed you could delete it probably?
<public type="string" name="reboot_download" id="0x010404c2" />
edit: i'd like to point out the part with "i don't really know"
to change something in the extended power menu you have to edit more than just the framework file
because in the framework file there are only the images
well im not sure but I know you have to decompile the classes.dex in a file
maybe it's the systemui.apk
when I'm back home I can tell you more
Sent from my GT-I9001 using XDA App
EDIT:
okay to change the function of the option Download you have to edit the file android.policy.jar
I already changed the function and the icon. but when I change the text from Download to Screenshot and then compile it I get a bootloop
okey i tried to compile it
here you go
Blumdum said:
okey i tried to compile it
here you go
Click to expand...
Click to collapse
Thanks gonna try it now.
Edit: Thanks! It works !
People behold a screenshot function

Remove Samsung "shortcut bar"

Hi,
I really don't use (or like) the "shortcut bar" that is in the H3.2 builds from Samsung.
I'm running Overcome 2.3.0, but is it possible to remove the Samsung crap and have a clean task bar?
(or install this: https://market.android.com/details?id=com.snowbee.wizzbar)
Thanks in advance
the only way is to edit a couple of xmls in the systemui apk
BroBot175 said:
the only way is to edit a couple of xmls in the systemui apk
Click to expand...
Click to collapse
Okay, is there a guide or something on how to do it, somewhere?

How Can I ?

Can AnyOne Teach Me How Can I change icons In A Launcher
CHETAN TUTEJA said:
Can AnyOne Teach Me How Can I change icons In A Launcher
Click to expand...
Click to collapse
use apktool to decompile the apk and then in res/drawable and res/drawable-ldpi change the images you want. make sure that you dont change the image name and images with extension .9.png. recomplie and use it.
Lemme Try
Trying
use themes
amit34521 said:
use apktool to decompile the apk and then in res/drawable and res/drawable-ldpi change the images you want. make sure that you dont change the image name and images with extension .9.png. recomplie and use it.
Click to expand...
Click to collapse
why we can't change .9.png image?
Failure
It Didn't Work Icons Are Still The Same
IT Is Like SOme Icons Different In One Launcher And Different in Other?
CHETAN TUTEJA said:
It Didn't Work Icons Are Still The Same
IT Is Like SOme Icons Different In One Launcher And Different in Other?
Click to expand...
Click to collapse
you have to change the icons of the apps themselves, some launchers don't use the app's icons, but their own
---------- Post added at 09:02 AM ---------- Previous post was at 09:00 AM ----------
amit34521 said:
use apktool to decompile the apk and then in res/drawable and res/drawable-ldpi change the images you want. make sure that you dont change the image name and images with extension .9.png. recomplie and use it.
Click to expand...
Click to collapse
why not change 9 patch png's? as long as you have the black borders, it'll work
mjz2cool said:
you have to change the icons of the apps themselves, some launchers don't use the app's icons, but their own
---------- Post added at 09:02 AM ---------- Previous post was at 09:00 AM ----------
why not change 9 patch png's? as long as you have the black borders, it'll work
Click to expand...
Click to collapse
but for that you must know how to edit them properly else you will face problems.
amit34521 said:
but for that you must know how to edit them properly else you will face problems.
Click to expand...
Click to collapse
yeah, true
?
So what can i do
U just wanna change the icons right?
U dobt need to mess with .9.png
Its easy to edit them though but its not needed for changing the launcher icons...
First thing is...
U need 7zip program
Now choose the app u wanna change the icon off
Right click the app and open it with 7zip
Browse into the "res" folder and drag and drop the drawable-ldpi to a location where u can edit it
I choose the desktop
Now in the drawable ldpi folder ull have a pic named "ic_launcher_icon.png"
Or sumthing resembling to this as its diff in some apps
Edit that image and open the apk with 7zip again and drag and drop only the edited pic in the res/drawble-ldpi/
Push the apk using adb or by root explorer...
Ur done
Happy to help
Hmm
But There Are Not All The Apps Icons In Drawable ldpi So What Can I Do Them
Every app has individual icon
U have to open every apps drawable ldpi and edit the icons...
A easier way is to download a icon pack for the specific device
Open the flashable zip
Ull have a "unpack" folder
There will be many folders named "app.apk"
app=name of apps
Try using the ics icon pack for galaxy y
In these folders ull have the images....edit the images and zip it again...FLASH
and its done
Sent from my GT-S5360 using xda app-developers app

[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

[Android 5.1] How to mod file Framework-res.apk

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

Categories

Resources