[GUIDE][MOD] Make full framework/rom transparent(any colour) Easiest Method - Galaxy Y GT-S5360 General

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)

Related

[tutorial]**Fix for recompiling framework-res with apktool** 4/15/2012

Greetings
i do not have have a one x but i have come up with a solution for the errors in apktool when recompiling framework-res.
i have a rezound and have run sense 4.0 on my phone. the screen res is also very similar to the one x.
there are four xmls in values that need to be rewritten.
anims.xml
layout.xml
a small change in plurals.xml
and raw.xml
the change made in plurals has to be made in all the foreign language plurals if you want to keep the languages. you can however delete them if you like. the framework i am posting has the plurals fixed for all languages though.
i am posting also my version of apktool which i have modified to properly smali htc apks.
to begin.
download the apktool linked here
unzip and place the folder wherever you want on your computer.
pull framework-res.apk and com.htc.resources.apk from your rom and place in the apktool folder
open a command window to apktool. (right click on your apktool folder and hit shift at the same time. one of the options will be to open a command window.)
type apktool if framework-res.apk hit enter
then type apktool if com.htc.resources.apk hit enter
now your needed dependencies are installed.
type apktool d framework-res.apk framework hit enter.
note im naming the out folder framework. you can name it anything you like.
this will create a decompiled framework-res. i named the folder framework so there will be a framework folder in your apktool folder now.
go to res/values anims.xml
change this
<anim name="htc_ime_decelerate_interpolator">@anim/zzz_htc_ime_decelerate_interpolator</anim>
to this
<item type="anim" name="htc_ime_decelerate_interpolator">@anim/zzz_htc_ime_decelerate_interpolator</item>
go to res/values layout.xml
change this
Code:
<layout name="htc_list_item_2text_2stamp">@layout/zzzz_htc_list_item_2text_2stamp</layout>
<layout name="htc_list_item_2text_bright">@layout/zzzz_htc_list_item_2text_bright</layout>
<layout name="htc_list_item_image_2text_image_bright">@layout/zzzz_htc_list_item_image_2text_image_bright</layout>
<layout name="htc_list_item_imageicon_2text_2stamp">@layout/zzzz_htc_list_item_imageicon_2text_2stamp</layout>
<layout name="htc_list_item_imageicon_text">@layout/zzzz_htc_list_item_imageicon_text</layout>
<layout name="htc_list_item_separator">@layout/zzzz_htc_list_item_separator</layout>
<layout name="keyguard_screen_device_unlock">@layout/zzzz_keyguard_screen_device_unlock</layout>
<layout name="pin_keyboard">@layout/zzzz_pin_keyboard</layout>
to this
Code:
<item type="layout" name="htc_list_item_2text_2stamp">@layout/zzzz_htc_list_item_2text_2stamp</item>
<item type="layout" name="htc_list_item_2text_bright">@layout/zzzz_htc_list_item_2text_bright</item>
<item type="layout" name="htc_list_item_image_2text_image_bright">@layout/zzzz_htc_list_item_image_2text_image_bright</item>
<item type="layout" name="htc_list_item_imageicon_2text_2stamp">@layout/zzzz_htc_list_item_imageicon_2text_2stamp</item>
<item type="layout" name="htc_list_item_imageicon_text">@layout/zzzz_htc_list_item_imageicon_text</item>
<item type="layout" name="htc_list_item_separator">@layout/zzzz_htc_list_item_separator</item>
<item type="layout" name="keyguard_screen_device_unlock">@layout/zzzz_keyguard_screen_device_unlock</item>
<item type="layout" name="pin_keyboard">@layout/zzzz_pin_keyboard</item>
go to res/values plurals.xml
go to line 79
change this
%d of %d
to this
%1$d of %2$d
now remember every foreign language plural needs that change or just delete them.
go to res/values raws.xml
change this
<raw name="fallbackring_htc">@raw/zzzz_fallbackring_htc</raw>
to this
<item type="raw" name="fallbackring_htc">@raw/zzzz_fallbackring_htc</item>
now when all of the plurals are changed or deleted ( do NOT delete the plurals in res/values. that has to be changed.)
type apktool b framework hit enter. this will build your apk.
here are the res/values xmls modded already to make this easy.
download here replace the existing decompiled xmls with these.
now when you decompile to make further changes you will find that three of the xmls
anims.xml
layout.xml
raws.xml
compile back to their original format so save the modified decompiled xmls
this is the modified framework
framework-res
please post any issues
For compile I'm using apktool b <directory>. I got http://pastebin.com/quWsK7mP
i just finished the tutorial which addresses those errors
Nice to see you here Fern I did the same as your guide yesterday. Very simple fix. Now if we can solve resources....
rayford85 said:
Nice to see you here Fern I did the same as your guide yesterday. Very simple fix. Now if we can solve resources....
Click to expand...
Click to collapse
i believe it is along the same lines. ill take a look at it
fernando sor said:
i just finished the tutorial which addresses those errors
Click to expand...
Click to collapse
Thanks now trying it
I need a place here.
Thanks very much for the heads up, good to see this fix
@fernando if you don't decompile .apk with -t then you don't need to install framework. To decompile framework-res.apk no dependencies are needed.
+1 ...
Been using this exact method since first deodexing the build.. htc-resources is unfortunately a very different story
Sent from my One Xtreme LeeDrOiD loaded Beast
also keep in mind that:
<item type="layout" name="htc_list_item_image_2text_image_bright">@lay out/zzzz_htc_list_item_image_2text_image_bright</item>
<item type="layout" name="htc_list_item_imageicon_2text_2stamp">@layou t/zzzz_htc_list_item_imageicon_2text_2stamp</item>
XDA is doing space in "layout", so warning for users: don't just copy-paste!
mike1986. said:
also keep in mind that:
<item type="layout" name="htc_list_item_image_2text_image_bright">@lay out/zzzz_htc_list_item_image_2text_image_bright</item>
<item type="layout" name="htc_list_item_imageicon_2text_2stamp">@layou t/zzzz_htc_list_item_imageicon_2text_2stamp</item>
XDA is doing space in "layout", so warning for users: don't just copy-paste!
Click to expand...
Click to collapse
Yeah thanks for pointing that out. Also the xmls are posted. I just thought people would want to know the fix.
Sent from my ADR6425LVW using xda premium
LeeDroid said:
+1 ...
Been using this exact method since first deodexing the build.. htc-resources is unfortunately a very different story
Sent from my One Xtreme LeeDrOiD loaded Beast
Click to expand...
Click to collapse
Yeah hopefully with a combined effort that can be figured out
Sent from my ADR6425LVW using xda premium
mike1986. said:
@fernando if you don't decompile .apk with -t then you don't need to install framework. To decompile framework-res.apk no dependencies are needed.
Click to expand...
Click to collapse
True but it is needed for other system apks. Just being thorough
Sent from my ADR6425LVW using xda premium
LeeDroid said:
+1 ...
Been using this exact method since first deodexing the build.. htc-resources is unfortunately a very different story
Sent from my One Xtreme LeeDrOiD loaded Beast
Click to expand...
Click to collapse
all the pros are on the one x!
fernando sor said:
all the pros are on the one x!
Click to expand...
Click to collapse
Yes they are
Time for you to jump on board bro.
Sent from my HTC One X using XDA
rayford85 said:
Yes they are
Time for you to jump on board bro.
Sent from my HTC One X using XDA
Click to expand...
Click to collapse
Im def getting some form of this phone.
Sent from my PG86100 using xda premium
hey fern, will this process work for the whole One series of phones? or just the one x specifically?
pstevep said:
hey fern, will this process work for the whole One series of phones? or just the one x specifically?
Click to expand...
Click to collapse
It should work on any ics framework sense 4.0
Unfortunately com.htc. resources will not work until apktool is updated.
Sent from my ADR6425LVW using xda premium
fernando sor said:
It should work on any ics framework sense 4.0
Unfortunately com.htc. resources will not work until apktool is updated.
Sent from my ADR6425LVW using xda premium
Click to expand...
Click to collapse
That sucks. One of our guys themed resources image by image running them all thru draw 9 patch tool One by one
I felt sorry for him
Sent from my HTC One X using XDA

[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:

[GUIDE][MOD] Enable navigation bar 4.2.2

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!

[tut] change system background from transparent to black

This would be helpful to those who are using rom with trans. Background and want to convert it to black like in Hyperion rom!!!!!!!!!!
So let's begin
1. Decompile your framework-res.apk (dont ask me how to)
2. Go to res folder, open values folder and then styles.xml
3. In that scroll down and find <style name="theme">
4. Under that you will find <item name="colorbackground">
change its color from transparent to black.
5. It should look something like this <item name="colorbackground">@color/black........
6. Now scroll down and find <item name=windowbackground> and do same
for it as above.
7. Now scroll almost to last and find <style name="theme.expandedmenu"> and change
the values under it as done above.
8. Compile it and copy META-INF and androidmanifest.xml from original apk to the
new one.
9. Most important= enjoy and do press thanks!!!!!!
Thanks)
reserved
EzazyHenry said:
how to use stockrom
Click to expand...
Click to collapse
What do u mean sir????
ScaryMonsterrr said:
Thanks)
Click to expand...
Click to collapse
Don't say just press it!!!!

[HOW TO] Add Ambient Display on Settings [Lollipop]

Thank for raffaele88 for this tutorial
Code:
You will need
framework-res.apk from the rom you are modding
SystemUI.apk from your Rom
Notepad++ or another text editor of your choice
apktool
First decompile Systemui.apk with this comand​
Code:
apktool d systemui.apk
Navigate to systemui/res/values/bools and open it with Notepad++ and change this line:
from
PHP:
<bool name="doze_display_state_supported">false</bool>
<bool name="doze_pulse_on_pick_up">false</bool>
to
Code:
<bool name="doze_display_state_supported">true</bool>
<bool name="doze_pulse_on_pick_up">true</bool>
Save and ricompile systemui with this comand:
PHP:
apktool b systemui
Now start to mod framework-res.apk
Decompile framework-res.apk with apktool with this comand:
Code:
apktool d framework-res.apk
Navigate to framework-res/res/values/string and open it with notepad++ and change this line:
from
PHP:
<string name="config_dozeComponent"></string>
to
PHP:
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
Save and close.....
Now in the same folder open bool.xml and with notepad++ and mod this line:
from
PHP:
<bool name="config_dozeAfterScreenOff">false</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
to
PHP:
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
Save it and close....
Now in the same folder open Interger.xml with notepad++ andmod this line:
from
PHP:
<integer name="config_screenBrightnessDoze">1</integer>
to
PHP:
<integer name="config_screenBrightnessDoze">17</integer>
Now recompile with this comand:
PHP:
apktool b framework-res.apk
Enjoy Ambient Display​
Not trying to be a jerk, but I noticed a typo in your commands:
apktool b systemui
should be $ apktool b systemui.apk
There are some people who would copy and paste and not realize why their apk wasn't compiling properly
Does it work well? However I cant decompile correctly apks because of this error: ".....could not decide arsc file." it will be great if we could have a flashable zip ?
Please post a flashable zip for stock 5.0 =)
Today i will make flash zip
Don't know why but caused bootloop. Maybe I made a mistake. Why I'm saying this is to remind that you should backup system first just in any case especially if you are going to flash new apk's on your existing rom.
hell !!! i need flashable zip for stock. i was editing systemui apk on kitkat but a few times i f.cked up
Can you upload the edited file? There's no need to do this procedure every time.
Sorry for noob questions, but what am I supposed to do after compiled framework-res.apk and systemUI.apk? And where can I find these file? (I have a flashable ROM zip)
IMO that "feature" would bring more issues than benefits... For example, huge battery drain.
I downloaded a zip from forum.frandroid and display settings shows ambient display. But I think there are some issue with the sensors. Sometimes my phone light up even if it is in my pocket, and pick up the phone from a table do not wake up the screen when a notification come
rskyline said:
IMO that "feature" would bring more issues than benefits... For example, huge battery drain.
Click to expand...
Click to collapse
i used it with lollipop port and now using app called "screen notifications" i think both battery drain not noticable
brsclkr said:
i used it with lollipop port and now using app called "screen notifications" i think both battery drain not noticable
Click to expand...
Click to collapse
Strangely even on the nexus 6 it says that battery won't last as much as with that feature off, even its screen is optimized for that feature (AMOLED)
rskyline said:
Strangely even on the nexus 6 it says that battery won't last as much as with that feature off, even its screen is optimized for that feature (AMOLED)
Click to expand...
Click to collapse
Definetely. In AMOLED screens, each pixel has its own backlight, black pixels don't produce light and don't require energy, so Ambient Display is suitable for AMOLED screens, but IPS LCD (Nexus 4's screen) costs more energy when backlight is on even if all pixels are black. Because of that, Ambient Display on Nexus 4 will drain much more battery.
I applied the changes but it ended up in a bootloop even though compiling and everything went fine. Luckily I've done a backup.
I used these instructions from Android Origins website and ambient display feature becomes available under display settings however as others have reported it really does not work correctly. When I pick up the phone nothing happens, notifications do turn on the display but at the cost of battery life. I would not suggest bothering with this as it is essentially useless on our devices. If you do want to try definitely backup in case you run into issues.
question
Is there a way that i can call this feature from an app? like an intent? i would like to setup a service to call this funtionality under other circustances also what is actually done at this point? are we just showing the same thing but in blank and white? how can i archive the same in other screens.
Thank you
Does it work well? However I cant decompile correctly apks because of this error: ".....could not decide arsc file." it will be great if we could have a flashable zip
[GS] said:
Thank for raffaele88 for this tutorial
Code:
You will need
framework-res.apk from the rom you are modding
SystemUI.apk from your Rom
Notepad++ or another text editor of your choice
.....
Enjoy Ambient Display[/CENTER][/QUOTE]
I want to translate into my language (now, it is only displayed in English). I have found in systemui and framework(values, values-vi....) but did not find the line that contains the word Ambient. Can you guide me? My Rom support multi language. thank you.
Click to expand...
Click to collapse
thank you for tutorial, worked well on my device

Categories

Resources