[Partially solved]FS Half-borked... help. - Essential Phone Questions & Answers

I need help. I flashed the wrong .img to userdata and now it refuses to be formated:
Code:
[email protected]:~$ fastboot -w
Erasing 'userdata' OKAY [ 55.085s]
/usr/lib/android-sdk/platform-tools/mke2fs failed with status 1
fastboot: error: Cannot generate image for userdata
I also tried:
Code:
[email protected]:~$ fastboot --force --disable-verification format:ext4:0x1987357000 userdata
Warning: userdata size is 0x1987357000, but 0x1987357000 was requested for formatting.
/usr/lib/android-sdk/platform-tools/mke2fs failed with status 1
fastboot: error: Cannot generate image for userdata
When I get all vars from each slot I get the following differences:
Code:
Slot a+b diff
Produced: 09/15/2022 03:39:14 PM
Mode: Differences, Ignoring Unimportant
Left file: /home/moe/a.txt Right file: /home/moe/b:txt
6 (bootloader) battery-voltage:4115 <> 6 (bootloader) battery-voltage:4087
--------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------
11 (bootloader) partition-size:userdata: 0x1987 <> 11 (bootloader) partition-size:userdata: 0x1987357000
12 (bootloader) partition-type:system_a:ext4 12 (bootloader) partition-type:system_b:ext4
13 (bootloader) partition-size:system_a: 0x1000 13 (bootloader) partition-size:system_b: 0x100000000
--------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------
33 (bootloader) current-slot:_a <> 33 (bootloader) current-slot:_b
--------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------
37 (bootloader) slot-retry-count:_a:6 <> 37 (bootloader) slot-retry-count:_a:0
38 (bootloader) slot-unbootable:_a:no 38 (bootloader) slot-unbootable:_a:yes
--------------------------------------------------------------------------------------------------------
Any tips are welcomed. Thanks.
[Update]After flashing stock (*.032) ROM the phone will boot from slot a but I still get an error when attempting to format userdata:
Code:
[email protected]:~/Downloads/ph-1/032$ fastboot -w
Erasing 'userdata' OKAY [ 52.228s]
/usr/lib/android-sdk/platform-tools/mke2fs failed with status 1
fastboot: error: Cannot generate image for userdata
So far I have not seen any adverse effect on the phone operation, and Storage reports the right sizes. Still, what's going on here? How to fix it?

Related

Samsung Glaxy S7 Edge (SM-G935F) NO DOWNLOAD MODE present!

-Hello. A friend gave me a phone wich he supposed to manipulate. He installed some wierd firmwhare.
Ok. What I want to do is flashing Stock ROM back.
Problem I face. Cannot enter Download Mode. When i press the button combination it drops me a Chinese menu. Even translating this menu (google) it has no Download Mode option.
Model: SM-G935F
-phone NOT rooted (Cannot root it since the method I find implies flashing through Odin. CANNOT ENTER DOWNLOAD MODE).
-USB Debugging Enabled
-Unlocked Bootloader (oem-unlock)
I try: "adb reboot download mode" It reboots into normal mode.
When I try to flash stock recovery.img or TWRP image trough fastboot I get the following message:
C:\Apps\platform-tools>fastboot flash recovery recovery.img
target reported max download size of 134217728 bytes
sending 'recovery' (45048 KB)...
OKAY [ 1.484s]
writing 'recovery'...
FAILED (remote: size too large)
finished. total time: 1.500s
(Anything i try to flash, same problem. size too large). And I got the right FW/img's for SM-G935F from sammobile.com
Please someone help me. I don't know what the hell to do.
C:\Apps\platform-tools>fastboot getvar all
(bootloader) max-download-size: 134217728
(bootloader) partition-size:bmtpool: 1500000
(bootloader) partition-type:bmtpool: raw data
(bootloader) partition-size:userdata: 32000000
(bootloader) partition-type:userdata: ext4
(bootloader) partition-size:cache: f000000
(bootloader) partition-type:cache: ext4
(bootloader) partition-size:system: 5dc00000
(bootloader) partition-type:system: ext4
(bootloader) partition-size:expdb: a00000
(bootloader) partition-type:expdb: raw data
(bootloader) partition-size:logo: 300000
(bootloader) partition-type:logo: raw data
(bootloader) partition-size:misc: 80000
(bootloader) partition-type:misc: raw data
(bootloader) partition-size:sec_ro: 600000
(bootloader) partition-type:sec_ro: ext4
(bootloader) partition-size:recovery: 600000
(bootloader) partition-type:recovery: raw data
(bootloader) partition-size:boot: 600000
(bootloader) partition-type:boot: raw data
(bootloader) partition-size:uboot: 60000
(bootloader) partition-type:uboot: raw data
(bootloader) partition-size:seccfg: 20000
(bootloader) partition-type:seccfg: raw data
(bootloader) partition-sizerotect_s: a00000
(bootloader) partition-typerotect_s: ext4
(bootloader) partition-sizerotect_f: a00000
(bootloader) partition-typerotect_f: ext4
(bootloader) partition-size:nvram: 500000
(bootloader) partition-type:nvram: raw data
(bootloader) partition-sizero_info: 300000
(bootloader) partition-typero_info: raw data
(bootloader) partition-size:ebr1: 80000
(bootloader) partition-type:ebr1: raw data
(bootloader) partition-size:mbr: 80000
(bootloader) partition-type:mbr: raw data
(bootloader) partition-sizereloader: 1400000
(bootloader) partition-typereloader: raw data
(bootloader) off-mode-charge: 1
(bootloader) warranty: no
(bootloader) unlocked: yes
(bootloader) secure: no
(bootloader) kernel: lk
(bootloader) product: AEON6582_WT_L
(bootloader) version: 0.5
all: Done!!
finished. total time: 0.297s
This is very likely fake chinese S7.
ed1337 said:
(bootloader) product: AEON6582_WT_L
Click to expand...
Click to collapse
Look like a Mediatek mt6582 soc phone which definitely not S7.
Sent from my SM-G935F using Tapatalk
S7 edge doesn't even have fastboot lol
---------- Post added at 01:04 AM ---------- Previous post was at 01:03 AM ----------
After searching this model name, it's probably mediatek Galaxy J5. Check their forums.

