Friday, 23 October 2015

[Tutorial] LG Gpad v410 5.1 to 4.4 downgrade, root, & internal storage fix.



This method will indirectly allow you to root the LG Gpad v410 after it has been upgraded to Lollipop 5.1.1. Yes. Rooting LG v410 Lollipop. It's through a downgrade, but it works.

It took a while to get working, but here's how I did it. The process is straightforward, but the details matter greatly. You will brick your device if you mess up. Please read everything *first* before you do anything. Be sure you understand the process. I'll try to explain what's going on along the way.

An external SD card is extremely helpful for this process. You *could* adb push everything, but that will tedious.

First, you need some files.
The 4.4.2 KDZ which is a TEST OS, but it can be rooted and it downgrades to a Bump'able bootlaoder:
http://forum.xda-developers.com/g-pa...-v410-t3224867
The LG 2014 Flash Tool:
http://www.mediafire.com/download/fw..._Tool_2014.zip
Android LG Drivers:
https://www.androidfilehost.com/?fid=24052804347802528
Parted for Android. You can probably find it other places, but I found this file:https://dl.dropboxusercontent.com/u/...-all-files.zip
linked from here: http://www.droidviews.com/your-32gb-...heres-the-fix/
The Candy5 ROM (This will potentially save you some manual steps. Somewhat optional, but highly recommended):
http://forum.xda-developers.com/g-pa...-1-v2-t3111987
Flashify APK:
http://www.apkmirror.com/apk/christi...-apk-download/
TWRP for the v410:
http://forum.xda-developers.com/g-pa...0-410-t3049568
LG One Click Root:
http://forum.xda-developers.com/lg-g...lipop-t3056951
(You may use Purple Drake or whatever else you want. They all use the same root script as this does.)
Android SDK (specifically adb.exe. After installing go to SDK Manager and ensure that Android SDK Platform Tools is checked):
http://developer.android.com/sdk/index.html

For clarification below, when I have commands in "quotes" they are Windows commands. When they are in `backticks` they are commands that you run inside of ADB which actually run on your device....as root. Root can screw things up. Please be extra cautious. If you blame me for messing up your device I will laugh at you. But that's not gonna happen, right? Good. Let's go.

Now that you have everything, put it all into a folder where you can access it easily.
  1. Install the LG Drivers.

  2. Install Android SDK (or otherwise get adb.exe).

  3. Extract all of the archives.

  4. Move the KDZ to the LG Flash Tool 2014 folder.

  5. Put the tablet into Download Mode by powering it off, holding VolUp, and plugging in the USB cable. Press VolUP when instructed. You must be in Download mode before continuing.

  6. Run LGFlashTool2014.exe. Select the KDZ file. Click "CSE Flash". Click "Start". Select "English" and click OK. Do not change anything else.

  7. WAIT for the flash to continue. If you really want to brick your device, here's a good opportunity.

  8. The device will reboot into Android 4.4.2. You will only have 4GB of internal storage at this point. DON'T PANIC! We are fixing it.

  9. Enable USB debugging.

  10. Connect the device.

  11. Install and run LG One Click Root. Wait for the device to be rooted before proceeding.

  12. Copy the Flashify apk, TWRP image, and Candy5 ROM to your external SD card.

  13. Install Flashify and flash TWRP to the recovery partition.

  14. Use the Flashify menu to reboot in to recovery.

  15. DON'T PANIC! You will get white vertical lines on the boot screen from now on. They only show up during boot animations. A small price to pay. This may be fixed at a later date.

  16. Things get tricky here. Copy parted to your external SD card and then run "adb shell" from Windows to get a shell in TWRP.

  17. In TWRP, unmount /data by tapping Mount > uncheck Data.

  18. `cp /sdcard/parted /sbin/` This copies the parted binary to /sbin so it can be executed in the path. I had trouble running `/sdcard/parted`, but YMMV.

  19. `chmod +x /sbin/parted` Make it executable.

  20. `parted /dev/block/mmcblk0` Run parted against the internal mmc

  21. `p` Prints the partition table.

  22. `rm 34` Deletes partition 34 labeled "grow". This is the root of our problem. The KDZ apparently only creates a 4GB partition, I assume so the test build has maximum compatibility with all sized devices.

  23. `rm 33` Deletes partition 33 "userdata"

  24. `p` Print to verify

  25. `mkpartfs` Create a partition and put a filesystem on it. If we expand the partition it won't help us because the filesystem is still only 4 GB.
    name: userdata
    type: ext2 (the tool only supports ext2. This is ok for now.)
    start: 3439MB (the end of part 32. IT MAY BE DIFFERENT FOR YOU!) Be sure you do not omit the MB part otherwise the offset will overwrite another critical partition.
    end: 15.8GB (where "grow" ended above. IT MAY BE DIFFERENT FOR YOU!) Be sure you do not omit the GB part otherwise the offset will overwrite another critical partition.

  26. `p` Verify. For me it did not name the partition properly. Gotta fix that.

  27. (if necessary) `name 33 userdata` This is critical for mount to find it in /dev/block/platform/msm.sdcc.1/by-name/ on some/all ROMS.

  28. `p`. Verify one last time. Compare it to my partition table in the attachments. If you want to brick, delete some random partitions here.

  29. Flash Candy5 with TWRP. It's only 239 MB, so it will flash quickly. I do this because Candy5 will reformat mmcblk0p33 from ext2 to ext4 for you. It does this as part of it's system boot, apparently. If you install a different ROM that does not do this, you can reformat it by running `make_ext4fs /dev/block/mmcblk0p33`. If your ROM does not have make_ext4, it likely has some differnt method to make an EXT4 filesystem. `/system/bin/mke2fs -t ext4 /dev/block/mmcblk0p33` may work better. Just flash Candy5 and be done with it.

  30. Tap Wipe > Swipe to Factory Reset.

  31. Tap Reboot > System.

  32. WAIT!!! It will take a minute for the ROM to start the first time. You will have white lines and and possibly a white screen. WAIT. It's moving the DEX files to cache, formatting a partition, creating default folders on the internal storage, and several other things. WAIT! When the screen goes dim or turns off then it's ready.

  33. Cycle the display or turn it on. You should be at the Candy5 lock screen.

  34. USB debugging is on by default. Run "adb shell".

  35. `mount | grep userdata` Make sure mmcblk0p33 is mounted.

  36. `df` Make sure /data is 11.3 GB (or whatever size it is on non-16GB devices).

  37. HELL YEAH, you downgraded, rooted, and fixed the partition problem. Enjoy your tablet!


Thanks to dopekid313 for finding the KDZ.
Thanks to timmytim for Candy5.
Thanks to the creators of the root script, flashify, TWRP, and XDA for being so awesome.

If I missed anything, please let me know. As far as I know this is the very first tutorial that details what is necessary to accomplish this. Please hit the Thanks button on every thread that you visit to download files!








Attached Thumbnails


Click image for larger version<br/><br/>Name:	v410fixed.PNG<br/>Views:	N/A<br/>Size:	20.5 KB<br/>ID:	3516708
 

Click image for larger version<br/><br/>Name:	v410parttable.PNG<br/>Views:	N/A<br/>Size:	21.6 KB<br/>ID:	3516709
 














No comments:

Post a Comment