Post Reply

[TUTORIAL][JB][STOCK] Transparent Framework

OP kalel2012

8th February 2014, 08:16 PM   |  #1  
kalel2012's Avatar
OP Senior Member
Thanks Meter: 271
 
161 posts
Join Date:Joined: Sep 2012
Donate to Me
More
Transparent framework for Xperia JB Stock Rom

Screenshot:

Tested work on:
- Sony Xperia L (JB 4.1.2 and 4.2.2)
- Sony Xperia SP (JB 4.1.2)
I get the basic tutorial of thread by ZduneX25

REQUIREMENTS:
- Apktool, you can get it here http://forum.xda-developers.com/show....php?t=2195680
- Notepad++
- 7zip
- Root Explorer
- A deodex rom
- Framework-res.apk
For Xperia 2013 before do this you need to modification framework-res.apk and framework.jar with this guide from erorcun

1. Decompile Framework-res.apk with comand

Code:
apktool if framework-res.apk
apktool d framework-res.apk

2. Open /res/value/drawable.xml with Notepad++ add the following lines:
Code:
<item type="drawable" name="kalel_background">#80000000</item>
Save drawable.xml


3. Open /res/value/styles.xml with Notepad++
a. Find : <style name="Theme.Holo" parent="@style/Theme"> edit line
Code:
<item name="windowShowWallpaper">false</item>
To :
Code:
<item name="windowShowWallpaper">true</item>

b. Find : <style name="Theme.NoTitleBar" parent="@style/Theme"> add :
Code:
<item name="windowShowWallpaper">false</item>

c. Same with step 3b :
Find : <style name="Theme.Black" parent="@style/Theme"> add:
Code:
<item name="windowShowWallpaper">false</item>
Find : <style name="Theme.Light" parent="@style/Theme"> add:
Code:
<item name="windowShowWallpaper">false</item>
Find : <style name="Theme.Translucent" parent="@style/Theme"> add:
Code:
<item name="windowShowWallpaper">false</item>
Find : <style name="Theme.NoDisplay" parent="@style/Theme"> add:
Code:
<item name="windowShowWallpaper">false</item>
Find : <style name="Theme.Panel" parent="@style/Theme"> add:
Code:
<item name="windowShowWallpaper">false</item>
Find : <style name="Theme.DeviceDefault.Panel" parent="@style/Theme.DeviceDefault"> add:
Code:
<item name="windowShowWallpaper">false</item>
Find : <style name="Theme.DeviceDefault.Light.Panel" parent="@style/Theme.DeviceDefault.Light"> add:
Code:
<item name="windowShowWallpaper">false</item>
Find: <style name="Theme.WallpaperSettings" parent="@style/Theme"> edit:
Code:
<item name="windowBackground">@drawable/kalel_background</item>
Find: <style name="Theme.DeviceDefault" parent="@style/Theme.Holo"> edit:
Code:
<item name="windowBackground">@drawable/kalel_background</item>
4. Save styles.xml

5. Recompile Framework-res.apk with comand

Code:
Apktool b framework-res

6. Open your framework-res.apk with 7zip Navigate to framework-res\build\apk
Drag and drop folder res and file resources.arsc to your framework-res.apk


7. Use Root Explorer
Copy your new framework-res.apk to /system
Set permission to rw-r--r--
Move to /system/framework
Reboot
Or Use flashable zip via cwm
Done


Thanks To; (if I forgot someone, please remember me)
- ZduneX25
- Rizal Lovins
- erorcun
- Frogy Furnetral
- All android users

Do With Your Own Risk
Attached Thumbnails
Click image for larger version

Name:	1. decompile.png
Views:	16081
Size:	52.8 KB
ID:	2567279   Click image for larger version

Name:	2.drawable.png
Views:	15968
Size:	18.6 KB
ID:	2567280   Click image for larger version

Name:	3. styles1.png
Views:	15934
Size:	17.7 KB
ID:	2567281   Click image for larger version

Name:	4. styles2.png
Views:	15855
Size:	6.4 KB
ID:	2567282   Click image for larger version

Name:	5. build-apk.png
Views:	15850
Size:	42.8 KB
ID:	2567283   Click image for larger version

Name:	6. drag-drop.png
Views:	15797
Size:	37.9 KB
ID:	2567284  
Last edited by kalel2012; 9th February 2014 at 01:58 AM.
The Following 25 Users Say Thank You to kalel2012 For This Useful Post: [ View ]
8th February 2014, 08:27 PM   |  #2  
ronii ahmad's Avatar
Senior Member
Flag Malang
Thanks Meter: 232
 
228 posts
Join Date:Joined: Jun 2013
Donate to Me
More
Thumbs up
awesome kk.... nice guide....
The Following 2 Users Say Thank You to ronii ahmad For This Useful Post: [ View ]
8th February 2014, 11:24 PM   |  #3  
kalel2012's Avatar
OP Senior Member
Thanks Meter: 271
 
161 posts
Join Date:Joined: Sep 2012
Donate to Me
More
Quote:
Originally Posted by ronii ahmad

awesome kk.... nice guide....

9th February 2014, 06:09 AM   |  #4  
SlikToxic's Avatar
Member
Flag Borås
Thanks Meter: 54
 
82 posts
Join Date:Joined: May 2013
More
Useful tutorial. I want to ask why everytime I want to decompile or compile framework it's always error. Framework from stock rom.
14th February 2014, 06:55 PM   |  #5  
can i use this for other devices, like Samsung, LG, etc ?
14th February 2014, 07:04 PM   |  #6  
danlivesey's Avatar
Senior Member
Flag blackburn
Thanks Meter: 120
 
568 posts
Join Date:Joined: Dec 2010
Awsome I'll try this on my xperia z

Sent from my C6603 using XDA Premium 4 mobile app
14th February 2014, 07:35 PM   |  #7  
Senior Member
Thanks Meter: 65
 
264 posts
Join Date:Joined: Apr 2013
Donate to Me
Whenever i enter the command in command prompt i get this error "java is not recognized as internal or external command,operable program or batch file"
How to fix this?
14th February 2014, 09:11 PM   |  #8  
R.A.B's Avatar
Member
Thanks Meter: 34
 
76 posts
Join Date:Joined: Apr 2013
@kalel2012

Thanks a lot. Working fine on my L.
14th February 2014, 10:34 PM   |  #9  
Account currently disabled
Flag Kepler-34b
Thanks Meter: 5,662
 
15,002 posts
Join Date:Joined: Oct 2007
More
I'll wait for the Xposed module

Sent from my C6833 using Tapatalk
15th February 2014, 02:11 AM   |  #10  
Member
Flag Mexico
Thanks Meter: 12
 
56 posts
Join Date:Joined: Jul 2010
More
fails to compile



Xperia Z
4.3
10.4.1.B.0.101

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Sony Cross-Device Development General by ThreadRank