[LG Watch Urbane 2] physicistman:
This is a tutorial to make your own system image from the original stock image and is not a comprehensive instruction set, but can probably be used on other devices. Before you start the process read the instructions as many times as necessary to completely understand what you are doing. With that I am not responsible for any misuse or problems that may arise from any usage of these instructions or any files provided currently or in the future. If you do not believe that the benefits outweigh the risk, then do not use the information/files. I encourage anyone who does use these instructions to upload and post their images here, but if you do post please test your system image before it is uploaded to ensure that there is nothing that can be harmful to others. I will allow those who are not able or afraid, to post requests for those who can. This instruction set will not allow you to modify the system image from the device directly, because squashfs is read only by default Squashfs, but you can make changes to the system image and flash a modified stock image to the device.

The required materials for this tutorial is a linux computer with either dual boot capabilities or virtual operating system capabilities that has windows, along with the original update suppled here:update.zip or the TWRP flashable zip version uploaded within this forum in another thread. You will also need platform-tools/fastboot from Google.

Five items before you start:

1. In order to do this you will need to understand Linux and Linux terminal commands, I will not give an instruction of this here you will also need to download and understand the commands within adb and fastboot please search for these and read as many times as needed to understand.

2. You will need to understand that not everything in the system image can be changed or correctly flashed, system partitions are usually confined to a certain size and you can only flash up to that amount, this may be different with Android Wear, but beware of size limitations.

3. BACKUP. Make sure you have a backup of everything needed before flashing including original or TWRP modified flashing images, because errors can easily happen that can make the phone unusable until reflashed.

4. If you cannot make the image yourself and are requesting, please be patient and remember you may not be able to get what you wanted or anything at all, especially if you are expecting quick results (it is up to the ones who are willing to take their time and put it together if at all possible).

5. When flashing make sure not to disturb the process, it may be a long time until it completes the flashing depending on the parameters setup within the process, also initial boot can take a long time depending upon what was put into the specific process.

First you will need the system image, if you get from the update zip supplied by LG you can unzip it then you have a number of files of which you probably won’t need except for two the largest file system.new.dat and also system.transfer.list. I have already completed the process for the most recent image as of today, It is at system.img. You will need the program at Extract (windows), be sure to thank the developer. Extract and open the program then place both the system.new.dat and system.transfer.list and follow the instructions to the point where it indicates there is a problem in the app and that something has failed, once that happens immediately close the command prompt then the failed program and copy the system.img.img located within the folder to another folder, rename it system.img. Next you need Linux, Ubuntu works for most, because it’s the easiest one to use. Now we will use unsquashfs to turn the system image to a folder that we could use and make modifications to. In order to use the unsquashfs we will need root, so in terminal type sudo unsquashfs system.img and enter your password, this will give us a folder named squashfs-root. The folder will be owned by root, because we entered sudo before unsquashfs, but it is required for the image to unpack correctly. Now you have two choices from here one is to take ownership of the folder to make changes (will make it easier to make changes, but can substantially make it harder to ensure that it will flash correctly), or two to make the changes within terminal, this is the point where knowledge of terminal commands will be required. After you have made your changes we will need to make it into a squashfs again, but first you need to know what the parameters of the system image we have, to do this we will go back to unsquashfs, this time we will use unsquashfs -s system.img, that will give you the exact superblock parameters needed to do mksquashfs. Now that we know what parameters to use for mksquashfs we will create the new squashfs image, I have given the information specific to the Urbane 2 from the image provided earlier with one change I added -Xhc, mainly because when that is not used your file can be larger than the original, which will make flashing take longer, you are not required to use it to repack the image. If you are not using the image supplied the parameters provided may not work, but you can easily figure it out from the unsauashfs superblock information that you did previously. If you are unsure of how to unsquashfs or mksquash commands, just type either one into terminal, that will give you the syntax for it, once again I have completed this and have attached it below. After you have the modified image all you have to do is go to the bootloader and flash the image, you will need to install and/or download any necessary platform-tools/fastboot utilities. Now it is required to move or copy the image to that folder. To flash the image just enter fastboot flash system system.img and you have a modified stock image installed on the device (you will probably need root for this to be successful for this type sudo su. As a simple proof you can compare the original with this one I uploaded modified-system.img, the only change I made was in build.prop, in the LCD density, where on the original it is at ro.sf.lcd_density=340 and my modified version is ro.sf.lcd_density=240. If you are helped by this tutorial please donate to a charitable organization.