Android: Difference between revisions

From Halfface
Jump to navigation Jump to search
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
My android device is a htc desire.
My android device is a htc desire.


==protection==
==useful links desire==
installation
http://forum.xda-developers.com/showthread.php?t=809328
  http://techgeeks-online.com/2010/zagg-invisible-shield-install/
==s-off==
 
  http://alpharev.nl/
http://forum.xda-developers.com/showthread.php?t=805811
==radio firmware==
http://forum.xda-developers.com/showthread.php?t=687464
==root==
==root==
  http://www.tech-exclusive.com/2010/10/17/guide-to-root-android-2-2-on-htc-desire/
  http://www.tech-exclusive.com/2010/10/17/guide-to-root-android-2-2-on-htc-desire/
Line 24: Line 27:
==mount filesystem rw==
==mount filesystem rw==
  mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
  mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw /dev/root /
==full access to filesystem==
==full access to filesystem==
Boot device in recovery mode.
Boot device in recovery mode.
Line 35: Line 40:
==Change password dropbear==
==Change password dropbear==
-C cleartext password.
-C cleartext password.
==Generate ssh keys==
dropbearkey -t rsa -f /data/dropbear/dropbear_rsa_host_key
dropbearkey -t dss -f /data/dropbear/dropbear_dss_host_key
==busybox==
adb push busybox /system/xbin/busybox
chmod 4755 busybox
cd /system/xbin
./busybox --install -s .
==flash radio==
Get root access and boot phone fastboot mode.
Flash radio
fastboot flash radio radio.img
==flash rom==
Get root access.
rsync -aP rom.zip /media/232322/rom.zip
Put phone in charge only and reboot with command.
adb shell reboot recovery
*Once in recovery use your trackpad to scroll down to install zip from sdcard
*Choose choose zip from sdcard
*Select the ROM to install – your ROM will begin to install
*Once installed press the back button a couple of times to go back to the main screen of Clockwork Recovery
*Choose reboot system now
==extract Android Backup==
dd if=mybackup.ab bs=24 skip=1 | openssl zlib -d > mybackup.tar
==install apk==
adb install path/file.apk

Latest revision as of 21:45, 8 April 2013

My android device is a htc desire.

useful links desire

http://forum.xda-developers.com/showthread.php?t=809328

s-off

http://alpharev.nl/
http://forum.xda-developers.com/showthread.php?t=805811

radio firmware

http://forum.xda-developers.com/showthread.php?t=687464

root

http://www.tech-exclusive.com/2010/10/17/guide-to-root-android-2-2-on-htc-desire/

shell access

access. /etc/udev/rules.d/51-android.rules

SUBSYSTEM=="usb" ID_VENDOR_ID=="0bb4", MODE="0666"
SUBSYSTEM=="usb" ID_VENDOR_ID=="18d1", MODE="0666"
SUBSYSTEM=="usb" ID_VENDOR_ID=="05ac", MODE="0666"

start device manager

adb usb

kill device manager

adb kill-server

display devices.

adb devices

get a shell on device

adb shell

run command on device and handle output locally.

adb shell ls /system/bin | less

mount filesystem rw

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw /dev/root /

full access to filesystem

Boot device in recovery mode.

Press volume down while pressing power on.

dropbear

Install dropbear.

adb remount adb push dropbear /system/bin/dropbear
adb push dropbearkey /system/bin/dropbearkey
adb push 95dropbear /system/etc/init.d/95dropbear
adb shell chmod 755 /system/bin/dropbear /system/bin/dropbearkey /system/etc/init.d/95dropbear

Change password dropbear

-C cleartext password.

Generate ssh keys

dropbearkey -t rsa -f /data/dropbear/dropbear_rsa_host_key
dropbearkey -t dss -f /data/dropbear/dropbear_dss_host_key

busybox

adb push busybox /system/xbin/busybox
chmod 4755 busybox
cd /system/xbin
./busybox --install -s .

flash radio

Get root access and boot phone fastboot mode. Flash radio

fastboot flash radio radio.img

flash rom

Get root access.

rsync -aP rom.zip /media/232322/rom.zip

Put phone in charge only and reboot with command.

adb shell reboot recovery
  • Once in recovery use your trackpad to scroll down to install zip from sdcard
  • Choose choose zip from sdcard
  • Select the ROM to install – your ROM will begin to install
  • Once installed press the back button a couple of times to go back to the main screen of Clockwork Recovery
  • Choose reboot system now

extract Android Backup

dd if=mybackup.ab bs=24 skip=1 | openssl zlib -d > mybackup.tar

install apk

adb install path/file.apk