Tartalomjegyzék

HTC Desire S Rootolása

BEST!!!

A telefon vissza lesz állítva gyári beállításokra

Előfeltételek

HBOOT S-OFF

HBOOT S-OFF megszüntetése, hogy írható legyen a BOOT és HBOOT partíció
  1. Belépés a bootloaderbe:
    • Kikapcsolt állapotból: VolumeDown+Power
    • Bekacsolt állapotból:
      adb reboot-bootloader
  2. Készülék azonosító lekérdezése:
    fastboot oem get_identifier_token
     
    #< waiting for device >
    #...
    #(bootloader)
    #(bootloader) < Please cut following message >
    #(bootloader) <<<< Identifier Token Start >>>>
    #(bootloader) ...
    #(bootloader) ...
    #(bootloader) ...
    #(bootloader) <<<<< Identifier Token End >>>>>
    #OKAY [  0.062s]
    #finished. total time: 0.062s
  3. Telefon regisztrálása a HTC Developer portálon: http://www.htcdev.com/bootloader/unlock-instructions/
  4. Email-ben kapott feloldó bináris feltöltése:
    fastboot flash unlocktoken Unlock_code.bin
     
    #sending 'unlocktoken' (0 KB)...
    #OKAY [  0.015s]
    #writing 'unlocktoken'...
    #(bootloader) unlock token check successfully
    #OKAY [  0.005s]
    #finished. total time: 0.021s
  5. Művelet megerősítése a VolumeUp, majd a Power gombbal!
A telefon újraindul a gyári beállításokra visszaállva

Temp root jogosultság szerzése

  1. TacoRoot telepítése:
    adb push -p tacoroot.bin /data/local/tmp/tacoroot
    adb shell 
    chmod 777 /data/local/tmp/*
    /data/local/tmp/tacoroot --setup
  2. Ha a piros felkiáltójel megjelenik, akkor a VolumeUp+VolumeDown+Power gombokkal indítsuk újra a telefont. Olyan hosszan kell nyomni, mintha 2x bootolna, utána lehet csak elengedni. Ezt követően várjuk meg, hogy teljesen betöltsön.
  3. Temp root utolsó lépése:
    adb shell
    /data/local/tmp/tacoroot --root

HBoot downgradelése

  1. Jelenlegi HBOOT lementése:
    adb shell
    dd if=/dev/block/mmcblk0p18 of=/data/local/tmp/backup.img
    exit
    adb pull -p /data/local/tmp/backup.img
  2. Új flashelése:
    adb push -p hboot.img /data/local/tmp
    adb shell
    chmod 777 /data/local/tmp/hboot.img
    dd if=/data/local/tmp/hboot.img of=/dev/block/mmcblk0p18
  3. Reboot a boot menübe:
    adb reboot-bootloader
fastboot devices //Verify that the device is detected
fastboot erase cache //Not sure if this is completely necessary, but the guide I followed included it as a step
fastboot oem rebootRUU //Boot into RUU, which lets you flash HBOOT, radio, etc.
fastboot flash zip [zipname.zip] //Replace zipname.zip with the actual name of the file you are flashing
fastboot reboot-bootloader //The guide I pulled this info from didn't specifically say that you should reboot t

@echo off
cls
adb devices
echo If your device is not listed exit this program now, enable usb debugging and try again.
pause
cls
adb push -p hboot.img /data/local/tmp
adb shell chmod 777 /data/local/tmp/hboot.img
echo Please accept superuser request on your phone
adb shell su
pause
adb shell dd if=/dev/block/mmcblk0p18 of=/sdcard/backup.img
adb shell dd if=/data/local/tmp/hboot.img of=/dev/block/mmcblk0p18
echo Bootloader should be flashed to your device now, backup from old bootloader is saved at /sdcard/backup.img
pause
adb reboot bootloader

D:\Batyu\bbalazs>adb push -p goldcard /data/local/tmp/
adb server is out of date.  killing...
* daemon started successfully *
1174 KB/s (19240 bytes in 0.016s)
 
D:\Batyu\bbalazs>adb shell chmod 777 /data/local/tmp/goldcard
 
D:\Batyu\bbalazs>adb shell cat /sys/class/mmc_host/mmc2/mmc2:*/cid > tcid
 
D:\Batyu\bbalazs>cat tcid
A megadott nevet (cat) a rendszer nem ismeri fel belső vagy külső
parancsként, futtatható programként vagy kötegfájlként.
 
D:\Batyu\bbalazs>type tcid
03534453553038478003b5890c00b8da
 
D:\Batyu\bbalazs>set/p cid= < tcid
 
D:\Batyu\bbalazs>del tcid
 
