yashsingh1/xdaforums huggingface dataset:
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Does anyone know an LG G4 stock 5.1.1 ROM that has a boot.img and system.img/folder in the .zip?
[G4 Q&A, Help & Troubleshooting] :
Hey mate, I can't help you or anything, but I just want to say that I appreciate that you're trying!
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Thanks! I know I have limited experience but I've learnt loads in a very short amount of time. All the support keeps me wanting to try and get this to boot so thank you! :D
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
I've asked nitesh9 who made the guide to porting lollipop and marshmallow for MIUI and I've just asked him to give me a little help cause I don't know what's wrong with it. Hopefully he'll reply.

EDIT: Providing the link for those who want to try and get a logcat for me. It will be greatly appreciated and it will be how we can get closer to make it work!

https://drive.google.com/file/d/0B1dCuNsnNoHcQjZRTG9ETDgxMlE/view?usp=sharing

If all else fails I'll start using the kernel sources and the updated patchROM if I can get it.
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
http://downloads.codefi.re/autoprime/LG/LG_G4/H815/H81510C/LG-H81510C-Flashable.Bootloader.zip

this boot.img from

H815_EU_10C

and system.img i am uploading now 4.8GB :D

---------- Post added at 05:09 AM ---------- Previous post was at 04:17 AM ----------

https://mega.nz/#!3wcRRBpS!gzG_qMCPyFeh7n2ZwuzW11bCYNSfurQMmc2lJF07t4s

this system.img from H815_EU_10C

and maybe can use this it is helpful

http://www.osbusters.net/2015/11/how-to-port-miui-7-rom-to-qualcomm-smartphones.html

now evrything ok can start :D
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Thanks! And yeah I'm currently using that guide to port and it's not booting in fortunately, but since it hangs at the LG logo for a while it may be possible to take a logcat but I don't know. I've only seen logcats be possible when it gets to the bootanimation. But yeah I contacted the guy who made the guide to see if he could look into where I went wrong. :)
[G4 Q&A, Help & Troubleshooting] genesixxbf3:
not passing lg logo = bootimg (can be kernel or ramdisk )
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
patch kernal this most the most important step to become a bootable, if I have a story in this thing today was to use the miui on your device . and need much much time and i don't have time :)
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Ah okay, thanks! Does that mean I don't have to worry about placing files in the system folder from the base ROM to the port ROM and that I'm still able to boot if I patched the kernel correctly?
[G4 Q&A, Help & Troubleshooting] genesixxbf3:
If the kernel is good you should pass to the bootanimation

