Trying to build the recovery image from the stock boot.img using the script in install-recovery.sh:
#!/system/bin/sh
if ! applypatch -c EMMC:/dev/block/platform/dw_mmc.0/by-name/RECOVERY:7708672:f604ede5ef4f7e94b3381cd7f156488cc c10a9ae; then
applypatch EMMC:/dev/block/platform/dw_mmc.0/by-name/BOOT:7497728:9dfe8bcc465662a98e8e76d6e52000faa7f5e f64 EMMC:/dev/block/platform/dw_mmc.0/by-name/RECOVERY f604ede5ef4f7e94b3381cd7f156488ccc10a9ae 7708672 9dfe8bcc465662a98e8e76d6e52000faa7f5ef64:/system/recovery-from-boot.p && log -t recovery "Installing new recovery image: succeeded" || log -t recovery "Installing new recovery image: failed"
else
log -t recovery "Recovery image already installed"
fi
From the stock firmware I have pushed boot.img, recovery-from-boot.p, install-recovery.sh and recovery-resource.dat to /data/local/tmp on my Samsung tablet.
Then do:
adb shell
cd /data/local/tmp
applypatch boot.img:7497728:9dfe8bcc465662a98e8e76d6e52000faa 7f5ef64 recovery.img f604ede5ef4f7e94b3381cd7f156488ccc10a9ae 7708672 9dfe8bcc465662a98e8e76d6e52000faa7f5ef64:recovery-from-boot.p
However after running this all I get is:
8672 9dfe8bcc465662a98e8e76d6e52000faa7f5ef64:recovery-from-boot.p <
1|shell@chagalllte:/data/local/tmp $
This just creates a 0k/b file named CON and nothing else.
Does anyone have idea where I'm going wrong here?
.
#!/system/bin/sh
if ! applypatch -c EMMC:/dev/block/platform/dw_mmc.0/by-name/RECOVERY:7708672:f604ede5ef4f7e94b3381cd7f156488cc c10a9ae; then
applypatch EMMC:/dev/block/platform/dw_mmc.0/by-name/BOOT:7497728:9dfe8bcc465662a98e8e76d6e52000faa7f5e f64 EMMC:/dev/block/platform/dw_mmc.0/by-name/RECOVERY f604ede5ef4f7e94b3381cd7f156488ccc10a9ae 7708672 9dfe8bcc465662a98e8e76d6e52000faa7f5ef64:/system/recovery-from-boot.p && log -t recovery "Installing new recovery image: succeeded" || log -t recovery "Installing new recovery image: failed"
else
log -t recovery "Recovery image already installed"
fi
From the stock firmware I have pushed boot.img, recovery-from-boot.p, install-recovery.sh and recovery-resource.dat to /data/local/tmp on my Samsung tablet.
Then do:
adb shell
cd /data/local/tmp
applypatch boot.img:7497728:9dfe8bcc465662a98e8e76d6e52000faa 7f5ef64 recovery.img f604ede5ef4f7e94b3381cd7f156488ccc10a9ae 7708672 9dfe8bcc465662a98e8e76d6e52000faa7f5ef64:recovery-from-boot.p
However after running this all I get is:
8672 9dfe8bcc465662a98e8e76d6e52000faa7f5ef64:recovery-from-boot.p <
1|shell@chagalllte:/data/local/tmp $
This just creates a 0k/b file named CON and nothing else.
Does anyone have idea where I'm going wrong here?
.
No comments:
Post a Comment