how to resize recovery partition...please help / dead phone / breaked phone

This questions comes to me and i answer , so if someone could help me in this please :crying::crying::crying:
Rakesh1b said:
answer these questions first?
1.how did you hardbrick your potter?
2.were you updated to latest stock through ota before hardbrick?
3.how did you recover your potter imean what blankflash and gpt.bin,bootloader.img,recovery.img did you use ? the files we all have used or tried from this thread or any different files?
4.type"
fastboot getvar all
Click to expand...
Click to collapse
" in fastboot mode and provide details masking your serial and imei.
5.finally creating blankflash or gpt.bin,bootloader files is impossible,there are some signed images we cant tamper them if we they will not flash.
read this whole thread you will know what im talking about https://forum.xda-developers.com/moto-g4-plus/help/hard-bricked-fastboot-t3638497
Click to expand...
Click to collapse
sir i answer you questions one by one
Question 1 :
i try to upgrade kernal from 7.0 to 7.1 by using this firmware " addison_verizon_oem_vzw_user_7.1.1_NDNS26.118-23-12-3_3_release-keys-cid2_vzw" all command i used are perfect i give you the 2 step info
1) fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (45 KB)...
OKAY [ 0.008s]
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Committing 'gpt.default.xml'
(bootloader) - flashing 'gpt_main0.bin' to 'partition:0'
(bootloader) Flashing primary GPT image...
(bootloader) Flashing backup GPT image...
OKAY [ 0.180s]
finished. total time: 0.196s
2) fastboot flash bootloader bootloader.img
target reported max download size of 536870912 bytes
sending 'bootloader' (5115 KB)...
OKAY [ 0.110s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Committing 'bootloader.default.xml'
(bootloader) - flashing 'emmc_appsboot.mbn' to 'aboot'
(bootloader) - flashing 'rpm.mbn' to 'rpm'
(bootloader) - flashing 'tz.mbn' to 'tz'
(bootloader) - flashing 'devcfg.mbn' to 'devcfg'
(bootloader) - flashing 'cmnlib.mbn' to 'cmnlib'
(bootloader) - flashing 'cmnlib64.mbn' to 'cmnlib64'
(bootloader) - flashing 'keymaster.mbn' to 'keymaster'
(bootloader) - flashing 'prov.mbn' to 'prov'
(bootloader) - flashing 'sbl1.mbn' to 'sbl1'
OKAY [ 0.375s]
finished. total time: 0.484s
Click to expand...
Click to collapse
you see here the gpt.bin pass and bootloader.img pass too
when i reboot the phone bootloader work fine but in logs say : " failed to load kernal"
after that i try to flash the potter firmware " POTTER_NPN25.137-92_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.info"
i put the problems here
1) fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (45 KB)...
OKAY [ 0.016s]
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote failure)
finished. total time: 0.094s
2) fastboot flash bootloader bootloader.img
target reported max download size of 536870912 bytes
sending 'bootloader' (5115 KB)...
OKAY [ 0.119s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Security version downgrade
(bootloader) Image tz failed validation
(bootloader) Preflash validation failed
(bootloader) Security version downgrade
(bootloader) Image devcfg failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'bootloader.default.xml'
FAILED (remote failure)
finished. total time: 0.461s
3) fastboot flash recovery recovery.img
target reported max download size of 536870912 bytes
sending 'recovery' (20580 KB)...
OKAY [ 0.483s]
writing 'recovery'...
(bootloader) Image size exeeded partition limits
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.494s
Click to expand...
Click to collapse
here is the 3 important problem when i try flash the Potter "POTTER_NPN25.137-92_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.info" and i try others Potter same problem
Question 2 :
It is not ota update
I install TRWP rom and find that i have 16 Mb size in recovery partition and the Potter Recovery.img need 20 Mb
so i use program called Parted to resize the partitions i delete recovery partition and try to make it again but i didn't know his type fat16 or fat36 or linux-swap or ext2 or ext4 .... so and i reboot to bootloader and opppps it is all black
i use blank flash of Moto Z2 play and it back to normal and the problem star the same the partition didn't change
Question 3 :
1) use blankflash of moto z2 play
2) after seeing bootloader run , i install trwp
3)you need to install Debloated+v1 zip here is the link : https://drive.google.com/file/d/12zo_EUgWb4g83t8IjLf9UyFmPGeBx7_G/view
----> copy the zip to phone then install it via TRWP
4) boot to system and it back work normal
Question 4 :
fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8953-C1.07
(bootloader) product: potter
(bootloader) board: potter
(bootloader) secure: yes
(bootloader) hwrev: P3B
(bootloader) radio: 3
(bootloader) storage-type: emmc
(bootloader) emmc: 32GB SKHYNIX HBG4a2 RV=08 PV=A5 FV=00000000000000A5
(bootloader) ram: 3GB SKHYNIX LP3 DIE=8Gb M5=06 M6=04 M7=00 M8=5F
(bootloader) cpu: MSM8953
(bootloader) serialno: ZY2243NCZK
(bootloader) cid: 0x0032
(bootloader) channelid: 0x40
(bootloader) uid: 7B3000D000000000000000000000
(bootloader) securestate: flashing_unlocked
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 536870912
(bootloader) reason: Reboot mode set to fastboot
(bootloader) imei: 351859081282935
(bootloader) meid:
(bootloader) date: 04-15-2017
(bootloader) sku: XT1685
(bootloader) battid:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Thu Jan 1 11:18: 1 UTC 1970"
(bootloader) ro.build.fingerprint[0]: motorola/potter_n/potter_n:7.0/NPN
(bootloader) ro.build.fingerprint[1]: 25.137-92/9:user/release-keys
(bootloader) poweroffalarm: 1
(bootloader) ro.build.version.full[0]: Blur_Version.25.281.9.potter.reta
(bootloader) ro.build.version.full[1]: il.en.US
(bootloader) ro.build.version.qcom: LA.UM.5.6.r1-01900-89xx.0
(bootloader) version-baseband: M8953_37.46.07.47R POTTER_EMEADSDS_CUST
(bootloader) kernel.version[0]: Linux version 3.18.31-perf-g4524a37 (hud
(bootloader) kernel.version[1]: [email protected]) (gcc version 4.9 201501
(bootloader) kernel.version[2]: 23 (prerelease) (GCC) ) #1 SMP PREEMPT M
(bootloader) kernel.version[3]: on Nov 20 09:32:29 CST 2017
(bootloader) sbl1.git: git=MBM-NG-VC1.07-0-g3b15bb0
(bootloader) rpm.git: git=MBM-NG-VC0.C0-1-g202d600
(bootloader) tz.git: git=283f623
(bootloader) devcfg.git: git=283f623
(bootloader) keymaster.git: git=283f623
(bootloader) cmnlib.git: git=283f623
(bootloader) cmnlib64.git: git=283f623
(bootloader) prov.git: git=283f623
(bootloader) aboot.git: git=MBM-NG-VC1.07-0-g9d7f987
(bootloader) qe: qe 1/1
(bootloader) frp-state: no protection (77)
(bootloader) ro.carrier: reteu
Click to expand...
Click to collapse
here my information
Question 5 :
i know we can't edit or modify gpt.bin and bootloader.img but we can change size partition from recovery mod by trwp but the others people work but at me not , and not that i give you step of what i did
1) adb shell
2) i copy the file parted to sbin
3) chmod +x parted
4) cd /dev/block
5)parted mmcblk0
6) write p
7) here is the partition list
1 131kB 655kB 524kB sbl1
2 655kB 918kB 262kB rpm
3 1180kB 3015kB 1835kB tz
4 3277kB 3342kB 65.5kB devcfg
5 3539kB 5112kB 1573kB aboot
6 5112kB 5374kB 262kB cmnlib
7 5374kB 5636kB 262kB cmnlib64
8 5636kB 5898kB 262kB keymaster
9 5898kB 6095kB 197kB prov
10 6160kB 6685kB 524kB sbl1bak
11 6685kB 6947kB 262kB rpmbak
12 7209kB 9044kB 1835kB tzbak
13 9306kB 9372kB 65.5kB devcfgbak
14 9568kB 11.1MB 1573kB abootbak
15 11.1MB 11.4MB 262kB cmnlibbak
16 11.4MB 11.7MB 262kB cmnlib64bak
17 11.7MB 11.9MB 262kB keymasterbak
18 11.9MB 12.1MB 197kB provbak
19 12.2MB 117MB 105MB ext4 modem
20 117MB 117MB 1024B fsc
21 117MB 117MB 8192B ssd
22 117MB 134MB 16.8MB ext4 dsp
23 134MB 134MB 32.8kB DDR
24 134MB 134MB 16.4kB sec
25 134MB 135MB 524kB utags
26 135MB 135MB 524kB utagsBackup
27 135MB 137MB 2097kB modemst1
28 137MB 139MB 2097kB modemst2
29 139MB 148MB 8389kB fsg
30 148MB 181MB 33.6MB ext4 persist
31 181MB 182MB 524kB frp
32 182MB 182MB 131kB cid
33 182MB 199MB 16.8MB logo
34 199MB 215MB 16.8MB carrier
35 215MB 216MB 524kB metadata
36 216MB 224MB 8389kB kpan
37 224MB 241MB 16.8MB boot
38 241MB 258MB 16.9MB recovery
39 258MB 259MB 1049kB misc
40 259MB 259MB 32.8kB limits
41 259MB 260MB 524kB mota
42 260MB 261MB 1049kB dip
43 261MB 261MB 524kB ext2 syscfg
44 261MB 263MB 2097kB logs
45 263MB 264MB 262kB apdp
46 264MB 264MB 262kB msadp
47 264MB 264MB 8192B dpo
48 264MB 268MB 4325kB padA
49 268MB 277MB 8389kB sp
50 277MB 285MB 8389kB hw
51 285MB 1091MB 805MB ext2 oem
52 1091MB 1359MB 268MB cache
53 1359MB 5654MB 4295MB ext2 system
54 5654MB 31.3GB 25.6GB userdata
Click to expand...
Click to collapse
so when i try to resize the parition recovery it , i deleted oem and recovery partition then i recreated them and add 5 mb to recovery but after i reboot phone got breaked and i use blankflash again and the size of partition didn't change
so if you can help me or contact the admin of the site please i need help to resize the recovery partition
i'm new here in this forum
bro your problem might be wrong formatted system and cache. see the above lines 51 285MB 1091MB 805MB ext2 oem---it should be ext4
52 1091MB 1359MB 268MB cache
53 1359MB 5654MB 4295MB ext2 system---it should be ext4
54 5654MB 31.3GB 25.6GB userdata it should be f2fs type formatted
may be you formatted your system partitions with wrong format type.
bro then try this type "fastboot erase all" it erases everything then do as i say once
1.flash "fastboot flash partition gpt.bin" (file to be used that you had used above the file of motoz play one https://drive.google.com/open?id=0B7X6bQHmiX_BY29Damx5ejEyX1U)
2.flash "fastboot flash bootloader bootloader.img"(file in the above given link)
3.flash "fastboot flash recovery recovery.img"(in the above link the files are there)
reboot bootloader then go to recovery mode it shows android error symbol then press power and then vol up then erase data,cache,and mount system then reboot to bootloader now flash "fastboot flash recovery twrp(latest 64bit) link http://moto-roms.netlib.re/twrp-3.2.1-1-potter.img
then see if boots to recovery if it went to recovery then wipe everything and do advanced wipe wipe cache ,system with ext4 format type and data with f2fs type format individually and now erase all items selected in the advanced wipe menu and factory reset then reboot to recovery and now copy the latest debloated stock rom or twrp flashable stock link https://forum.xda-developers.com/g5-plus/development/rom-twrp-flashable-stock-builds-t3675616
then flash it.
boot into os once evrything working fine now you can move to any custom rom .
TIP:i dont know if you have previous twrp backup of efs but if you have you are safe save a efs copy once every thing works fine.
ALL THE BEST.
Rakesh1b said:
bro your problem might be wrong formatted system and cache. see the above lines 51 285MB 1091MB 805MB ext2 oem---it should be ext4
52 1091MB 1359MB 268MB cache
53 1359MB 5654MB 4295MB ext2 system---it should be ext4
54 5654MB 31.3GB 25.6GB userdata it should be f2fs type formatted
may be you formatted your system partitions with wrong format type.
bro then try this type "fastboot erase all" it erases everything then do as i say once
1.flash "fastboot flash partition gpt.bin" (file to be used that you had used above the file of motoz play one https://drive.google.com/open?id=0B7X6bQHmiX_BY29Damx5ejEyX1U)
2.flash "fastboot flash bootloader bootloader.img"(file in the above given link)
3.flash "fastboot flash recovery recovery.img"(in the above link the files are there)
reboot bootloader then go to recovery mode it shows android error symbol then press power and then vol up then erase data,cache,and mount system then reboot to bootloader now flash "fastboot flash recovery twrp(latest 64bit) link http://moto-roms.netlib.re/twrp-3.2.1-1-potter.img
then see if boots to recovery if it went to recovery then wipe everything and do advanced wipe wipe cache ,system with ext4 format type and data with f2fs type format individually and now erase all items selected in the advanced wipe menu and factory reset then reboot to recovery and now copy the latest debloated stock rom or twrp flashable stock link https://forum.xda-developers.com/g5-plus/development/rom-twrp-flashable-stock-builds-t3675616
then flash it.
boot into os once evrything working fine now you can move to any custom rom .
TIP:i dont know if you have previous twrp backup of efs but if you have you are safe save a efs copy once every thing works fine.
ALL THE BEST.
Click to expand...
Click to collapse
Sorry bro but this not what i ask for , i asked for changeing partitions , this is all i done it and it work well all i need is to change partition recovery, and why moto g5 plus stay in deep freeze , i use gdisk and delete partition system and recreate it but after i reboot the phone everythink back old , the kernel didn't change anythink , why it happen to me , i need to resize the partitions , the gpt.bin i flashed are wrong... it steal 2 gb from my memory and put recovery partition size 16M this is not good bro, we should find way to change partitions , if you know any phone motorola can change partition link it to me , cause this is all phones motorola happen

Need to go back to stock, bootloop

Hello,
So my U Ultra was rooted, then unrooted.
Months later, the phone has some sort of software issue causing it to restart (probably a corrupt file)
Now i want to take it back to being a fully unrooted stock.
Please see details below
Fastboot getvar all:
kernel: lk
(bootloader) product: htc_ocedugl
(bootloader) version: 1.0
(bootloader) max-download-size: 1578400000
(bootloader) serialno: FA72F1700260
(bootloader) slot-count: 0
(bootloader) current-slot:
(bootloader) imei: 355167081167528
(bootloader) version-main: 2.19.400.1
(bootloader) boot-mode: download
(bootloader) version-baseband: [email protected]
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 2PZF20000
(bootloader) cid: HTC__060
The bootloader shows following info:
*** RELOCKED ***
*** FUSED (PRODUCTION)***
htc_ocedugl PVT S-ON
LK-1.0.0.0000
[email protected]
OpenDSP-v24.0.8996.00007_1206_OCE
OS-2.19.400.1
Feb 13 2018,16:29:19(1026541)
It's an Indian region phone i think, since the ota files i find online with the matching radio reads HTC INDIA
So i've tried the sdcard method as well as fastboot flash zip method, trying with 2 different files:
OTA_OCEAN_N[email protected]80211.2_63.34_release_522885kzkqxuugr4zk0yr5.zip
link: https://androidfilehost.com/?fid=746010030569965797
&
2PZFIMG_OCEAN_NOTE[email protected]70502_53.34_release_503372_signed_2_4.[email protected]
link: https://androidfilehost.com/?fid=3700668719832236174
Yes, i renamed it to "2PZFIMG.zip" and placed it on root of the sdcard,
for the OTA file mentioned above, i end up with the following error:
"99 RU_UNKNOWN_FAIL terrible mishap with original ret: 0
99 RU_UNKNOWN_FAIL terrible mishap with original ret: 0
99 RU_UNKNOWN_FAIL terrible mishap with original ret: 0"​
For the 2nd zip, I receive the following error:
"19 RU_MAIN_VER_FAIL os-version in android-info missing or i
19 RU_MAIN_VER_FAIL os-version in android-info missing or i
FAIL19 RU_MAIN_VER_FAIL os-version in android-info missing or i"​
fastboot flash zip concludes with the following error:
"zeeraks-mbp-2:~ zeerakata$ /Users/zeerakata/Documents/android/platform-tools/fastboot flash zip /Users/zeerakata/Documents/android/platform-tools/rom.zip
ERROR: Couldn't create a device interface iterator: (e00002bd)
Invalid sparse file format at header magic
error: write_sparse_skip_chunk: don't care size 904116903 is not a multiple of the block size 4096
Sending sparse 'zip' 1/2 (1048572 KB) error: write_sparse_skip_chunk: don't care size 904116903 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 904116903 is not a multiple of the block size 4096
OKAY [ 52.655s]
Writing 'zip' (bootloader) HOSD CL#1026541
(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_b
(bootloader) xkQ1e
(bootloader) ERR [SD_UPDATE_ERR] update_fb_ZIP_buf: can not find ZIP hea
(bootloader) der
(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 22
(bootloader) ERR Update zip file failed.
(bootloader) ERR ZIP ERROR, exit read zip loop
(bootloader) ERR ZIP signature checking failed...
(bootloader) Update zip file OK
(bootloader) ERR ZIP ERROR CODE, 22
(bootloader) [email protected]
FAILED (remote: '22 RU_HEADER_ERROR ')
fastboot: error: Command failed"​
I'm not a pro at this, but i've been playing around with android rooting and stuff for a while now.
Please help me with this.
Need to go back to stock
UPDATE:
So i downloaded a file with the following title,
2PZFIMG_OCEAN_NOTE_DU[email protected]80211.2_63.34_release_524957_combined_s
and it is successfully flashed via SDcard method:
I still am stuck on a bootloop, i cant make it past the htc logo, onto the loading screen
PLEASE HELP
Found the right RUU
The OTA file mentioned wouldnt flash, so i found an RUU of the same variant.
https://androidfilehost.com/?fid=11410963190603866517
It did the job, but seems like this wasn't it for my phone. Seems like a hardware issue to me since it would randomly freeze, even followed by a long-timed vibration till it turned off. So i'll be taking it for repair to a shop.

Moto E4 Bricked

Hello, First of all, excuse my bad English.
I have a Moto E4, which I had with Magisk, the following happened ...
I downloaded a module and the cell phone I keep working on the logo.
I tried to flash a stock rom, but there were no positive results, directly the cell phone at that time did not come out of "Recovery"
Search thousands of sites, download thousands of Stock's Roms, but no luck, no Rom works for me.
I tried to put Lineage Os on it and it tells me that it is only for Moviles Perry and it told me that I had a Cedric.
Look for a Rom that contains "Cedric" but there was no result, try to install different Roms but the same error as always.
"Zip file is invalid, etc" This happens with "TWRP"
and so with everything.
My device says the following when turning on.
-------------------------------------------------- ----------------------------------------
"AP Fastboot Flash Mode (Secure)
BL: BA. 34 (sha-c2e3dec, 2018-12-18 14:33:15)
Baseband <not found>
Product / Variant: Perry XT1768 16GB P3B
Serial Number: ZY2246DMSQ
CPU: MSM8917
eMMC: 16GB SAMSUNG QE13MB RV = 08 PV = 0D FV = 000000000000000D
DRAM = 2GB SAMSUNG LP3 DIE = 8Gb M5 = 01 M6 = 05 M7 = 00 M8 = 1F
Console [NULL] null
Tools Mode Config: DISABLED
Battery OK
Flashing_unlocked
Software status: Modified
Connect USB Data Cable
-------------------------------------------------- ----------------------------------------------
Then try to install the roms with Fastboot
And it returns this error in all steps.
-------------------------------------------------- --------------------------------------------
C: \ Program Files \ Minimal ADB and Fastboot> fastboot flash partition "C: \ Users \ Esmoli Denisse A \ Desktop \ mfastboot_adb_tools_HardReset_info_mEUsaYg \ mfastboot \ gpt.bin"
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot: partition: not found
target reported max download size of 536870912 bytes
sending 'partition' (45 KB) ...
OKAY [0.067s]
writing 'partition' ...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Canceling 'gpt.default.xml'
FAILED (remote failure)
finished. total time: 0.199s
C: \ Program Files \ Minimal ADB and Fastboot>
-------------------------------------------------- -------------------------------------------------- ----
I read in many places that it is because of the "Rom Stock" that it is outdated or is not compatible with my phone, but I don't know what else to try. I tried mostly all the "Rom"
To finish "RSD Lite" the cell phone does not recognize me, I already downloaded all the drivers and nothing.
Any solution? What else can I try? Is there a "Rom" for my device?
Thank you.
A quick Google search shows that "Cedric" is a Moto G5. You need to go to the Moto G5 forums and search for what you need there.

Bricked moto g5 plus, going absolutely insane trying to fix it

I have a bricked phone, tried a lot of fixes, and i mean alot, so i found no other way than to write a thread.
The phone doesnt turn on, while connected to a pc, it enters a bootloop,, and can only access fastboot mode.
Tried flashing stock firmware, different ones since i read that the problem may be that the firmware i tried to flash was older, but i even downloaded the latest and still nothing.
Here is the latest fastboot getvar
Code:
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8953-C1.07
(bootloader) product: potter
(bootloader) board: potter
(bootloader) secure: yes
(bootloader) hwrev: P3B
(bootloader) radio: 1
(bootloader) storage-type: emmc
(bootloader) emmc: 32GB SKHYNIX HBG4a2 RV=08 PV=A5 FV=00000000000000A5
(bootloader) ram: 2GB SKHYNIX LP3 DIE=8Gb M5=06 M6=03 M7=00 M8=1F
(bootloader) cpu: MSM8953
(bootloader) serialno: ZY2248PX2X
(bootloader) cid: 0x0032
(bootloader) channelid: 0x8d
(bootloader) uid: 3863DD5C00000000000000000000
(bootloader) securestate: oem_locked
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 536870912
(bootloader) reason: UTAG "bootmode" configured as fastboot
(bootloader) imei: 000000000000000
(bootloader) meid:
(bootloader) date: 01-01-1970
(bootloader) sku: 000000000000000
(bootloader) battid:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Thu Jan 1 0: 4:52 UTC 1970"
(bootloader) ro.build.fingerprint[0]: motorola/potter/potter:8.1.0/OPS28
(bootloader) ro.build.fingerprint[1]: .85-13/b8ea:user/release-keys
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.full[0]: Blur_Version.28.51.16.potter.reta
(bootloader) ro.build.version.full[1]: il.en.US
(bootloader) ro.build.version.qcom: LA.UM.6.6.r1-08600-89xx.0
(bootloader) version-baseband: M8953_13.20.07.21R POTTER_NA_CUST
(bootloader) kernel.version[0]: Linux version 3.18.71-perf-g2148ea10 (hu
(bootloader) kernel.version[1]: [email protected]) (gcc version 4.9.x 201
(bootloader) kernel.version[2]: 50123 (prerelease) (GCC) ) #1 SMP PREEMP
(bootloader) kernel.version[3]: T Fri Aug 17 09:31:36 CDT 2018
(bootloader) sbl1.git: git=MBM-NG-VC1.07-0-g3b15bb0
(bootloader) rpm.git: git=MBM-NG-VC0.C0-1-g202d600
(bootloader) tz.git: git=283f623
(bootloader) devcfg.git: git=283f623
(bootloader) keymaster.git: git=283f623
(bootloader) cmnlib.git: git=283f623
(bootloader) cmnlib64.git: git=283f623
(bootloader) prov.git: git=283f623
(bootloader) aboot.git: git=MBM-NG-VC1.07-0-g9d7f987
(bootloader) qe: qe 0/0
(bootloader) frp-state: no protection (0)
(bootloader) ro.carrier: retus
all: listed above
finished. total time: 0.122s
........(bootloader) securestate: oem_locked.......
try another command; "fastboot get_unlock_ability" and see what it reports.
I am thinking the bootloader is locked. if it is then try "fastboot flashing unlock_critical" (no qoutes) and then run the batch files to flash the moto software.
Nivead said:
........(bootloader) securestate: oem_locked.......
try another command; "fastboot get_unlock_ability" and see what it reports.
I am thinking the bootloader is locked. if it is then try "fastboot flashing unlock_critical" (no qoutes) and then run the batch files to flash the moto software.
Click to expand...
Click to collapse
yep, now its locked, i locked it on purpose to see if i could solve it going back and forth
decsus said:
yep, now its locked, i locked it on purpose to see if i could solve it going back and forth
Click to expand...
Click to collapse
Locking the bootloader when it's not booting correctly is just asking for trouble.
Sent from my Moto E (4) using Tapatalk
sd_shadow said:
Locking the bootloader when it's not booting correctly is just asking for trouble.
Sent from my Moto E (4) using Tapatalk
Click to expand...
Click to collapse
Already unlocked it again, i noticed that it says carrier: retus and ive been trying to install retail firmwares, does it make any difference? Im going to try to install a retus firmware and see if that solves the problem.
decsus said:
Already unlocked it again, i noticed that it says carrier: retus and ive been trying to install retail firmwares, does it make any difference? Im going to try to install a retus firmware and see if that solves the problem.
Click to expand...
Click to collapse
Still on bootloop.. here is the flash process
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem fb_mode_set
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
...
OKAY [ 0.005s]
finished. total time: 0.008s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash partition gpt.bin
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:partition: not found
target reported max download size of 536870912 bytes
sending 'partition' (45 KB)...
OKAY [ 0.006s]
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Committing 'gpt.default.xml'
(bootloader) - flashing 'gpt_main0.bin' to 'partition:0'
(bootloader) Flashing primary GPT image...
(bootloader) Flashing backup GPT image...
OKAY [ 0.170s]
finished. total time: 0.181s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash bootloader bootloader.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:bootloader: not found
target reported max download size of 536870912 bytes
sending 'bootloader' (5115 KB)...
OKAY [ 0.119s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Security version downgrade
(bootloader) Image tz failed validation
(bootloader) Preflash validation failed
(bootloader) Security version downgrade
(bootloader) Image devcfg failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'bootloader.default.xml'
FAILED (remote failure)
finished. total time: 0.426s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash modem NON-HLOS.bin
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:modem: not found
target reported max download size of 536870912 bytes
sending 'modem' (71921 KB)...
OKAY [ 1.579s]
writing 'modem'...
OKAY [ 0.647s]
finished. total time: 2.231s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash fsg fsg.mbn
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:fsg: not found
target reported max download size of 536870912 bytes
sending 'fsg' (3012 KB)...
OKAY [ 0.071s]
writing 'fsg'...
OKAY [ 0.080s]
finished. total time: 0.161s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase modemst1
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:modemst1: not found
erasing 'modemst1'...
OKAY [ 0.024s]
finished. total time: 0.029s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase modemst2
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:modemst2: not found
erasing 'modemst2'...
OKAY [ 0.027s]
finished. total time: 0.029s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash dsp adspso.bin
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:dsp: not found
target reported max download size of 536870912 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.362s]
writing 'dsp'...
OKAY [ 0.188s]
finished. total time: 0.556s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash logo logo.bin
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:logo: not found
target reported max download size of 536870912 bytes
sending 'logo' (2186 KB)...
OKAY [ 0.053s]
writing 'logo'...
OKAY [ 0.077s]
finished. total time: 0.138s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot boot.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:boot: not found
target reported max download size of 536870912 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.385s]
writing 'boot'...
(bootloader) Image signed with key bad key
OKAY [ 0.324s]
finished. total time: 0.712s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery recovery.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:recovery: not found
target reported max download size of 536870912 bytes
sending 'recovery' (20580 KB)...
OKAY [ 0.470s]
writing 'recovery'...
(bootloader) Image signed with key bad key
OKAY [ 0.392s]
finished. total time: 0.872s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.0
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
sending 'system' (258396 KB)...
OKAY [ 5.652s]
writing 'system'...
OKAY [ 1.998s]
finished. total time: 7.660s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.1
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
sending 'system' (256514 KB)...
OKAY [ 5.625s]
writing 'system'...
OKAY [ 1.889s]
finished. total time: 7.523s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.2
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
sending 'system' (246302 KB)...
OKAY [ 5.445s]
writing 'system'...
OKAY [ 2.188s]
finished. total time: 7.642s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.3
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
sending 'system' (262141 KB)...
OKAY [ 5.740s]
writing 'system'...
OKAY [ 1.905s]
finished. total time: 7.651s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.4
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
sending 'system' (262141 KB)...
OKAY [ 5.736s]
writing 'system'...
OKAY [ 1.921s]
finished. total time: 7.663s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.5
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
sending 'system' (262141 KB)...
OKAY [ 5.733s]
writing 'system'...
OKAY [ 1.912s]
finished. total time: 7.657s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.6
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
sending 'system' (250531 KB)...
OKAY [ 5.508s]
writing 'system'...
OKAY [ 2.237s]
finished. total time: 7.757s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.7
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
sending 'system' (262059 KB)...
OKAY [ 5.757s]
writing 'system'...
OKAY [ 2.241s]
finished. total time: 8.007s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.8
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
sending 'system' (254142 KB)...
OKAY [ 5.562s]
writing 'system'...
OKAY [ 1.889s]
finished. total time: 7.458s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash oem oem.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:oem: not found
target reported max download size of 536870912 bytes
sending 'oem' (104608 KB)...
OKAY [ 2.279s]
writing 'oem'...
OKAY [ 0.837s]
finished. total time: 3.125s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase cache
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:cache: not found
erasing 'cache'...
OKAY [ 0.018s]
finished. total time: 0.019s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase userdata
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:userdata: not found
erasing 'userdata'...
OKAY [ 0.059s]
finished. total time: 0.061s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase DDR
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:DDR: not found
erasing 'DDR'...
OKAY [ 0.008s]
finished. total time: 0.009s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem fb_mode_clear
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
...
OKAY [ 0.006s]
finished. total time: 0.007s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
rebooting...
finished. total time: 0.009s
And here is the after getvar
Code:
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8953-C1.07
(bootloader) product: potter
(bootloader) board: potter
(bootloader) secure: yes
(bootloader) hwrev: P3B
(bootloader) radio: 1
(bootloader) storage-type: emmc
(bootloader) emmc: 32GB SKHYNIX HBG4a2 RV=08 PV=A5 FV=00000000000000A5
(bootloader) ram: 2GB SKHYNIX LP3 DIE=8Gb M5=06 M6=03 M7=00 M8=1F
(bootloader) cpu: MSM8953
(bootloader) serialno: ZY2248PX2X
(bootloader) cid: 0x0032
(bootloader) channelid: 0x8d
(bootloader) uid: 3863DD5C00000000000000000000
(bootloader) securestate: flashing_unlocked
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 536870912
(bootloader) reason: Volume down key pressed
(bootloader) imei: 000000000000000
(bootloader) meid:
(bootloader) date: 01-01-1970
(bootloader) sku: 000000000000000
(bootloader) battid:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Thu Jan 1 0: 0:18 UTC 1970"
(bootloader) ro.build.fingerprint[0]: motorola/potter/potter:8.1.0/OPS28
(bootloader) ro.build.fingerprint[1]: .85-13/b8ea:user/release-keys
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.full[0]: Blur_Version.28.51.16.potter.reta
(bootloader) ro.build.version.full[1]: il.en.US
(bootloader) ro.build.version.qcom: LA.UM.6.6.r1-08600-89xx.0
(bootloader) version-baseband: M8953_13.20.07.21R POTTER_NA_CUST
(bootloader) kernel.version[0]: Linux version 3.18.71-perf-g2148ea10 (hu
(bootloader) kernel.version[1]: [email protected]) (gcc version 4.9.x 201
(bootloader) kernel.version[2]: 50123 (prerelease) (GCC) ) #1 SMP PREEMP
(bootloader) kernel.version[3]: T Fri Aug 17 09:31:36 CDT 2018
(bootloader) sbl1.git: git=MBM-NG-VC1.07-0-g3b15bb0
(bootloader) rpm.git: git=MBM-NG-VC0.C0-1-g202d600
(bootloader) tz.git: git=283f623
(bootloader) devcfg.git: git=283f623
(bootloader) keymaster.git: git=283f623
(bootloader) cmnlib.git: git=283f623
(bootloader) cmnlib64.git: git=283f623
(bootloader) prov.git: git=283f623
(bootloader) aboot.git: git=MBM-NG-VC1.07-0-g9d7f987
(bootloader) qe: qe 0/0
(bootloader) frp-state: no protection (0)
(bootloader) ro.carrier: retus
decsus said:
Still on bootloop.. here is the flash process
And here is the after getvar
Click to expand...
Click to collapse
Install twrp and go for ROM to make sure it not a hardware problem.
riyan65 said:
Install twrp and go for ROM to make sure it not a hardware problem.
Click to expand...
Click to collapse
Already did that and still on bootloop, could it be the battery? i mean i cant get it to do anything if its not plugged, cant even get it to bootloader.
decsus said:
Already did that and still on bootloop, could it be the battery? i mean i cant get it to do anything if its not plugged, cant even get it to bootloader.
Click to expand...
Click to collapse
Maybe, did your device fall from somewhere before it happened.
riyan65 said:
Maybe, did your device fall from somewhere before it happened.
Click to expand...
Click to collapse
The phone is not mine, but it looks damaged on the outside..
decsus said:
The phone is not mine, but it looks damaged on the outside..
Click to expand...
Click to collapse
Then it could be possible problem of lose connection of battery from device which cause bootloop and other problems. Does the device get charged or just show charging?. But still it could be problem of hardware. You can try opening the device and connecting the lose cable to get the device fixed.

Categories

Resources