FORUMS
Remove All Ads from XDA

[Tutorial][Oreo][2.24] Step-by-step guide to gain root access properly

65 posts
Thanks Meter: 33
 
By zlRampageSlz, Member on 26th May 2017, 04:46 PM
Post Reply Email Thread
2nd June 2017, 11:02 AM |#11  
Junior Member
Thanks Meter: 0
 
More
this morning i unlocked bootloader, flash modified kernel and flash twrp kagura
then my phone wont boot, after sony logo directly enter twrp mode
tried flash stock rom, but failed
can someone tell whats wrong? below the log from flashtool
thanks

02/037/2017 16:37:46 - INFO - <- This level is successfully initialized
02/037/2017 16:37:47 - INFO - Flashtool Version 0.9.23.1 built on 11-01-2017 15:12:00
02/037/2017 16:37:47 - INFO - Executing search strategies to find proxy selector
02/037/2017 16:37:48 - INFO - No proxy found for IE. Trying next one
02/037/2017 16:37:48 - INFO - Strategy firefox failed trying next one : No Firefox installation found
02/037/2017 16:37:48 - INFO - No proxy found for java. Trying next one
02/037/2017 16:37:48 - INFO - Syncing devices from github
02/037/2017 16:37:48 - INFO - Opening devices repository.
02/037/2017 16:37:48 - INFO - Scanning devices folder for changes.
02/038/2017 16:38:04 - INFO - Changes have been found. Doing a hard reset (removing user modifications).
02/038/2017 16:38:04 - INFO - Pulling changes from github.
02/038/2017 16:38:05 - INFO - Quietly closing devices repository.
02/038/2017 16:38:05 - INFO - Devices sync finished.
02/038/2017 16:38:05 - INFO - Loading devices database
02/038/2017 16:38:05 - INFO - Loaded 94 devices
02/038/2017 16:38:05 - INFO - Starting phone detection
02/038/2017 16:38:10 - INFO - Device connected in flash mode
02/038/2017 16:38:29 - INFO - Loading devices database
02/038/2017 16:38:29 - INFO - Loaded 95 devices
02/039/2017 16:39:23 - INFO - Selected Bundle for Sony Xperia XZs(G8232). FW release : 41.2.A.0.235. Customization : Customized SG
02/039/2017 16:39:23 - INFO - Preparing files for flashing
02/041/2017 16:41:11 - INFO - Please connect your device into flashmode.
02/041/2017 16:41:12 - INFO - Opening device for R/W
02/041/2017 16:41:13 - INFO - Reading device information
02/041/2017 16:41:13 - INFO - Phone ready for flashmode operations.
02/041/2017 16:41:13 - INFO - Opening TA partition 2
02/041/2017 16:41:13 - INFO - Current device : G8232 - BH902M7972 - 1307-9001_R4D - 1306-8087_41.2.A.0.219 - GENERIC_41.2.A.0.219
02/041/2017 16:41:13 - INFO - Closing TA partition
02/041/2017 16:41:13 - INFO - Start Flashing
02/041/2017 16:41:13 - INFO - No loader in the bundle. Searching for one
02/041/2017 16:41:13 - INFO - No matching loader found
02/041/2017 16:41:13 - WARN - No loader found or set manually. Skipping loader
02/041/2017 16:41:13 - INFO - Loader : S1_Root_de8d - Version : 1299-4832_S1_Boot_MSM8996_LA2.0_N_115 / Boot version : 1299-4832_S1_Boot_MSM8996_LA2.0_N_115 / Bootloader status : ROOTED
02/041/2017 16:41:13 - INFO - Max packet size set to 4M
02/041/2017 16:41:13 - INFO - USB buffer size set to 512K
02/041/2017 16:41:25 - INFO - Parsing boot delivery
02/041/2017 16:41:25 - INFO - No flash script found.
02/041/2017 16:41:25 - INFO - Flash script is mandatory. Closing session
02/041/2017 16:41:25 - INFO - Ending flash session
02/041/2017 16:41:25 - INFO - Flashing finished.
02/041/2017 16:41:25 - INFO - Please unplug and start your phone
02/041/2017 16:41:25 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings
02/041/2017 16:41:25 - INFO - Device connected in flash mode
 
 
2nd June 2017, 02:12 PM |#12  
OP Member
Flag Pennsylvania
Thanks Meter: 33
 
