• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [WIP][DEV] Custom Recovery/Bootloader unlocking Work In Progress Thread

okay thanks.

i just asked LG support where it could be located..

Joe: Hello John Smith. Welcome to LG Electronics U.S.A. Support only. How may I provide you with excellent service today?
Joe: hello John
John Smith: Hi, I got a notification that there was an update for my phone
Joe: how may I assist you today?
John Smith: and i downloaded it and said that i wanted to install it later
Joe: yes, John
John Smith: i was just wondering where on the phone i could find the update file, just so i have a backup
John Smith: i like to make sure i have backups of everything
Joe: the update file should be stored to the micro SD card, named 'update.zip'
John Smith: in what folder
Joe: on the root folder of the micro SD
John Smith: not seeing it at all anywhere
Joe: If it is not on this location or not on this name, then the update has a different location or name different from the standard path, at carrier's request
John Smith: it's an LG update though, not an Android update..
John Smith: so, no idea...okay...i figured that you wouldn't know anything, but it sure didn't hurt to ask...it would really be nice if you guys had a support for your phones specifically....because you general support people have no clue when it comes to these devices
Joe: Once a phone is manufactured, both the hardware and software belong to the carrier, John
John Smith: precisely...yeah, you don't know anything!...awesome, thank you for nothing, I would suggest you actually read a magazine on technology and not what your company tells you to say on that little screen


i do suggest being nice to those poor people who have to deal with me....you usually get more things done with sugar than with salt
 
on fota-update
export PATH /sbin
export ANDROID_ROOT /system
export ANDROID_DATA /data
export EXTERNAL_STORAGE /sdcard
export PATH /sbin:/data/data/com.lge.omadmclient/files/

symlink /system/etc /etc

mkdir /sdcard
mkdir /system
mkdir /data
mkdir /cache
mount /tmp /tmp tmpfs

#mount rootfs rootfs / rw remount

# mount mmc partitions

#[LGE_UPDATE_S] DMS_SYSTEM dms-fota@lge.com 2012/03/13
# Changed partition table 13 - > 14, 14 -> 15, 16 -> 17 2012/03/13

wait /dev/block/mmcblk0p14
mount ext4 /dev/block/mmcblk0p14 /system rw data=journal barrier=1

wait /dev/block/mmcblk0p15
exec /system/bin/e2fsck -y /dev/block/mmcblk0p15
mount ext4 /dev/block/mmcblk0p15 /data nosuid nodev noatime barrier=1 data=journal noauto_da_alloc errors=panic

wait /dev/block/mmcblk0p17
exec /system/bin/e2fsck -y /dev/block/mmcblk0p17
mount ext4 /dev/block/mmcblk0p17 /cache nosuid nodev data=journal barrier=1

#[LGE_UPDATE_E] DMS_SYSTEM dms-fota@lge.com 2012/03/13

wait /dev/graphics/fb0
wait /dev/tty0

chown system system /data
chmod 0771 /data

mkdir /cache/fota


this may help find the location of the ota throught terminal you probably could move it to root but idk how to
 
okay thanks.

i just asked LG support where it could be located..

Joe: Hello John Smith. Welcome to LG Electronics U.S.A. Support only. How may I provide you with excellent service today?
Joe: hello John
John Smith: Hi, I got a notification that there was an update for my phone
Joe: how may I assist you today?
John Smith: and i downloaded it and said that i wanted to install it later
Joe: yes, John
John Smith: i was just wondering where on the phone i could find the update file, just so i have a backup
John Smith: i like to make sure i have backups of everything
Joe: the update file should be stored to the micro SD card, named 'update.zip'
John Smith: in what folder
Joe: on the root folder of the micro SD
John Smith: not seeing it at all anywhere
Joe: If it is not on this location or not on this name, then the update has a different location or name different from the standard path, at carrier's request
John Smith: it's an LG update though, not an Android update..
John Smith: so, no idea...okay...i figured that you wouldn't know anything, but it sure didn't hurt to ask...it would really be nice if you guys had a support for your phones specifically....because you general support people have no clue when it comes to these devices
Joe: Once a phone is manufactured, both the hardware and software belong to the carrier, John
John Smith: precisely...yeah, you don't know anything!...awesome, thank you for nothing, I would suggest you actually read a magazine on technology and not what your company tells you to say on that little screen


i do suggest being nice to those poor people who have to deal with me....you usually get more things done with sugar than with salt

Idk, that kinda seemed totally inappropriate and obnoxious of you. Just my opinion. Technically he would be right in many cases.
 
Well guys, I soft bricked again lol. This time it almost booted recovery. Also we're moving dip internet service is off until end of next week. My install of elf toolchain won't work right and I think I'm not drinking enough beer. I tried and I hate to say it but, hopefully the life's good guys will make ours better.
 
on fota-update
export PATH /sbin
export ANDROID_ROOT /system
export ANDROID_DATA /data
export EXTERNAL_STORAGE /sdcard
export PATH /sbin:/data/data/com.lge.omadmclient/files/

symlink /system/etc /etc

mkdir /sdcard
mkdir /system
mkdir /data
mkdir /cache
mount /tmp /tmp tmpfs

#mount rootfs rootfs / rw remount

# mount mmc partitions

#[LGE_UPDATE_S] DMS_SYSTEM dms-fota@lge.com 2012/03/13
# Changed partition table 13 - > 14, 14 -> 15, 16 -> 17 2012/03/13

wait /dev/block/mmcblk0p14
mount ext4 /dev/block/mmcblk0p14 /system rw data=journal barrier=1

wait /dev/block/mmcblk0p15
exec /system/bin/e2fsck -y /dev/block/mmcblk0p15
mount ext4 /dev/block/mmcblk0p15 /data nosuid nodev noatime barrier=1 data=journal noauto_da_alloc errors=panic

wait /dev/block/mmcblk0p17
exec /system/bin/e2fsck -y /dev/block/mmcblk0p17
mount ext4 /dev/block/mmcblk0p17 /cache nosuid nodev data=journal barrier=1

#[LGE_UPDATE_E] DMS_SYSTEM dms-fota@lge.com 2012/03/13

wait /dev/graphics/fb0
wait /dev/tty0

chown system system /data
chmod 0771 /data

mkdir /cache/fota


this may help find the location of the ota throught terminal you probably could move it to root but idk how to

Is this a logcat??
Maybe you can make a logcat while running 10c firmware and see if it will show any links/saved download location.
 
Logcat didn't show much... maybe user error. But I think it is in
/data/data/com.lg.lgfotaclient/files.

I'll check again. But after I downloaded the update, the app's data/size jumped ~30 mbs. So that seems to be it.
(I can keep testing, I'm rooted, so I can't update anyways)
 
Logcat didn't show much... maybe user error. But I think it is in
/data/data/com.lg.lgfotaclient/files.

I'll check again. But after I downloaded the update, the app's data/size jumped ≈30 mbs. So that seems to be it.
(I can keep testing, I'm rooted, so I can't update anyways)


Confirmed. This is where it downloads. ...had to double check. Haha. I'll post what happens after validation. (Its downloading now)
 
Is this a logcat??

Looks like a script or something that when ran, exports a shyte load of stuff from your phone to your computer and does something to your /data, /system and /cache (cant tell what, not the best at linux/android commands), chowns /data to system and chmods 0771 (not sure what that does) then makes some folder in /data

Sent from my SCH-R720
 
I looked for this file everywhere. It appears that it's a time sensitive download in a hidden partition which extracts and installs on boot. I downloaded and looked everywhere and after an while the update software was blank. I hit check and it downloaded again. This gives me a clue that since its not easy to find/manipulate there may be something useful in there. Something they don't want us to have. We might be able dip fund out which partition it downloads to via the config and adb pull it.
 
I looked for this file everywhere. It appears that it's a time sensitive download in a hidden partition which extracts and installs on boot. I downloaded and looked everywhere and after an while the update software was blank. I hit check and it downloaded again. This gives me a clue that since its not easy to find/manipulate there may be something useful in there. Something they don't want us to have. We might be able dip fund out which partition it downloads to via the config and adb pull it.


After it downloads select install later. If it prompts for a reminder, set 24 hours. The data is in /data/data/ com.lge. lgfotaclient/files. Use a root explorer. There should be a file called "dlpkgfile" in there. Its 30.39 mb. The folder also contains a few other files which may be direction. Anyways I have no idea how to use it or what to do with it.

I could possibly upload this folder later..
 
Did that and files were 0 byte in files folder on my device. Downloaded it twice, didn't find it in any of the folders specified by the config. Strange.
 
Did that and files were 0 byte in files folder on my device. Downloaded it twice, didn't find it in any of the folders specified by the config. Strange.


[Link Removed]
[Check the post below]


This is on my Google drive account.
Let me know if it doesn't work.
(Its the com.lge.lgfotaclient folder, unzip it)
 
Link doesn't seem to work. :(

I'd upload a copy from my phone, but I forced the update with Sammyz unbrick guide just last night. I'll check to see if the DL is still there for shits and giggles.

update: no file there any longer... makes me want to flash back to C to download it on the phone again...
 
Link doesn't seem to work. :(

I'd upload a copy from my phone, but I forced the update with Sammyz unbrick guide just last night. I'll check to see if the DL is still there for shits and giggles.

update: no file there any longer... makes me want to flash back to C to download it on the phone again...


[Sorry.. Link Removed. ]
[Will upload files later]


I just changed the sharing permissions.
(If that doesn't work, you can try removing 'preview' or replace it with 'edit')

Please Dont edit the file though. It came straight from my phone. No viruses, but Google will still prompt you. Hope that helps/works.
 
Just found another folder with similar files... but with a few more documents.
The directory for that is
/data/user/0/com.lge.lgfotaclient
 
the partition its downloaded to my be where we should put the recovery and requires a different boot command than what recovery reboot command do and or just but the recovery file in there and put it back in the phone and then run the update it should replace the recovery or that screen it goes to instead of recovery just need to find how to boot to that screen and if we could edit the zip file and put it back in or phone it would install it anyways like a regular rom
 
I removed the file. I'll reupload it later when I can.

Side note, there are a few other files associated with fota updates. I've been doing general searches on my phone.
Keywords/phrases: fota, fumo, ota, fdm.. etc dlpkgfile maybe a proprietary RedBend format. I couldn't find more information on that though.
 
Haha. Kinda what I was thanking. But messing with the imei could problems for me.

Do you have the .zip downloaded?

No, our Comcast was flaky yesterday and the file ended up unfinished. No worries, though. I'm currently not in much of a position to work on this stuff (considering my learning curve :D), I was just curious what LG was pushing in the file.
 
No, our Comcast was flaky yesterday and the file ended up unfinished. No worries, though. I'm currently not in much of a position to work on this stuff (considering my learning curve :D), I was just curious what LG was pushing in the file.

Haha. okay. To be honest I don't even know what to do with the file. from what I've seen there is more to the updating process than simply flashing a .zip. I believe that if researching the FOTA updates helps us, it will take a while and require quite a bit more information. I am familiar with more top level android components, but getting into things like this, its like reading another language (well... I guess that's exactly what it is).

Nevertheless I hope we can find something to help push the progress along. If you guys need anymore folders, files, or directories pulled, let me know. :)
 
Back
Top Bottom