Xperia Z Resource Thread-|-Firmware-Guides-Restoring-Mods {Update 02/08/13}

SXUsr

Senior Member
Jul 11, 2010
8,143
2,867
243
Here =)
This thread is mainly a collection of links to the essentials rather than going in to detail as in my All Things Xperia Guide, but everything contained here will be Z or 2013 XPERIA specific. Please feel free to post a link to anything you think should be added or relevant. :)


[ various bootmodes ]

newest Sony devices have three boot modes... these bootmodes can be reached when device is powered off...

  • Normal - just press power button and device starts booting
  • Flashmode - this mode is used to flash stock OFFICIAL firmware using flashtool, denoted by GREEN LED (this is similar to DOWNLOAD/ODIN mode of the Samsung devices)
  • Fastboot mode - this is a special mode, denoted by BLUE LED, used when we want to flash custom kernel, custom system images, for that we need to unlock bootloader, i will tell more details about this later...



[ various key combinations ]

this is most important part...

known key combinations so far:

while device is power OFF

Volume Up + USB cable connected to PC -> FASTBOOT MODE (BLUE LED will light up)

Volume Down + USB cable connected to PC -> FLASHMODE (GREEN LED will light up)


while device is power ON

Volume Up + POWER (for 10 seconds) -> resets the battery, its like removing the battery and putting it back in [device will vibrate once]

Volume Up + POWER (for additional 5 seconds, total 15 seconds) -> will power off hard, device will power down [device will vibrate thrice]


Flashing & Restoring;




Firmware;

Make your own!...

Deodexed Files...

Latest Stock...

Older ROMs...


Older 4.1.2 ROMs...


Rooting;


4.1.2 Rooting...



Bootloader Unlocking & CWM;




Useful Info;



Mods;



Original Development;




Tips & Misc;

No Developer Options in Settings...
Go to Settings-About phone and tap on Build Number 7 times. Developer options will then be visible in Settings.
Something to consider...
Hello bro's, Just do take note that the rubbers on the flaps degrades as used. If one uses the power flap and the earphone flap often, then the waterproofing will be less and less reliable.


Common Problems/Faults...;


Significant Thanks;

@DooMLoRD
@Androxyde
@FXP
@krabappel2548
@Apollo89
@[NUT]

And thanks to everyone who's thread I've linked to. :)
 
Last edited:

SXUsr

Senior Member
Jul 11, 2010
8,143
2,867
243
Here =)
[GUIDE] Compiling XPERIA 2013 framework-res, without a bootloop

Massive thanks to @erorcun for sharing this method...

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.)[/COLOR][/I]

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 is tested on SP (Not S, P), U and Sola and works on the Z too.

Enjoy!
 
Last edited:

Toledo_JAB

Retired Forum Moderator
Jan 16, 2011
3,100
3,153
0
Toledo
To maintain this thread as a sticky, please Keep this thread as an INDEX of links for the Z.

For discussions on a mod or topic linked here, please use the original thread for that mod/topic.
This thread has been cleaned.
You can suggest links to be added to the OP.
LINKS ONLY

No further discussions will be allowed here.
 
  • Like
Reactions: SXUsr

Chipaxx

New member
Jul 15, 2013
2
0
0
Makati
4.2.2 generic PH

I have 4.2.2 generic PH, i want to share that here on XDA but i'm noob. I'm new to Xda. how to post it like the above posts. thanks. :laugh:
 

shaanyt

Senior Member
Oct 25, 2011
273
73
0
Noobish questions

Hey guys, this is kinda noobish, but i'm been using samsung since forever, just switched to XZ and i'm not used to bootloaders, nor do i understand them. I already unlocked bootloader and flashed CM. If i reflash to stock, do i need to relock bootloader before going back to stock? If not, will reflashing to stock automatically relock the bootloader? I really do appreciate any help you can give me.
 
S

SuperDroid-BOND

Guest
Sorry brothers, If in anyway I am bothering you all.

Actually I am requesting something as I need the stock Firmware files of Xperia Z (4.2.2). the needed files names are mentioned below:-

1) XperiaLockscreen.apk (UpxnxptLockscreen.apk)

2) SemcGenric-res.apk

3) Framework-res.apk

4) android.policy,jar

So please if anyone having these files please provide me. I am from different device forum and thus don't have these things.
I will be grateful for the files.
 

desalesouche

Senior Member
Feb 6, 2012
3,651
4,294
0
Sorry brothers, If in anyway I am bothering you all.

Actually I am requesting something as I need the stock Firmware files of Xperia Z (4.2.2). the needed files names are mentioned below:-

1) XperiaLockscreen.apk (UpxnxptLockscreen.apk)

2) SemcGenric-res.apk

3) Framework-res.apk

4) android.policy,jar

So please if anyone having these files please provide me. I am from different device forum and thus don't have these things.
I will be grateful for the files.
here's is sir:
http://www.mediafire.com/download/bqvx838gl86y7lg/tosend.zip
 

tinydynamite00

Senior Member
Aug 31, 2013
102
55
0
Austin
Can i flash a C6603 firmware on a C6602?
Yes, you can flash C6603 stock firmware on a C6602 variant. My Xperia Z is stock T-Mobile C6606 with a locked bootloader and I've flashed both C6602/3 firmwares. I've stuck with C6603 as there appear to be more developments for flashing builds, although nothing new of late. Is your bootloader unlocked or unlockable?
 

tinydynamite00

Senior Member
Aug 31, 2013
102
55
0
Austin
Sweet! I just caught a thread on backing up the TA partition, allowing both unlockable and locked bootloaders to return to stock with the DRM keys intact. I have to say I'm pretty stoked! ;)

Sent from my C6603 using Xparent BlueTapatalk 2
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone