Skip to main content

Backing up the stock partitions of Android Kindle Fire HD 7 (codenamed Tate)

This article is about installing TWRP on Kindle Tate and still use your stock ROM using Android SDK and with TWRP 2.8.7.





Using the following commands after going to /path/to/Android/Sdk folder:

./platform-tools/adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"

./platform-tools/adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"

 ./platform-tools/adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"

./platform-tools/adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"

We can verify the system integrity of my Kindle Fire 7 HD (in this article aka Kindle Tate).








Next, we can proceed to backup the partitions with the following commands:
./platform-tools/adb pull /sdcard/boot0block.img

./platform-tools/adb pull /sdcard/stock-boot.img

./platform-tools/adb pull /sdcard/stock-recovery.img

 ./platform-tools/adb pull /sdcard/stock-system.img

Prequisite to move to the next step: !) A Factory Cable (A Factory Cable is used to set Kindle Tate in Fastboot mode).

Proceed to install the bootloader by downloading the files comprising stack override file, TWRP 2.8.7.0 recovery image, kfhd7-freedom-boot-7.4.6.img, older 7.2.3 bootloader file posted here (http://forum.xda-developers.com/showthread.php?t=2128848). 

As iused the adb tool in Android Studio, i proceed to have the downloaded files placed in /path/to/Android/SDK folder and proceed to install stack override in Kindle Tate's /system:

./platform-tools/adb push stack /sdcard/

./platform-tools/adb shell su -c "dd if=/sdcard/stack of=/dev/block/platform/omap/omap_hsmmc.1/by-name/system bs=6519488 seek=1" 

Deactivate the original recovery update script in Kindle Tate:
./platform-tools/adb shell su -c "mount -o remount,rw ext4 /system"

./platform-tools/adb shell su -c "mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak"
 

./platform-tools/adb shell su -c "mount -o remount,ro ext4 /system"

Now, we are ready to proceed to install Teamwin Recovery Project on Kindle Tate. We unplug and turn off Kindle Tate and connect Kindle Tate back to the computer with a Factory Cable to put Kindle Tate in fastboot mode.

In Linux (in particular, Debian and Ubuntu), we can proceed to do md5sum check on the downloaded files. This is to ensure file integrity prior to flashing the files (namely bootloader kfhd7-u-boot-prod-7.2.3.bin, boot kfhd7-freedom-boot-7.4.6.img, flash recovery kfhd7-twrp-2.8.7.0-recovery.img)




We flash each file in the order of the command below one by one:

fastboot -i 0x1949 flash bootloader kfhd7-u-boot-prod-7.2.3.bin
 

fastboot -i 0x1949 flash boot kfhd7-freedom-boot-7.4.6.img
 

fastboot -i 0x1949 flash recovery kfhd7-twrp-2.8.7.0-recovery.img
 

fastboot -i 0x1949 reboot

After going through the painstaking steps above, we may proceed to make major modifications on Kindle Tate. (Proceed with caution)

Above credits fully goes to the developer with nickname Hashcode on XDA Developers.
Follow my blog with Bloglovin

Comments

Popular posts from this blog

Repairing Fedora Grub using Fedora Live USB

First, Prepare the Fedora Workstation Live CD using Fedora Media Writer. Next, run the Workstation Live CD and run the console. Then, enter the following commands if you are running the separate boot and root partition: 1) sudo mount /dev/sdaX /mnt Note: sdaX is the root partition 2) sudo mount /dev/sdaW /mnt/boot Note: sdaW is the boot partition The following files are essential for running the essential processes for repairing grub and shall be mounted: 3) sudo mount --bind /dev /mnt/dev 4) sudo mount --bind /proc /mnt/proc 5) sudo mount --bind /sys /mnt/sys 6) sudo mount --bind /var/run /mnt/var/run Now, you are ready to go into the Fedora partitions to repair the grub files. The path should be changed to root user from liveuser> to root>: 7) sudo chroot /mnt If you are running dual boot Windows and Fedora system, the following command will replace the Metro Interface: 8) grub2-install /dev/sda With a dual-boot or multi-boot systems, the follow

Installing SUSE Imagewriter on Linux Mint Debian Edition

The original title for this post is "Installing SUSE Imagewriter on Ubuntu LTS". Download Zip, save to preferred directory:~/Downloads However due to data loss of the blog, i decide to rewrite this article using Linux Mint Debian Editi on ( a similar distribution to Ubuntu ). First we have to download the source from Github (https://github.com/openSUSE/imagewriter) Download ZIP, save to preferred directory: ~/Downloads Extract imagewriter-master.zip in /home/username/Downloads and in terminal run the command: cd /home/username/Downloads/imagewriter-master Install the latest version of qt4-qmake and libqt4-dev by running: sudo apt-get update && sudo apt-get install qt4-qmake libqt4-dev Instructions for Linux Installation on github Follow the instructions in README.md by running the command: qmake DEFINES=USEHAL imagewriter.pro  Follow by the command: qmake DEFINES=USEUDISKS imagewriter.pro Next run the command: qmake DEFINE

Fixing time on sysvinit and systemd

If you have a system that boot using different GNU/Linux init systems such as sysvinit (aka System 5) and systemd (aka System 500) in addition to proprietary Windows system, you may face incorrect time display on one of the aforementioned system. The difference in time display is dependent on the time difference of your location and the UTC time. Further complication may result from concept like Daylight Saving Time (DST). If the Bios is set to localtime, you may fix it in systemd boot system using 'timedatectl' command like: sudo timedatectl set-local-rtc 1 However, if you are using sysvinit and Bios is using localtime, you can set inform the system that local time is being used using 'hwclock' command like: sudo hwclock --localtime or to synchronize the hardware clock with system time and inform the system using: sudo hwclock --systohc --localtime If Bios is using UTC time, you may revert the change with 'timedatectl' like: sudo timedatectl set-lo