ZS670KS rawprogram() and patch0

Search This thread

pingolaido

Senior Member
Nov 29, 2009
63
6
OnePlus 3T
OnePlus 8 Pro
Question (maybe banal) about User Data:

LUN # Name Start Count Type
--- -- ---------------- ---------- ---------- --------------------
0 28 userdata 3643177 27236562 User data

is this partition containing all files of my phone? Is there a way to exctract them and save it?
Thanks! BR
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,244
7
2,916
gitlab.com
if userdata partition is encrypted, you can only decrypt it online (on the device itself). TWRP can do this, but if bootloader was locked at the time of backup the userdata cannot decrypted on unlocked bootloader (which is required for TWRP)

I cannot see any 'config' partition. looking at the script I get the feeling that is a typo and means 'devinfo' partition.
 

Renate

Recognized Contributor / Inactive Recognized Dev
I don't use TWRP, I don't have faith in TWRP, I don't have faith in randomly selected versions of TWRP.

I don't know your device, I don't know what is broken on your device, I don't know what you have already tried to replace on your device.

I don't know what "CSC" means.

In point of fact, I know very little.
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,244
7
2,916
gitlab.com
TWRP cannot boot on locked bootloader (#38, #87)

flash full ROM and firmware so everything is stock, then it will boot and you can enable OEM unlock and unlock bootloader.
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,244
7
2,916
gitlab.com
as the linux tool has issues with reading GPT, best is use Renates edl.exe and flash each partition line by line.

I recommend to double check the file size matches partition size and double check the files are in raw format. for this I would read all partitions off device as failsafe backup and compare with HxD editor if the files looks similar.

You have posted the partition list, use that as base and create some excel sheet for the partition mapping. if you have any bat file, look inside for the mapping.
 
  • Like
Reactions: Renate

pingolaido

Senior Member
Nov 29, 2009
63
6
OnePlus 3T
OnePlus 8 Pro
as the linux tool has issues with reading GPT, best is use Renates edl.exe and flash each partition line by line.

I recommend to double check the file size matches partition size and double check the files are in raw format. for this I would read all partitions off device as failsafe backup and compare with HxD editor if the files looks similar.

You have posted the partition list, use that as base and create some excel sheet for the partition mapping. if you have any bat file, look inside for the mapping.
ok I will take the weekend to try this challenging operation! I will let you know. Thanks
 

pingolaido

Senior Member
Nov 29, 2009
63
6
OnePlus 3T
OnePlus 8 Pro
Hello, i have flashed all files one by one in EDL mode, following the same files sorting as in all_flash.bat code. I have also changed the bits inside FPR and device.info files( putting '01' in 1st and 12nd bit as in many posts), to unlock the bootloader and flash via QFIL. But after many tentatives, it stucks in the black screen. Questions:
1) in which file is there the real bootloader unlock bits? It may be that it still locked :(
2) what are the files which it make sense to flash: Asusrom, recovery, system, image, ...?
3) recovery: i flashed recovery (a and b) with several recovery IMG:TWRP official, recovery inside raw file..but no results I assume the key is the answer to question 1).

Finally, even if it's still locked, i see the positive part: I have having a lot of fun to learn new staff and read your precious advices :)

Thanks
 
  • Like
Reactions: alecxs

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,244
7
2,916
gitlab.com
in update OTA zip some partitions aren't in raw format and cannot flashed straight onto device without conversion. you must flash raw full stock ROM/firmware like that one linked. if you flashed all partitions then phone will boot, regardless bootloader is locked or unlocked.

don't know exactly but most partitions of lun0 and lun4 are important.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    No, you don't have any partitions called "a" or "b".
    It's like I said above:
    You've got recovery_a and recovery_b.
    Just to be safe, you should back them up first.
    Code:
    edl.exe /u /r /precovery_a reca.bak
    edl.exe /u /r /precovery_b recb.bak
    edl.exe /u /w /precovery_a twrp-3.7.0_12-0-I002D.img
    edl.exe /u /w /precovery_b twrp-3.7.0_12-0-I002D.img
    1
    Bear in mind that recovery is overwritten from stock recovery on each boot. make sure you boot straight into recovery mode. Also flashing TWRP on locked bootloader may bring you in trouble as that won't pass signature verification check. unlock bootloader first. on old devices this can be done with hexeditor on devinfo partition. for other devices you need the python edl script to set OEM unlocking on config partition, then unlock bootloader from fastboot.
    1
    Available partitions:

    firehose_client - [LIB]: Lun0: ssd
    firehose_client
    firehose_client - [LIB]: Lun0: persist
    firehose_client
    firehose_client - [LIB]: Lun0: misc
    firehose_client
    firehose_client - [LIB]: Lun0: keystore
    firehose_client
    firehose_client - [LIB]: Lun0: frp
    firehose_client
    firehose_client - [LIB]: Lun0: asdf
    firehose_client
    firehose_client - [LIB]: Lun0: abootdebug
    firehose_client
    firehose_client - [LIB]: Lun0: abootlog
    firehose_client
    firehose_client - [LIB]: Lun0: gpt
    firehose_client
    firehose_client - [LIB]: Lun0: sysinfo
    firehose_client
    firehose_client - [LIB]: Lun0: ADF
    firehose_client
    firehose_client - [LIB]: Lun0: APD
    firehose_client
    firehose_client - [LIB]: Lun0: batinfo
    firehose_client
    firehose_client - [LIB]: Lun0: ftm
    firehose_client
    firehose_client - [LIB]: Lun0: asusfw_a
    firehose_client
    firehose_client - [LIB]: Lun0: asusfw_b
    firehose_client
    firehose_client - [LIB]: Lun0: motor_fw1
    firehose_client
    firehose_client - [LIB]: Lun0: motor_fw2
    firehose_client
    firehose_client - [LIB]: Lun0: xrom_a
    firehose_client
    firehose_client - [LIB]: Lun0: xrom_b
    firehose_client
    firehose_client - [LIB]: Lun0: asusrecord
    firehose_client
    firehose_client - [LIB]: Lun0: super
    firehose_client
    firehose_client - [LIB]: Lun0: recovery_a
    firehose_client
    firehose_client - [LIB]: Lun0: recovery_b
    firehose_client
    firehose_client - [LIB]: Lun0: vbmeta_system_a
    firehose_client
    firehose_client - [LIB]: Lun0: vbmeta_system_b
    firehose_client
    firehose_client - [LIB]: Lun0: metadata
    firehose_client
    firehose_client - [LIB]: Lun0: userdata
    firehose_client
    firehose_client - [LIB]: Lun1: xbl_a
    firehose_client
    firehose_client - [LIB]: Lun1: xbl_config_a
    firehose_client
    firehose_client - [LIB]: Lun2: xbl_b
    firehose_client
    firehose_client - [LIB]: Lun2: xbl_config_b
    firehose_client
    firehose_client - [LIB]: Lun3: ALIGN_TO_128K_1
    firehose_client
    firehose_client - [LIB]: Lun3: cdt
    firehose_client
    firehose_client - [LIB]: Lun3: ddr
    firehose_client
    firehose_client - [LIB]: Lun3: mdmddr
    firehose_client
    firehose_client - [LIB]: Lun4: aop_a
    firehose_client
    firehose_client - [LIB]: Lun4: tz_a
    firehose_client
    firehose_client - [LIB]: Lun4: hyp_a
    firehose_client
    firehose_client - [LIB]: Lun4: modem_a
    firehose_client
    firehose_client - [LIB]: Lun4: bluetooth_a
    firehose_client
    firehose_client - [LIB]: Lun4: mdtpsecapp_a
    firehose_client
    firehose_client - [LIB]: Lun4: mdtp_a
    firehose_client
    firehose_client - [LIB]: Lun4: abl_a
    firehose_client
    firehose_client - [LIB]: Lun4: dsp_a
    firehose_client
    firehose_client - [LIB]: Lun4: keymaster_a
    firehose_client
    firehose_client - [LIB]: Lun4: boot_a
    firehose_client
    firehose_client - [LIB]: Lun4: cmnlib_a
    firehose_client
    firehose_client - [LIB]: Lun4: cmnlib64_a
    firehose_client
    firehose_client - [LIB]: Lun4: devcfg_a
    firehose_client
    firehose_client - [LIB]: Lun4: qupfw_a
    firehose_client
    firehose_client - [LIB]: Lun4: vbmeta_a
    firehose_client
    firehose_client - [LIB]: Lun4: dtbo_a
    firehose_client
    firehose_client - [LIB]: Lun4: uefisecapp_a
    firehose_client
    firehose_client - [LIB]: Lun4: multiimgoem_a
    firehose_client
    firehose_client - [LIB]: Lun4: multiimgqti_a
    firehose_client
    firehose_client - [LIB]: Lun4: vm-linux_a
    firehose_client
    firehose_client - [LIB]: Lun4: featenabler_a
    firehose_client
    firehose_client - [LIB]: Lun4: imagefv_a
    firehose_client
    firehose_client - [LIB]: Lun4: aop_b
    firehose_client
    firehose_client - [LIB]: Lun4: tz_b
    firehose_client
    firehose_client - [LIB]: Lun4: hyp_b
    firehose_client
    firehose_client - [LIB]: Lun4: modem_b
    firehose_client
    firehose_client - [LIB]: Lun4: bluetooth_b
    firehose_client
    firehose_client - [LIB]: Lun4: mdtpsecapp_b
    firehose_client
    firehose_client - [LIB]: Lun4: mdtp_b
    firehose_client
    firehose_client - [LIB]: Lun4: abl_b
    firehose_client
    firehose_client - [LIB]: Lun4: dsp_b
    firehose_client
    firehose_client - [LIB]: Lun4: keymaster_b
    firehose_client
    firehose_client - [LIB]: Lun4: boot_b
    firehose_client
    firehose_client - [LIB]: Lun4: cmnlib_b
    firehose_client
    firehose_client - [LIB]: Lun4: cmnlib64_b
    firehose_client
    firehose_client - [LIB]: Lun4: devcfg_b
    firehose_client
    firehose_client - [LIB]: Lun4: qupfw_b
    firehose_client
    firehose_client - [LIB]: Lun4: vbmeta_b
    firehose_client
    firehose_client - [LIB]: Lun4: dtbo_b
    firehose_client
    firehose_client - [LIB]: Lun4: uefisecapp_b
    firehose_client
    firehose_client - [LIB]: Lun4: multiimgoem_b
    firehose_client
    firehose_client - [LIB]: Lun4: multiimgqti_b
    firehose_client
    firehose_client - [LIB]: Lun4: vm-linux_b
    firehose_client
    firehose_client - [LIB]: Lun4: featenabler_b
    firehose_client
    firehose_client - [LIB]: Lun4: imagefv_b
    firehose_client
    firehose_client - [LIB]: Lun4: devinfo
    firehose_client
    firehose_client - [LIB]: Lun4: dip
    firehose_client
    firehose_client - [LIB]: Lun4: apdp
    firehose_client
    firehose_client - [LIB]: Lun4: msadp
    firehose_client
    firehose_client - [LIB]: Lun4: spunvm
    firehose_client
    firehose_client - [LIB]: Lun4: limits
    firehose_client
    firehose_client - [LIB]: Lun4: limits-cdsp
    firehose_client
    firehose_client - [LIB]: Lun4: logfs
    firehose_client
    firehose_client - [LIB]: Lun4: logdump
    firehose_client
    firehose_client - [LIB]: Lun4: storsec
    firehose_client
    firehose_client - [LIB]: Lun4: uefivarstore
    firehose_client
    firehose_client - [LIB]: Lun4: secdata
    firehose_client
    firehose_client - [LIB]: Lun4: vm-keystore
    firehose_client
    firehose_client - [LIB]: Lun4: vm-data
    firehose_client
    firehose_client - [LIB]: Lun5: ALIGN_TO_128K_2
    firehose_client
    firehose_client - [LIB]: Lun5: mdm1m9kefs3
    firehose_client
    firehose_client - [LIB]: Lun5: mdm1m9kefs1
    firehose_client
    firehose_client - [LIB]: Lun5: mdm1m9kefs2
    firehose_client
    firehose_client - [LIB]: Lun5: mdm1m9kefs3_CA
    firehose_client
    firehose_client - [LIB]: Lun5: mdm1m9kefsc
    firehose_client
    firehose_client - [LIB]: Lun6: sysconf
    firehose_client
    firehose_client - [LIB]: Lun6: asuskey
    firehose_client
    firehose_client - [LIB]: Lun6: asuskey2
    firehose_client
    firehose_client - [LIB]: Lun6: asuskey3
    firehose_client
    firehose_client - [LIB]: Lun6: asuskey4
    firehose_client
    firehose_client - [LIB]: Lun6: asuskey5
    firehose_client
    firehose_client - [LIB]: Lun6: asuskey6

    Thanks
    1
    Did you get my misc.img? I uploaded but I don't see it in chat? I tried again. Zipped it works!
    1
    as the linux tool has issues with reading GPT, best is use Renates edl.exe and flash each partition line by line.

    I recommend to double check the file size matches partition size and double check the files are in raw format. for this I would read all partitions off device as failsafe backup and compare with HxD editor if the files looks similar.

    You have posted the partition list, use that as base and create some excel sheet for the partition mapping. if you have any bat file, look inside for the mapping.