More
Quote:
Originally Posted by nino_valerino

02/037/2017 16:37:47 - INFO - Flashtool Version 0.9.23.1 built on 11-01-2017 15:12:00

Did you patch Flashtool to latest version? I didn't try 0.9.23.1 but using 0.9.23.2 did work. Simply replace x10flasher.jar in the directory you installed with new one.
It flashed nothing and there might be a problem reading that bundle.
Hope this helps!
2nd June 2017, 02:27 PM |#13  
munjeni's Avatar
Senior Member
Thanks Meter: 21,449
 
Donate to Me
More
This one will work https://forum.xda-developers.com/cro...asher-t2986634 as you can see v20 comfirmed working https://forum.xda-developers.com/sho...&postcount=152 . If any question go to my thread and ask
2nd June 2017, 03:47 PM |#14  
Junior Member
Thanks Meter: 0
 
More
finally done flashing firmware.
but after i flash kernel and twrp, i get 0mb internal

6. Boot into system. *When it ask to require PIN/Pattern at boot, SELECT NO. Otherwise, your device will be encryped and unable to install Magisk because TWRP won't let you mount internal. Download SU flashable zip (either Magisk with sony fix or SuperSU).

i don't have NO to select, only CANCEL and change language
and now im stuck at twrp
2nd June 2017, 04:50 PM |#15  
OP Member
Flag Pennsylvania
Thanks Meter: 33
 
More
Flashing firmware wipes almost everything, including internal. So it's normal to have 0 mb.
You will see this prompt only If you set PIN or Pattern. It should be fine not to set passcode. You can flash magisk right after flashing recovery through MTP or external.
If magisk fail to install just do factory reset. This will remove data encryption.
2nd June 2017, 05:54 PM |#16  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by zlRampageSlz

Flashing firmware wipes almost everything, including internal. So it's normal to have 0 mb.
You will see this prompt only If you set PIN or Pattern. It should be fine not to set passcode. You can flash magisk right after flashing recovery through MTP or external.
If magisk fail to install just do factory reset. This will remove data encryption.

get stuck on sony logo, after flashing recovery and magisk
2nd June 2017, 06:01 PM |#17  
OP Member
Flag Pennsylvania
Thanks Meter: 33
 
More
Quote:
Originally Posted by nino_valerino

get stuck on sony logo, after flashing recovery and magisk

Try again after factory reset and wait a bit longer.
If not, looks like system is missing. Did you flash system correctly? Try booting into recovery. In mount, check your system partition size and tell me if its 0 mb or not.
Can you also send me flashtool log?
2nd June 2017, 06:19 PM |#18  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by zlRampageSlz

Try again after factory reset and wait a bit longer.
If not, looks like system is missing. Did you flash system correctly? Try booting into recovery. In mount, check your system partition size and tell me if its 0 mb or not.
Can you also send me flashtool log?

i think my problem is recovery and root.
after flash firmware booting was normal but after flash recovery and root, it wont boot and always back to recovery

