[h815] Ripping OFF LGBloatware & Googleware from KDZ before flashing onto G4 ?? - G4 Q&A, Help & Troubleshooting

Friends !
I wanted to rip off some LG Software ( eg. Weather, Calender, Health etc) and ALL Google
Software from my KDZ File and flash this modified KDZ then onto my G4.
I´ve tested out some Custom Roms like LineageOS, Resurection and some other, all Google Free but they all drain out my Batterie fast or has some other issues.
The best working Rom for me is the Original V20g.
My G4 is rooted with Magisk. In TWRP i used GKillerExtreme.zip to eliminate all Google Stuff but after cleaning there are some Google Apps still on the Phone and can´t delete them.
So my Idea is to modify my KDZ file before flashing on the Phone.
------------------------------
I followed these Post to extract all Files from the KDZ:
https://forum.xda-developers.com/showthread.php?t=2666967
After extracting the *.dz file also i have a lot of *.bin files now.
So, how to working on with these *.bin Files now, how to open them, delete some Files are contained in the *.bin File and rebuild a flashable File?
Maybe there is a existing workaround here on XDA ?
Thank you all for a little Help.
-Ralf-

Foto-AG said:
Friends !
I wanted to rip off some LG Software ( eg. Weather, Calender, Health etc) and ALL Google
Software from my KDZ File and flash this modified KDZ then onto my G4.
I´ve tested out some Custom Roms like LineageOS, Resurection and some other, all Google Free but they all drain out my Batterie fast or has some other issues.
The best working Rom for me is the Original V20g.
My G4 is rooted with Magisk. In TWRP i used GKillerExtreme.zip to eliminate all Google Stuff but after cleaning there are some Google Apps still on the Phone and can´t delete them.
So my Idea is to modify my KDZ file before flashing on the Phone.
------------------------------
I followed these Post to extract all Files from the KDZ:
https://forum.xda-developers.com/showthread.php?t=2666967
After extracting the *.dz file also i have a lot of *.bin files now.
So, how to working on with these *.bin Files now, how to open them, delete some Files are contained in the *.bin File and rebuild a flashable File?
Maybe there is a existing workaround here on XDA ?
Thank you all for a little Help.
-Ralf-
Click to expand...
Click to collapse
Don't know how you would rebuild it - I guess you would need to use a twrp script to flash them onto the partitions
As for modifying them, depends on the bin file. For system, you can mount it on Linux to a folder
E.g.
Code:
mkdir ./extractedSystem
sudo mount ./system.bin ./extractedSystem
Then you can access it through that folder. When you are done...
Code:
sudo umount ./extractedSystem

Extract: SALT
Mount: SALT (Advanced menu)
Flash: SALT (v4)
Ah yea and btw: you can't create your own kdz. Well you can but you can't flash it as it must be signed.
Sent from my LG-H815 using XDA Labs

ThePiGuy said:
Don't know how you would rebuild it - I guess you would need to use a twrp script to flash them onto the partitions
As for modifying them, depends on the bin file. For system, you can mount it on Linux to a folder
E.g.
Then you can access it through that folder. When you are done...
Click to expand...
Click to collapse
Thank you very much. To mount a bin file as a Drive in Linux (FWUL ) is the Key. All other steps i will find in the next Days. Thx again.

steadfasterX said:
Extract: SALT
Mount: SALT (Advanced menu)
Flash: SALT (v4)
Ah yea and btw: you can't create your own kdz. Well you can but you can't flash it as it must be signed.
Click to expand...
Click to collapse
Thank you steadfasterx. I was think about to check Salt out too. I was reading about Salt alot and give it a try in the evening. Thx.

Foto-AG said:
Thank you steadfasterx. I was think about to check Salt out too. I was reading about Salt alot and give it a try in the evening. Thx.
Click to expand...
Click to collapse
when you use FWUL SALT is included
the flashing part of SALT is still in beta testing state thats why v4 is not (public) available yet ..
.

ThePiGuy said:
Don't know how you would rebuild it - I guess you would need to use a twrp script to flash them onto the partitions
As for modifying them, depends on the bin file. For system, you can mount it on Linux to a folder
E.g.
Then you can access it through that folder. When you are done...
Click to expand...
Click to collapse
Hey.
Doesnt work for me. Getting error in Terminal.
Mount: /home/android/extractedSystem: wrong fs type, bad option, bad superblock on /dev/loop1, missing codepage or helper program, or other error.
So, im not so involved into Linux and have no idea whats wrong. Ive test with all .bin files but the error message pops up on every.bin file
My FWUL version is 2.7, the 8GB version on USB Stick.
Im pretty sure i did something wrong :angel:
Greetings
Ralf

steadfasterX said:
when you use FWUL SALT is included
the flashing part of SALT is still in beta testing state thats why v4 is not (public) available yet ..
.
Click to expand...
Click to collapse
Hey....
Hmmm no can not find SALT. No Icon, no Folder, unknown command in Terminal. Search term for salt give me no result.
Using FWUL 2.7 8GB version. FWUL did some little updates but still no SALT.
-Ralf-

Foto-AG said:
Hey....
Hmmm no can not find SALT. No Icon, no Folder, unknown command in Terminal. Search term for salt give me no result.
Using FWUL 2.7 8GB version. FWUL did some little updates but still no SALT.
-Ralf-
Click to expand...
Click to collapse
Consider to read through whats included in FWUL : https://forum.xda-developers.com/showpost.php?p=70272684&postcount=3
.. there are even screenshots..
.

steadfasterX said:
Consider to read through whats included in FWUL : https://forum.xda-developers.com/showpost.php?p=70272684&postcount=3
.. there are even screenshots..
.
Click to expand...
Click to collapse
Many thx. But i dont have the Samsung and LG Folder on the Desktop.
Will download FWUL tomorrow from XDA. My FWUL was dl from an other Website because i have speed issues when dl from XDA or the Androidhosting Service. More then 5 hrs for dl the FWUL image, somewhere in Texas or other US- State.
Thank you btw for your Support me.

