[GUIDE][MOD] Enable navigation bar 4.2.2 - Galaxy S 4 i9505 Android Development

This is a quick dev guide to enable navigation bar for S4.
Decompile SystemUI.apk go to res/values/drawables and add:
Code:
[COLOR=#8b008b]<item [COLOR=#ff0000]type[/COLOR][COLOR=#0000ff]="drawable"[/COLOR] [COLOR=#ff0000]name[/COLOR][COLOR=#0000ff]="tw_navigationbar_bg"[/COLOR]>[/COLOR]#ff000000[COLOR=#8b008b]</item>[/COLOR]
Now download attached files and copy files to corresponding folders in SystemUI.apk if folder does not exist(drawables-xhdpi) create it.
Compile SystemUI.apk and push to device (nothing will happen yet) Just to check device boots fine.
Now use any buil.prop editor and add line:
Code:
qemu.hw.mainkeys=0
You can also enable it now through framework-res method.
Reboot and your done.
Please hit thanks and give credits.

Hi OP,
This looks just what I've been waiting for - if only there was a way to disable the stock menu and back buttons; my only gripe with the S4 is that I'm always touching one of theses buttons accidentally

JibbaJoy said:
Hi OP,
This looks just what I've been waiting for - if only there was a way to disable the stock menu and back buttons; my only gripe with the S4 is that I'm always touching one of theses buttons accidentally
Click to expand...
Click to collapse
This can easily be done when I find time I will add how to.
Sent from my GT-I9505 using xda premium

works perfect but no text under buttons below could you add them

I can´t find the /values/drawables after extracted the SystemUI.apk ? And where to add the following code please.
<item type="drawable" name="tw_navigationbar_bg">#ff000000</item>
missing /values/drawables
https://dl.dropboxusercontent.com/u/41923164/Untitled.png

janjan said:
I can´t find the /values/drawables after extracted the SystemUI.apk ? And where to add the following code please.
<item type="drawable" name="tw_navigationbar_bg">#ff000000</item>
missing /values/drawables
https://dl.dropboxusercontent.com/u/41923164/Untitled.png
Click to expand...
Click to collapse
you have to put <item type="drawable" name="tw_navigationbar_bg">#ff000000</item> inside drawables.xml, you can find it under decompiled SystemUI.apk /res/values
edit: copy the files to SystemUI.apk/res and add the line qemu.hw.mainkeys=0 with root explorer (text editor mode) in build.prop

bruzski said:
you have to put <item type="drawable" name="tw_navigationbar_bg">#ff000000</item> inside drawables.xml, you can find it under decompiled SystemUI.apk /res/values
edit: copy the files to SystemUI.apk/res and add the line qemu.hw.mainkeys=0 with root explorer (text editor mode) in build.prop
Click to expand...
Click to collapse
But after decompiled SystemUI.apk. /res/values is missing. Se the picture which i post above. thanks

janjan said:
But after decompiled SystemUI.apk. /res/values is missing. Se the picture which i post above. thanks
Click to expand...
Click to collapse
decompiled SystemUI.apk doesn't seem complete !! do you get errors while decompiling ? what version of apktool do you use?

I am using APK-Multi-Tool-Stable-RELEASE which is the latest version. no error during decompiling.. Which version do you use? Iam going to decompile it once again.
Edit.. still missing https://dl.dropboxusercontent.com/u/41923164/missing.png

i use ApkManager V6.1, works great!

Deleted

it seems this method is not working for me. i followed the instructions on the OP
include framework-res.apk, twframework-res.apk with "apktool if"
decomplie systemui.apk
modify res/values/drawables.xml to include <item type="drawable" name="tw_navigationbar_bg">#ff000000</item>
copy and replace files from the Navigation.zip into the res folder
recompile systemui.apk
i get a lot of @Styles errors and no default warnings when i try to compile
I tried using both latest version of apktool v152 and aapt from feb 2013 method and apkmanager v6.1 method and the results are the same
after i cleared the @style warnings with the "+" solution I am able to compile systemui.apk but when I copy it onto my device I lost the status bar and I still cant enable the navigation bar.
anyone else getting the same results?
TIA

Decompile errors
I'm trying to decompile SystemUI.apk (copied it from my phone "system\app" to "\place-apk-here-for-modding" folder) using ApkManager V6.1.
I'm getting an error message. Can somebody help please ? Log is attached.
Thanks!

Ok. I was able to decompile SystemUI.apk using ApkManager V6.1. The problem was in missing framework-res.apk and twframework-res.apk in "apktool" folder.
Now I'm getting errors on apk compilation. Please take a look at the attached log file. What am I missing now ?
Thank you!

hocgwai said:
it seems this method is not working for me. i followed the instructions on the OP
include framework-res.apk, twframework-res.apk with "apktool if"
decomplie systemui.apk
modify res/values/drawables.xml to include <item type="drawable" name="tw_navigationbar_bg">#ff000000</item>
copy and replace files from the Navigation.zip into the res folder
recompile systemui.apk
i get a lot of @Styles errors and no default warnings when i try to compile
I tried using both latest version of apktool v152 and aapt from feb 2013 method and apkmanager v6.1 method and the results are the same
after i cleared the @style warnings with the "+" solution I am able to compile systemui.apk but when I copy it onto my device I lost the status bar and I still cant enable the navigation bar.
anyone else getting the same results?
TIA
Click to expand...
Click to collapse
I just noticed that I have exactly the same problem as you are. Were you able to get it working ?

Its is more difficult decompiling and recompiling S4 SystemUI and I don't have time to write a tut now so 2 options
Use this you can turn nav bar on off with settings app or
Use this SystemUI.apk I have done the work for you it will recompile as normal and the only mod is %battery apart from that it is stock.

gharrington said:
Its is more difficult decompiling and recompiling S4 SystemUI and I don't have time to write a tut now so 2 options
Use this you can turn nav bar on off with settings app or
Use this SystemUI.apk I have done the work for you it will recompile as normal and the only mod is %battery apart from that it is stock.
Click to expand...
Click to collapse
Thank you !
One question before I proceed with your advice. I have Canadian SGH-I337M version with rooted stock I337MUMUAMDJ rom.
Can I use your SystemUI.apk (%battery mode) with my ROM ?

fmark said:
Thank you !
One question before I proceed with your advice. I have Canadian SGH-I337M version with rooted stock I337MUMUAMDJ rom.
Can I use your SystemUI.apk (%battery mode) with my ROM ?
Click to expand...
Click to collapse
People have reported this working but just make a backup first nothing ventured nothing gained
All I do is have 2 zips on my sdcard the original and the modded one if the mod fails simply boot into recovery and reflash original it takes 1 min to be up and running again

fmark said:
Ok. I was able to decompile SystemUI.apk using ApkManager V6.1. The problem was in missing framework-res.apk and twframework-res.apk in "apktool" folder.
Now I'm getting errors on apk compilation. Please take a look at the attached log file. What am I missing now ?
Thank you!
Click to expand...
Click to collapse
If you get an error in decompiling the apk, remove the "system_bar_settings_view.xml" and "system_bar_notification_panel_title.xml" from the layout folder
(SystemUI.apk\res\layout\). Don't forget to put the files back after compiling the modded statusbar.
:fingers-crossed:

bruzski said:
If you get an error in decompiling the apk, remove the "system_bar_settings_view.xml" and "system_bar_notification_panel_title.xml" from the layout folder
(SystemUI.apk\res\layout\). Don't forget to put the files back after compiling the modded statusbar.
:fingers-crossed:
Click to expand...
Click to collapse
Decompiling is fine - no errors. I'm getting errors when compiling.
---------- Post added at 07:29 AM ---------- Previous post was at 07:26 AM ----------
gharrington said:
People have reported this working but just make a backup first nothing ventured nothing gained
All I do is have 2 zips on my sdcard the original and the modded one if the mod fails simply boot into recovery and reflash original it takes 1 min to be up and running again
Click to expand...
Click to collapse
No, unfortunately your systemui.apk is not compatible with my Rom.
I need to solve compilation errors. Any advice on that?
Thank you!

Related

[Q] need help with decompilling

every time i'm trying to decompile an APK i get this error:
Code:
Decompiling Apk
testCan't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
"An Error Occured, Please Check The Log (option 24)"
can someone help me?:crying:
someone? anyone?
:crying:
make sure you installed correct framework apps..and then decompile again
arpith.fbi said:
make sure you installed correct framework apps..and then decompile again
Click to expand...
Click to collapse
I already installed the framework-res.apk and the systemui.apk
Sent from my LT18i using xda premium
can you post the 4-5 previous lines in the code before getting error?
arpith.fbi said:
can you post the 4-5 previous lines in the code before getting error?
Click to expand...
Click to collapse
i used used apk multi tool, so i selected a project, chose to decompile, and that are all the lines i get.
install original stock framework-res.apk including other frameworks
First try decompiling and re-compiling the original stock apk before decompiling & recompiling apk of some other roms.
but i still feel framework-res.apk isnt properly installed
Code:
apktool install-framework framework-res.apk
apktool if framework-res.apk
/1.apk successfully created.
apktool if SemcgenericUXpres.apk
/2.apk successfully created..
After that try it.. ıt works lots of apk instead of systemUI.apk :S I dont know where I have mistakes during COMPILE process :/
Erhany said:
apktool if framework-res.apk
/1.apk successfully created.
apktool if SemcgenericUXpres.apk
/2.apk successfully created..
After that try it.. ıt works lots of apk instead of systemUI.apk :S I dont know where I have mistakes during COMPILE process :/
Click to expand...
Click to collapse
thanks, it worked
now i can't compile the apk:crying:
Code:
The system cannot find the file specified.
what can i do to fix that?
please, can someone help me with that?

[HOW-TO] Add Another Thread in Settings | About Device

No as such device or specific fw requirements for this guide/How-to to work.
Ok, so this would be my first ever tutorial on XDA so bear with me. I would try to explain as much as possible.
This How-to focuses on adding another info section in settings.apk. This guide is intended to be used by ROM Devs and Themers. I did a thorough research if their is any guide similar to this in this forum section but couldnt find any so here it goes.
Prequistes:
Be able to Decompile/Compile apks
Notepad++
Patience
Firstly you have to decompile SecSettings.apk (If you are using JB fw) or Settings.apk (If you are using ICS fw) it doesn't matter which fw you are using the rest of the guide will be the same.
After you have decompiled the SecSettings.apk or Settings.apk, go into the folder you decompiled to then res/values/strings. Open strings with any code editor such as Notepad++ after that add these two lines before the end line:
<string name="mod_version">XenonMOD version</string>
<string name="mod_version_info">Xenon-v2.00.00</string>
Click to expand...
Click to collapse
NOTE: You can change XenonMOD version to anything you like and also Xenon-v2.00.00. I am using these as a example.
Next go to res/xml/device_info_settings.xml and add these lines before the ending line:
<Preference android:key="mod_version" style="?androidreferenceInformationStyle" android:title="@string/mod_version android:summary="@string/mod_version_info" />
Click to expand...
Click to collapse
Now recompile everything. If you have done everything as stated you should end up with a perfectly good SecSettings.apk or Settings.apk that has a another info/thread added to it. Congratulations!
NOTE: You can use this guide to add whatever info you want to the Settings section.
Follow me on twitter @TaimurAkmal. I would be able to solve any problem that you may have quicker, if you reach me with a tweet.
Don't forget to leave a Thanks by pressing the Thanks button which is placed bottom-left of this post!
Nyc Work
Leave a Thanks and it would make my day.
ahh sorry i forgot to
now done
Nice, unfortunately this didn't work on my Nexus, when I copy paste then it's not normal if I follow the other lines in that file I put the texts the correct sequence then I can successfully compile settings.apk and when I replace settings.apk it is not shown and not working, I have also tried by signing apk via Dsixda's android kitchen but still the same issue, btw: I use latest Android version on my Nexus and I don't think that is the issue...
Maybe something to do with SettingsProvider.apk or does smali files need editing?
Thanks
manumanfred said:
Nice, unfortunately this didn't work on my Nexus, when I copy paste then it's not normal if I follow the other lines in that file I put the texts the correct sequence then I can successfully compile settings.apk and when I replace settings.apk it is not shown and not working, I have also tried by signing apk via Dsixda's android kitchen but still the same issue, btw: I use latest Android version on my Nexus and I don't think that is the issue...
Maybe something to do with SettingsProvider.apk or does smali files need editing?
Thanks
Click to expand...
Click to collapse
the problem is the parsing, he forgot to add another " after
this is the correct code
Code:
<Preference android:key="mod_version" style="?android:preferenceInformationStyle" android:title="@string/mod_version" android:summary="@string/mod_version_info" />
nice guide, this is what i searching for. Thanks :good:

[HOW TO] change date color on JB lockscreen (4.1.2) & AccuWeatherWidget

I searched on XDA and doesn't find a guide how to change date color on JB 4.1.2 lockscreen.
So i decided share a method how i do it.
Decompile framework-res.apk
go to:
framework\layout-hdpi\keyguard_circlelock_clockwidget.xml
framework\layout-hdpi\keyguard_circlelock_clockwidget_land.xml
framework\layout-sw320dp-hdpi\keyguard_circlelock_clockwidget_sub.xml
search f6f7c9 color in this layouts and replace it to desired color (all values 3x in each file).
The same in AccuWeatherWidget.apk
Decompile AccuWeatherWidget.apk
go to:
res/values/colors.xml
and replace <color name="date_zone_text">#fff6f7c9</color> to desired color.
It works on LSJ, LS8, LSD, MS1. All Samsung JB based ROM for GS2.
Happy changing
thanks, but is it normal to get bootloops after doing this??
I never get bootloop when theming framework, now it has!
If you doing this corectly (decompile, change values recompile) there is no way to got bootloop. So please write step by step how you do this?
only solution?
jackq said:
If you doing this corectly (decompile, change values recompile) there is no way to got bootloop. So please write step by step how you do this?
Click to expand...
Click to collapse
Could u plz try it, maybe it then work?
You have ONLY to change date color in: ff33b5e5
CLICK
---------- Post added at 01:16 PM ---------- Previous post was at 12:58 PM ----------
Edit: problem soled:laugh:
solution: google and found this VERY useful tip: http://forum.xda-developers.com/showthread.php?t=1806602
If you have problem with de/re-compiling apk you can use http://apkmultitool.com/
With this program i don't have any problems.
Download latest apk multitool.
Unzip, now copy attached files to "other" folder and copy framework-res.apk and twframework-res.apk from your ROM base.
Now run bat scripts framework if and twframework if, this will automatically add sources.
Enjoy decompiling and recomiling.
Attachments:
http://speedy.sh/8Taf2/framework-if.bat
http://speedy.sh/qsT7e/twframework-if.bat
jackq said:
If you have problem with de/re-compiling apk you can use http://apkmultitool.com/
With this program i don't have any problems.
Download latest apk multitool.
Unzip, now copy attached files to "other" folder and copy framework-res.apk and twframework-res.apk from your ROM base.
Now run bat scripts framework if and twframework if, this will automatically add sources.
Enjoy decompiling and recomiling.
Attachments:
http://speedy.sh/8Taf2/framework-if.bat
http://speedy.sh/qsT7e/twframework-if.bat
Click to expand...
Click to collapse
I dont use apk multitools always get errors, or am I doing sth wrong? Instead, I use this: http://forum.xda-developers.com/showthread.php?t=1989533
But now I wanna change icons of apps, market apps. Its very hard everytime I wanna install my new apk it says: app not installed. Pushing to system/app doesnt help
Help plzz!!
Finally I change that ugly yellow date.

[MOD][ZIP][GUIDE] Navigation bar on Note 3 - 4.3

This is a guide to enable the navbar on the Galaxy Note 3 running Android 4.3 (NOT an overlay!). I can't guarantee this will work with any xposed modules or navbar mods. This will put an AOSP-like navigation bar on your Note 3, NOT a TouchWiz one! Which means from left to right, the buttons are: Back, Home, Recent.
[UPDATED 12/22/13] - Added back_ime (down arrow instead of back when keyboard is open)! Zip updated, steps are the same. See screenshots.
!!If you are on 4.4.2 KitKat!!
You do not need to do anything with SystemUI, Samsung left all the important stuff in there. Just download GravityBox Xposed module for KitKat, and enable navigation bar.
You need to know how to decompile SystemUI.apk, modify it, then recompile it.
This is for DEODEXED roms!
1. Decompile SystemUI.apk
2. Go to the folder SystemUI.apk was decompiled in. Open res/values/drawables.xml and add the following line, then save it:
Code:
<item type="drawable" name="tw_navigationbar_bg">#ff000000</item>
3. Open /res/values/public.xml, find this line, delete it, then save:
Code:
<public type="drawable" name="tw_navigationbar_bg_land" id="0x7f020194" />
4. Open the attached zip file, find and open the folder "drawable". Copy all 5 xml files and paste them in res/drawable/, replacing the existing files.
5. Delete the files "tw_navigationbar_bg.png" and "tw_navigationbar_bg_land.png" from /res/drawable.
6. Find the folder "drawable-xhdpi" in the attached zip and copy it to res/, this will add a new folder in that directory.
7. Find and open the folder "layout" in the attached zip and copy the xml file to res/layout, replacing the existing xml.
8. Compile the decompiled SystemUI.apk
7. Put the new SystemUI.apk in the system directory on your phone, change permissions to rw-r--r--. Now cut the new SystemUI.apk to the clipboard (ES file browser) and go to system/app and find the old SystemUI.apk.
9. Rename the old SystemUI.apk to SystemUI.apk.bak, and quickly paste the new SystemUI.apk into system/app. Be quick about pasting new apk, the phone will restart about 5 seconds after renaming the old one.
10. Add the following line to your build.prop:
Code:
qemu.hw.mainkeys=0
11. If your phone did not reboot on it's own, reboot the phone, and you should have a navigation bar! There are various guides on how to disable the capacitive nav buttons, so I won't cover that here.
Thanks to @gharrington for writing up this guide for the S4 on Android 4.2.2; I used that as a starting point!
Here is a pre-edited SystemUI.apk you can use (attached below). This removes any themes you have!
[UPDATED 12/22/13] - Added the down arrow instead of back when keyboard is open!
[UPDATED 12/24/13] - Made a flashable zip! If you want to flash a zip theme, just flash the attached zip after flashing your theme. Then either flash Navigation_Bar_ON.zip from this post or add qemu.hw.mainkeys=0 to your build.prop if you haven't already
[UPDATED 03/10/14] - KitKat users do not need this mod, the stock SystemUI has everything it needs. See big red text for instructions.
For DEODEXED: Copy the new SystemUI.apk to /system, change permissions to rw-r--r--. Go to /system/app and rename the old SystemUI.apk to SystemUI.apk.bak, then move the new SystemUI.apk to /system/app. Flash the Navigation_Bar_ON.zip from this post (thanks @jovi23!) in TWRP or CWM. Reboot, and done!
If your ROM doesn't have init.d support, add "qemu.hw.mainkeys=0" (without quotes) to your build.prop, reboot, and done!
For ODEXED: Follow the same steps above, but also rename SystemUI.odex to SystemUI.odex.bak.
DO NOT FLASH THE ZIP IF YOU ARE ON 4.4.2
You do not need to do anything to SystemUI.apk, Samsung left everything it needs in there. Just get GravityBox Xposed module for KitKat and enable the navigation bar.
If you wish to use this SystemUI.apk in your ROM, all I ask is that you give credit
Any screenshot thanks?I forgot, first
Sent from my SM-N900T using Tapatalk
JT man said:
Any screenshot thanks?
Click to expand...
Click to collapse
Oh yes, sorry. I attached one to the second post.
This is what i been looking for have to look into how to decompile and recompiling the systemUI looks really complicated
Sent from my SM-N900T using XDA Premium 4 mobile app
Would anyone mind testing this SystemUI.apk? Need to be deodexed. Copy it to /system/, then change permissions to rw-r--r--. Now move it over to /system/app. Be sure to rename your old one to SystemUI.apk.bak, incase it doesn't work. I made this from a stock, deodexed ROM, so it should work, but I want it tested by someone else before I post it up top.
This will get rid of a lot of theming, so if you are themed, beware, as I haven't tested it that.
Moved to second post.
Hmm... after decompiling my SystemUI.apk I don't see those 2 files from steps 2 and 3
fredrick1213 said:
Hmm... after decompiling my SystemUI.apk I don't see those 2 files from steps 2 and 3
Click to expand...
Click to collapse
Hmm, that's odd, I'm sure the apk needs those. Were there any errors on decompile? Also, did you install framework-res.apk, SystemUI.apk, and twframework-res.apk into apktool?
gakio12 said:
Hmm, that's odd, I'm sure the apk needs those. Were there any errors on decompile? Also, did you install framework-res.apk, SystemUI.apk, and twframework-res.apk into apktool?
Click to expand...
Click to collapse
Ok so my problem was that I wasn't installing SystemUI.apk but even after installing it I don't see the public file in res/values
fredrick1213 said:
Ok so my problem was that I wasn't installing SystemUI.apk but even after installing it I don't see the public file in res/values
Click to expand...
Click to collapse
Can you open up the SystemUI.apk in 7z to see if the public.xml file is in res/values?
gakio12 said:
Can you open up the SystemUI.apk in 7z to see if the public.xml file is in res/values?
Click to expand...
Click to collapse
This is really weird. It doesn't even have the values folder
fredrick1213 said:
This is really weird. It doesn't even have the values folder
Click to expand...
Click to collapse
If you can attach the SystemUI.apk, I will take a look at it.
gakio12 said:
If you can attach the SystemUI.apk, I will take a look at it.
Click to expand...
Click to collapse
Here ya go
fredrick1213 said:
Here ya go
Click to expand...
Click to collapse
Thanks. I think this is because you are running an ODEXED ROM, correct? From your sig I assume it is pure stock TouchWiz, just rooted. You can try using my SystemUI.apk that I posted a few posts back, but you would need to rename SystemUI.odex to SystemUI.odex.bak AND SystemUI.apk to SystemUI.apk.bak, just so you get backups of existing files.
When I was doing it, my phone would reboot on it's own 5 seconds after renaming SystemUI.apk, so I only had 5 seconds to put the new one in there. This is where TWRP really helped.
In your screen shot - The Nav Bar looks like it's hiding the very bottom of the screen - Does this mod take into account the presence of the Nav Bar - And shift the display up - ie; is the Nav Bar hiding the Dock?
Sent from my SGH-I317 using Tapatalk
Yes, this mod is an actual navbar. It does not hide the dock. I will post another screenshot.
gakio12 said:
Yes, this mod is an actual navbar. It does not hide the dock. I will post another screenshot.
Click to expand...
Click to collapse
Thanks - And one other question - Are you doing this all on the phone - or are you doing any of it on the pc? .... I just read through the first page very quickly..
Sent from my SM-N900W8 using Tapatalk 2
shaggyskunk said:
Thanks - And one other question - Are you doing this all on the phone - or are you doing any of it on the pc? .... I just read through the first page very quickly..
Click to expand...
Click to collapse
I did almost all on the PC, only part I did on the phone was move the new SystemUI.apk into place. There is a stock SystemUI.apk I posted in post #6 if you want to give that a try (must be deodexed). If you do give it a try, please let me know how it works out
Anyway of making it transparent and also is there a way to enable 3 dot menu?
Sent from my SM-N900T using Tapatalk
gakio12 said:
Thanks. I think this is because you are running an ODEXED ROM, correct? From your sig I assume it is pure stock TouchWiz, just rooted. You can try using my SystemUI.apk that I posted a few posts back, but you would need to rename SystemUI.odex to SystemUI.odex.bak AND SystemUI.apk to SystemUI.apk.bak, just so you get backups of existing files.
When I was doing it, my phone would reboot on it's own 5 seconds after renaming SystemUI.apk, so I only had 5 seconds to put the new one in there. This is where TWRP really helped.
Click to expand...
Click to collapse
gakio12 said:
I did almost all on the PC, only part I did on the phone was move the new SystemUI.apk into place. There is a stock SystemUI.apk I posted in post #6 if you want to give that a try (must be deodexed). If you do give it a try, please let me know how it works out
Click to expand...
Click to collapse
I followed your advice and it worked! I now have the navbar. I'm odexed btw and it still worked. Thanks!

[GUIDE][MOD] Make full framework/rom transparent(any colour) Easiest Method

I was searching galaxy y forums to make my rom transparent and I got few guides but none of them worked
So I find a way my self (with help of my seniors) :laugh:
You need-->
* framework-res.apk of your rom
* apktool or any tool to recompile or decompile
* text editor like notepad++
* 7zip
* patience
* 5 minutes
Procedure-->
*Decompile framework-res.apk
* Open decompiled framework-res.apk folder and find res/values/styles.xml
* open it via notepad++
Note--> styles.xml is the key file, it control all apps layout and look.
* In styles.xml search for <style name="Theme"> this is the main theme layout. all app uses this.
* Under <style name="Theme"> search for <item name="colorBackground">@color/background_dark</item>
*Now change this to <item name="colorBackground">@color/transparent</item>
* Now add this line <item name="windowIsTranslucent">true</item>
below this line--> <item name="colorBackground">@color/transparent</item> this line makes all system apps background to transparent.
Now you have to ways to set transparency and colour [Very Important part] Use any one method you like
first method -->
Make a transparent image save it as png file. Make sure it has correct resolution(for galaxy y it's 240 x 320 )
Dont make full transparent, it looks odd
Save it and paste in drawable ldpi (Might be mdpi/hdpi for other devices)
Now open res/values/styles.xml and look for <item name="windowBackground">@drawable/screen_background_dark</item>
Change this to <item name="windowBackground">@drawable/image</item> *(here I save my png named with "image",You can save it with any name)
Save it and recompile with original signature and push it to your system/framework folder :laugh:
second method -->
open res/values/styles.xml and look for
<item name="windowBackground">@drawable/screen_background_dark</item>
Change this to <item name="windowBackground">#80ffffff</item> or any other color hex code as u want. First two digits control transparency.
Save it and recompile with Original Signature and push it to system/framework and done.
Important notes-->
1.I use TickelMyAndroid tool to recompile and decompile..It's easy to use and there's an option to sign with original signature..If u don't use tickel my android then u need to do below steps
Compile framework-res.apk and open it with 7zip and delete resources file . open stock framework (unedited) with 7zip,, and open edited framework with 7zip.
drag and drop resources file and res folder from unedited to edited framework..
Thats it. Push it to system/framework.
2.If u push framework through mobile (root explorer or any root browser) then first change permission of framework-res.apk to r-w--r--r and then push
3.This procedure for stock rom.. If you use any custom roms then in styles.xml the codes might be setted already to transparency.. Then you just need to skip those lines and leave them and do the Rest procedure
Awesome
[email protected] said:
I was searching galaxy y forums to make my rom transparent and I got few guides but none of them worked
So I find a way my self (with help of my seniors) :laugh:
You need-->
* framework-res.apk of your rom
* apktool or any tool to recompile or decompile
* text editor like notepad++
* 7zip
* patience
* 5 minutes
Procedure-->
*Decompile framework-res.apk
* Open decompiled framework-res.apk folder and find res/values/styles.xml
* open it via notepad++
Note--> styles.xml is the key file, it control all apps layout and look.
* In styles.xml search for <style name="Theme"> this is the main theme layout. all app uses this.
* Under <style name="Theme"> search for <item name="colorBackground">@color/background_dark</item>
*Now change this to <item name="colorBackground">@color/transparent</item>
* Now add this line <item name="windowIsTranslucent">true</item>
below this line--> <item name="colorBackground">@color/transparent</item> this line makes all system apps background to transparent.
Now you have to ways to set transparency and colour [Very Important part] Use any one method you like
first method -->
Make a transparent image save it as png file. Make sure it has correct resolution(for galaxy y it's 240 x 320 )
Dont make full transparent, it looks odd
Save it and paste in drawable ldpi (Might be mdpi/hdpi for other devices)
Now open res/values/styles.xml and look for <item name="windowBackground">@drawable/screen_background_dark</item>
Change this to <item name="windowBackground">@drawable/image</item> *(here I save my png named with "image",You can save it with any name)
Save it and recompile with original signature and push it to your system/framework folder :laugh:
second method -->
open res/values/styles.xml and look for
<item name="windowBackground">@drawable/screen_background_dark</item>
Change this to <item name="windowBackground">#80ffffff</item> or any other color hex code as u want. First two digits control transparency.
Save it and recompile with Original Signature and push it to system/framework and done.
Important notes-->
1.I use TickelMyAndroid tool to recompile and decompile..It's easy to use and there's an option to sign with original signature..If u don't use tickel my android then u need to do below steps
Compile framework-res.apk and open it with 7zip and delete resources file . open stock framework (unedited) with 7zip,, and open edited framework with 7zip.
drag and drop resources file and res folder from unedited to edited framework..
Thats it. Push it to system/framework.
2.If u push framework through mobile (root explorer or any root browser) then first change permission of framework-res.apk to r-w--r--r and then push
3.This procedure for stock rom.. If you use any custom roms then in styles.xml the codes might be setted already to transparency.. Then you just need to skip those lines and leave them and do the Rest procedure
Click to expand...
Click to collapse
Awesomeee work sir..I will try this ASAP
Ok
kismatmansi said:
Awesomeee work sir..I will try this ASAP
Click to expand...
Click to collapse
Test it and report here...I test it in my galaxy y in 4 roms... So I hope it'll work for u too
[email protected] said:
Test it and report here...I test it in my galaxy y in 4 roms... So I hope it'll work for u too
Click to expand...
Click to collapse
Ok sir
I don't know where did you search but here is an all in one guide and it works well on galaxy y
[GUIDE][MOD]Transparency for froyo,gb, ics
AbhiLP said:
I don't know where did you search but here is an all in one guide and it works well on galaxy y
[GUIDE][MOD]Transparency for froyo,gb, ics
Click to expand...
Click to collapse
Sir I never Got any working method.. Thatswhy I post this. I got this idea from marcussmith2626's post ..where he guide to make lockscreen and statusbar transparent. I also got help from my seniors.
[email protected] said:
Sir I never Got any working method.. Thatswhy I post this. I got this idea from marcussmith2626's post ..where he guide to make lockscreen and statusbar transparent. I also got help from my seniors.
Click to expand...
Click to collapse
Basically, They are all same guides. It doesn't matter which one you try, you'll be doing same steps. The link i've posted above contains 4 guides including the ones you've posted here.
Anyway, a nice try !
AbhiLP said:
Basically, They are all same guides. It doesn't matter which one you try, you'll be doing same steps. The link i've posted above contains 4 guides including the ones you've posted here.
Anyway, a nice try !
Click to expand...
Click to collapse
Sir As I told u I tried many methods before. None of them worked for me . And the method was not worked for rest members also(I see the comments on those threads)... In those tuts they didn't mention to use transparent images Thatswhy they didn't worked..but in your link the third method only seems to be working (see my 2nd method here in the post ) Rest three methods of your link didn't worked for me .(as I tried before)

Categories

Resources