Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Tutorial][ROOT][4.3]Root your own stock 4.3 firmware

OP quetzalcoatl2435

14th March 2014, 07:05 PM   |  #1  
quetzalcoatl2435's Avatar
OP Senior Member
Flag Yogyakarta
Thanks Meter: 616
 
811 posts
Join Date:Joined: Apr 2012
More
Since every "best way to root stock 4.3" guide for LB in this forum involves flashing a deodexed ROM from a region that might not be yours and taken from someone's phone that might be different from yours, I've decided to make this guide which will (I hope) help you make YOUR OWN pre-rooted flashable zip using YOUR OWN phone and an FTF for YOUR OWN region.

Just a mandatory precaution: I'm not responsible for whatever happens to you, your phone, your family, your house, your dog, your car, etc resulting from the use of this guide.

Here goes.

What's needed:
==========================
1. Your SONY Xperia SP running a rooted stock ROM. You might need to downgrade to 4.1.2 and root that.
2. A recovery. See: http://forum.xda-developers.com/show....php?t=2649923 (Note: I only use CWM. I have not tried Philz or TWRP.)
3. SONY PC Companion
4. Flashtool
5. su + busybox binaries
6. META-INF
7. SuperSU
8. Stock .266 kernel. You could make this yourself, but for the sake of simplicity, just use this one instead.
8b. Stock .201 kernel.
9. (Optional) be2_album for Bravia Engine fix.

The good part:
=====================
1. Follow this guide to download and make your own FTF file. This file will contain the stock firmware for your own phone and region.
2. Then follow this guide to extract the system folder, but stop at step 9.
3. Navigate to the "bin" folder inside the system folder you just extracted and delete anything that's <10 bytes in size. Those are symlinks which will be recreated automatically in the flashing process. (Ignore this step if there are no files smaller than 10 bytes. Anything larger than 100 bytes should NOT be deleted.)
4. Extract the META-INF.zip file you downloaded above and copy the META-INF Folder in the folder alongside the system folder.
5. You should now have 2 folders, META-INF and system.
6. Extract the su + busybox binaries and put them in system/xbin.
6b. (Optional) Extract be2_album and put it in /system/etc.
7. Zip the two folders (META-INF and system) using store only (no compression).
8. Congrats, you just made your own pre-rooted pure stock ROM. Copy this zip and SuperSU into your sd card and we're good to go.

How to flash:
================
This might sound familiar, because this part is the same as the other guides.
1. Boot into CWM.
2. Clear dalvik cache and wipe cache. (Optional: wipe data)
3. Flash the zip you just made.
4. Flash SuperSU.
5. Power off.
6. Flash kernel using flashtool.
7. Boot up your phone and enjoy (or not) using a ROOTED STOCK firmware that was meant for YOUR phone and not for someone else's phone in another country on the other side of the world.
8. (Optional) If you get a reboot when remounting (e.g. when using Foldermount), apply this fix.

As a side note: Memory management is kinda crappy on 4.3. Dropping dalvik.vm.heapgrowthlimit to 64m and dalvik.vm.heapsize to 96m helps somewhat, but YMMV. Please experiment on your own to find a limit that works best for you.

This guide will (in theory) work for ANY future official release as long as the partitions stay the same. I hope this will at least reduce the nagging the devs (especially DoomLord) gets for a root exploit for stock 4.3.
Last edited by quetzalcoatl2435; 8th April 2014 at 08:05 AM.
The Following 34 Users Say Thank You to quetzalcoatl2435 For This Useful Post: [ View ]
14th March 2014, 07:08 PM   |  #2  
Senior Member
Thanks Meter: 2,162
 
4,301 posts
Join Date:Joined: Jul 2012
Nice one
15th March 2014, 08:43 AM   |  #3  
Senior Member
Flag Yogyakarta
Thanks Meter: 15
 
118 posts
Join Date:Joined: Jan 2014
More
Grrrreeeatt.. This what I looking for all this time..

Whereas just last night I'd stay up finding how the way to put my region stock fw flashed to my device with root via dsixda andro kitchen, but the update script f***ing my brain all day long..
5 times xperimental flashing, but nothing happen. All kind of error Stats 7, 6, 0, etc just appear..

