Monday, October 29, 2012

Transparency mod for your Android, make it yourself


make backup before try this....!!!! 

you need::::
* stock framework-res.apk
* apk manager or any other
* text editer like notepad++
* 7zip
* patience and GK
* of course rooted phone :P  

STEPS :
decompile framework, in decompiled framework folder> res folder> values > styles.xml open it via notepad++ styles.xml is the key file, it control all apps layout and look..... 

* in styles 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> we are calling transparent color instead of dark which is inbuilt defined in color.xml in values folder..... 

* now main part add <item name="windowIsTranslucent">true</item> in theme... means after <item name="colorBackground">@color/transparent</item>......... this line makes all app apps to be transparent.... 


Next there are two methods..........

first method :::
now make a transparent image save it as png file....... make sure it has correct resolution..... dont make full transparent it looks odd.....
save it and past in draweble mdpi or hdpi which ur device support..
now in styles.xml look for <item name="windowBackground">@drawable/screen_background_dark</item> below main theme....
change this to <item name="windowBackground">@drawable/"your image name"</item> add ur image name without ".....
save and close....

------OR-------

second method ::::
in styles.xml look for <item name="windowBackground">@drawable/screen_background_dark</item> below main theme....
change this to <item name="windowBackground">#80ffffff</item> or any other color hex code first two digits control transparency.....
save and close....

compile framework delete resources file in keep folder.... open stock framework (unedited) with 7zip,, amd open edited framework with 7zip/WinRAR...
drag and drop resources file and res folder from edited to unedited framework...... 
thets it... make flashable zip or adb push......... 

ask me if u hav .......

Screeny :

6 comments:

  1. My framework-res doesn't have values folder and styles.Xml

    ReplyDelete
  2. you need apktool to have values folder sir Roldan then decompile it

    ReplyDelete
  3. Lighttheme will become transparent also?

    ReplyDelete
  4. Most of educational information over different kinds of blogs do not such supportive as supportive all the points of this blog. You need not to find any other platform to verify the data stated here.เสริมจมูกที่ไหนดี

    ReplyDelete