D:\Batyu\bbalazs>adb shell /data/local/tmp/goldcard -c %cid% -o /data/local/tmp/goldcard.img
HTC android goldcard tool Copyright (C) 2011, Wayne D. Hoxsie Jr.
Original code by B. Kerler. Special thanks to ATTN1 and the XDA team.
Donations can be made to the Electronic Frontier Foundation:
http://www.eff.org/
or to B. Kerler:
http://psas.revskills.de/
 
D:\Batyu\bbalazs>adb shell dd if=/data/local/tmp/goldcard.img of=/dev/block/mmcblk1
/dev/block/mmcblk1: cannot open for write: Permission denied
 
D:\Batyu\bbalazs>adb shell dd if=/data/local/tmp/goldcard.img of=/dev/block/mmcblk
 
D:\Batyu\bbalazs>ls -al /dev/block
A megadott nevet (ls) a rendszer nem ismeri fel belső vagy külső
parancsként, futtatható programként vagy kötegfájlként.
 
D:\Batyu\bbalazs>adb shell ls -al /dev/block
-al: No such file or directory
mmcblk1p1
mmcblk1
mmcblk0p31
mmcblk0p30
mmcblk0p29
mmcblk0p28
mmcblk0p27
mmcblk0p26
mmcblk0p25
mmcblk0p24
mmcblk0p23
mmcblk0p22
mmcblk0p21
mmcblk0p20
mmcblk0p19
mmcblk0p18
mmcblk0p17
mmcblk0p16
mmcblk0p15
mmcblk0p14
mmcblk0p13
mmcblk0p12
mmcblk0p11
mmcblk0p10
mmcblk0p9
mmcblk0p8
mmcblk0p7
mmcblk0p6
mmcblk0p5
mmcblk0p4
mmcblk0p3
mmcblk0p2
mmcblk0p1
mmcblk0
loop7
loop6
loop5
loop4
loop3
loop2
loop1
loop0
vold
platform
 
D:\Batyu\bbalazs>adb shell su
# ^C
D:\Batyu\bbalazs>fdish
A megadott nevet (fdish) a rendszer nem ismeri fel belső vagy külső
parancsként, futtatható programként vagy kötegfájlként.
 
D:\Batyu\bbalazs>fdis
 
D:\Batyu\bbalazs>adb shell
$ su
su
# fdisk
fdisk
BusyBox v1.19.3 (2011-11-22 01:37:10 MST) multi-call binary.
 
Usage: fdisk [-ul] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK
 
Change partition table
 
        -u              Start and End are in sectors (instead of cylinders)
        -l              Show partition table for each DISK, then exit
        -b 2048         (for certain MO disks) use 2048-byte sectors
        -C CYLINDERS    Set number of cylinders/heads/sectors
        -H HEADS
        -S SECTORS
 
# fdisk -^C
D:\Batyu\bbalazs>adb shell
$ su
su
#
adb shell dd if=/data/local/tmp/goldcard.img of=/dev/block/mmcblk1
#
adb shell dd if=/data/local/tmp/goldcard.img of=/dev/block/mmcblk1
adb: not found
#
 
#
 
# fdisk /dev/block/mmcblk1
fdisk /dev/block/mmcblk1
 
The number of cylinders for this disk is set to 19165.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
 
Command (m for help): p
p
 
Disk /dev/block/mmcblk1: 7948 MB, 7948206080 bytes
81 heads, 10 sectors/track, 19165 cylinders
Units = cylinders of 810 * 512 = 414720 bytes
 
              Device Boot      Start         End      Blocks  Id System
/dev/block/mmcblk1p1              11       19166     7757824   b Win95 FAT32
 
Command (m for help): q
q
 
# shell dd if=/data/local/tmp/goldcard.img of=/dev/block/mmcblk1
shell dd if=/data/local/tmp/goldcard.img of=/dev/block/mmcblk1
shell: not found
# dd if=/data/local/tmp/goldcard.img of=/dev/block/mmcblk1
dd if=/data/local/tmp/goldcard.img of=/dev/block/mmcblk1
0+1 records in
0+1 records out
384 bytes transferred in 0.001 secs (384000 bytes/sec)
# ^C
D:\Batyu\bbalazs>adb reboot
 
D:\Batyu\bbalazs>adb shell
$ su
su
# /data/local/tmp/misc_version  -s 1.27.405.6
/data/local/tmp/misc_version  -s 1.27.405.6
--set_version set. VERSION will be changed to: 1.27.405.6
Patching and backing up misc partition...
# exit
exit
$ adb reboot-bootloader
adb reboot-bootloader
adb: permission denied
$ ^Cb reboot-bootloader
D:\Batyu\bbalazs>^D
 
D:\Batyu\bbalazs>adb reboot-bootloader
 
D:\Batyu\bbalazs>fastboot oem lock
...
(bootloader) Lock successfully...
FAILED (status read failed (Too many links))
finished. total time: 0.301s
 
D:\Batyu\bbalazs>adb reboot-bootloader
 
D:\Batyu\bbalazs>