Foto-AG said:
Many thx. But i dont have the Samsung and LG Folder on the Desktop.
Will download FWUL tomorrow from XDA. My FWUL was dl from an other Website because i have speed issues when dl from XDA or the Androidhosting Service. More then 5 hrs for dl the FWUL image, somewhere in Texas or other US- State.
Thank you btw for your Support me.
Click to expand...
Click to collapse
yea AFH can be slow..
you can use a nightly or my mirror here:
http://leech.binbash.it:8008/FWUL/
("stable" contains the 2.7)
btw tonight a new nightly is planned (if all goes well)

steadfasterX said:
yea AFH can be slow..
you can use a nightly or my mirror here:
http://leech.binbash.it:8008/FWUL/
("stable" contains the 2.7)
btw tonight a new nightly is planned (if all goes well)
Click to expand...
Click to collapse
Hey. My little response....
I did it and ripped off most of all the Bloatwares. Google is complete out off my Phone now and don't wont it back. It was a very hard and long process to eliminate all the Stuff. Alot of failures was coming up, alot of new image installings and start again over because i delered some Mainfeatures or essential Routines etc. OMG i don't want do this again in my life lol.
So its better to flash a google free Rom.
Okay, only my little response for this thread and Big Thanks to Steadyfast for the last Supports !

Related

Question for Unyaffs

As you know, we got a Chinese froyo rom for DEFY but it's degoogled. I'm tring to add google services for that.
My plan is unpack SBF file and add mdpi-gapps then pack again.
Now, I've already unpacked the SBF file sucessful and got the CG39.smg. but I strucked on unpacking the CG39.smg, unyaffs.exe doesn't work on my windows7. I need help or anybody can run unyaffs on your Linux surounding?
gavinta said:
As you know, we got a Chinese froyo rom for DEFY but it's degoogled. I'm tring to add google services for that.
My plan is unpack SBF file and add mdpi-gapps then pack again.
Now, I've already unpacked the SBF file sucessful and got the CG39.smg. but I strucked on unpacking the CG39.smg, unyaffs.exe doesn't work on my windows7. I need help or anybody can run unyaffs on your Linux surounding?
Click to expand...
Click to collapse
unyaffs works ok for me on windows 7 - how are you using unyaffs, are you aware it need to be run in a cmd line? If so are you x86 OR x64.
@gavinta, i've a 64-bit linux installed, if you tell me what to do i will help you.
paulle said:
@gavinta, i've a 64-bit linux installed, if you tell me what to do i will help you.
Click to expand...
Click to collapse
Higgsy said:
unyaffs works ok for me on windows 7 - how are you using unyaffs, are you aware it need to be run in a cmd line? If so are you x86 OR x64.
Click to expand...
Click to collapse
Thanks. Here's my steps:
1. Download 2.2ROM from this post: http://forum.xda-developers.com/showthread.php?t=895448
2. Download unyaffs.exe from this page: http://jiggawatt.org/badc0de/android/index.html
3. Download MotoAndroidDepacker.exe from http://modmymoto.com/forums/showthread.php?t=530781
4. Use MotoAndroidDepacker.exe unpack 2.2 sbf file, then you got CG39.smg
5. Unpack CG39.smg by unyaffs.exe, you should get /system folder if everything goes well, then just delete or add anything you want and pack a new SBF at last.
For more support of unyaffs, please visit http://code.google.com/p/unyaffs/
Yes, I did that in the CMD line which running as administrator. But it always shows "stop working"
Would it be possible to flash new/recompiled boot.img/system.img via recovery then?
Or partitions with digital signatures should be also updated?
i#m downloading the files, but it will need some hours; very slow line.
Simplestas said:
Would it be possible to flash new/recompiled boot.img/system.img via recovery then?
Or partitions with digital signatures should be also updated?
Click to expand...
Click to collapse
Yes, it's okay. I've flashed a recompiled froyo sbf with a old CG39 which from 2.21UK sbf successful, of course this rom cannot running but it's a good start. Next, we need to unpack the CG39 and modify that.
paulle said:
i#m downloading the files, but it will need some hours; very slow line.
Click to expand...
Click to collapse
Don't worry my friend, great thanks to you.
waiting for good news
I want Google service too
I've tried to make a mix sbf-pack base on 2.21UK and CG39 which from Chinese Froyo and root that, but failed, I can put this home made rom into my phone, but cannot boot~ ^_^
SteveChou said:
waiting for good news
I want Google service too
Click to expand...
Click to collapse
How do you access google services in GFW? This morning, my mum said she cannot use any google services any more in China.
......
你指哪个? 网页还是地图还是gmail?
SteveChou said:
......
你指哪个? 网页还是地图还是gmail?
Click to expand...
Click to collapse
所有的都不行...网页,地图,搜索,邮件,GReader....
paulle said:
i#m downloading the files, but it will need some hours; very slow line.
Click to expand...
Click to collapse
I put up a mirror for the rom here, 30mbit upload in Denmark:
Http://www.sorensiim.dk/stuff/defy/Defy_2_2_CN.zip
Let me know if you guys need hosting for project files or roms, we need to get rooted froyo for the Defy!
the depacker didn't work here. sorry. don't know why.
I just had an idea... I wonder if you could extract the froyo Dialer app and add it to the 2.34.1 rom.
Well, there's only one way to find out.
unyaffs never worked for me with CG39. I've tried that when I first got the phone. My guess is that it's not pure yaffs filesystem image, or that the unyaffs code it's buggy. I've tried modifing it prior to compliling, but all I got was different errors, from Stack Overflows to program hardcoded messages like the filesystem was not properly built.
pedrodh said:
unyaffs never worked for me with CG39. I've tried that when I first got the phone. My guess is that it's not pure yaffs filesystem image, or that the unyaffs code it's buggy. I've tried modifing it prior to compliling, but all I got was different errors, from Stack Overflows to program hardcoded messages like the filesystem was not properly built.
Click to expand...
Click to collapse
Yes, I have same result. Fortunately, we got the gapp update packge from MOTO, so every google services run well on Chinese Froyo now, you should try it.
Is it possible to use this froyo kernel in an AOSP froyo build?

Japanese G2 L-01F stock images and files