this my flashtool log
02/025/2017 21:25:40 - INFO - <- This level is successfully initialized
02/025/2017 21:25:43 - INFO - Flashtool Version 0.9.23.2 built on 19-01-2017 21:50:00
02/025/2017 21:25:43 - INFO - Executing search strategies to find proxy selector
02/025/2017 21:25:43 - INFO - No proxy found for IE. Trying next one
02/025/2017 21:25:43 - INFO - Strategy firefox failed trying next one : No Firefox installation found
02/025/2017 21:25:43 - INFO - No proxy found for java. Trying next one
02/025/2017 21:25:44 - INFO - Syncing devices from github
02/025/2017 21:25:44 - INFO - Opening devices repository.
02/025/2017 21:25:44 - INFO - Scanning devices folder for changes.
02/026/2017 21:26:01 - INFO - Pulling changes from github.
02/026/2017 21:26:02 - INFO - Quietly closing devices repository.
02/026/2017 21:26:02 - INFO - Devices sync finished.
02/026/2017 21:26:02 - INFO - Loading devices database
02/026/2017 21:26:02 - INFO - Loaded 94 devices
02/026/2017 21:26:02 - INFO - Starting phone detection
02/026/2017 21:26:07 - INFO - Device disconnected
02/027/2017 21:27:12 - INFO - Loading devices database
02/027/2017 21:27:12 - INFO - Loaded 95 devices
02/027/2017 21:27:26 - INFO - Selected Bundle for Sony Xperia XZs(G8232). FW release : 41.2.A.0.235. Customization : Customized TH
02/027/2017 21:27:26 - INFO - Preparing files for flashing
02/029/2017 21:29:57 - INFO - Please connect your device into flashmode.
02/030/2017 21:30:21 - INFO - Device connected in flash mode
02/030/2017 21:30:21 - INFO - Opening device for R/W
02/030/2017 21:30:22 - INFO - Reading device information
02/030/2017 21:30:22 - INFO - Phone ready for flashmode operations.
02/030/2017 21:30:22 - INFO - Opening TA partition 2
02/030/2017 21:30:22 - INFO - Current device : G8232 - BH902M7972 - 1307-9001_R4D - 1306-8087_41.2.A.0.219 - GENERIC_41.2.A.0.219
02/030/2017 21:30:22 - INFO - Closing TA partition
02/030/2017 21:30:22 - INFO - Start Flashing
02/030/2017 21:30:22 - INFO - No loader in the bundle. Searching for one
02/030/2017 21:30:22 - INFO - No matching loader found
02/030/2017 21:30:22 - WARN - No loader found or set manually. Skipping loader
02/030/2017 21:30:22 - INFO - Loader : S1_Root_de8d - Version : 1299-4832_S1_Boot_MSM8996_LA2.0_N_115 / Boot version : 1299-4832_S1_Boot_MSM8996_LA2.0_N_115 / Bootloader status : ROOTED
02/030/2017 21:30:22 - INFO - Max packet size set to 4M
02/030/2017 21:30:22 - INFO - USB buffer size set to 512K
02/030/2017 21:30:35 - INFO - Parsing boot delivery
02/030/2017 21:30:59 - INFO - Found a template session. Using it : C:\Users\XPS\.flashTool\devices\G82XX\41.fsc
02/030/2017 21:30:59 - INFO - Set loader configuration : [00 01 00 00 00 0C]
02/030/2017 21:30:59 - INFO - Opening TA partition 2
02/030/2017 21:30:59 - INFO - Writing TA unit 00002774. Value : 01
02/030/2017 21:30:59 - INFO - Closing TA partition
02/031/2017 21:31:00 - INFO - Processing partition.sin
02/031/2017 21:31:00 - INFO - Checking header
02/031/2017 21:31:00 - INFO - Flashing data
02/031/2017 21:31:00 - INFO - Opening TA partition 2
02/031/2017 21:31:00 - INFO - Processing cmnlib_S1_Boot_MSM8996_LA2_0_N_115_AID_4_PLATFORM-TONE-COM-LIVE-HWID009470E1-SWID0C-APPID01-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-DE8D-0004-MMC.sin
02/031/2017 21:31:00 - INFO - Checking header
02/031/2017 21:31:00 - INFO - Flashing data
02/031/2017 21:31:00 - INFO - Processing devcfg_S1_Boot_MSM8996_LA2_0_N_115_AID_4_PLATFORM-TONE-COM-LIVE-HWID009470E1-SWID05-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-DE8D-0004-MMC.sin
02/031/2017 21:31:00 - INFO - Checking header
02/031/2017 21:31:00 - INFO - Flashing data
02/031/2017 21:31:01 - INFO - Processing emmc_appsboot_S1_Boot_MSM8996_LA2_0_N_115_AID_4_PL ATFORM-TONE-COM-LIVE-HWID009470E1-SWID09-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-DE8D-0004-MMC.sin
02/031/2017 21:31:01 - INFO - Checking header
02/031/2017 21:31:01 - INFO - Flashing data
02/031/2017 21:31:01 - INFO - Processing hyp_S1_Boot_MSM8996_LA2_0_N_115_AID_4_PLATFORM-TONE-COM-LIVE-HWID009470E1-SWID15-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-DE8D-0004-MMC.sin
02/031/2017 21:31:01 - INFO - Checking header
02/031/2017 21:31:01 - INFO - Flashing data
02/031/2017 21:31:02 - INFO - Closing TA partition
02/031/2017 21:31:02 - INFO - Opening TA partition 2
02/031/2017 21:31:02 - INFO - Writing TA unit 0000084F. Value : 1A CE 33 00 01 00 08 03 00 02 04 02 05 00 02 02 10 00 10 05 00 01 03 02 00 10 05 00 04 83 03 00 10 02 00 04 85 05 00 03 03 03 00 10 05 00 05 83 02 00 10 02 00 05 85 1A 00 02 00 A9 09 BE BA A9 09 00 00 B3 08 BE BA B3 08 00 00 7E 13 BE BA 7E 13 00 00 04 00 03 00 02 00 04 00 04 00 B0 04 0E 00 06 00 B8 0B 01 4B 00 00 00 03 96 00 2C 01 03 00 09 00 01
02/031/2017 21:31:02 - INFO - Writing TA unit 000008FD. Value : 00
02/031/2017 21:31:02 - INFO - Closing TA partition
02/031/2017 21:31:02 - INFO - Opening TA partition 2
02/031/2017 21:31:03 - INFO - Processing keymaster_S1_Boot_MSM8996_LA2_0_N_115_AID_4_PLATFO RM-TONE-COM-LIVE-HWID009470E1-SWID0C-APPID01-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-DE8D-0004-MMC.sin
02/031/2017 21:31:03 - INFO - Checking header
02/031/2017 21:31:03 - INFO - Flashing data
02/031/2017 21:31:03 - INFO - Processing pmic_S1_Boot_MSM8996_LA2_0_N_115_AID_4_PLATFORM-TONE-COM-LIVE-HWID009470E1-SWID16-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-DE8D-0004-MMC.sin
02/031/2017 21:31:03 - INFO - Checking header
02/031/2017 21:31:03 - INFO - Flashing data
02/031/2017 21:31:03 - INFO - Processing rpm_S1_Boot_MSM8996_LA2_0_N_115_AID_4_PLATFORM-TONE-COM-LIVE-HWID009470E1-SWID0A-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-DE8D-0004-MMC.sin
02/031/2017 21:31:03 - INFO - Checking header
02/031/2017 21:31:03 - INFO - Flashing data
02/031/2017 21:31:05 - INFO - Processing s1sbl_S1_Boot_MSM8996_LA2_0_N_115_AID_4_S1-BOOT-LIVE-DE8D-0004-ELF_S1-BOOT-LIVE-DE8D-0004-MMC.sin
02/031/2017 21:31:05 - INFO - Checking header
02/031/2017 21:31:05 - INFO - Flashing data
02/031/2017 21:31:06 - INFO - Processing tzs1attest_S1_Boot_MSM8996_LA2_0_N_115_AID_4_PLATF ORM-TONE-COM-LIVE-HWID009470E1-SWID0C-APPID01-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-DE8D-0004-MMC.sin
02/031/2017 21:31:06 - INFO - Checking header
02/031/2017 21:31:06 - INFO - Flashing data
02/031/2017 21:31:06 - INFO - Processing tz_S1_Boot_MSM8996_LA2_0_N_115_AID_4_PLATFORM-TONE-COM-LIVE-HWID009470E1-SWID07-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-DE8D-0004-MMC.sin
02/031/2017 21:31:06 - INFO - Checking header
02/031/2017 21:31:06 - INFO - Flashing data
02/031/2017 21:31:07 - INFO - Processing tzs1sbl_S1_Boot_MSM8996_LA2_0_N_115_AID_4_PLATFORM-TONE-COM-LIVE-HWID009470E1-SWID0C-APPID01-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-DE8D-0004-MMC.sin
02/031/2017 21:31:07 - INFO - Checking header
02/031/2017 21:31:07 - INFO - Flashing data
02/031/2017 21:31:07 - INFO - Processing xbl_S1_Boot_MSM8996_LA2_0_N_115_AID_4_PLATFORM-TONE-COM-LIVE-HWID009470E1-SWID00-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-DE8D-0004-MMC.sin
02/031/2017 21:31:07 - INFO - Checking header
02/031/2017 21:31:07 - INFO - Flashing data
02/031/2017 21:31:08 - INFO - Closing TA partition
02/031/2017 21:31:08 - INFO - Opening TA partition 2
02/031/2017 21:31:08 - WARN - apps_log is excluded from bundle
02/031/2017 21:31:08 - WARN - diag is excluded from bundle
02/031/2017 21:31:09 - WARN - ssd is excluded from bundle
02/031/2017 21:31:09 - INFO - Processing adspso.sin
02/031/2017 21:31:09 - INFO - Checking header
02/031/2017 21:31:09 - INFO - Flashing data
02/031/2017 21:31:10 - INFO - Processing cache.sin
02/031/2017 21:31:10 - INFO - Checking header
02/031/2017 21:31:10 - INFO - Flashing data
02/031/2017 21:31:10 - INFO - Processing modem.sin
02/031/2017 21:31:10 - INFO - Checking header
02/031/2017 21:31:10 - INFO - Flashing data
02/031/2017 21:31:13 - WARN - Qnovo is excluded from bundle
02/031/2017 21:31:14 - INFO - Processing amss_fs_1.sin
02/031/2017 21:31:14 - INFO - Checking header
02/031/2017 21:31:14 - INFO - Flashing data
02/031/2017 21:31:14 - INFO - Processing amss_fs_2.sin
02/031/2017 21:31:14 - INFO - Checking header
02/031/2017 21:31:14 - INFO - Flashing data
02/031/2017 21:31:14 - INFO - Processing amss_fsg.sin
02/031/2017 21:31:14 - INFO - Checking header
02/031/2017 21:31:14 - INFO - Flashing data
02/031/2017 21:31:15 - WARN - persist is excluded from bundle
02/031/2017 21:31:15 - INFO - Processing kernel.sin
02/031/2017 21:31:15 - INFO - Checking header
02/031/2017 21:31:15 - INFO - Flashing data
02/031/2017 21:31:17 - INFO - Processing fotakernel.sin
02/031/2017 21:31:17 - INFO - Checking header
02/031/2017 21:31:18 - INFO - Flashing data
02/031/2017 21:31:19 - INFO - Processing ramdump.sin
02/031/2017 21:31:19 - INFO - Checking header
02/031/2017 21:31:19 - INFO - Flashing data
02/031/2017 21:31:29 - INFO - Processing system.sin
02/031/2017 21:31:29 - INFO - Checking header
02/031/2017 21:31:29 - INFO - Flashing data
02/034/2017 21:34:45 - INFO - Closing TA partition
02/034/2017 21:34:45 - INFO - Opening TA partition 2
02/034/2017 21:34:45 - INFO - Processing oem.sin
02/034/2017 21:34:45 - INFO - Checking header
02/034/2017 21:34:45 - INFO - Flashing data
02/034/2017 21:34:47 - WARN - userdata is excluded from bundle
02/034/2017 21:34:47 - INFO - Closing TA partition
02/034/2017 21:34:48 - INFO - Opening TA partition 2
02/034/2017 21:34:48 - WARN - Unit 2212 not found in bundle
02/034/2017 21:34:48 - INFO - Closing TA partition
02/034/2017 21:34:48 - INFO - Opening TA partition 2
02/034/2017 21:34:48 - INFO - Writing TA unit 00000964. Value : 00
02/034/2017 21:34:48 - INFO - Closing TA partition
02/034/2017 21:34:48 - INFO - Opening TA partition 2
02/034/2017 21:34:48 - INFO - Writing TA unit 000009B6. Value :
02/034/2017 21:34:48 - INFO - Closing TA partition
02/034/2017 21:34:49 - INFO - Opening TA partition 2
02/034/2017 21:34:49 - INFO - Writing TA unit 00000907. Value : 00
02/034/2017 21:34:49 - INFO - Closing TA partition
02/034/2017 21:34:50 - INFO - Opening TA partition 2
02/034/2017 21:34:50 - INFO - Writing TA unit 0000091A. Value : 00
02/034/2017 21:34:50 - INFO - Closing TA partition
02/034/2017 21:34:51 - INFO - Opening TA partition 2
02/034/2017 21:34:51 - WARN - Unit 2550 not found in bundle
02/034/2017 21:34:51 - INFO - Closing TA partition
02/034/2017 21:34:51 - INFO - Opening TA partition 2
02/034/2017 21:34:51 - WARN - Unit 2553 not found in bundle
02/034/2017 21:34:51 - INFO - Closing TA partition
02/034/2017 21:34:51 - INFO - Opening TA partition 2
02/034/2017 21:34:51 - INFO - Writing TA unit 000009A9. Value : 00
02/034/2017 21:34:51 - INFO - Closing TA partition
02/034/2017 21:34:52 - INFO - Opening TA partition 2
02/034/2017 21:34:52 - INFO - Processing elabel.sin
02/034/2017 21:34:52 - INFO - Checking header
02/034/2017 21:34:52 - INFO - Flashing data
02/034/2017 21:34:53 - INFO - Closing TA partition
02/034/2017 21:34:53 - INFO - Opening TA partition 2
02/034/2017 21:34:53 - INFO - Writing TA unit 00002725. Value : 32 30 31 37 2D 30 36 2D 30 32 20 32 31 3A 33 34 3A 35 33 00
02/034/2017 21:34:53 - INFO - Writing TA unit 00002774. Value : 00
02/034/2017 21:34:53 - INFO - Closing TA partition
02/034/2017 21:34:54 - INFO - Ending flash session
02/034/2017 21:34:54 - INFO - Flashing finished.
02/034/2017 21:34:54 - INFO - Please unplug and start your phone
02/034/2017 21:34:54 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings
2nd June 2017, 06:25 PM |#19  
OP Member
Flag Pennsylvania
Thanks Meter: 33
 
More
Did you flash TWRP as recovery, not system?
Recovery should be launched when you hold power and vol. down. System is launched when you hold power like normal boot. Sorry, I will be on board very soon. Coming back around 6-7 hours. You can leave any message here.
3rd June 2017, 11:10 AM |#20  
Junior Member
Thanks Meter: 0
 
More
problem solved
the problem was everytime i flash recovery, my phone wont boot
so i hotboot recovery, flash supersu with twrp. done. root success
3rd June 2017, 11:48 PM |#21  
OP Member
Flag Pennsylvania
Thanks Meter: 33
 
More
Quote:
Originally Posted by nino_valerino

problem solved
the problem was everytime i flash recovery, my phone wont boot
so i hotboot recovery, flash supersu with twrp. done. root success

Congrats, enjoy your root! Don't forget thanks button :P
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes