custom rom lg g4 - General Questions and Answers

Hellooooo . . . ! ! !
First: I want a system dedicated to the LG G4 H818P and no bootloop problem
Second: How to run the ROM phones on the computer directly through the simulator such as Qemu-System-Aarch64 such as LG G4 KDZ
.... .... ..... ..... .... ..... ..... ...... .... End .... .... ..... ...... ..... ...... ...... ...... .....

maherGood said:
Hellooooo . . . ! ! !
First: I want a system dedicated to the LG G4 H818P and no bootloop problem
Second: How to run the ROM phones on the computer directly through the simulator such as Qemu-System-Aarch64 such as LG G4 KDZ
.... .... ..... ..... .... ..... ..... ...... .... End .... .... ..... ...... ..... ...... ...... ...... .....
Click to expand...
Click to collapse
1) It looks like you know what kind of ROM you want, now it's just up to you to try some ROMs until you find the one that suits your purposes. You can do that for yourself, we don't need to help you with that, it's your device and you are the one that wants the ROM, if you are serious about it then you should be willing to do that work for yourself.
2) do some Google searches for"
"How to install android emulator"
Or
"How to install ROMs in android emulator"
If you're trying to run the stock kdz file in the emulator, I'm not sure that works. You probably need to extract the boot.img, system.img and cache.img from the kdz file then try running that in the emulator.
Sent from my LGL84VL using Tapatalk

Droidriven said:
1) It looks like you know what kind of ROM you want, now it's just up to you to try some ROMs until you find the one that suits your purposes. You can do that for yourself, we don't need to help you with that, it's your device and you are the one that wants the ROM, if you are serious about it then you should be willing to do that work for yourself.
2) do some Google searches for"
"How to install android emulator"
Or
"How to install ROMs in android emulator"
If you're trying to run the stock kdz file in the emulator, I'm not sure that works. You probably need to extract the boot.img, system.img and cache.img from the kdz file then try running that in the emulator.
Sent from my LGL84VL using Tapatalk
Click to expand...
Click to collapse
Thanks brother for your interest in the subject :good:
But can you provide me with information about how to run KDZ on the QEMU emulator using the files you mentioned (boot.img, system.img and cache.img)
Does this need the Kernel and initrd file to run it and take off if you can write these commands to me because i have not used qemu before in depth

maherGood said:
Thanks brother for your interest in the subject :good:
But can you provide me with information about how to run KDZ on the QEMU emulator using the files you mentioned (boot.img, system.img and cache.img)
Does this need the Kernel and initrd file to run it and take off if you can write these commands to me because i have not used qemu before in depth
Click to expand...
Click to collapse
I have no clue, I just know that the kdz file probably isn't compatible with android emulator. Usually, android emulator is used to test ROMs while they are in the build/debugging process, custom ROMs usually only contain a system.img and sometimes a custom boot.img, that is why I suggested extracting from the firmware to use those parts.
I'm just trying to help you narrow down what you need, you'll have to figure the rest out.
Sent from my LGL84VL using Tapatalk

Droidriven said:
I have no clue, I just know that the kdz file probably isn't compatible with android emulator. Usually, android emulator is used to test ROMs while they are in the build/debugging process, custom ROMs usually only contain a system.img and sometimes a custom boot.img, that is why I suggested extracting from the firmware to use those parts.
I'm just trying to help you narrow down what you need, you'll have to figure the rest out.
Sent from my LGL84VL using Tapatalk
Click to expand...
Click to collapse
:good::good:

Related

[TUTORIAL] How to extract BIN + FLS from KDZ