Have fun devs!
L01F10c(11/10/2013) Factory shipped initial version. Android4.2.2.
aboot.img.................dev host vidplace7
BackupGPT.img..vidplace7
boot.img...................dev host vidplace7
dbi.img...........................vidplace7
laf.img.............................vidplace7
misc.img.......................vidplace7
modem.img..............dev host vidplace7
persist.img.................vidplace7
PrimaryGPT.img.....vidplace7
recovery.img............dev host vidplace7
rpm.img......................vidplace7
sbl1.img........................vidplace7
system.img...............vidplace7
tz.img...........................vidplace7
.tot image................ vidplace7
build.prop..................pastebin vidplace7
L01F11k(17/12/2013) Minor bugfix and docomo id integration update. Details
kdz file......................mediafire vidplace7
LGUP_8947.dll...vidplace7
tot image................vidplace7
system installer......................mega
kernel installer........................link dead
dlpkgfile.....................link dead
fota_script.txt.............pastebin
build.prop...................pastebin
L01F11l(6/4/2015) Minor bugfix for gapps. Details
L01F11m(20/10/2015) Improve connectivity. Details
End of life(11/2017) Download of official updates will be unavailable.
Extract .dz and .dll file from the kdz to flash.
See this thread
If you have any other relevant files, post it in this thread or PM me and I will add it here.
That system dump finish yet?
Sent from my VS980 4G
cdkg said:
That system dump finish yet?
Sent from my VS980 4G
Click to expand...
Click to collapse
Upload finished.
Will add mirrors.
ありがとう!:good:
Cannot get in to HW reset mode on L-01F
Hi,
I rooted the phone and installed CWM and took the OTA update which got me stuck in CWM. I managed to get out of it by flashing the zip I shared here (http://forum.xda-developers.com/showthread.php?t=2576134). This has wiped out CWM completely from the phone and has left me unrooted which is fine.
The problem now is I cannot get in to HW reset mode by holding the vol down and power button,or both buttons.This does not do anything for my device. It just goes to load Android or reboots if I hold the power button straight through. Is the stock recovery toast? I cannot seem to flash another recovery either...
I want to go back to stock recovery to take the OTA update. What should I do at this stage. Can anyone/Supersonicninja help? Im in Tokyo. Happy to buy a few rounds to anyone who get me out of this mess. Thanks!
Ducalion said:
Hi,
I rooted the phone and installed CWM and took the OTA update which got me stuck in CWM. I managed to get out of it by flashing the zip I shared here (http://forum.xda-developers.com/showthread.php?t=2576134). This has wiped out CWM completely from the phone and has left me unrooted which is fine.
The problem now is I cannot get in to HW reset mode by holding the vol down and power button,or both buttons.This does not do anything for my device. It just goes to load Android or reboots if I hold the power button straight through. Is the stock recovery toast? I cannot seem to flash another recovery either...
I want to go back to stock recovery to take the OTA update. What should I do at this stage. Can anyone/Supersonicninja help? Im in Tokyo. Happy to buy a few rounds to anyone who get me out of this mess. Thanks!
Click to expand...
Click to collapse
Try pressing volume up+power.
supersonicninja said:
Try pressing volume up+power.
Click to expand...
Click to collapse
Still no joy.... Im afraid to flash anything now. If I do will it brick my phone?
You can also try to press and hold volume down while plugging your phone to the computer to get into download mode And the go back to stock. If you don't know how here is a tip Google your (LG g2 flash tool with your model number) to go back to factory stock firmware, or You may use adb now you don't flash anything unless you know how to use adb that way you are not in this mess again. With that being said lets go back to the file if you have any questions post it the Q tread not here.
Sent from my LG-LS980 using xda premium
hi @supersonicninja
when LG JP will upgraded L-01F to Android 4.4.2 KITKAT ?
supersonicninja said:
Have fun devs!
L01F10c(11/10/2013) Factory shipped initial version. Android4.2.2.
aboot.img.................download
boot.img...................download
recovery.img..............download
modem.img...............download
system.img...............part1.....part2.....part3.....part4
.tot image................ Baidu
build.prop..................view
L01F11k(17/12/2013) First FOTA. Minor bugfix and docomo id integration update. Details
kdz file......................download
system......................download installer zip
kernel........................download installer zip
dlpkgfile.....................download
fota_script.txt.............view
build.prop...................view
Extract .dz and .dll file from the kdz to flash it.
See this thread
If you have any other relevant files, post it in this thread or PM me and I will add it here.
Click to expand...
Click to collapse
for some reason my original backup of the stock rom is not saved in my device CWM folder. and i am in CM11 now. how do i used these files to go back to stock?
do i just need to flash first 5 img files?
also i wanted to explore using other available ROMS here such as international D800 ROM and G3 rom. which files do i need to replace in those ROM so taht to make them work in our L01F device?
your help is highly appreciated.
@supersonicninja , i found L01f11K Tot file
http://pan.baidu.com/s/1i3C9P1V
https://mega.co.nz/#!eoxGnKQJ!Z8YhLXTyuocD3KwuyQFetkJPP94938x12IGubcMX6Ag
hungnguyen490 said:
@supersonicninja , i found L01f11K Tot file
http://pan.baidu.com/s/1i3C9P1V
https://mega.co.nz/#!eoxGnKQJ!Z8YhLXTyuocD3KwuyQFetkJPP94938x12IGubcMX6Ag
Click to expand...
Click to collapse
Do you have dll file ?
somboons said:
Do you have dll file ?
Click to expand...
Click to collapse
No, i don't have the dll file. But you can extract dll file from KDZ file. If you want, i'll extract it for you
hungnguyen490 said:
No, i don't have the dll file. But you can extract dll file from KDZ file. If you want, i'll extract it for you
Click to expand...
Click to collapse
Thank you, Can you extract for me ? I don't have kdz .
somboons said:
Thank you, Can you extract for me ? I don't have kdz .
Click to expand...
Click to collapse
here you are
hungnguyen490 said:
here you are
Click to expand...
Click to collapse
Thank you, Good man.
Thank you for the 11k tot!
Added link to OP.
Noticed that a LOT of the links are broken, so I've taken the time to rehost them!
LGUP_8974.dll (extracted from L01F11k kdz): 625dcdd57bff1aa5b8c3b7e6f104defb
L01F10c:
kdz: None available, if you can find this please let me know!
tot: cd1c9245b46ec940c548b4524f3a2447
aboot.img: d4e4e7c42005c8478a24ffa4531298fb
boot.img: 6d2f4bdfcee6ed5d05f5f5b94304bd9a
laf.img: 946bd01395663f4d1470a133da334242
recovery.img: 3a6d9215622fc81abf5dc88935cc6908
modem.img: c9288f057b992a1b3338393e58e91c0c
system.img: 4842431e582d59b8f095e6e26e34d2f4
Full Partition Dump Directory: https://mirror.vidplace7.com/Android/Devices/LG G2/l01f/Partition Dump/L01F10c/
L01F11k:
kdz: cd8d1f06cd6525ebf9657b8926b99ca7
tot: 8db902d1181a2953821b0b049e50c648
aboot.img: 49432415358772baa07398355ee2fa25
boot.img: 2cfc83a26867b5701ad01617bf731266
laf.img: b7c687c8d7b3169fe5a5271578b79b11
recovery.img: fbdc3b99d02769d1e06c4bcea4629c2a
modem.img: 38b95c00d6d8abf0b84de5f14158a11b
system.img: 179e8746f0f60e04fa21710188f5ba86
Full Partition Dump Directory: https://mirror.vidplace7.com/Android/Devices/LG G2/l01f/Partition Dump/L01F11k/
The KDZ for L01F11k is also available officially from LG at http://csmgdl.lgmobile.com/dn/downloader.dev?fileKey=FW351885432109876543213/L01F11K_00.kdz
Feel free to add these links to your OP! If you need anything else mirrored give me a shout!
vidplace7 said:
Noticed that a LOT of the links are broken, so I've taken the time to rehost them!
L01F11k:
kdz: https://mirror.vidplace7.com/Android/Devices/LG G2/KDZ/L-01F/L01F11K_00.kdz
LGUP_8974.dll (extracted from kdz): https://mirror.vidplace7.com/Android/Devices/LG G2/KDZ/L-01F/LGUP_8974.dll
aboot.img: https://mirror.vidplace7.com/Android/Devices/LG G2/l01f/L01F11k Partition Dump/aboot.img
boot.img: https://mirror.vidplace7.com/Android/Devices/LG G2/l01f/L01F11k Partition Dump/boot.img
laf.img: https://mirror.vidplace7.com/Android/Devices/LG G2/l01f/L01F11k Partition Dump/laf.img
recovery.img: https://mirror.vidplace7.com/Android/Devices/LG G2/l01f/L01F11k Partition Dump/recovery.img
modem.img: https://mirror.vidplace7.com/Android/Devices/LG G2/l01f/L01F11k Partition Dump/modem.img
system.img: https://mirror.vidplace7.com/Android/Devices/LG G2/l01f/L01F11k Partition Dump/system.img
Full Partition Dump Directory: https://mirror.vidplace7.com/Android/Devices/LG G2/l01f/L01F11k Partition Dump/
Feel free to add these links to your OP, I'll do the same for the original factory image files if I can ever find a link for a kdz file that isn't dead :/
EDIT 10-10-2015: I found a TOT file for L01F10c, I'll upload, along with a partition dump!
Click to expand...
Click to collapse
Thanks so much!
Removed all dead links from the OP.
Sorry but your mirror url shows 404 error now. https://mirror.vidplace7.com/ has some file uploaded (tried downloading some files, nice fast server!) so your l01f11k uploads just may be pending. I will add your mirrors to the OP when it is downloadable.
supersonicninja said:
Thanks so much!
Removed all dead links from the OP.
Sorry but your mirror url shows 404 error now. https://mirror.vidplace7.com/ has some file uploaded (tried downloading some files, nice fast server!) so your l01f11k uploads just may be pending. I will add your mirrors to the OP when it is downloadable.
Click to expand...
Click to collapse
All the files (including the system.img files!) have been uploaded! I also generated md5 hashes for each file, as you can see in my original post. Thanks for all your contributions for this device, if you need anything else mirrored please feel free to PM me!
All the files I'm currently mirroring for the LG G2 L-01F are easily browsable at https://mirror.vidplace7.com/Android/Devices/LG G2/l01f/

[OBSOLETE THREAD] Rooting LG G4S (H735)

[OBSOLETE THREAD]
This thread is obsolete. A solution was found, which is posted here:
http://forum.xda-developers.com/g4/help/method-to-root-lg-g4s-model-h735-lg-g4-t3248030
Please use the new thread for discussions.
------------------------
Original thread:
------------------------
Hi,
I have been trying to root the LG G4S (H735), also known as "LG G4 Beat".
I tried two things:
Approach 1
I tried the method posted by konsolen in this thread:
http://forum.xda-developers.com/g4/general/lg-g4s-world-root-lg-devices-t3231759
but it didn't work for me. I tried several times with varying approaches, but the boot process always gets stuck on the LG logo.
Approach 2
I also tried to inject the root as suggested in this thread for the G4:
http://forum.xda-developers.com/g4/help/rooting-lg-h735-g4-beat-t3192491
I've used the Inject_Root_G4.zip from this link, which I believe is the same shared elsewhere:
https://mega.nz/#!BIxUzbqI!nt2YnGnGQlSiBQ-Ar-c-q7oDMIEsg6xd0Kmek-q0clg
And I get the same problem - stuck on the LG logo when booting.
For anyone who wants to reproduce Approach 2 to maybe find a solution:
1. Start up LGFlashTool2014. You can follow instructions in thread by konsolen (see Approach 1 above). You can use his .kdz file as well. Important: Pull out your USB cable as soon as the green letters COMX (with a number instead of X) appear on the phone. My flashtool actually didn't display the progress percentage, but apparently this at 9%. It doesn't matter if you don't see the percentage though, I've verified with this KDZ image that if you pull the cable at the very moment the green letters appear, nothing is corrupted. The phone will still display 0%. Leave it as it is after you unplugged the cable.
2. Kill your flash tool with the windows task manager. After it closed, you can plug the phone back in and open a windows command line in the folder where your Send_Command.exe is (you can download the package in konsolen's instructions which contains Send_Command.exe as well).
3. Open the console to your phone with
Code:
Send_Command.exe \\.\COMX.
(with your number instead of X)
You will have to do steps 1-3 every time you want to get this console, for example to run all the dd commands below.
4. Calculate the dd parameters and backup your system partition into a .img file. There is an excellent guide by dominik-p for how to determine your individual dd parameters:
http://forum.xda-developers.com/g4/help/how-to-determine-dd-parameters-lg-g4-t3184867
5. Keep a copy of your system.img somewhere safe, you can use it to restore your system if something goes wrong. So don't use this original in the next steps!
6. Copy the .img file to a linux system and mount it. I'm guessing who is trying this knows how to do this. Anything you change in the folder you mounted the image on, will be saved in the image. You can then use this updated image to overwrite your original system partition, again with dd (as described in the thread by dominik-p) using your parameters. So here's the crucial bit: You get root access to your system files via linux. When you know the right things to mess with, you can root your phone with the updated image. Injecting the root as done in step 8 is one way to change the system on the G4 in order to root it.
7. [Optional] If you are new to this, you may want to do a simple test before you continue.
Create a testfile (test.txt) on the mounted system partition. Then copy the .img file back to your phone and try to "dd" it back over your system partition.
Then, check if you see the test file on your system partition -- you may have to reboot the phone after the dd command (and log back in with Send_Command.exe) in order to see the updates.
8. Inject root with the Inject_Root_G4.zip on the mounted folder of the image on your linux system. You can follow instructions (Step 2) here:
http://forum.xda-developers.com/g4/general/lg-g4-100-root-success-directives-root-t3180586
9. Copy the new img file to your phone and "dd" it over your system partition, using your own dd parameters.
10. Reboot the phone (you can also just type LEAVE in the Send_Command.exe console).
Now, it should be rooted - if it worked for you!
If it worked for you, that's great. It didn't for me, it got stuck on the LG logo in the boot process again. So I had to write my original system.img back onto my system partition to get the phone back.
I did get the following errors in Step 8 above, though I did try anyway to use the resulting image. The errors may have something to do with my problem, but it may also be because the inject root is for the G4, not the G4s.
Code:
sudo ./autoroot.sh
cp: cannot create regular file ‘operatingtable/lib64/libsupol.so’: No such file or directory
chmod: cannot access ‘operatingtable/lib64/libsupol.so’: No such file or directory
chcon: cannot access ‘operatingtable/lib64/libsupol.so’: No such file or directory
chmod: cannot access ‘operatingtable/bin/app_process64_original’: No such file or directory
chcon: cannot access ‘operatingtable/bin/app_process64_original’: No such file or directory
chmod: cannot access ‘operatingtable/bin/app_process_init’: No such file or directory
chcon: cannot access ‘operatingtable/bin/app_process_init’: No such file or directory
If anyone finds a solution to this, or has any ideas what could be tried, I would be very interested to hear it. I'm new to rooting phones and don't have much experience beyond what I did in the last days.
Cheers
Jennifer
jen.magnolis said:
4. Calculate the dd parameters and backup your system partition into a .img file. There is an excellent guide by @dominik-p for how to determine your individual dd parameters:
http://forum.xda-developers.com/g4/help/how-to-determine-dd-parameters-lg-g4-t3184867
Click to expand...
Click to collapse
Happy that my guide has helped you
As I said here:
http://forum.xda-developers.com/g4/help/rooting-lg-h735-g4-beat-t3192491/page5
Everyone who is interested to inject root must edit the autoroot.sh from the inject.zip and use the correct files from SuperSU
More information about the files:
https://su.chainfire.eu
Maybe you have to use other files. Not the files from the inject.zip
Download the Update-SuperSU zip from http://download.chainfire.eu/supersu
Copy the files you need to the "su" folder of the extracted inject.zip
For information which files are needed read the "update-binary" file from the SuperSU zip.
(located here META-INF/com/google/android/update-binary)
Good luck everyone :good:
Thanks again for the links! I'll try again soon, when I get time for it, and report the results here
By the way, here's the ls -lR of my system.
Ok, no problem, take your time.
I've got also lot of other work to do...
I just read your system.txt (thanks)
According to these lines:
Code:
lrwxr-xr-x. 1 root 2000 13 Aug 24 02:05 app_process -> app_process32
-rwxr-xr-x. 1 root 2000 13588 Aug 24 02:05 app_process32
It seems that the firmware is 32 bit.
More info about your firmware is in /system/build.prop
So you have to take the right lines from update-binary and copy them and edit the autoroot.sh
Please don't ask me which lines. It's a bit difficult... (you have to understand the logic in update-binary)
Then copy the files from the right folder (arm?) to the "su" folder.
Sorry. I'm out now here for the next time. I have a H815 and happy with it.
I think you will find the solution. :good:
Custom Recoverys
Hi All
Are there any custom recovery's for the G4 beat/G4s
Thanks
Thanks dominik-p for your help. Good luck with your other work, don't worry I won't distract you with asking questions You already helped a lot.
benji5688, you can check for official firmware (.kdz file) on this link, pasting your IMEI instead of YOUR-IMEI in the link below.
http://csmg.lgmobile.com:9002/csmg/b2c/client/auth_model_check2.jsp?esn=YOUR-IMEI
I did not find any for mine there, but I did find it on
http://devtester.ro/projects/lg-firmwares/
Which brought me to this link where I could find mine:
http://pkg02.azure.gdms.lge.com/dn/downloader.dev?fileKey=FW703UV132GQAUP7A0ED99N/H73510c_00.kdz
but you should look for your specific model.
jen.magnolis said:
Hi,
I have been trying to root the LG G4S (H735), also known as "LG G4 Beat".
I tried two things:
Click to expand...
Click to collapse
LOL
I did the exact same thing as you, and really the EXACT, I also contacted dominik-p for the same problem you got with the bs. LOL
Was about to do the same thing you did here too just told that to dominik-p lol.
You post is great, well detailled. Hope someone found something
But got something different. my phone is the LGH731 LG G4 Vigor from Videotron in Canada.
If someone need files or system.img LINK
That's not the exact same thing as the post owner but i'm pretty sure the root method will be. (DON'T use this system.img to inject in you H735) it's from a H731 and they don't have the same partition size.
Ha, that's funny, and you got the same problem of course (frozen logo boot).
We will find a solution. It's just a matter of time. I'm a bit pressed for work in the next days but I'll get back into it around mid week. I think the main problem was, as I suspected and also as dominik-p pointed out, we've been using the wrong inject files. And the G4s is 32 bit so obviously it won't work with 64 bit libs.
First thing I'll try is using the other files from the link dominik-p shared. I'll also read the guide and try to understand which files need to be changed to gain root access in general, i.e. learn the basics of how to root. Then I think/hope I'll be able to fix this. And finally get to move all my stuff onto SD and get my storage back
Meanwhile, if you get any new results, let me know.
Cheers
jen.magnolis said:
Ha, that's funny, and you got the same problem of course (frozen logo boot).
We will find a solution. It's just a matter of time. I'm a bit pressed for work in the next days but I'll get back into it around mid week. I think the main problem was, as I suspected and also as dominik-p pointed out, we've been using the wrong inject files. And the G4s is 32 bit so obviously it won't work with 64 bit libs.
First thing I'll try is using the other files from the link dominik-p shared. I'll also read the guide and try to understand which files need to be changed to gain root access in general, i.e. learn the basics of how to root. Then I think/hope I'll be able to fix this. And finally get to move all my stuff onto SD and get my storage back
Meanwhile, if you get any new results, let me know.
Cheers
Click to expand...
Click to collapse
Yes i'm trying this today (the 32-64 bits thing)
Custom recovery
What does this file do though?
Is it a custom recovery or is it the stock rom?
Thanks Benji
benji5688 said:
What does this file do though?
Is it a custom recovery or is it the stock rom?
Thanks Benji
Click to expand...
Click to collapse
It's the stock ROM. It can be used for recovery, depending what your problem is. If you destroyed your ROM by trying to root, you can recover with this.
If you mess with something in your system partition (where the Android OS is installed), you'd need a copy of your individual system partition (like a "backup") to restore. This highly depends on your phone/version, so you have to do this backup yourself. You can follow the instructions with the dd parameters, linked to from the main thread.
Are there any custom recoverys
Hi
Are there any custom recovery available, I want to get Xposed.
Can anyone make one?
Thanks for all the help
benji5688 said:
Hi
Are there any custom recovery available, I want to get Xposed.
Can anyone make one?
Thanks for all the help
Click to expand...
Click to collapse
I far as I know to get Xposed you need to be rooted... Well there is no root method availaible, well you can try the methods that Jen explained here but I doubt they will work... if yes, you lucky ****
Is the g4s running marshmallow? Is so you would need to use a compatible su install.
Sent from my VS986 using XDA Free mobile app
larsdennert said:
Is the g4s running marshmallow? Is so you would need to use a compatible su install.
Sent from my VS986 using XDA Free mobile app
Click to expand...
Click to collapse
No the problem is really just changing the 64 bits command to make then use the 32 bits ones
I manage everything except this one
Code:
chcon --reference=operatingtable/bin/app_process32 operatingtable/bin/app_process64_original
I agree with xsteacy, this will most likely not work, that's why we opened this discussion
We just have to find the right files to use (instead of the 64 bit ones).
I will get back onto the subject by Wednesday when I have time.
I solved it! My phone is rooted
I asked someone to test my script before I post the results. Hang on there, tomorrow I'll post the solution.
Good times!
jen.magnolis said:
I solved it! My phone is rooted
I asked someone to test my script before I post the results. Hang on there, tomorrow I'll post the solution.
Good times!
Click to expand...
Click to collapse
0.0 OH!?
Ok I'm putting it out there for others to test as well.
Please report if it worked so I can take this into account before updating the main thread instructions.
In the attached .zip file there is a README with instructions.
Note: Thanks goes to @konsolen who shared instructions on how to open the COM port on the H735.
The script in konsolens post is essentially the upater-binary script of the SuperSU package, but with a few modifications.
That may have been necessary on konsolens phone, but it didn't work on mine. For me, using the original script worked.
However, the zip file has to be extracted manually with busybox before the updater-binary script is started. I am not
sure if busybox absolutely needs to be in the /sbin folder, but that's where I saw elsewhere that it belonged, so
I moved it over there in my script. I haven't tested this with busybox being elsewhere.
Thanks goes also to @dominik-p for sharing the link to excellent documentation and for his instructions on how
to make a backup (with dd) of your system, in case anything goes wrong.
UPDATE: I did all commands in root_lgh375.sh manually when I found it already worked, so please report if all is good with the script, but I think it should be, it only does what I did manually.
Congratulations @jen.magnolis
Well done

[GUIDE]How to install latest Marshmallow KDZ on the LG Spirit

Hello, as some of you may already know, we can't flash MM kdz on our LG Spirit using LG Flash Tool, so we have to use LG UP, a method which is also used by LG G4c owners. I drew the idea from them, since G4c and Spirit are practically the same devices. I've modified a script from G4c, all credits go to @bender_007.
So here are the steps:
1. Make sure you have USB drivers installed.
2. Download and install LG UP: http://www.filedropper.com/g4 ---- First install LGUP_8994_DLL_Ver_0_0_3_23, then LGUP_Install_Ver_1_14_3.
3. Download the script that makes LG UP recognize our device as H440n(Courtesy of @bender_007, I only modified small parts of it). Link: https://www.dropbox.com/sh/lbxdwloffi75qqg/AABfz5e9AIiSxipsnZQIiikGa?dl=0 (Download as zip)
4. Extract the zip and run h440n.bat
5. Connect your Spirit in MTP mode.
6. Run LG UP and wait for it to load.
7. Leave all settings as they are.
8. Under file path, browse to the kdz file you downloaded. NOTE: It won't show in the directory it is in, because the browse window sees only .tot files, so you have to manually type in the KDZ name in the text field and select it that way.
9. Click Start
10. Wait
11. ???
12. Profit! Enjoy your LG Spirit running Marshmallow!
Thanks, I had to manually copy the dll in the LGUP folder, dunno if it's my fault, or script's fault though.
EDIT: It gives me an error on boot, about CUST not existing... Nothing important, I can continue to use it but it's rather annoying? Fixes? Thanks.
guglicap said:
Thanks, I had to manually copy the dll in the LGUP folder, dunno if it's my fault, or script's fault though.
Click to expand...
Click to collapse
I suppose yours, because it worked for me flawlessly. If someone notices any errors in modifications I made to the script, feel free to correct me.
Fobos531 said:
I suppose yours, because it worked for me flawlessly. If someone notices any errors in modifications I made to the script, feel free to correct me.
Click to expand...
Click to collapse
Depending on OS and security level it can happen, it might need an elevated access- Try: right click - run as administrator
Poslano sa mog SM-G930F koristeći Tapatalk
Had to also copy everything over manually, running as admin didn't help. I haven't done anything to my security settings and am running on the only account that was created with the install. I think it might have something to do with me running on dev mode though.
jonixas said:
Had to also copy everything over manually, running as admin didn't help. I haven't done anything to my security settings and am running on the only account that was created with the install. I think it might have something to do with me running on dev mode though.
Click to expand...
Click to collapse
nah, I also run dev mode. No worries I'll create a desktop app which will then work.
Poslano sa mog SM-G930F koristeći Tapatalk
Afternoon fellas. I have reached the part of runinng the kdz via LGUP however the kdz i have (named H525n20c_00_0321.kdz) brings back an error of invalid kdz. Could someone be so kind as to point out a working link for the kdz if possible?
Thanks
Diarno said:
Afternoon fellas. I have reached the part of runinng the kdz via LGUP however the kdz i have (named H525n20c_00_0321.kdz) brings back an error of invalid kdz. Could someone be so kind as to point out a working link for the kdz if possible?
Thanks
Click to expand...
Click to collapse
Firstly, do you have LG Spirit or LG G4c?
guglicap said:
Thanks, I had to manually copy the dll in the LGUP folder, dunno if it's my fault, or script's fault though.
EDIT: It gives me an error on boot, about CUST not existing... Nothing important, I can continue to use it but it's rather annoying? Fixes? Thanks.
Click to expand...
Click to collapse
I had to manually move dll too. But I made it!
@Fobos531 hello good job . bro I can install MM on lg spirit 4g H440F
Mark XP said:
@Fobos531 hello good job . bro I can install MM on lg spirit 4g H440F
Click to expand...
Click to collapse
Wait until H440F kdz is released.
P.S.: I had to copy all files manually and manually Merge registry script. Probbably some Windows 10 BS with UAC and bat scripts lately.
Another BS, now from phone - MSC error on boot. But that temp root isn't availiable :/
Im stupid, what is MTP mode?
MadjijaHacker said:
Im stupid, what is MTP mode?
Click to expand...
Click to collapse
Regular mode what is enabled by Deafult on KitKat and newer ROM's. It is also known as Media Transfer Protocol and when you connect phone it should look something like this (screenshot from my PC with my current device connected because of copying nandroid backup to PC)
Antoher note: for LG Spirit it looks like Phone Icon, not Media Device.
​
midzan21 said:
Regular mode what is enabled by Deafult on KitKat and newer ROM's. It is also known as Media Transfer Protocol and when you connect phone it should look something like this (screenshot from my PC with my current device connected because of copying nandroid backup to PC)
Antoher note: for LG Spirit it looks like Phone Icon, not Media Device.
Click to expand...
Click to collapse
I knowed that, but i didnt know what is name of it.
i have a few questions, can i back to lollipop? and the adoptable storage is working?
BrainNotFound said:
i have a few questions, can i back to lollipop? and the adoptable storage is working?
Click to expand...
Click to collapse
Yes, you can get back by flashing kdz using LG Flash Tool and as far I saw there isn't enabled Adoptable Storage.
Can you do the same for the LG Spirit h420?
Can someone upload photos ?? Do you feel any diference ate speed or maneging RAM ??
jopafon said:
Can someone upload photos ?? Do you feel any diference ate speed or maneging RAM ??
Click to expand...
Click to collapse
Just check General Info Therad here (last 2-3 pages) - http://forum.xda-developers.com/android/development/lg-spirit-h440n-thread-t3108435
BrainNotFound said:
i have a few questions, can i back to lollipop? and the adoptable storage is working?
Click to expand...
Click to collapse
To anyone interested:
I got adaptive storage to work! It's pretty simple. Just follow the guide from modaco.com (search for "modaco adaptive storage galaxy s7" on google", I don't think I can post links).
Then go to Settings -> Storage & USB -> Your SD Card -> Merge (in the additional menu).

H810 Frankenstein with no sound

Phone stopped making any sounds.
what works: bluetooth, wifi, sim card (data + receiving texts, calls not tested)
what doesn't: sensors (rotating), camera, sound
dmesg https://pastebin.com/gY1pgn96
What was flashed that I can find/remember in no particular order
H810_UsU_unlock.zip
h810_21y_modem.zip
H810_UsU_baseband_flash-in-twrp.zip
G4_29a_N_modem_UsU.zip
LG-G4_VideoLag-Fix_EXTRACTME-AND-READ-THE-README.7z
h810_10o_UsU_bootloader_ARB2.zip
lineage-15.1-20190121-UNOFFICIAL-h810_usu.zip
lineage-15.1-20190409-UNOFFICIAL-h810_usu.zip
lineage-16.0-20190512-UNOFFICIAL-h810_usu.zip
and magisk + gapps
zip of sbl1 rpm tz pmic partitions attached.
On a side note I see h810_10o_UsU_bootloader_ARB2.zip that I forgot about earlier. Explains the ARB2 that the phone is at now. Looking back through my bash history I was having these issues before I flashed this.
@steadfasterX per request
You flashed so much stuff steadfaster can't even help you
baconbacon said:
Phone stopped making any sounds.
what works: bluetooth, wifi, sim card (data + receiving texts, calls not tested)
what doesn't: sensors (rotating), camera, sound
dmesg https://pastebin.com/gY1pgn96
What was flashed that I can find/remember in no particular order
H810_UsU_unlock.zip
h810_21y_modem.zip
H810_UsU_baseband_flash-in-twrp.zip
G4_29a_N_modem_UsU.zip
LG-G4_VideoLag-Fix_EXTRACTME-AND-READ-THE-README.7z
h810_10o_UsU_bootloader_ARB2.zip
lineage-15.1-20190121-UNOFFICIAL-h810_usu.zip
lineage-15.1-20190409-UNOFFICIAL-h810_usu.zip
lineage-16.0-20190512-UNOFFICIAL-h810_usu.zip
and magisk + gapps
zip of sbl1 rpm tz pmic partitions attached.
On a side note I see h810_10o_UsU_bootloader_ARB2.zip that I forgot about earlier. Explains the ARB2 that the phone is at now. Looking back through my bash history I was having these issues before I flashed this.
@steadfasterX per request
Click to expand...
Click to collapse
Perfect thx that explains a lot..
As you mentioned already the bootloader stack thing but also another one you flashed 21y modem .. I will need some time to investigate both things and come back to you asap
Update:
ok so the worst thing you had done was flashing the 21y modem. The problem with that one is that it is ARB 3 (see known ARB) and so blown fuses (in areas not related to the bootloader ARB but for firmware).
Anyways that will refuse using several parts of your firmware now.
There is no guarantee if the following would make things even more worse but that's what I would try:
extract the system and the modem partition of the 21y kdz
grab the "etc/firmware/venus.*" files from the extracted system partition and copy them to system/etc/firmware/ (mount "system" in TWRP before)
grab the "image/a2dsp.*" files from the extracted modem partition and copy them to /firmware/image (mount "Firmware" in TWRP before)
boot again and grab the dmesg as soon as possible
again that can make things even more worse so you do this on ur own risk.
Sent from my OnePlus 6T using XDA Labs
Before I do this, because hell why not , is the 21y here https://storagecow.eu/index.php?dir=Xda/LG+G4/H810/AT&T/ what I am looking for? Want to be sure before I make matters worse for myself.
baconbacon said:
Before I do this, because hell why not , is the 21y here https://storagecow.eu/index.php?dir=Xda/LG+G4/H810/AT&T/ what I am looking for? Want to be sure before I make matters worse for myself.
Click to expand...
Click to collapse
Yes the rar file. It will contain a TOT file (so you cannot use SALT to extract) .
TOTs require the windows software :
https://forum.xda-developers.com/showthread.php?t=2600575
Sent from my OnePlus 6T using XDA Labs
How do I grab the files out of system.img . I had to use WindowsLGFirmwareExtract-1.2.1.0-Release as the newest one would dump 20G+ junk files.
Code:
$ file system_691200.bin
system_691200.bin: Linux rev 1.0 ext4 filesystem data, UUID=57f8f4bc-abf4-655f-bf67-946fc0f9f25b (extents) (large files)
I can't mount the file, after making it the size it wants with "truncate -s $((1159168*4096)) system_691200.bin" it will mount but then is completely empty. Repairing with fsck annihilates everything. What is the trick to dumping/mounting this?
modem.img mounted fine.
baconbacon said:
How do I grab the files out of system.img . I had to use WindowsLGFirmwareExtract-1.2.1.0-Release as the newest one would dump 20G+ junk files.
I can't mount the file, after making it the size it wants with "truncate -s $((1159168*4096)) system_691200.bin" it will mount but then is completely empty. Repairing with fsck annihilates everything. What is the trick to dumping/mounting this?
modem.img mounted fine.
Click to expand...
Click to collapse
The latest should work fine but you have to merge (!) the files once extracted which is a separate option in that tool. For mounting you could then use SALT (advanced menu) if you like
Sent from my OnePlus 6T using XDA Labs
It only extracts one system file, system_691200.bin, there is nothing to merge. That's with 1.2.6.1, I tried several different versions and all of them only list/extract one file. The tot I used is not corrupt (i believe), downloaded 3 more and they all had the same md5.
Do you know offhand if I would be able to push the system_691200.bin onto the phone and mount it just to grab those files?
baconbacon said:
It only extracts one system file, system_691200.bin, there is nothing to merge. That's with 1.2.6.1, I tried several different versions and all of them only list/extract one file. The tot I used is not corrupt (i believe), downloaded 3 more and they all had the same md5.
Do you know offhand if I would be able to push the system_691200.bin onto the phone and mount it just to grab those files?
Click to expand...
Click to collapse
ok when it lists only 1 file there it is only 1. Lemme check if I can do that today.
EDIT:
ah yea another reason why I hate that windows tool.. it extracts bull****.. trying to fix that but that can take some secs
EDIT2:
wow thats is really a stubborn crap.. Cannot mount, resize, fsck, fix, testdisk/photorec , ... (and yea I used DD to get the correct size, offset ...)
EDIT3: @baconbacon
no one is as stubborn as me lol..
ok I have not figured out why that crappy windows software does not extract it correctly but I searched and found another extractor here. (whoa.. that way I could make TOT files support available in SALT...)
compiled. ran. mounted. simply works..
so here you go: http://leech.binbash.it:8008/stock/LG/h810/21y_arb3
you just need: h810_21y_ARB3_system-etc-firmware.tgz
download that one.
extract it and follow the prev post here
jfi:
I am currently uploading the full system image and other stuff of that firmware as well (should be fully uploaded in 40 min or so)
.-
That fixed it completely! Sound works, rotation works, camera works. Installed the newest rom and the phone is quite snappy now. As a bonus it also fixed the video lag.
Thank you very much, you went above and beyond to help me fix this. Is that bitcoin address on your profile accurate?
baconbacon said:
That fixed it completely! Sound works, rotation works, camera works. Installed the newest rom and the phone is quite snappy now. As a bonus it also fixed the video lag.
Thank you very much, you went above and beyond to help me fix this. Is that bitcoin address on your profile accurate?
Click to expand...
Click to collapse
GREAT ! Glad we solved it.
I really hoped it will fix it and yea that's again a proof of fusing in modem and firmware files (due to flashing the 21y modem).. I will remove that one from the list so no one will go for the same journey.
yea my BTC is fine but given some thx click on any of my posts is fine too
have fun!
.-

Categories

Resources