deodexed rom is suck considering it's not came from my own region..
I will try soon..

=============================
Edit :
- in step 3, are u sure to delete <10 "bytes" file? Bcause nothing here below 10 bytes. Just 10 kb are there..

Sent from my C5302 using XDA Premium 4 mobile app
Last edited by nasroed; 15th March 2014 at 10:08 AM.
15th March 2014, 09:43 AM   |  #4  
Zenderable's Avatar
Senior Member
Flag Lidzbark
Thanks Meter: 312
 
131 posts
Join Date:Joined: Jan 2014
Donate to Me
More
Thanks!

I have ROOT
15th March 2014, 10:23 AM   |  #5  
quetzalcoatl2435's Avatar
OP Senior Member
Flag Yogyakarta
Thanks Meter: 616
 
811 posts
Join Date:Joined: Apr 2012
More
Quote:
Originally Posted by nasroed

- in step 3, are u sure to delete <10 "bytes" file? Bcause nothing here below 10 bytes. Just 10 kb are there..

Yes, I'm sure. Ignore this step if there are no files smaller than 10 bytes. Anything larger than 100 bytes should NOT be deleted.
Last edited by quetzalcoatl2435; 15th March 2014 at 02:28 PM.
15th March 2014, 02:49 PM   |  #6  
Senior Member
Thanks Meter: 2,162
 
4,301 posts
Join Date:Joined: Jul 2012
Okay I followed the guide step by step. I have removed anything that was 7 bytes.. The others are min 156 bytes and 178 bytes the others are going to KB. So now I have to put the SU+Busybox into Xbin, make a .zip and flash it, flash Su and kernel?

See attachment for files smaler then 10 bytes
Attached Files
File Type: rar Backup.rar - [Click for QR Code] (3.7 KB, 52 views)
Last edited by mrjraider; 15th March 2014 at 02:50 PM. Reason: added attachment
15th March 2014, 03:27 PM   |  #7  
Senior Member
Thanks Meter: 2,162
 
4,301 posts
Join Date:Joined: Jul 2012
After few flashtattemps i get installtion aborted on touch CWM and TWRP cant even find the files.
Also I got some errors due to missing paths via the updater.script. Worth taking a look there.
15th March 2014, 03:32 PM   |  #8  
quetzalcoatl2435's Avatar
OP Senior Member
Flag Yogyakarta
Thanks Meter: 616
 
811 posts
Join Date:Joined: Apr 2012
More
Quote:
Originally Posted by mrjraider

Okay I followed the guide step by step. I have removed anything that was 7 bytes.. The others are min 156 bytes and 178 bytes the others are going to KB. So now I have to put the SU+Busybox into Xbin, make a .zip and flash it, flash Su and kernel?

See attachment for files smaler then 10 bytes

Yes. The zip should contain 2 folders. META-INF and system. Can you give me a listing of what you zipped? This guide is exactly how I rooted my 4.3 and it works fine. Also, try using store only when zipping. Sometimes the recovery doesn't work with zips that are to aggressively compressed.

Sent from my C5302 using xda app-developers app
The Following User Says Thank You to quetzalcoatl2435 For This Useful Post: [ View ]
15th March 2014, 03:38 PM   |  #9  
Senior Member
Thanks Meter: 2,162
 
4,301 posts
Join Date:Joined: Jul 2012
Followed the guide step by step and the problem I have is it wont flash. It says instalation aborted and there were some errors about paths?

I zipped the meta-inf and system folder.

Added to archive and seleted .zip and store.. After copying to SD and flashing I got instalation aborted.
I will try this later tho. I just need my phone in a few hours :P
15th March 2014, 03:47 PM   |  #10  
quetzalcoatl2435's Avatar
OP Senior Member
Flag Yogyakarta
Thanks Meter: 616
 
811 posts
Join Date:Joined: Apr 2012
More
Please send me the directory listing of what you zipped and I'll look into it.

Sent from my C5302 using xda app-developers app

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

Advanced Search
Display Modes