yashsingh1/xdaforums huggingface dataset:
[G4 Original Android Development] casabato:
Hello. I use the version 3.0.2.

Today I try to make a backup but it aborts with this message "process createTarFork () is terminated with error: 255".

Inside the recovery.log the error refers to BluetoothMidiService, with these words:

"/ system / app / BluetoothMidiService '(Not a directory)I: Error in Generate_TarList! "

The Nandroid backup has worked until now and today, but, just today, however, goes wrong.

I do not understand why.

Can anyone help me? Thanks

In the screenshot you can see that BluetoothMidiService is not a folder: is it right? Or is damaged?
[G4 Original Android Development] steadfasterX:
If reporting errors you should always link to your full recovery.log not cutting a single line from it.

Use paste.omnirom.org or one of the 1000 other pastebin services out there to do so.

you're right /system/app/BluetoothMidiService/ has to be a folder not a file. Extract that folder from the ROM you're using currently and replace it on your device should help.

.
[G4 Original Android Development] casabato:
:)

I did as you said and now it works! Thanks.:good:

I don't know why BluetoothMidiService was not a folder but now it doesn't matter. It is important that I have resolved and I can make a backup with TWRP recovery..

Thanks again....
[G4 Original Android Development] steadfasterX:
glad to help ;)

Don't miss the newest updated TWRP here:

http://xdaforums.com/g4/development/recovery-twrp-3-touch-recovery-t3442424

--> Hopefully be RE-released

today

..

Cheers

steadfasterX

