Hi XZ owners!
I made this for XU / XSOLA JB port actually and currently they uses this method but later I discovered other JB Xperia's have this problem too.
Thanks to XperienceD for improving guide.
Workaround:
Firstly decompile your framework.jar, framework-res.apk and SemcGenericUxpRes.apk files, then download and extract this: framework-fix.zip
1- Copy the ColorizableDrawable.smali to "framework.jar/android/graphics/drawable".
2- Remove these lines from "framework.jar/android/graphics/drawable/Drawable.smali":
3- In the drawable folder of your framework-res you need to find and change a number of xmls and the easiest way to do this is with Notepad++. Download and open it first, then in the drawable folder highlight all 150 xmls prefixed with semc_, and drop them into Notepad++ (You may want to do so many at a time depending on your Computers specs). Using the search and replace feature, replace...
for...
...using the Replace All in All Opened Documents button...
...then you need to Replace this whole line...
...using the same method with...
I moved theme color part to smali, so "#00000000" is just a placholder in here and won't affect anything.
4- Open styles.xml in the values folder with Notepad++ and search for...
...there should be two, that one and then one with _bright, replace that line with...
...and replace the other with...
Then copy from your drawable-hdpi and drawable-xhdpi folders in your decompiled SemcGenericUxpRes folder, semc_bg_bright.xml, semc_bg.xml, semc_bg_bright_tile.png and semc_bg_tile.png into the same folders in your decompiled framework folders.
Normally app backgrounds doesn't change with 2013 xperia themes in anyway but theme system still has this ability, if you want to keep this I fixed it too, search for "@com.sonyericsson.uxp:drawable/semc_bg" and change with "@drawable/semc_bg_new" then put semc_bg_new.xml to drawable folder from downloaded file and don't forget adding semc_bg_new to public.xml.
5- In your decompiled framework folder open apktool.yml with Notepad++ and remove the "-2" from the "usedFrameworks" code...
...then recompile your framework.jar and framework-res.apk, add the signatures in the usual manner, copy both files to the Phone, change permissions, reboot, and you should finally have a success boot.
This method is currently working on all JB Xperia's.
Enjoy!
I made this for XU / XSOLA JB port actually and currently they uses this method but later I discovered other JB Xperia's have this problem too.
Thanks to XperienceD for improving guide.
Workaround:
Firstly decompile your framework.jar, framework-res.apk and SemcGenericUxpRes.apk files, then download and extract this: framework-fix.zip
1- Copy the ColorizableDrawable.smali to "framework.jar/android/graphics/drawable".
2- Remove these lines from "framework.jar/android/graphics/drawable/Drawable.smali":
Code:
const-string v3, "com.sonymobile"
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_109
3- In the drawable folder of your framework-res you need to find and change a number of xmls and the easiest way to do this is with Notepad++. Download and open it first, then in the drawable folder highlight all 150 xmls prefixed with semc_, and drop them into Notepad++ (You may want to do so many at a time depending on your Computers specs). Using the search and replace feature, replace...
Code:
somc:colorizable
for...
Code:
colorizable
...using the Replace All in All Opened Documents button...
...then you need to Replace this whole line...
Code:
android:color="@com.sonyericsson.uxp:color/semc_theme_accent_color" xmlns:somc="com.sonymobile"
...using the same method with...
Code:
android:color="#00000000"
I moved theme color part to smali, so "#00000000" is just a placholder in here and won't affect anything.
4- Open styles.xml in the values folder with Notepad++ and search for...
Code:
@com.sonyericsson.uxp:drawable/semc_bg
...there should be two, that one and then one with _bright, replace that line with...
Code:
@drawable/semc_bg
...and replace the other with...
Code:
@drawable/semc_bg_bright
Then copy from your drawable-hdpi and drawable-xhdpi folders in your decompiled SemcGenericUxpRes folder, semc_bg_bright.xml, semc_bg.xml, semc_bg_bright_tile.png and semc_bg_tile.png into the same folders in your decompiled framework folders.
Normally app backgrounds doesn't change with 2013 xperia themes in anyway but theme system still has this ability, if you want to keep this I fixed it too, search for "@com.sonyericsson.uxp:drawable/semc_bg" and change with "@drawable/semc_bg_new" then put semc_bg_new.xml to drawable folder from downloaded file and don't forget adding semc_bg_new to public.xml.
5- In your decompiled framework folder open apktool.yml with Notepad++ and remove the "-2" from the "usedFrameworks" code...
...then recompile your framework.jar and framework-res.apk, add the signatures in the usual manner, copy both files to the Phone, change permissions, reboot, and you should finally have a success boot.
This method is currently working on all JB Xperia's.
Enjoy!
Last edited: