Here's the life story of my phone as far as tampering with the system files.
HTC Dev Unlock to get an unlocked bootloader
Flashed TWRP to my recovery partition
Made a backup, but I think I just included the default partitions and no more no less.
Flashed SuperSU
Used Rumrunner S-Off for AT&T 3.17.502.3 successfully
In preparation for AR31, I attempted to flash the 3.63.X.X firmware.zip, and failed miserably. One person later pointed out that it was because I was using the wrong model. Here's the log:
Code:
C:\adb>adb reboot bootloader
C:\adb>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.55.0000
(bootloader) version-baseband: 4T.20.3218.13
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 3.17.502.3
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: REMOVED
(bootloader) imei: REMOVED
(bootloader) meid: 00000000000000
(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0712000
(bootloader) cidnum: CWS__001
(bootloader) battery-status: good
(bootloader) battery-voltage: 4230mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-2da61e5e88
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.075s
C:\adb>fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.042s]
finished. total time: 0.042s
C:\adb>fastboot oem rebootRUU
...
(bootloader) Start Verify: 0
OKAY [ 0.048s]
finished. total time: 0.050s
C:\adb>fastboot flash zip C:\adb\firmware.zip
sending 'zip' (28043 KB)...
OKAY [ 2.497s]
writing 'zip'...
(bootloader) zip header checking...
(bootloader) zip info parsing...
(bootloader) checking model ID...
FAILED (remote: 41 model id check fail)
finished. total time: 2.915s
C:\adb>fastboot flash zip C:\adb\firmware.zip
sending 'zip' (28043 KB)...
OKAY [ 2.520s]
writing 'zip'...
(bootloader) zip header checking...
(bootloader) zip info parsing...
(bootloader) checking model ID...
FAILED (remote: 41 model id check fail)
finished. total time: 2.941s
C:\adb>fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.040s]
finished. total time: 0.040s
C:\adb>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.55.0000
(bootloader) version-baseband: 4T.20.3218.13
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 3.17.502.3
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: REMOVED
(bootloader) imei: REMOVED
(bootloader) meid: 00000000000000
(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0712000
(bootloader) cidnum: CWS__001
(bootloader) battery-status: good
(bootloader) battery-voltage: 4234mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-2da61e5e88
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.090s
C:\adb>fastboot oem writecid 11111111
...
(bootloader) Start Verify: 0
(bootloader) Input CID is super CID
(bootloader) Start Verify: 0
OKAY [ 0.082s]
finished. total time: 0.082s
C:\adb>fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.040s]
finished. total time: 0.041s
C:\adb>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.55.0000
(bootloader) version-baseband: 4T.20.3218.13
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 3.17.502.3
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: REMOVED
(bootloader) imei: REMOVED
(bootloader) meid: 00000000000000
(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0712000
(bootloader) cidnum: 11111111
(bootloader) battery-status: good
(bootloader) battery-voltage: 4242mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-2da61e5e88
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.084s
C:\adb>fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.041s]
finished. total time: 0.042s
C:\adb>fastboot flash zip C:\adb\firmware.zip
sending 'zip' (28043 KB)...
OKAY [ 2.505s]
writing 'zip'...
FAILED (remote: not allowed)
finished. total time: 2.540s
C:\adb>fastboot reboot
rebooting...
finished. total time: 0.040s
After that failed, I decided I was just going to forget about it (as it was optional and I didn't want to risk anything worse than an error message), and instead, install Android Revolution by itself instead. As I entered my bootloader, I was greeted by *TAMPERED* / *LOCKED*. The bootloader was still S-OFF, so I assumed I could install AR31 regardless. It worked, but as I'm preparing to flash the proper firmware.zip from http://forum.xda-developers.com/showthread.php?t=2485651, it is a bit worrying to me. I already tried fastboot flash Unlock_code.bin so that I could just unlock the bootloader again and restore from the previous backup, but it refused to do so and gave me an error.
Anyways, with the information out there, should I even be worried about this considering I have S-Off? In either case, how do I solve the situation? It's a little worrying to me.
FreeK200 said:
Here's the life story of my phone as far as tampering with the system files.
HTC Dev Unlock to get an unlocked bootloader
Flashed TWRP to my recovery partition
Made a backup, but I think I just included the default partitions and no more no less.
Flashed SuperSU
Used Rumrunner S-Off for AT&T 3.17.502.3 successfully
In preparation for AR31, I attempted to flash the 3.63.X.X firmware.zip, and failed miserably. One person later pointed out that it was because I was using the wrong model. Here's the log:
Code:
C:\adb>adb reboot bootloader
C:\adb>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.55.0000
(bootloader) version-baseband: 4T.20.3218.13
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 3.17.502.3
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: REMOVED
(bootloader) imei: REMOVED
(bootloader) meid: 00000000000000
(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0712000
(bootloader) cidnum: CWS__001
(bootloader) battery-status: good
(bootloader) battery-voltage: 4230mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-2da61e5e88
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.075s
C:\adb>fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.042s]
finished. total time: 0.042s
C:\adb>fastboot oem rebootRUU
...
(bootloader) Start Verify: 0
OKAY [ 0.048s]
finished. total time: 0.050s
C:\adb>fastboot flash zip C:\adb\firmware.zip
sending 'zip' (28043 KB)...
OKAY [ 2.497s]
writing 'zip'...
(bootloader) zip header checking...
(bootloader) zip info parsing...
(bootloader) checking model ID...
FAILED (remote: 41 model id check fail)
finished. total time: 2.915s
C:\adb>fastboot flash zip C:\adb\firmware.zip
sending 'zip' (28043 KB)...
OKAY [ 2.520s]
writing 'zip'...
(bootloader) zip header checking...
(bootloader) zip info parsing...
(bootloader) checking model ID...
FAILED (remote: 41 model id check fail)
finished. total time: 2.941s
C:\adb>fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.040s]
finished. total time: 0.040s
C:\adb>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.55.0000
(bootloader) version-baseband: 4T.20.3218.13
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 3.17.502.3
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: REMOVED
(bootloader) imei: REMOVED
(bootloader) meid: 00000000000000
(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0712000
(bootloader) cidnum: CWS__001
(bootloader) battery-status: good
(bootloader) battery-voltage: 4234mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-2da61e5e88
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.090s
C:\adb>fastboot oem writecid 11111111
...
(bootloader) Start Verify: 0
(bootloader) Input CID is super CID
(bootloader) Start Verify: 0
OKAY [ 0.082s]
finished. total time: 0.082s
C:\adb>fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.040s]
finished. total time: 0.041s
C:\adb>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.55.0000
(bootloader) version-baseband: 4T.20.3218.13
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 3.17.502.3
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: REMOVED
(bootloader) imei: REMOVED
(bootloader) meid: 00000000000000
(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0712000
(bootloader) cidnum: 11111111
(bootloader) battery-status: good
(bootloader) battery-voltage: 4242mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-2da61e5e88
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.084s
C:\adb>fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.041s]
finished. total time: 0.042s
C:\adb>fastboot flash zip C:\adb\firmware.zip
sending 'zip' (28043 KB)...
OKAY [ 2.505s]
writing 'zip'...
FAILED (remote: not allowed)
finished. total time: 2.540s
C:\adb>fastboot reboot
rebooting...
finished. total time: 0.040s
After that failed, I decided I was just going to forget about it (as it was optional and I didn't want to risk anything worse than an error message), and instead, install Android Revolution by itself instead. As I entered my bootloader, I was greeted by *TAMPERED* / *LOCKED*. The bootloader was still S-OFF, so I assumed I could install AR31 regardless. It worked, but as I'm preparing to flash the proper firmware.zip from http://forum.xda-developers.com/showthread.php?t=2485651, it is a bit worrying to me. I already tried fastboot flash Unlock_code.bin so that I could just unlock the bootloader again and restore from the previous backup, but it refused to do so and gave me an error.
Anyways, with the information out there, should I even be worried about this considering I have S-Off? In either case, how do I solve the situation? It's a little worrying to me.
Click to expand...
Click to collapse
it failed because you where not in ruu mode here is a great guide for firmware flashing
http://forum.xda-developers.com/showthread.php?t=2316726
jerrycoffman45 said:
it failed because you where not in ruu mode here is a great guide for firmware flashing
http://forum.xda-developers.com/showthread.php?t=2316726
Click to expand...
Click to collapse
I believe I was in RUU mode. If you look in the log, I used "fastboot oem rebootRUU" prior to trying to flash the firmware, and I had the black background with a silver htc logo when I attempted this as well. In either case, unless I'm missing something entirely, I already realize that I did that incorrectly (trying to flash firmware with the wrong model ID), and I already have the correct firmware with the correct model id waiting. What I'm looking for though is for a solution to unlock my bootloader again. Somewhere along this process, my bootloader went from Unlocked to locked, and I didn't have anything to do with it aside from the failed flashes on the firmware. In no way, shape or form, did I even attempt to lock my bootloader again, so when I was preparing to flash the AR31 rom, it came as a surprise that it was locked.
FreeK200 said:
I believe I was in RUU mode. If you look in the log, I used "fastboot oem rebootRUU" prior to trying to flash the firmware, and I had the black background with a silver htc logo when I attempted this as well. In either case, unless I'm missing something entirely, I already realize that I did that incorrectly (trying to flash firmware with the wrong model ID), and I already have the correct firmware with the correct model id waiting. What I'm looking for though is for a solution to unlock my bootloader again. Somewhere along this process, my bootloader went from Unlocked to locked, and I didn't have anything to do with it aside from the failed flashes on the firmware. In no way, shape or form, did I even attempt to lock my bootloader again, so when I was preparing to flash the AR31 rom, it came as a surprise that it was locked.
Click to expand...
Click to collapse
Since you're s-off, you should be able to unlock using the process outlined here (http://forum.xda-developers.com/showthread.php?t=2475914)
Update: Fixed. Please delete thread.
Hi guys,
I have an HTC One M8 which was rooted, with TWRP and running CM 12, S-ON. I just wanted to put the stock ROM back on it, I don't care about the flags that says that the software is modified or anything like that.
For that I followed this thread.
Step 1: lock the bootloader. -> this worked. The status is now RELOCKED. ***Software modified***
Trying to flash TWRP doesn't work though, neither is the device listed through adb, bellow what I get in the command prompt.
C:\miniadb_m8> fastboot flash recovery openrecovery-twrp-2.8.4.0-m8.img
target reported max download size of 1826414592 bytes
sending 'recovery' (16092 KB)...
OKAY [ 1.740s]
writing 'recovery'...
(bootloader) signature checking...
FAILED (remote: signature verify fail)
finished. total time: 2.321s
C:\miniadb_m8>adb devices
List of devices attached
C:\miniadb_m8>fastboot devices
xxxx fastboot
I looked up the RUU for my devices based on the information I got back by using fastboot getvar all and came across another post on this forum for my device (HTC__038) and tried flashing that RUU.zip file, bellow the output.
C:\adb>fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.011s]
finished. total time: 0.011s
C:\adb>fastboot oem rebootRUU
...
(bootloader) Start Verify: 3
OKAY [ 0.013s]
finished. total time: 0.013s
C:\adb>htc_fastboot flash zip RUU.zip
sending 'zip'... (53966 KB) OKAY
sending time = 2.648 secs
writing 'zip'... (bootloader) adopting the signature contained in this image...
(bootloader) signature checking...
(bootloader) rom parsing start ...
(bootloader) rom parsing finish ...
(bootloader) zip header checking...
(bootloader) zip info parsing...
FAILED (status read failed (Too many links))
Execution time is 8(s).
I can't get around this, was wondering if someone can point me in the right direction, based on my device info:
C:\miniadb_m8>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.19.0.0000
(bootloader) version-baseband: 1.24.21331147A1.09G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main:
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: xxxxx
(bootloader) imei: xxxxx
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product: m8_ul
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B65000
(bootloader) cidnum: HTC__038
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: 3aa067db
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
Any help is appreciated, thanks a lot.
Cheers,
Adrian
LG-D415 stuck in fastboot No operating system installed. ( I think)
To make long story short was stuck in recovery (due to 14.1 issue) tried the twrp3.2.1-0mako.img solution but somewhere (hard to nail down) hit reboot before I had installed a rom. Now stuck in fastboot. Have tried many different ways to get system but none work. Need help with fastboot and partitions getvar:slot . Here is what I can get from the phone as info:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot boot recovery.im
downloading 'boot.img'...
OKAY [ 0.438s]
booting...
FAILED (remote: unknown command)
finished. total time: 0.444s
C:\Program Files (x86)\Minimal ADB and Fastboot> fastboot getvar all
(bootloader) display-panel:
(bootloader) charger-screen-enabled: 0
(bootloader) max-download-size: 0x20000000
(bootloader) partition-type:cache: ext4
(bootloader) partition-size:cache: 0x38400000
(bootloader) partition-type:userdata: ext4
(bootloader) partition-size:userdata: 0x102180400
(bootloader) partition-type:system: ext4
(bootloader) partition-size:system: 0x80000000
(bootloader) unlocked: yes
(bootloader) secure-boot: yes
(bootloader) version-hardware: rev_10
(bootloader) variant: w7_tmo_us Samsung 8GB
(bootloader) serialno: LGD415e09994e6
(bootloader) kernel: lk
(bootloader) product: W7_TMO_US
all:
finished. total time: 0.050s
all commands except this one and list devices have failed
hello, my first name is jonathan, i'm french.
I have an amazfit stratos 3 watch, Chinese version.
I have a problem unlocking the bootloader.
----------------------------------------------------------------
Microsoft Windows [version 10.0.18363.592]
(c) 2019 Microsoft Corporation. Tous droits réservés.
C:\adb>fastboot reboot
rebooting...
finished. total time: 0.016s
C:\adb>adb devices
List of devices attached
11ee2611 device
C:\adb>adb shell reboot bootloader
C:\adb>fastboot oem unlock d144d5a285c0b53aeb2ee359bb7a2ee9
< waiting for device >
...
OKAY [ 0.047s]
finished. total time: 0.047s
C:\adb>fastboot getvar unlocked
unlocked: no
finished. total time: 0.016s
---------------------------------------
the code is good but the bootloader does not want to unlock
C:\adb>adb shell reboot bootloader
C:\adb>fastboot getvar all
(bootloader) version-bootloader: U-Boot 2013.07-g43d9f8c
(bootloader) version-baseband: N/A
(bootloader) version-hardware: V1.1 20130322
(bootloader) version-cdma: N/A
(bootloader) variant: watch
(bootloader) serialno: 19281943******
(bootloader) product: watch
(bootloader) secure: yes
(bootloader) unlocked: no
(bootloader) uart-on: NO
(bootloader) partition-size:bootloader: 0x0000
(bootloader) partition-type:bootloader: emmc
(bootloader) partition-size:recovery: 0x1000
(bootloader) partition-type:recovery: emmc
(bootloader) partition-size:boot: 0x2000
(bootloader) partition-type:boot: emmc
(bootloader) partition-size:system: 0x3000
(bootloader) partition-type:system: ext4
(bootloader) partition-size:cache: 0x4000
(bootloader) partition-type:cache: ext4
(bootloader) partition-size:userdata: 0x5000
(bootloader) partition-type:userdata: ext4
(bootloader) max-download-size: 0x4000000
all:
finished. total time: 0.156s
C:\adb>
Try this:
In the case of ROM China the code must be inserted with a slash after the first 5 numbers (for example 12345 / 12345678);
How to unlock the bootloader on Amazfit Pace, Stratos and Verge
In this guide we explain how to unlock the bootloader on Amazfit devices, so you can install custom ROM.
en.gizchina.it
FAILED (remote: the command you input is restricted on locked hw) any can help me ?
tr3xUs said:
FAILED (remote: the command you input is restricted on locked hw) any can help me ?
Click to expand...
Click to collapse
What does
Code:
fastboot getvar all
Show you?
Sent from my ali using XDA Labs
sd_shadow said:
What does
Code:
fastboot getvar all
Show you?
Sent from my ali using XDA Labs
Click to expand...
Click to collapse
(bootloader) antirback_tee_version: 0x0102
(bootloader) antirback_lk_version: 0x0001
(bootloader) antirback_pl_version: 0x0006
(bootloader) rpmb_state: 1
(bootloader) lk_build_desc: e64c5c8-20180604_082707
(bootloader) pl_build_desc: 07d3bbd-20181011_014731
(bootloader) prod: 1
(bootloader) unlock_status: false
(bootloader) unlock_code: 0xc936d86b96168eca
(bootloader) serialno: G000KU067103000R
(bootloader) max-download-size: 0x6d00000
(bootloader) off-mode-charge: 1
(bootloader) warranty: no
(bootloader) secure: yes
(bootloader) kernel: lk
(bootloader) product: GIZA
(bootloader) version-preloader: 0.1.00
(bootloader) version: 0.5
all: Done!!
Finished. Total time: 0.059s
tr3xUs said:
(bootloader) antirback_tee_version: 0x0102
(bootloader) antirback_lk_version: 0x0001
(bootloader) antirback_pl_version: 0x0006
(bootloader) rpmb_state: 1
(bootloader) lk_build_desc: e64c5c8-20180604_082707
(bootloader) pl_build_desc: 07d3bbd-20181011_014731
(bootloader) prod: 1
(bootloader) unlock_status: false
(bootloader) unlock_code: 0xc936d86b96168eca
(bootloader) serialno: G000KU067103000R
(bootloader) max-download-size: 0x6d00000
(bootloader) off-mode-charge: 1
(bootloader) warranty: no
(bootloader) secure: yes
(bootloader) kernel: lk
(bootloader) product: GIZA
(bootloader) version-preloader: 0.1.00
(bootloader) version: 0.5
all: Done!!
Finished. Total time: 0.059s
Click to expand...
Click to collapse
Device codename is Giza
The only thread I see is
https://forum.xda-developers.com/hd8-hd10/orig-development/unbrick-fire-hd8-2016-giza-t3967486
Doesn't look like there is a bootloader unlock method.
Most people with this device post in https://forum.xda-developers.com/hd8-hd10
sd_shadow said:
Device codename is Giza
The only thread I see is
https://forum.xda-developers.com/hd8-hd10/orig-development/unbrick-fire-hd8-2016-giza-t3967486
Doesn't look like there is a bootloader unlock method.
Most people with this device post in https://forum.xda-developers.com/hd8-hd10
Click to expand...
Click to collapse
ok nice! I go to try.
Thanks!