- ASUS Mumbai Zen Festival – Launches New Zenfone Models
- Gionee Marathon M4 – Specs, Features and Price
- OnePlus 2 Invites – Physical Invitation Cards
- Moto G (2015) Designs Leaked
- OnePlus 2 – Fingerprint Sensor Feature Confirmed
- Sony E5663 Specs Leaked
- Moto G and Moto X – Android 5.1 Soak Tests Begin
- BBM Android Updated – Added Security Features and Material Design Changes
- Deal – Get Fire Phone at £99 in UK on Amazon
- Get New Android Wear Watch Faces From Play Store
Procedure to dual boot your Galaxy Tab 2 (7.0) P31xx
The title sounds interesting doesn’t it? You might be running your PC on dual boot (usually it’s Windows + Linux) but think about dual booting your tablet. Now that sounds cool! Macadamia Daze who is a XDA-developer has come up with this great hack for Samsung Galaxy Tab 2. The idea behind this dual boot is to run one Android OS from internal memory and other OS from the SD card. For this you will need a SD card of 8GB storage or more.
Note: I should not be blamed if anything bad happens to your device. Given process has been tested and it worked fine for me.
Preparing for dual boot
1. First of all repartition the SD card (you may use any tool for this). Shrink the first partition to about 5.30 GB (new partitions will take about 5 GB space so 5.30 GB space is sufficient).
2. Now you need to create 4 ext4 partitions.
- system (1 GB)
- cache (700 MB)
- data (3 GB)
- EFS (25 MB)
3. Now insert the SD card, boot in CWM and run the command given below in ADB.
4. Boot into CWM and extract our your important data.
5. Download the CM 10 nightly firmware ROM + Google Apps + P3113 AOKP and flash your device using it.
Steps to dual boot Galaxy Tab 2
1. There is a script in the ROM package you just have downloaded. Mount the (/dev/block/mmcblk0p10) and access the /data/media using this. Also mount the /data/media to SD card of the external ROM.
2. Now the main part of dual boot is to switch between the operating systems. Since we have one OS in internal memory and other one in external SD card so we will need a switching mechanism for dual booting. There is a script named as “bootinternal” in /system/bin.
Execute this one from the terminal or you may also run this from ADB (this will work as a switch from external to internal). You may use “bootexternal” to switch from internal to external.
3. Now we just have to make these switching work. For this, in your external ROM copy the boot.img file from internal memory to /sdcard/Boot/internal.img. Similarly in internal ROM copy the boot.img file from external ROM to /sdcard/Boot/external.img.internal memory to /sdcard/Boot/internal.img.
4. In case you want to switch the ROM manually you will need to run the commands given below:
cat boot.img > /dev/block/mmcblk0p5
Other way is to use Mobile Odin.
5. Now the next step is to unpacking the boot image. Do it by using any tool (you will have to search for it). After unpacking edit the init.expresso.rc file (ramdisk). Search for the partitions which have been mounted and edit the code snippet like:
#mount ext4 /dev/block/platform/omap/omap_hsmmc.1/by-name/FACTORYFS /system wait rw
mount ext4 /dev/block/mmcblk1p2 /system wait rw
#mount ext4 /dev/block/platform/omap/omap_hsmmc.1/by-name/FACTORYFS /system ro remount
mount ext4 /dev/block/mmcblk1p2 /system ro remount
#mount ext4 /dev/block/platform/omap/omap_hsmmc.1/by-name/DATAFS /data wait noatime nosuid nodev crypt discard,noauto_da_alloc
mount ext4 /dev/block/platform/omap/omap_hsmmc.1/by-name/DATAFS /data2 wait noatime nosuid nodev crypt discard,noauto_da_alloc
mount ext4 /dev/block/mmcblk1p4 /data wait noatime nosuid nodev crypt discard,noauto_da_alloc
#mount ext4 /dev/block/platform/omap/omap_hsmmc.1/by-name/CACHE /cache wait noatime nosuid nodev nomblk_io_submit,errors=panic
mount ext4 /dev/block/mmcblk1p3 /cache wait noatime nosuid nodev nomblk_io_submit,errors=panic
#mount ext4 /dev/block/platform/omap/omap_hsmmc.1/by-name/EFS /efs wait rw
mount ext4 /dev/block/mmcblk1p5 /efs wait rw
6. Repacking of boot image should be done then put it in ROM. Open the updater-script and change the references to internal partition (/dev/block/mmcblk0p9 -> /dev/block/mmcblk1p2). Do this for all the referenced paritions.
That is all. You have successfully dual-booted your Samsung Galaxy Tab 2 7.0 P31xx.
Wiping out the data on external dual-boot paritions
If you want to wipe your data on on external dual-boot paritions completely then use these 3 CWM pacakges:
More info at xda-developers.