Envoyé de mon Nexus 6 en utilisant Tapatalk
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
As someone mentioned before anyway, (I'm using a different way to port now) and if this doesn't work we'll have to wait for the new patchROM to be released for lollipop.

Probably explains why no one has attempted to port yet.
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Quick update:

I followed this port guide http://xdaforums.com/chef-central/android/guide-how-to-port-lollipop-marshmallow-t3283452

And I'm on the LG logo but the computer recognizes the phone and the phone LED is also going blue.

Haven't made any kernel changes so I might have to do that, but this just means I copied all the framework files from the MIUI to port ROM successfully (hopefully).
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
can upload that? i can help

---------- Post added at 09:53 PM ---------- Previous post was at 09:49 PM ----------

Almost certain that the problem in kernel (ramdisk)

particulary this fstab.p1 and fstab.fota
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
I'm able to make logcats at boot now but I have no clue what's going on. If anyone who has experience with debugging in logcats, can you please flash this build for me and type in adb:

adb logcat *:F -d > logcat.txt

It will create a text file in your adb directory showing all the fatal errors.

I have no clue what they all mean but I know they have something to do with the kernel. I haven't done anything with the kernel yet so that may be why.

Link: https://drive.google.com/file/d/0B1dCuNsnNoHcWURhMldMdjIwVWs/view?usp=sharing
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
i am download it

aftar test will upload logcat.txt

and in this guide says

Delete some folders from base

Code:

base/system/app

base/system/fonts

base/system/framework

base/system/media

base/system/priv-app

can't delete all apk in priv-app and all jar in framework
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Do you mean I shouldn't delete those files in those folders or do you mean you're trying to do it but you can't delete the apks and jars?
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
https://drive.google.com/open?id=0By_Qez2DttvpUVZOME01Z1NBdjg

---------- Post added at 11:14 PM ---------- Previous post was at 11:11 PM ----------

shouldn't delete those files in those folders ,You can use g3 port to help you

---------- Post added at 11:22 PM ---------- Previous post was at 11:14 PM ----------

now only need sameone patch kernel (MIUI compatibility) aftar that can fix anything.

---------- Post added at 11:38 PM ---------- Previous post was at 11:22 PM ----------

http://xdaforums.com/yureka/development/rom-miui-v7-global-beta-t3224411

this successful story for porting LP MIUI

---------- Post added at 11:42 PM ---------- Previous post was at 11:38 PM ----------

this logcat :

https://drive.google.com/open?id=0By...VZOME01Z1NBdjg

---------- Post added 11th June 2016 at 12:09 AM ---------- Previous post was 10th June 2016 at 11:42 PM ----------

The first problem KERNEL in logcat CAD:

/system/lib64/libcutils.so (__android_log_assert+236)

this CAD samething from Xiaomi's that mean not compatibility KERNEL :D

---------- Post added at 12:12 AM ---------- Previous post was at 12:09 AM ----------

adn need delete anything have name:SRS

Because it does not match with our system hardware
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
[/COLOR]

Ah okay, thanks!

I moved the system/priv-app and the system/framework jars from the port ROM to the base ROM, so shouldn't that be okay?

Also, do you know where I can find SRS in the kernel/system to delete it?

And yeah I'll do stuff with the kernel from the port ROM / global build you linked so it can be compatible :)
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
Merge the system/priv-app and the system/framework jars in port rom and base ROM, This thing may make future problems, but the best and make it bootable now ,SRS can find it in bin or drivers or sound fx\ effects.

"And yeah I'll do stuff with the kernel from the port ROM / global build you linked so it can be compatible "

Really I do not know how I could solve this problem fully, we need a person who is already doing as there is no explanation or evidence for this thing.

---------- Post added at 02:16 AM ---------- Previous post was at 02:11 AM ----------

and the kernel It needs many things more important to make it bootabl, contains more of the problems that I mentioned and any other person dealing with the patch kerne miui compatibility can solve the problem of booting then I can solve all problems.
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Okay, btw what folder do I merge the jars and priv-app into? and is there a specific name I give to the folder?

(I followed the port guide I linked earlier and replaced some ramdisk and boot.img files so hopefully there's less errors.
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
No, I mean everything in these folders from base ROM to port rom

---------- Post added at 02:34 AM ---------- Previous post was at 02:31 AM ----------

"I followed the port guide I linked earlier and replaced some ramdisk and boot.img files so hopefully there's less errors."

you are patch kernel to public LP patch not miui patch , Xiaomi's Add other things so it does not work

---------- Post added at 02:39 AM ---------- Previous post was at 02:34 AM ----------

Merge the folder but without replacing any file.

---------- Post added at 02:46 AM ---------- Previous post was at 02:39 AM ----------

http://xiaomitips.com/guide/how-to-repack-miui-fastboot-image/

Home > Guide > How to Repack MIUI Fastboot Image

Step 7 – Go back to Windows Explorer and still in the same folder, you’ll see a folder named ramdisk. Open it up / go into it.

Step 8 – Inside the ramdisk folder, find the fstab.qcom file. Have found it? Open it using Notepad.

fstab qcom file needed

Step 9
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Ah ok, so would that mean ill have the priv-apps from stock ROM too?

I also tried to make the kernel compatible but now I can't even logcat so ill focus on the system folders for now then

oh and do i merge just priv-app and framework or do i also do fonts and media folders? but not app folder cause miui has its own system apps?

---------- Post added at 12:56 AM ---------- Previous post was at 12:47 AM ----------

What do I do with the fstab.qcom file? I followed the steps EDIT: okay I deleted verify and repacked the boot.img. Is this to make the kernel compatible or something?
[G4 Q&A, Help & Troubleshooting] Ismail.A:
I don't understand what u lot are talking about cause I'm not a developer but u lot are doing a great job i hope miui comes to lg g4 soon i can feel it coming soon with all your efforts thanks a lot
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
if you need logcat do it without file do it live

"adb logcat" type this only

---------- Post added at 03:19 AM ---------- Previous post was at 03:18 AM ----------

"Is this to make the kernel compatible or something?"

not full compatible but it necessary

---------- Post added at 03:25 AM ---------- Previous post was at 03:19 AM ----------

also need :

3. Then in the BOOT-PORT/ramdisk/ folder compare the file fstab.qcom with that of the base i.e. BOOT-BASE/ramdisk/fstab.qcom. (You can use Meld for it.)

in lg kernel can't find fstab.qcom but compare with from base unpack kernal fstab.p1 that
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
will do! also just wanted to say thanks for the help so far everyone! I'm uploading a build that used the same stock kernel that allowed you to logcat the ROM last time, but now the system folder has the framework and priv_app merged from port to base, (not base to port, I'll try it the other way round from this guide: http://www.osbusters.net/2015/11/how-to-port-miui-7-rom-to-qualcomm-smartphones.html after. The one i followed to make it logcat was: http://xdaforums.com/chef-central/android/guide-how-to-port-lollipop-marshmallow-t3283452 but I'll follow the guide you quoted now to see if it goes a bigger step forward, and I'll delete the verify line too this time.
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
I wish you lots of luck and I'll try something different, and when they are making progress I wish I upload dempfor me because I am fully with you.
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Well I tried to flash the port ROM and I left the firmware update folder in there to see if it was a reason as to why it wouldn't work and as it flashes I remember that in some port MIUI ROMs you shouldn't do an OTA or it will brick your phone....

And I hard bricked my phone...

Going to send it to get repaired :( So nothing can continue on my end for now...
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
I am very sad for you, I wish could be repaired.

---------- Post added at 04:59 AM ---------- Previous post was at 04:57 AM ----------

1. SIGNAL BUGS

Replace all files ending librilxxx.so in system / lib & lib64with the files from the stock rom.

If the signal is still on, Please check IMEI and MEID * # 06 # IMEI and MEID null if trying to flash part of your EFS.

Part EFS is a backup for the TWRP

2. SENSOR BUGS

Replace sensorservice file in system / bin with files from stock rom

Replace libsensorservice.so file in system / lib &lib64 with the files from the stock rom

Replace sensor.default.so file in system / lib / hw with files from stock rom

3. CAMERA BUGS

Replace all files berextensi mm-qcameraxxx in system / bin with files from stock rom

Change file-qcamera v4I2-app in system / bin with filedari stock rom

Replace camera.msm7627a.so file in system / lib / hw with files from stock rom

Change the file libcamera_client.so and libcameraservice.so in system / lib &lib64 with files from stock rom

Replace all libmmcameraxxx.so files in system / lib &lib64 with the files from the stock rom

4. WIFI BUGS

Replace the wpa_supplicant file in system / bin with files from stock rom

Replace the firmware folder and wifii in system / etc with files from stock rom

Change the file wifitest_recv.sh and wifitest_send.sh in system / etc with files from stock rom

Replace libwpa_client.so file in system / lib with the files from the stock rom

Replace cfg80211.ko file in system / lib / modules with files from stock rom

Replace ath6kl folders in system / lib / modules with files from stock rom

Replace the files in the folder with the file system wifi from stock rom

NB: if none of the above files in the system folder on the add port rom download of files stock rom also commonly

5. GPU BUGS

Replace all files in the folder egl in system / lib with files from stock rom

6. USB BUGS

Replace vfold.fstab file in system / etc with files from stock rom

NB: if there are still bugs to be repck boot.img and please pelototin ramdisknya where settings for usb: v

7. BUGS WHILE VIEW VIDEO

Replace all files ending libchromaticxxx.so in system / lib with the files from the stock

---------- Post added at 05:00 AM ---------- Previous post was at 04:59 AM ----------

can boot your g4 now? or fulldied؟

---------- Post added at 05:04 AM ---------- Previous post was at 05:00 AM ----------

/initrd/ueventd ueventd.rc

There is a big difference between stock and port KERNEL

This file is responsible for the definitions of devices
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Won't turn on :(

But it's recognised by my computer as an unknown device, but I can't access adb or anything so RIP

I'll send it for repair tomorrow, I've had it less than a year so I should still have warranty if we pretend I didn't unlock my bootloader ;)

If they find out it doesn't have warranty and choose not to repair it then I'll take it somewhere else... Otherwise I will just use my Galaxy S4 and buy a nexus 6p or something :( But that is unlikely
[G4 Q&A, Help & Troubleshooting] genesixxbf3:
You can do that *http://xdaforums.com/lg-g2/general/fix-unbrick-lg-g2-stuck-qualcomm-hs-usb-t2933830

Envoyé de mon Nexus 6 en utilisant Tapatalk
[G4 Q&A, Help & Troubleshooting] hfmls:
hi there, been away two days and found out great progress! Thank you very much for this guys! I hope you can fix hard brick and keep doing the great job you are.

thank you
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
you are try flash with LGUP?

have all driver for lg g4? http://downloads.codefi.re/autoprime/LG/LG_G4

I think I could solve the problem of your device ,So i you solving a problem in the past on other devices, but I need some help from you.
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
I've tried lgup before but I'll try now with the driver you linked. Thank you! :)

---------- Post added at 01:46 PM ---------- Previous post was at 01:44 PM ----------

Thanks! You've given me hope since my device does come up as "Qualcomm xxxx" so hopefully it works!
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
now your g4 have MI4S bootloder ,

This does not mean it was fully died because they are same Chipset on both devices (Qualcomm MSM8992 Snapdragon 808) ;)

And the most beautiful thing they both devices have same LOADER (QualcommHS-USB QDLoader 9008) that mean can use MI4S LOADER to unbrieck ;)

1-download MiFlash and install.

2-in this folder C:\Program Files (x86)\Xiaomi\MiPhone\Qualcomm\Driver\ have QualcommHS-USB QDLoader 9008 Driver install it (if use windows10 or 8 do this before you start anything http://acer.custhelp.com/app/answer...windows-10:-disable-signed-driver-enforcement)

[IMG="2"]http://i.imgur.com/PvVYh4X.png[/IMG]

aftar install Driver if show QDLoader 9008 in Driver manager lick pic continued this way .

-but if not show QDLoader 9008 in Driver manager lick pic this means that he is still as it was, try to enter the download mode may not show on the mobile screen something but it actually be in the download mode (here use LGUP)and do not care about the things that are below

3-Power off your (X

xiaomi Mi 4S

X) LG G4 ,then go to fastboot mode by Volume Down and Power button

if not working use : You need to shut down your G4, turn it off totally, as a result either press power button after and select “power off”, or even press and hold the power button for a few seconds.

Then, press and hold the Power and Volume Up keys at the same time for about 6 or 7 seconds.

3-Open MiFlash, Browser and loadthe (X

Mi4S Multi Language ROM

X) use LG G4 IMG, Refresh, you will see COMXX in the Device, Then press“Flash”

[IMG="3"]http://i.imgur.com/rlzlTRH.png[/IMG]

4-Once flashing process completes, Remove the cable and keep Power Button pressed until it Vibrates. The Device will start, wait patiently, it can take up to 5 Minutes.

[IMG="4"]http://i.imgur.com/9LZehxx.png[/IMG]

5-
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
I tried, but I got this error when I put the directory to where my system.img and boot.img is

https://gyazo.com/66ba0c76819a59b06c45fa342149f2e2
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Thanks for the help everyone. Nothing has worked out of everything I tried, but I'll be sending my G4 off for repair tomorrow, so if I successfully tell them how it "suddenly" broke, then all should be good and I should have my phone back in a couple of weeks. I was going to get it repaired anyway since I have image retention (similar to burn-in) on my display.

I think it's just worth waiting for the new patchROM that supports lollipop to release, since patchROM is easier to use. It's probably no coincidence why no one else is really focusing on porting MIUI to the G4. If anyone finds another unbrick method or links to some LG G4 files that will save my phone then PM me. Plus if anyone manages to make a flashable zip for MIUI I'll be sure to make a logcat when my phone gets back. But for now, thanks everyone for what we've managed to do so far, see ya in a couple of weeks :)

(P.S ALWAYS DELETE THE FIRMWARE-UPDATE FOLDER IN THE MIUI ROM.ZIP AND DON'T RUSH IT)
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
use lg smart boot diagnosis tool or QPST 2.7 build 422 (QFIL) or boardDiag 2.99

---------- Post added at 07:27 PM ---------- Previous post was at 07:25 PM ----------

http://www.androidbrick.com/unbrick-recover-your-dead-lg-g3-g2-all-variants/

http://xdaforums.com/lg-g3/general/unbrick-lg-g3-qhsusbbulk-qualcomm-9008-t3072091
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
I used QFIL build 425 because the download for 422 wasn't working for me. I couldn't flash system.img without it saying label syntax error or something, and boarddiag doesn't support the LG G4 yet.

UPDATE: build 422 managed to download so ill use that now

EDIT: QFIL just gives me sahara error:

Download Fail:System.Exception: Unable to download Flash Programmer using Sahara Protocol

at QC.QMSLPhone.Phone.QPHONEMS_SaharaArmPrgDownload(String sFileName)

at QC.SwDownloadDLL.SwDownload.QPHONEMSSaharaDownloadArmPrg(UInt64& version, String armPrgPath)

Download Fail:Sahara FailSahara Fail
[G4 Q&A, Help & Troubleshooting] imarcel99:
http://xdaforums.com/android/general/how-to-port-roms-easy-100-t2804390 do you think this method would work?
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Well first I'd say yes as I was told earlier that if you can port the kernel right you should go to the boot animation, but on the other hand, the post is quite old considering the ROMs they've managed to port are CM10 etc. However I'm no expert so I'd say there's a good chance it will work. The files in the guide that you port seem very familiar in other guides. I'll give it a go when I get my phone repaired :)
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Update: Luckily the guys at the phone shop didn't know that much about phones so they didn't suspect anything. They're sending it off to LG so that's where they could turn around and not repair it due to the warranty void, but so far so good. Let's hope for the best! Should be back in a week but I suspect it will take longer since I didn't give any detailed information as to why it wasn't working and they will have to run a full diagnosis (and probably replace the phone's motherboard).
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
http://en.miui.com/forum.php?mod=viewthread&tid=292920

