Hi all
I attempted to install clockwork recover on kids tablet.
How ever it didnt work.
So now i dont have no recovery.
Whats the quickest way to put this back on?
(Teach me to mess lol)
in the init.rc file there is this service call line:
- Code: Select all
service flash_recovery /system/etc/install-recovery.sh
oneshot
Each time the OS boots it therefore runs /system/etc/install-recovery.sh.
- Code: Select all
#!/system/bin/sh
if ! applypatch -c MTD:recovery:2048:039c557a915d0952eba272ceddb5824efff621ad; then
log -t recovery "Installing new recovery image"
applypatch MTD:boot:5165056:2da0a439bb088865736290b16e8277d47cfd5d6d MTD:recovery 1975102594023372b9758eb4e3dcd288564e6971 5423104 2da0a439bb088865736290b16e8277d47cfd5d6d:/system/recovery-from-boot.p
else
log -t recovery "Recovery image already installed"
fi
What this does is look at the first 2K block of the recovery partition image and take a SHA1 has of it. If the hash isn't the one shown then it calls "applypatch". Applypatch uses the first 2,875,392 bytes of the boot partition image (headers, kernel, and ramdisk) and the contents of /system/recovery-from-boot.p (a "diff" file) to mathematically reconstruct an image of the recovery partition.
Return to HELP REQUESTS (all models)
Users browsing this forum: No registered users and 1 guest