Guys, I've seen some people wanting to access BIN roms and/or FLS basebands included in KDZ official roms, and not knowing how to do it.
I've searched the forum, found out how to do it, and decided to make a tutorial for our phone.
Here it goes:
0. Have a "KDZ official rom" file to extract
1. Download attached LGExtract.7z and put the included LGExtract.exe file in the same folder as your kdz
2. Open a Command Prompt
3. Change directory to the folder where you have put the previous files (LGExtract.exe and KDZ file)
4. Run this: LGExtract -kdz V***_00.kdz (use your kdz's name, for example LGExtract -kdz V30A.kdz)
5. Manually extract the CAB file in the same dir (use 7-zip or WinRAR)
6. Run this: LGExtract -wdb V***.wdb LGP920.dll (for example LGExtract -wdb V30A.wdb LGP920.dll)
7. Now you have some files, a few numbered BINs and one FLS)
8. Change directory to BIN folder to manually merge the bin files
9. Run this: copy /b "LGP920_AP[*].bin" "LGP920_AP.bin"
Should output something like this: (THE NUMBER ORDER MUST BE ASCENDING)
LGP920_AP[0].bin
LGP920_AP[1].bin
LGP920_AP[2].bin
LGP920_AP[3].bin
LGP920_AP[4].bin
LGP920_AP[5].bin
1 file(s) copied
10. Now you have your BIN (rom) and your FLS (baseband) files
I like living on the edge and flashing .kdz. hahha
But this is very helpful!:thumbup:
Awesome tut dude.:thumbup:
Sent from my LG-P920 using xda app-developers app
Good man thanks for putting this up. I have been flashing via this method since Gingerbread because I couldn't flash KDZs due to a broke CPU. I'm sure this will come in handy for others:thumbup:
Sent from my LG-P920 using xda premium
This is the best way to make things complicated! )) Just use LGP970 Rom Converter!! Put KDZ in same folder as application and run it! On first question press number in order wich is KDZ file, and after extracting on question about CWM recovery or something like that, just hit N on keyboard and you are done.
woodpeckerlo said:
This is the best way to make things complicated! )) Just use LGP970 Rom Converter!! Put KDZ in same folder as application and run it! On first question press number in order wich is KDZ file, and after extracting on question about CWM recovery or something like that, just hit N on keyboard and you are done.
Click to expand...
Click to collapse
Yes, it is easy, but when you do this, IMEI is null so you need to fix it.
What is the easiest way to flash kdz files into p920?
Actually, it won't bomb your IMEI - I flashed the modem firmware several times already - it's the fault of CM10's modem RIL, so updating to V21D/E or V28 is usually recommended. No matter how hard you do, you cannot brick the modem unless you flashed obviously wrong modem firmware but if it was from any of O3D ROMs, you won't even lose IMEI. I flashed V21D modem firmware extracted with LG P970 ROM extractor and I didn't even need to touch the modem terminal.
Sent from my LG-P920 using xda app-developers app
Thanks Woodpeckerlo! I wasn't even aware that this tool was out there! :thumbup: Here's the post where you can find it. http://forum.xda-developers.com/showthread.php?p=26983245
Sent from my LG-P925g using xda premium
Whell, i used P970 KDZ Extractor for Official V30A p920 rom and I had a IMEI problem. I did this from v21e and v28 and both have IMEI problems after that.
I think KDZ is the safest way.
the ManaWhoney said:
Thanks Woodpeckerlo! I wasn't even aware that this tool was out there! :thumbup: Here's the post where you can find it. http://forum.xda-developers.com/showthread.php?p=26983245
Sent from my LG-P925g using xda premium
Click to expand...
Click to collapse
You're welcome! I use this for long time now, ever since i had optimus 2x about a year and half ago and it always did the job.
---------- Post added at 07:56 PM ---------- Previous post was at 07:53 PM ----------
pelicango said:
Whell, i used P970 KDZ Extractor for Official V30A p920 rom and I had a IMEI problem. I did this from v21e and v28 and both have IMEI problems after that.
I think KDZ is the safest way.
Click to expand...
Click to collapse
This is definitely not the reason u had IMEI problem! I never had that problem and i used it xx times on two different phones. U probably downloaded faulty rom or have windows problem and it didn`t unpack properly. I flashed V28e and V30a with SmartFlash after unpacking KDZ and my phone works normally.
See? The only way to grenade your IMEI is by flashing wrong modem firmware or corrupted one. Thus, repeating what I said, no matter how hard you do, you won't lose your IMEI.
Sent from my LG-P920 using xda app-developers app
Guys, there have been multiple reported cases of lost imeis when flashing basebands (fls), it has happened to me twice.
Flashing kdzs doesn't create that problem, at least I've never read such a case.
daniel.mota said:
Guys, there have been multiple reported cases of lost imeis when flashing basebands (fls), it has happened to me twice.
Flashing kdzs doesn't create that problem, at least I've never read such a case.
Click to expand...
Click to collapse
+1
That's why I use kdz.
Sent from my LG-P920 using xda app-developers app
I think some CPUs work better with one or the other. I have to ise this janky Netbook that has something like Windows 7 but its like Windows ultimate or somethn like that. I have tried so many times to flash KDZs properly and it just doesn't work for me and the one time I did get the tools to work I completely broke my network and had to format my CPU. Flashtool however works flawlessly for me and I have never had problems; then again I have everything installed correctly too which makes a huge difference. I had an imei issue once back in the ported SU760 days but I'm pretty sure a factory reset and a fresh base and flash fixed that. Its just what works for you.
Sent from my LG-P925g using xda premium
P990_AP.bin and P990_CP.fls
Hi daniel.mota,
Your LGExtract.exe from LGExtract-0.2.1.7z works great and wrote an easy to follow tutorial. Thank you.
But, what can I do about the .bin and .fls file? I mean what is the next meaningful step I can take?
Sherab (newbie):laugh:
Hy guys, I've got a problem... LGExtract extracts the cab as well and this one extracts a wdb, a wdh and the dll.
When I try to extract the wdb it extracts a file *.tot how to go through this??
Referee97 said:
Hy guys, I've got a problem... LGExtract extracts the cab as well and this one extracts a wdb, a wdh and the dll.
When I try to extract the wdb it extracts a file *.tot how to go through this??
Click to expand...
Click to collapse
Rename file *.tot to *.bin.
Guys, so sorry for the tricky question, I've read in a Spanish forum that this tool is only going to work for Firmwares not bigger than 1gb, can you please confirm this info? or maybe sharing your experiences on using this with a big KDZ? Thanks a lot in advance

[Q] Is there any APK to exact the boot.img in the phone

I want to unpack the img but don't want to use in my pc(too confused).
so I want to unpack by the phone,
thank you
ytyyutianyun said:
I want to unpack the img but don't want to use in my pc(too confused).
so I want to unpack by the phone,
thank you
Click to expand...
Click to collapse
I don't think there is. Maybe I'm wrong too.
Basically all these boot.img tools are written in shell/bash and is made specifically to run in Linux distros.
Anyways there is an Android app called, Complete Linux Installer that lets you install any Linux OS in your phone. But I doubt whether boot.img tools work, as it needs various library files for it to work.
On a side note, I guess it would be more complex to do it in phone rather than in PC, if there is some way for it to work.
coolsandie said:
I don't think there is. Maybe I'm wrong too.
Basically all these boot.img tools are written in shell/bash and is made specifically to run in Linux distros.
Anyways there is an Android app called, Complete Linux Installer that lets you install any Linux OS in your phone. But I doubt whether boot.img tools work, as it needs various library files for it to work.
On a side note, I guess it would be more complex to do it in phone rather than in PC, if there is some way for it to work.
Click to expand...
Click to collapse
Thank you for your reply, but do you feel strange that the IMG is created by the recovery, so it is rational that there is a tool about IMG building. then why there is no apk. I mean some professional can extract just from the CWM recovery, I think.
need root
if you wanna get boot.img i think you must be rooted.
k0tsompakos said:
if you wanna get boot.img i think you must be rooted.
Click to expand...
Click to collapse
yes, I root, so I can use the recovery to back and restore,
I think any app that can access zip files in the internal and external memory can extract boot.img.
Like ASTRO File Manager and stuff...
recovery?
You wanna install a rom?
or recovery??
or we speak about boot.img? (Boot img is the boot animation when you turn on your phone.)
k0tsompakos said:
You wanna install a rom?
or recovery??
or we speak about boot.img? (Boot img is the boot animation when you turn on your phone.)
Click to expand...
Click to collapse
Nooooo
boot.img is the kernel (zImage + Ramdisk packed into an image file) that lies in the /boot partition
@ OP - If you want to extract boot.img itself, there are various methods and from CWM recovery like you said. I thought you were mentioning about how to unpack the contents of the boot.img say like zImage, Ramdisk and other files.
0ops
0ops yeah... :silly:
Searching for 1 minute and found this tool :good:
--> [TOOL] Boot.img tools [unpack, repack, ramdisk] <--
( I do not send link cause i am new here and can't :angel: )
It works. Have a nice day
k0tsompakos said:
0ops yeah... :silly:
Searching for 1 minute and found this tool :good:
--> [TOOL] Boot.img tools [unpack, repack, ramdisk] <--
( I do not send link cause i am new here and can't :angel: )
It works. Have a nice day
Click to expand...
Click to collapse
Yes, that's the tool and it works :good:
But as OP mentioned, he wanted to do it within phone, I highly doubt though.
coolsandie said:
Yes, that's the tool and it works :good:
But as OP mentioned, he wanted to do it within phone, I highly doubt though.
Click to expand...
Click to collapse
It could be done using this post http://forum.xda-developers.com/showpost.php?p=20227868&postcount=1124 and a hex editor from play store on your phone. But would be even more fiddly than on pc I would imagine, unless your phone has a largish screen. It could be done though.
If editing the ramdisk, you would need to unpack and repack after editing, which usually requires linux. I recently found http://forum.xda-developers.com/showthread.php?t=2036528 for PC, but have not had a chance to try it yet, seems best solution for OP
coolsandie said:
Yes, that's the tool and it works :good:
But as OP mentioned, he wanted to do it within phone, I highly doubt though.
Click to expand...
Click to collapse
thank you coolsandie, the android is based on linux, isn't it, and if I can, I can install busybox.and using the terminal like Android Terminal Emulator, but I do not know the procedure. like you, it's more complex,
Robbie P said:
It could be done using this post http://forum.xda-developers.com/showpost.php?p=20227868&postcount=1124 and a hex editor from play store on your phone. But would be even more fiddly than on pc I would imagine, unless your phone has a largish screen. It could be done though.
If editing the ramdisk, you would need to unpack and repack after editing, which usually requires linux. I recently found http://forum.xda-developers.com/showthread.php?t=2036528 for PC, but have not had a chance to try it yet, seems best solution for OP
Click to expand...
Click to collapse
it's good tool, it can unpack the boot.img, but as to the kernel, I don't know how to unpack. but this tool add to my favorite, thanks Robbie.
OK, I find the app, names: yaffs, the author I don't know because I found in the search engine. so I also cannot find the course
then the app,

[Q] how to unpack boot.img or recovery.img

I want to unpack boot.img of my phone, i did it earlier when i was in kitkat but now after upgrading to lollipop that method doesnt work..
Manu11 said:
I want to unpack boot.img of my phone, i did it earlier when i was in kitkat but now after upgrading to lollipop that method doesnt work..
Click to expand...
Click to collapse
@Manu11, are you referring to extracting the boot.img from the firmware?
Manu11 said:
I want to unpack boot.img of my phone, i did it earlier when i was in kitkat but now after upgrading to lollipop that method doesnt work..
Click to expand...
Click to collapse
I can't catch u while do u want to extract boot.IMG from device
R do u need the unpacking software
Manu11 said:
I want to unpack boot.img of my phone, i did it earlier when i was in kitkat but now after upgrading to lollipop that method doesnt work..
Click to expand...
Click to collapse
Unpack with Android kitchen
ravi.vydianathan said:
@Manu11, are you referring to extracting the boot.img from the firmware?
Click to expand...
Click to collapse
mohamed786 said:
I can't catch u while do u want to extract boot.IMG from device
R do u need the unpacking software
Click to expand...
Click to collapse
No no i wanna unpack boot.img so i can change its contents or in simple way create a insecure boot.img
@Manu11, I have seen few such tools but frankly I have no idea and no experience in this regard.
Manu11 said:
No no i wanna unpack boot.img so i can change its contents or in simple way create a insecure boot.img
Click to expand...
Click to collapse
there are a lot of guides available for unpacking and repacking a boot.img a simple google search would have helped u
Bass_Face said:
there are a lot of guides available for unpacking and repacking a boot.img a simple google search would have helped u
Click to expand...
Click to collapse
I unpacked my boot.img with android kitchen, but on recompiling its size went 5mb less and on flashing it directly enters fastboot.
The android kitchen is no longer continued from 2011, so the binaries haven't been updated since then.
I suggest you use "android image kitchen"

Android DAT/IMG File Unpack and Repack V 2.0

This is a thread on how to unpack and repack the system.img.dat file of your Android Rom,to see its content.
Starting from Android 5.x (Lollipop) Custom roms are not compressed like on previous android versions. Earlier all Files were inside the /system folder.And we were able to see all the system files
The problem started in >=5.0 versions because rom size increased and it was necessary to highly compress them again.
You Must Have Following Files Installed in your PC
1. Java SDK = Click here to download java
2. Python 2.xxx= Click here to download Python
How to decompress /Repack these files? Its Sipmle !!
Follow the Instructions Below To do that.
Download the Android Unpack Repack adithyan25.rar from here
Or you can download it from attachments
Run The File And Follow The Instructions As on screen. :good:
Video Tutorial
Special Thanks @xpirt
If you are a good Programmer You Can follow his method .View His Method here
If you Have any doubts or Enquired post in the Comment section
I got an error while repacking the system.img
"Input-IMG\file_contexts: No such file or directory"
Please help.
AmeyRanberg said:
I got an error while repacking the system.img
"Input-IMG\file_contexts: No such file or directory"
Please help.
Click to expand...
Click to collapse
did you copy the files to the creard folder!??... watch the video
adithyan25 said:
did you copy the files to the creard folder!??... watch the video
Click to expand...
Click to collapse
The rom that I had, only had system.img boot.img and those older folders. It didnt have file_contexts. But later I extracted it from boot.img and it worked thanks anyway.
AmeyRanberg said:
The rom that I had, only had system.img boot.img and those older folders. It didnt have file_contexts. But later I extracted it from boot.img and it worked thanks anyway.
Click to expand...
Click to collapse
Great And thank u for trying my app
I falied system.img repacked
Hi~
I wateched your video.
So I succeed system.img unpacked.
But, I tried system.img repack. I failed.
Why failed? T.T
Start Repacking in system.img......
please wait......
Input-IMG\file_contexts: No such file or directory
critical error: main: failed to open input image : No such file or directory
did u copy fule_contexta
Similar to my friends.
http://forum.xda-developers.com/and...tool-tool-unpack-repack-dat-img-v2-0-t3284806
same the tool I make http://forum.xda-developers.com/and...tool-tool-unpack-repack-dat-img-v2-0-t3284806
Kritsada Chaitan said:
same the tool I make http://forum.xda-developers.com/and...tool-tool-unpack-repack-dat-img-v2-0-t3284806
Click to expand...
Click to collapse
yeah tanks for the info... i made this tool using xpirt post and a screen shot of a software that i saw in google... any way great wrks... i made this through java..
AmeyRanberg said:
The rom that I had, only had system.img boot.img and those older folders. It didnt have file_contexts. But later I extracted it from boot.img and it worked thanks anyway.
Click to expand...
Click to collapse
deleted
adithyan25 said:
did u copy fule_contexta
Click to expand...
Click to collapse
what is file_contexta?
I dont understand..
same here. failed while repack
critical error: main: failed to open input image: No such file or directory
its a file along with the rom that you get.. just watch the video
Sent from my ASUS_Z00A using XDA-Developers mobile app
Problem/
No file " system transfer list". Where to get it? Firmware is given under SPFT.
hi @adithyan25
I'm so interested with this topic.
I tried but still stuck on file_context
please also make written tutorial on this thread.
kevin mitnick said:
hi @adithyan25
I'm so interested with this topic.
I tried but still stuck on file_context
please also make written tutorial on this thread.
Click to expand...
Click to collapse
didnt you watch the video??? i think it had all the component you nedd.. still any prblm cmnt below
Sent from my ASUS_Z00A using XDA-Developers mobile app
adithyan25 said:
didnt you watch the video??? i think it had all the component you nedd.. still any prblm cmnt below
Sent from my ASUS_Z00A using XDA-Developers mobile app
Click to expand...
Click to collapse
i did.
but on video, tutorial about dat file..
Still unable to repack the dat.
Windows says rimg2sdat is not a valid Win32 application.
It works under Windows 7 at work but not under Windows XP Pro like I have at home.
Someone got another version? Is there a XP compatible version of rimg2sdat?
Thanks
Kritsada Chaitan said:
same the tool I make http://forum.xda-developers.com/and...tool-tool-unpack-repack-dat-img-v2-0-t3284806
Click to expand...
Click to collapse
Thanks to the original work-works correctly!
Working perfectly with Android 6.0.1, Thanks Dev !!

Boot manipulation

Greetings.
Need a Android 6 ELF file for :
makebootfs
mkbootimg
unmkbootimg
They must be Honor 8 compatible.
Can any1 help please.
StratOS_HTC said:
Greetings.
Need a Android 6 ELF file for :
makebootfs
mkbootimg
unmkbootimg
They must be Honor 8 compatible.
Can any1 help please.
Click to expand...
Click to collapse
What are you planning to use them for?
Sent from my honor 5X using XDA Labs
Disasemble and reasemble the images.
StratOS_HTC said:
Disasemble and reasemble the images.
Click to expand...
Click to collapse
Hey @StratOS_HTC nice to see you here (coming from the Galaxy Core 2 Forum )
Sent from my Honor 8 using XDA Labs
I don't think you need them. Unpacking and packing boot images is pretty straightforward since Huawei's boot images have the same format as stock Android AOSP boot images. You can use the utilities you mentioned to unpack without need of any ELF file.
disasm
hackslash said:
I don't think you need them. Unpacking and packing boot images is pretty straightforward since Huawei's boot images have the same format as stock Android AOSP boot images. You can use the utilities you mentioned to unpack without need of any ELF file.
Click to expand...
Click to collapse
Since i have soe experience on other phones and the best way is always with disasm and reasm of the files. Don't want to put the whole sdk or git files on my comp.
The best way I'm doing it is with phone throught adb bridge.
So I'm looking for the executable files for it (mkbootimg,unmkbootimg), have found only PIE version of Marshmallow for it.
Can any one please help.
Thx in advance.
StratOS_HTC said:
Since i have soe experience on other phones and the best way is always with disasm and reasm of the files. Don't want to put the whole sdk or git files on my comp.
The best way I'm doing it is with phone throught adb bridge.
So I'm looking for the executable files for it (mkbootimg,unmkbootimg), have found only PIE version of Marshmallow for it.
Can any one please help.
Thx in advance.
Click to expand...
Click to collapse
Look into the systemless root tools , those should do what you're looking for.
https://github.com/phhusson/super-bootimg

Categories

Resources