Poll for update MIUI Patch Rom to support {MM or LP)
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
I voted! Do you think it would be good to make a new thread with the link to the poll on so it can get more attention? :D
[G4 Q&A, Help & Troubleshooting] Hisham alshaeer:
ok, i do it ;)

---------- Post added at 07:22 PM ---------- Previous post was at 07:11 PM ----------

When you started port :port from stock to miui or from miui to stock ?

---------- Post added at 07:55 PM ---------- Previous post was at 07:22 PM ----------

last news: Now we have made the biggest progress :MI boot animation ( i made the kernel with MIUI compatibility)

Hope has become a big. :)
[G4 Q&A, Help & Troubleshooting] hfmls:
thank you for all your hward work, hope someone bootable will be coming from you guys soon, can't wait.
[G4 Q&A, Help & Troubleshooting] hfmls:
hi guys, any luck?
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Phone got back from repair a couple of days ago, but I'm gong to get my screen repaired (image retention being annoying) while my phone is still under warranty, and then I'll start doing stuff again when my phone gets back to me again. :)

I still think it's worth waiting for the new patch ROM to come out to be honest, but I've been given some help by the guy who made the guide I'm following so I'll do what he said with the kernel.
[G4 Q&A, Help & Troubleshooting] hfmls:
Thank you

