Sunday, March 20, 2016

Getting ext4 instead of squashfs on 6.0.1

Code:

#include
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, thermonuclear war,
 * or you getting fired because the alarm app failed.
 * YOU are choosing to make these modifications, and if you point
 * the finger at me for messing up your device, I will laugh at you.
 */

To do this you'll need a Linux machine with fastboot and adb set up, I'll be using Ubuntu 15.04.

Setup stuff
1. Download and extract GWatchR_lenok_601_MEC23G.zip
2. Download and extract this tool, unless you have something else for boot.img editing.
3. Download and extract this tool

Modify boot.img
1. Open terminal and cd to folder with unpackimg.sh
2. Copy boot.img to the same folder
3. Run ./unpackimg.sh boot.img
4. Open ramdisk/fstab.lenok and edit line with /system info so it'll look like this:
Code:

/dev/block/platform/msm_sdcc.1/by-name/system        /system      ext4    ro,barrier=1,discard                                wait
5. Run ./repackimg.sh and copy new boot image somewhere safe.

Setup partitions on watch
NOTICE: Following steps are very dangerous and might brick your watch forever!
1. Make sure you have MEC23G installed on your watch.
2. Flash GWatchR_lenok_601_MEC23G/twrp-3.0.0.img using fastboot:
Code:

fastboot flash recovery path/to/twrp-3.0.0.img
3. Flash your new boot image:
Code:

fastboot flash boot path/to/newboot.img
4. Reboot your watch into recovery mode
5. Open terminal and type:
Code:

adb shell
cd /sys/devices/virtual/android_usb/android0
(sleep 5 && echo 0 > enable && echo "adb,mass_storage" > functions && echo "/dev/block/mmcblk0" > f_mass_storage/lun/file && echo 1 > enable)&

6. Now open gparted on your PC
7. Go to ~4GB disk's partitions
8. Delete 19th and 20th partitions
9. Create two new ext4 partitions, 19th should be ~384MB now and 20th ~127MB
10. Right click on each of partitions and then choose 'Manage flags' and check 'msftdata'
11. Apply all changes
12. Open Disks
13. Select 19th partition click button with two gears then click 'Edit Partition' and in name filed type system and click 'Change'
14. Select 20th partition click button with two gears then click 'Edit Partition' and in name filed type cache and click 'Change'
15. Now close gparted and disks and eject watch partitions
16. Reconnect watch
17. Open terminal and type:
Code:

mkdir system
mount -o rw -t ext4 /dev/sdb19 ./system

NOTE: /dev/sdb19 might be something else on your device, you can find this path in gparted or disks
18. Now type:
Code:

sudo path/to/unsquashfs -f -d /full/path/to/system /full/path/to/system.squashfs.img
19. Type sync and wait for it to finish
20. Eject watch's partitions and wait till you can unplug it
21. Reboot your watch (adb reboot)

Should boot now :P


via xda-developers http://ift.tt/22wpODf

IFTTT

Put the internet to work for you.

Turn off or edit this Recipe

No comments:

Post a Comment