.
[G4 Original Android Development] Lisali:
I updated my LG G4 and lost root. Trying to fix it from TWRP, I factory reset the phone. :(

Is there a way to enter TWRP without jeopardising resetting the phone? How does one know if the phone will factory reset OR enter TWRP from recovery? :confused:
[G4 Original Android Development] wartomato:
It will enter the twrp, if it is there.

Else you could boot and flash twrp via adb from a pc.
[G4 Original Android Development] Lisali:
Thanks for your response! At what point should it enter TWRP?
[G4 Original Android Development] steadfasterX:
When you press the button combo you will see the factory reset page. When you continue there you will enter twrp without factory reset but this works when you have installed twrp only.

When you have updated by OTA or LG bridge to a new android version you will loose twrp and doing that combo will factory reset.

You can enter twrp without this by connecting a PC when in android and typing

adb reboot recovery

Or

When booted into android and you have a terminal app installed by typing in the terminal

reboot recovery

There are apps doing this for you as well.

.
[G4 Original Android Development] Lisali:
I see. So if you think you have TWRP installed but you don't, you'll factory reset the phone instead of entering TWRP if using the button combination. Ouch. The adb command then seems much safer. Thanks for clarifying! Now I have to figure out how tot get TWRP and root back after upgrading and accidentally factory resetting the phone. :confused:
[G4 Original Android Development] steadfasterX:
Well yes. You have to keep in mind that installing new versions from your vendor will always replace recovery and that means a factory reset will do a factory reset instead of loading TWRP..

The reason is that TWRP ignores the wipe command after you going through the factory reset page and the stock recovery will execute it of couse.

Sometimes you need that button combo and it's totally safe - as long as you keep the above in mind..

Nevertheless you should make a nandroid before doing such firmware upgrades so it doesn't matter that much.

Read "Installation" of the newest official TWRP (this thread here is superseeded) for the howto of installing TWRP (and read the FAQ for rooting):

http://xdaforums.com/g4/development/recovery-twrp-3-touch-recovery-t3442424

You will find a good FAQ there as well.

.
[G4 Original Android Development] Lisali:
Thanks so much for explaining it that clearly. Now I know! :good::good::good:
[G4 Original Android Development] freddymelly_forgotten_pw:
Hello,

i get with the TWRP every time the Error 7 "Error installing zip file /..." with the CM13 Roms. I tryed all Builds which i can found :(

Specs:

H815 official unlocked

6.0 V20d Stockrom

Edit:

Sooo, the Cyano is on the Phone, (the solving was to format system) But now i get Error 64 by trying installing the spionage gapps.

Can anyone me help? Thank you!
[G4 Original Android Development] Spaceboy60:
Trying to flash this. I boot into fastboot mode and then it just gets stuck on "waiting for devices" when i try to flash twrp image. Got lg drivers installed, but under device manager I have Android with an explanation mark. Is there anything else I need to install (running windows 10) ?
[G4 Original Android Development] gentr:
http://www.guideitech.com/mobile/android/risolvere-errore-waiting-for-device-android-adb-fastboot/ an this http://www.androidrootguide.com/2015/06/how-to-install-twrp-recovery-and-root-lg-g4-h815.html
[G4 Original Android Development] Spaceboy60:
D:\Lg g4>fastboot boot lgg4-twrp.img

< waiting for any device >

Edit: done a reset of the phone and now working. Thanks
[G4 Original Android Development] gentr:
Use first guide and again second guide
[G4 Original Android Development] steadfasterX:
Just grab live Linux instead using Windows it's always a hassle with drivers
[G4 Original Android Development] arfan.chatha:
Could someone help me please, i have unlocked my bootloader and boot into recovery using " fastboot boot recovery.img" and then flash the "supersu.zip" file

but my phone stuck on lg logo every time then flash the stock and repeate the process but same.

Is there any way to root?
[G4 Original Android Development] Sangoku91:
Hello,

for those who had this problem, you have to download this file "TWRP 3.0.2-0" and not the "TWRP 3.0.2-1" because this last file is corrupted (only 16mo indeed of 30 mo).

Then it worked for me!
[G4 Original Android Development] steadfasterX:
Great that it works for you but the current twrp versions are

not

corrupt. If you had asked for support in IRC or at least in the official TWRP thread I would had had the chance to help you but well you find a way that's good.

Just read the FAQ in the official XDA thread if you want to know why the size is 50% less then 3.0.2-0.
[G4 Original Android Development] Spaceboy60:
Getting following error when flashing:

fastboot flash recovey twrp-3.0.2-1-h815.img

target reported max download size of 536870912 bytes

sending 'recovey' (16860 KB)...

OKAY [ 0.499s]

writing 'recovey'...

FAILED (remote: cannot flash this partition in unlocked state)

finished. total time: 0.523s
[G4 Original Android Development] steadfasterX:
Wrong thread.
[G4 Original Android Development] AndroidGX:
FYI guys, twrp 3.1.0-0 has been released for our LG G4 :

Cheers'

:good:
[G4 Original Android Development] steadfasterX:
wrong thread. please use the official support thread:

https://xdaforums.com/g4/development/recovery-twrp-3-touch-recovery-t3442424

[MENTION=335322]MikeChannon[/MENTION]:

Could you lock this thread please?

The whole development and official thread is located here now: https://xdaforums.com/g4/development/recovery-twrp-3-touch-recovery-t3442424

(you can verify this here: https://twrp.me/devices/lgg4.html)

Thanks.

.
[G4 Original Android Development] the_scotsman:
No it needs an unlocked bootloader.
[G4 Original Android Development] the_scotsman:
I can't get my laptop to see the device in adb. Are any particular adb drivers needed? I'm running Windows 10. The device shows up in device manager, but only as the MTP device, not the Android device.
[G4 Original Android Development] AhsanU:
I had to install LG PC Suite in order for my computer to detect it, currently running Windows 8.1 and 7 Ultimate (laptop and desktop, worked for both).

But currently, I'm getting an error in getting the unlock code after providing the device ID and the IMEI# on LG's website.
[G4 Original Android Development] the_scotsman:
Link to PC Suite? There's no G4 option in the list when it asks for one.

EDIT: I'll try just picking the G3.
[G4 Original Android Development] flex0r:
http://www.andromods.com/download-files/latest-lg-g4-drivers-usb-adb-win-mac.html

Is where you can get drivers (I had to download just 1MB for Mac!)
[G4 Original Android Development] AhsanU:
I installed the G3 version from AT&T and T-Mobile (on my different machines, simply experimenting) and it worked: http://www.lg.com/us/support/software-manuals
[G4 Original Android Development] the_scotsman:
Installed but it shows my device offline in adb devices.

FFS how bloody hard can it be?
[G4 Original Android Development] BigBlue007:
Does the official bootloader unlock method wipe the device? I quickly scanned through the description and couldn't find a note that it does, but those who already did it should know for sure.

Wouldn't be a problem if it does wipe, I'd just like to know before I begin.

TIA!
[G4 Original Android Development] the_scotsman:
Nope.
[G4 Original Android Development] BigBlue007:
Thanks!

Sorry for asking this, but following up this thread it would appear to me that you have not yet performed the unlock yourself, have you? :)
[G4 Original Android Development] the_scotsman:
Trying to, but adb isn't working :mad:

EDIT: Finally working, was using an old version of adb!
[G4 Original Android Development] the_scotsman:
OMG give me a break!

Now on the LG website after putting in my IMEI and Device ID it says "Not Found Suffix". :eek: :mad:
[G4 Original Android Development] :
Yes - I just unlocked mine. It's a full factory reset and internal storage wipe. I'm not sure if it wipes an external SD card, but it definitely wipes the internal storage.

Did you format the device ID correctly? See step 10.
[G4 Original Android Development] the_scotsman:
Yep, I'm only pasting the two numbers into the box, with no space between them. Tried multiple browsers. This is so annoying.
[G4 Original Android Development] :
Strange :confused:

Maybe it's a problem on LG's side.
[G4 Original Android Development] maurydes:
imei in the first string and the two "id" in second string? because working whitout problem for me:good:
[G4 Original Android Development] the_scotsman:
Mine is the H815 model, but from Taiwan. I wonder if this is why? It's the same model. But different region. Maybe that explains it?
[G4 Original Android Development] waraileron:
My Singapore set faces the same not found suffix issue, I believe the database isn't including non EU H815 until then we just have to wait :(
[G4 Original Android Development] the_scotsman:
Yep, this seems to be the issue. Disappointing. I would have thought all 815 would be in the database. Oh well, hopefully we don't have to wait long.
[G4 Original Android Development] the_scotsman:
Actually, it might delete the internal storage....can't confirm for sure though.
[G4 Original Android Development] BigBlue007:
I can, and yes, bootloader unlock does perform a factory reset. You can even see it during flashing the unlock.bin, because it says "Erasing user data".
[G4 Original Android Development] maurydes:
yes confirm erase user data
[G4 Original Android Development] Heisenberg:
Just to clear something up here, the "fastboot boot twrp-2.8.6.0-h815.img" command isn't actually entering the recovery you just flashed to your device, it's live booting the recovery image file that's on your PC via fastboot.
[G4 Original Android Development] DocRambone:
Sure about that?, i just used the command to boot into recovery and its runs perfectly normal. Entering via reboot app gives same results.
[G4 Original Android Development] Heisenberg:
Pretty sure, at least that's the case on other devices. It will run perfectly normally, everything will work as usual, but instead of booting into the recovery partition on the device it's just running the recovery from the image file via fastboot. Try that command without having the recovery image in your fastboot folder, I'm betting it won't work.

PS. Entering via the reboot app will seem to give the same results because there's literally no way to tell the difference. Whether you're booting into the recovery on your recovery partition or live booting from the image, it's still the same recovery, it's identical.
[G4 Original Android Development] markwebb:
That is where mine is coming from. ;(
[G4 Original Android Development] rogconnect:
Any one with the US version H815 from the TRIAL get it working?
[G4 Original Android Development] tonyeltriton:
which supersu file should i flash? 2.46(last official) or 2.49 beta?
[G4 Original Android Development] :
Either. If you want beta features and don't mind any potential bugs, go with the beta.
[G4 Original Android Development] urushiol:
I would like to know if the DRM partition is hidden/missing what is lost? Does that mean things like Netflix/Hulu/google music may not work, or potentially just some proprietary LG stuff is lost?
[G4 Original Android Development] DocRambone:
No, the app seems to reboot directly into installed recovery.

I check how the fastboot boots into recovery tonight.

Edit: "adb reboot recovery" boots into recovery
[G4 Original Android Development] :
Did you flash TWRP using "fastboot flash recovery twrp.img"? I've done that on mine, yet adb just boots to the Android with a red triangle. I can boot TWRP from fastboot, but it doesn't seem to flash..even though it reports okay on the computer.
[G4 Original Android Development] DocRambone:
I did not rename the img-file so i used :

fastboot flash recovery twrp-2.8.6.0-h815.img
[G4 Original Android Development] :
Thanks. That's exactly as I did it, though for some reason I can't boot into it :confused:

I'll give it another go.
[G4 Original Android Development] DarthEwok:
I'm having the same issue, if I get it working i'll let you know how I managed it
[G4 Original Android Development] DocRambone:
Make sure you have the correct driver installed.
[G4 Original Android Development] :
I installed LG's software from the phone which installed the driver. I'm going to try from a Linux machine though.
[G4 Original Android Development] bender_007:
^ download terminal emulator. Type "su", accept. Type "reboot recovery". Or https://play.google.com/store/apps/details?id=b007.reboot , it's a widget to be added on homescreen
[G4 Original Android Development] :
That would just take me to the same Android with a red triangle screen. I've flashed with fastboot, but I can't boot into it. I can only boot into it with "fastboot boot". It doesn't seem to flash.

edit: flashing from Linux did it :D I can boot into TWRP now without using fastboot. Probably a different version of fastboot or an issue related to Windows 10.
[G4 Original Android Development] InsideMuz:
Little help here

Guys, to have root I need flash supersu's .zip from TWRP, but to have TWRP I need root to install TWRP from the app :P

How you did it?
[G4 Original Android Development] :
Use fastboot. "fastboot flash recovery twrp.img". Or boot into TWRP with "fastboot boot twrp.img", flash SuperSU then use the app.
[G4 Original Android Development] InsideMuz:
Just a silly little question haha. I do this commands while I'm on booloader? What's the difference between fastboot and bootloader? :fingers-crossed::fingers-crossed:
[G4 Original Android Development] *justintime*:
Also had a bit of a problem to boot in TWRP recovery. Red question mark.

Did a new flash on a USB 2.0 port and it went okay....
[G4 Original Android Development] mystery007:
Attention: I've made a Nandroid-Backup with TWRP, but restore fails.
[G4 Original Android Development] MicroMod777:
Just do a kdz restore and your 100% gold! :)
[G4 Original Android Development] mystery007:
Sorry, I've no KDZ-Firmware-File :(
[G4 Original Android Development] MicroMod777:
Yea just searched and no kdz's for any G4 variant. Untill a backup is confirmed to restore I'd hold off on this at least till a kdz is available.

Is your phone a brick now?
[G4 Original Android Development] mystery007:
Yes, I can nothing do with it.

Nandroid fails, Wipe date has no result. KDZ-file is missing.

I've no solution at this time :confused:
[G4 Original Android Development] MicroMod777:
Does restoring boot.img only work?
[G4 Original Android Development] :
Yep.

Fastboot is just a tool you can use to flash, erase, get info etcetera and generally just interact with the the device while in the bootloader. It's a diagnostics tool really.

You can run "fastboot boot twrp.img" to send TWRP to your device and immediately boot into it without modifying the phone, though once you reboot you can't get back into it again without sending it again. You can replace the default Android recovery (which is used by default only to factory reset the phone) however with TWRP using "fastboot flash recovery twrp.img" meaning you can boot into it at any time through key combinations or a reboot app/option while in the phone.

So if you wanted to install SuperSU then install TWRP properly through the app, you'd use the fastboot boot to boot into TWRP and flash SuperSU to gain root access. Then you can reboot normally and actually install TWRP through the app. There's no need to do that though - just install TWRP with fastboot. To do that, use fastboot flash recovery, then you can install SuperSU and anything else you like. That way TWRP is always available on the phone.
[G4 Original Android Development] InsideMuz:
Undertood! Thank you!!
[G4 Original Android Development] DocRambone:
I can make an slim rom if u need...?

http://xdaforums.com/g4/development/rom-docs-testrom-t3126728
[G4 Original Android Development] Fir3blade:
He will need any help he can get i guess[emoji6]
[G4 Original Android Development] Yamthief:
I'd love for someone to make a rom which has stock aosp/nexus dialler and contacts and lock screen? I'm really not a fan of LG's theme or apps!
[G4 Original Android Development] Heisenberg:
Yeah, I never said the app doesn't boot you into the installed recovery. I'm saying you can't tell three difference between booting into the installed recovery and live booting the recovery from the image. The "fastboot boot" command does live boot from the recovery image.
[G4 Original Android Development] tonyeltriton:
So we cant restore our backup or is just an issue that happens only to [MENTION=2869940]mystery007[/MENTION]?
[G4 Original Android Development] stl-soldier:
From this thread and others it sounds like no one is able to restore a backup. Also, there is no stock firmware available to flash, or way to restore to factory default if you soft brick the phone. Better off just waiting for someone who knows what they're doing to figure it out for us. It has only been 1 day.
[G4 Original Android Development] smac0628:
Not sure if anyone figured it out yet. Something to try for adb. Change connection type from mtp to camera, ptp I believe.

Vzw variant here, vs986. I am running Mint 17.1 and adb did not work until I did this. It was also stuck at "waiting for device".

Additionally vzw has included an autorun partition or .iso to be specific with windows drivers and software.
[G4 Original Android Development] MicroMod777:
I wouldn't take a chance, but to help mystery007 somebody here who's flashed root needs to do this to help him out!

Here's a quick guide on how I make my ROM's once I have everything I want in my setup. Works on G2 and G3!

Step 1: Flash root first:

https://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip

Step 1: Backup system.img and boot.img.

adb shell
su

dd if=/dev/block/platform/msm_sdcc.1/by-name/system of=/sdcard/system.img

dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=/sdcard/boot.img

reboot

Step 2: Copy those img's from your internal storage to your computer.

Step 3: Add to ROM. Now add the system.img and boot.img to ROM-Flash.zip attached and your ready to go!

Step 4: Upload somewhere that has fast download! :)

Step 5: Flash ROM mystery007!

My original guide is here:

http://xdaforums.com/verizon-g2/general/guide-make-flashable-rom-zip-t3071844
[G4 Original Android Development] Pfeffernuss:
Regret not doing this/making a Nandroid prior to messing around a bit, would have solved a lot of issues (Play Services keeps on FC'ing here, very annoying).

Hopefully a downloadable KDZ/zip will be available soon :good:
[G4 Original Android Development] *justintime*:
I can help him... But not until this evening. I guess I have to wipe my device first?

And do a titanium backup and restore...?

I saw in your tutorial you have to zerofree in Ubuntu? I don't have Ubuntu.
[G4 Original Android Development] tonyeltriton:
I'm having and issue with Light flow and light manager. Notification led is not working if i run any of these apps. Just stock notification is working. Anyone else is experience this?
[G4 Original Android Development] silent_bob52637:
Wrong thread try Q/A

sent from my pre-release littlebig monster
[G4 Original Android Development] DocRambone:
Seems that this recovery cant restore system, give an error: "no write access"
[G4 Original Android Development] MicroMod777:
No zero free, thats for old G2 kk. You don't have to wipe. Just follow my steps posted here exactly.
[G4 Original Android Development] *justintime*:
I get "no such file or directory" in the command prompt.
[G4 Original Android Development] DocRambone:
Try:

dd if=/dev/block/mmcblk0p47 of=/sdcard/system.img

dd if=/dev/block/mmcblk0p38 of=/sdcard/boot.img
[G4 Original Android Development] *justintime*:
"Permision denied"
[G4 Original Android Development] DocRambone:
adb shell

su

?
[G4 Original Android Development] *justintime*:
This is what i get.:

1|shell@p1:/ $ dd if=/dev/block/mmcblk0p47 of=/sdcard/system.img

dd if=/dev/block/mmcblk0p47 of=/sdcard/system.img

dd: /dev/block/mmcblk0p47: Permission denied

1|shell@p1:/ $

C:\ADB>adb shell

shell@p1:/ $ su

su

1|shell@p1:/ $ dd if=/dev/block/mmcblk0p47 of=/sdcard/system.img

dd if=/dev/block/mmcblk0p47 of=/sdcard/system.img

dd: /dev/block/mmcblk0p47: Permission denied

1|shell@p1:/ $
[G4 Original Android Development] DocRambone:
Strange, just tried dd if=/dev/block/mmcblk0p47 of=/sdcard/system.img, no problem here
[G4 Original Android Development] *justintime*:
Okay he is doing something now.... i still had oem unlock ticked....after that it asked if ADB can have permission.

ZIP is uploading....
[G4 Original Android Development] MicroMod777:
You need to flash root first! Guess that should of been step 1. lol Sorry.

https://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip
[G4 Original Android Development] *justintime*:
Its allready rooted.... The Zip file is uploading.

Do i have to do that again?

---------- Post added at 07:35 PM ---------- Previous post was at 06:46 PM ----------

Here is the Original Rom for the G4 (H815) as descriped from [MENTION=2522637]MicroMod777[/MENTION].

Hope it will solve [MENTION=2869940]mystery007[/MENTION] his problem.

http://bit.ly/1eRusbp
[G4 Original Android Development] MicroMod777:
Don't have to do it again as you got it! :) Now lets see if this is flashable for mystery007! Hopefully boot.img and system.img will mount and flash.
[G4 Original Android Development] Wing_Zero_Custom:
Am I blind or did you guys remove the gofundme link on the main post?
[G4 Original Android Development] DarthEwok:
I just tried to flash the ROM-Flash.zip provided by @*justintime* above (Thank you BTW) but get the following

Installing '/usb-otg//ROM-Flash.zip' ...

Checking for MD5 file...

Skipping MD5 Check: No MD5 file found

[MENTION=1351470]delete[/MENTION] Old System

Mounting system

Formating system

Extracting System

Extracting Boot

Updating partition

E:Unable to mount '/system'

...done

any ideas?

I tried mounting system manually through both TWRP and through ADB Shell whilst in recovery mode with the same message and non booting phone.
[G4 Original Android Development] MicroMod777:
TWRP needs to be fixed to mount system. Then your golden! :) Where's Dees Troy?