Enviado do meu LG-H815 através de Tapatalk
[G4 Q&A, Help & Troubleshooting] ceanth:
Hi guys,

I am also very interested in having Miui 7 on my LG G4. I bought the device and have around 40 days warranty left. Once the warranty is done I will be more than happy to be a Beta tester for the port.

Please let me know!

Thanks,

c
[G4 Q&A, Help & Troubleshooting] hfmls:
do you have nay idea when would that be?
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
A couple of weeks maybe. I was planning to send it off once all my lessons were finished but I'm only signing off stuff for my courses now so I'm not too busy, so I may as well get it sorted out within the next few days.

(I'll have to buy a glass screen protector again, rip).
[G4 Q&A, Help & Troubleshooting] hfmls:
I mean the next patc hrom
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
​

Oh lol, my bad. I wish I knew but unfortunately I don't know. Hopefully when MIUI marshmallow comes out for a few devices, they'll update patchROM. I know there is a bit of attention towards it as a lot of people want it, since it is an easy way to port any ROM and not just MIUI.
[G4 Q&A, Help & Troubleshooting] hfmls:
thank you, i think i'm just gonna buy xiaomi mi 5 :S
[G4 Q&A, Help & Troubleshooting] ceanth:
Guys, is there a specific reason why MIUI 7 isn't available for the LG G4?

I can see that there is availability for LG G3 and LG G2 but not G4. Is there a hardware reason why its not support for G4?
[G4 Q&A, Help & Troubleshooting] ItzShadowz:
Because MIUI for the G3 is on KitKat, which patchROM supports. PatchROM is used to port MIUI but it doesn't support lollipop or marshmallow. If the G4 started out on KitKat there would have been MIUI by now :(
[G4 Q&A, Help & Troubleshooting] ceanth:
Ah! That makes sense. Lets hope they fix PatchROM, as I guess it will impact other devices which never had Kitkat