[Galaxy S Plus I9001 Android Development] alireza7991:
Installing Recovery Roms With ADB ​

About Article

Thats really funny to install a rom on your phone without touching your phone :D but thats more difficult than flashing rom from recovery . Here I fully explain the method but you can save commands in .bat and .sh files for using next times . It takes less than 5 min to flash rom if have saved commands in executable files . This guide explains the whole commands so its too long ! Dont confuse , just copy pase commands and save them into executable files then run all by few clicks :)

Disclaimer

*/

I am not responsible for any damage or ... done to your device by using this . Do at your own risk !

*/

Step 1 : What you need !

You need :

1- A healthy Galaxy S Plus device

2- ADB drivers and USB debugging on

3- Smasung USB drivers

4- Lots of patience

5- Having Basic Linux Shell Knowledge

6- 200 mg free space at data partition

Step 2 : Starting ....

1- Connect phone to PC and Do'nt touch it again ! Proccess here starts :) We want to do this without touching phone

2- Go to adb directory open cmd and type :

adb reboot recovery

Device will reboot to recovery

3- Type in cmd :

adb shell
busybox mount -rw -o remount /system
busybox rm -rf /system
busybox mkdir /system
busybox chmod 777 /system
mount -rw -o remount /data

4- Exit adb shell

5- Rename your .zip rom to "rom.zip" put it into c:\\ ( you can put it any where else but change path in the command )

6- open adb and type

adb push C:\\rom.zip /data/rom.zip
adb shell
busybox unzip /data/rom.zip -d /system/
busybox mount -rw -o remount /system
busybox mount -rw -o remount /data
busybox mount -rw -o remount /cache
busybox rm -rf /data /cache
busybox mkdir /data /cache
busybox chmod 777 /data
busybox chmod 777 /cache
busybox rm -f /data/rom.zip
busybox rm -rf /system/META-INF
busybox dd if=/system/boot.img of=/dev/block/mmcblk0p8
rm -f /system/boot.img
p=busybox chmod
s=busybox ln -s /system/bin/toolbox
busybox mv /system/system /system

7- Type agin ( I do not write busybox symlink ... its users selectable )

cd /system/bin
$s cat
$s chmod
$s chown
$s date
$s dd
$s df
$s dmesg
$s getevent
$s getprop
$s hd
$s id
$s ifconfing
$s iftop
$s insmod
$s ioctl
$s ionice
$s kill
$s ln
$s log
$s ls
$s lsmod
$s lsof
$s md5
$s mkdir
$s mount
$s mv
$s nandwrite
$s netstate
$s newfs_msdos
$s notify
$s printenv
$s ps
$s r
$s reboot
$s renice
$s rm
$s mmod
$s route
$s schedtop
$s sendevent
$s setconsole
$s setprop
$s sleep
$s smd
$s start
$s stop
$s sync
$s top
$s unmount
$s uptime
$s umstate
$s watchprops
$s wipe
busybox ln -s /system/fonts/Roboto-Regular.ttf /system/fonts/DroidSans.ttf
busybox ln -s /system/bin/mksh /system/bin/sh

8- Type :

$p 777 /system
$p 777 /system/*
$p 777 /system/bin/*
$p 777 /system/xbin/*
$p 644 /system/app/*
$p 644 /system/etc/*
$p 777 /system/etc/init.d/*
$p 644 /system/fonts/*
$p 644 /system/frimware/*
$p 644 /system/framework/*
$p 755 /system/vendor/*
$p 755 /system/usr/*
$p 644 /system/tts/*
$p 644 /system/media/*
$p 644 /system/build.prop
$p 644 /system/lib/*
$p 644 /system/cameradata/*
busybox reboot

9- now Disconnect Phone From ADB

10- If your rom doesnt boot Fix Permissions from Recovery

******

Please Excuse me For any Mistakes becuase I spend a lot of time to write this

******

I didnt fully test this but this must work !