yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] draskome:
I have Euroepan G4, model H815

Flashed 20j KDZ file through LGUP (refurbish) without problems.

But, when I try to flash TOT file, it first establish USB connection, but then I have error messages:

1. tot fle open error

and then

2. Error: TOT file is invalid[1]

Ive checked TOT file with winhex, searched for xVLG and determined that version is OK (H815)

I've tried to unpack TOT file once again and flash it immediately, but same errors occurred :(

Any solution for this?
[G4 Android Development] mdau:
Try to 'enable OEM unlock' in developer options
[G4 Android Development] OzarkArky:
Could someone please clarify this for me. If I install a MM ROM on my bootloader locked H815 (US variant) currently running rooted 5.1 stock will I later be able to install another ROM or will that be a dead end? I know that I will lose root. It seems like this is a dead end device as far as development goes with a locked BL which is very disappointing with such good hardware. Should I just accept a stock ROM? Will it receive OTAs? Should I give up and by another phone with unlockable bootloader? I have read on this and other forums extensively and have not seen this issue directly addressed.

Thanks in advance
[G4 Android Development] draskome:
Unfortunately, enabling OEM unlock doesn't help. Thanks anyway.
[G4 Android Development] OsiBasi:
I can't seem to be able to flash the .tot, kdz went fine.

I have no problem flashing other .tot files, I followed your youtube guide and tried redownloading/reextracting etc. Switching ports even.

LGUP keeps saying .tot Is invalid and forcecloses.

How do I fix this issue? I have a European, regular H815.
[G4 Android Development] Cloudus91:
Same for me.
[G4 Android Development] ulkika:
i have the identical problem...but the file kodz 00_0627 install good....and now are optimizing40 of 69 application
[G4 Android Development] adamfirari:
Launcher UX 4.0 keeps reloading after a few apps.Why?
[G4 Android Development] Spillunke:
Why is this rom not pre-rooted? The biggest problem with MM and locked bootloader is: NO root with locked bootloader.

Its not possible to pre-root the rom or where is the problem?

How many people would love your rom, if they get rooted MM rom with locked bootloader? <3

EDIT: installation went well. got no problems till now, all works fine.
[G4 Android Development] zavorrax:
Hi,

do you think it would be possible to move some file (eg. hosts or build.prop) to some r/w filesystem and then create a symbolic link? Maybe with some boot time script to create a default one if needed?

This way apps like adaway may be able to work without root permissions.
[G4 Android Development] Bemxe:
What should I type in tot file if I have H815 open Poland? I've checked H815Eu and H815p options but both of these don't working and results "invalid tot file" in lgup.
[G4 Android Development] draskome:
You are not the only one with that issue. Few of us already posted about that.

In short,

- We have H815 variant

- We are able to flash 20j KDZ

- We all have "invalid tot file" error, and in the TOT file at xVLG there is H815 variant, so nothing to change there.

I hope that [MENTION=5796017]BySezerSimsek[/MENTION] will see this and find some solution for us :)
[G4 Android Development] xdamc2010:
About .tot file error

Thank you very much indeed for your nice ROM. Seems to work fine at first contact.

I have a LG G4 H815 Int BL locked. 2 of the 3 rar files (part 2 and part 3) as delivered by MEGA are not in a goot state. We have first to repair them using the r option of the rar program under, for instance, Ubuntu. Then we concatenate the three parts (part1 + part2 + part3) giving a unique rar file. Finally, decompressing this rar file, we obtain the .tot file. Trying to flash this .tot file with LGUP we obtain a tot file open error. As shown on the video "Invalid Tot Fix..." just append the 2 letters A and T after xVLG-H815. Then you can flash the .tot file. Surprisingly, the .tot file seems to be modified by LGUP during the process and the letters A and T disappeared from the file after process completion. The resulting file .tot file is good for a new flash.
[G4 Android Development] Spillunke:
Did u tried to use the file as it is without changing anything?
[G4 Android Development] Bemxe:
Yes and it wasn't working so I changed info in tot file but this doesn't help.
[G4 Android Development] hamudiz:
Same thoughts exactly. This ROM has excellent battery life for MM but since i needed root, flashed back to Lolipop.

Hopefully there will be a way to unlock non-european G4 phone bootloader or a pre-rooted version of this ROM comes out. Cheers! :good:
[G4 Android Development] draskome:
Thank you for this information :)

So, If I understood correctly, instead xVLG-H815 it should be xVLG-H815AT ?

I've watched help video, and in it Sezer demonstrated different letters for different 815 variants (T, P, AR, TR), but why AT?

UPDATE:

Just tried your method, and still getting same error messages ("TOT file open error" and then "Error: TOT file is invalid[1]").

Now I'm really curious to discover whats happening :(

Size of my TOT file is 4.627.365.888 bytes. Is that OK?
[G4 Android Development] DRoID_FuN:
FINALLY

Okay so I think this my first post and I was doing some research as I couldn't get the TOT file to flash without the invalid error. I stumbled upon a video and decided to follow the steps, and amazingly it worked.

https://www.youtube.com/watch?v=fvjIfWDELGc

Just follow the steps, I would of written it down but the ROM is flashing right now so I can't use device manager.

Also make sure to disconnect the cable and close lgup after doing the steps. Then you can flash the TOT file without any problem

BTW since my LG G4 is H815 I didn't make any changes in winhex so make sure to clear any changes.
[G4 Android Development] ObiDanKenobi:
Hi, I have a question: would it be possible to share how are making a TOT file when you have a system.img file.

What is my purpose? I want to make a change to the init.qcom.post_boot.sh to disable the core 4 and 5, so that in a case of bootloop I can flash with LG UI the TOT file and have the phone working without loosing data even if we are using MM.

Thanks,

Dan​
[G4 Android Development] draskome:
Just tried this method, step by step, and it doesn't work with me.

Did you also get two error messages (First "TOT file open error" and then "Error: TOT file is invalid[1]").?
[G4 Android Development] xdamc2010:
Size of your file is OK. This is what we obtain when we concatenate the three rar files even if they are corrupted. Have you repaired part2 and part3 files before ? Why AT ? All other letters don't work and I tried that looking at the file title : LGH515AT-00-.... But as I wrote, this is working only for a first flash. LGUP seems to modify the tot file and makes AT letters disappearing. The resulting tot file is good for further flash processings.
[G4 Android Development] johnnyyh:
How can I get TOT file from .RAR files? I can't extract them. Please Help.
[G4 Android Development] draskome:
Yes, I've tried to repair all three parts through WInRar, and I've downloaded them three times from Mega, just in case..

Whatever I try, always the same errors,,

Ive also tried with every possible combination of capital and small letters that have any sense (I have HUX carrier model, so I've tried everything with HUX, HU, EU, even TR, AT...), No luck with that ;(

You have to download all three RAR files and put them in the same folder. Than you just need to open one of them with WinRar and extract file from it. You don't need to do anything with the other parts, WinRar will extract all three parts and combine them into one TOT file.

UPDATE:

I've finally sucessfuly flashed Genisys ROM :)

What I did is what I was supposed to do in a first place when things went wrong with TOT file - I moved to another, "clean" PC, installed all the necessary drivers, Installed LGUP, unpacked TOT file and flashed it untouched without any issues over previously installed G4 H815 V20J ROM ("Update" option).

So, everything looks nice in Genisys 4.6

[MENTION=5796017]BySezerSimsek[/MENTION], sağ olun :good: you've did a great job :)
[G4 Android Development] johnnyyh:
@ draskome

Hi, thanks for your guide. I've managed to extract TOT.
[G4 Android Development] Bemxe:
Okay, I've just tried to install it by another computer and it works with any "invalid tot" issues.
[G4 Android Development] Jkmoran:
Just one doubt, this rom have the stock dpi?
[G4 Android Development] Cloudus91:
Worst support ever from op.
[G4 Android Development] ObiDanKenobi:
Any help on this one ?
[G4 Android Development] mdau:
I decided to return to this http://xdaforums.com/showthread.php?t=3459260 as the support in this thread is very poor.

---------- Post added at 08:40 PM ---------- Previous post was at 08:39 PM ----------

You can try this thread, our hasfdd far better support http://xdaforums.com/showthread.php?t=3459260
[G4 Android Development] fabriciomatrix:
Change DPI?

Hello Guy,

You can change the dpi stock for 530? Or you can show how make?
[G4 Android Development] Diddymies:
nvm
[G4 Android Development] andrea1493:
Does it have the audio boost mod? I really need because the headphones volume is a bit low...
[G4 Android Development] guillefs:
Two Download:

GENİSYS ROM 4.7 V20J FOR LOCKED BOOTLOADER TOT

GENİSYS ROM 4.7 UX5.0 V20J FOR LOCKED BOOTLOADER TOT

what are the differences?

the first has UX 4.0?
[G4 Android Development] draskome:
It looks the only difference is that second one has LG's UX 5.0,, so we can choose between standard UX4.0 that stock G4 already have, and G5's UX5.0
[G4 Android Development] Spillunke:
Nice. Downloading and trying GENİSYS ROM 4.7 V20J now. Adaway and Root Browser, yeah!

EDIT1:

-Upgrade with LGUP:

Running fine. Veeeery smooth, really. But where is adaway, root browser and rebooter? Its named in the changelog: http://xdaforums.com/showpost.php?p=62958942&postcount=3

Trying refurbish with LGUP.

EDIT2:

-Refurbished with LGUP:

Adaway, root browser and rebooter is still missing.

Any suggestions?

EDIT3: Changelog with false statement.

After refurbishing: if i close all apps over navbar-button, screen is black for a few milliseconds and it looks like the homescreen is rebuilding "slowly". To fix that, refurbish your phone again and the switch is smooth like it should be.
[G4 Android Development] draskome:
Thanks for quick review :)

Regarding your question, you are referring to a different ROM, GENİSYS ROM for unlocked boatloders and rooted phones.,and one that you we flashed is for locked boatloaders and unrooted phones, so no Adaway, root browser andrebooter ;)
[G4 Android Development] mdau:
You have quoted a wrong thread. This one doesn't have those apps. Go back to page one and read carefully. This rom is for locked bootloaders and umrooted
[G4 Android Development] Bemxe:
Flashed 4.7 ux5.0

In software info this version is still named 4.6. Is it normal?

What is new in 4.7 for locked bootloader?
[G4 Android Development] mdau:
I flashed the same but build number is ok (4.7 in software info)
[G4 Android Development] Spillunke:
The changelog is linked in this thread! Not my fault. OP made false statement and trying to fool.
[G4 Android Development] draskome:
This is not nice way to communicate at XDA :/

This forum is not for noobs, and if one can't distinguish difference between rooted and unrooted ROM, it is not developer fault.
[G4 Android Development] Spillunke:
Sorry that i dont know anything about it.

But the OP linked the wrong changelog or is to lazy to create a right one. The support of the OP is bad, but im not the first who recognized it. Its bad support/communication since a long time.

I asked some days before if it would be possible to create a pre-rooted Rom or why it isnt possible. Nobody answered. I couldnt know that.

It must be allowed to say/write critical words.

And im sorry about my english. I hope everyone understand what i wanna say. Not hating, just sad about the OP.
[G4 Android Development] Diddymies:
I think there is no root for locked bootloaders on marshmellow , thats why its not prerooted rooms :)
[G4 Android Development] ObiDanKenobi:
Instead of continuing the useless discussion, you go to the right thread and install the Rom you wanted with root and those apps. Problem solved.
[G4 Android Development] polfrank:
Hello. I just installed this Rom on my locked phone. I have a question. Why does the developer use v20j with June google security patch and not the latest v20i with September patch?

Which of these two is better in your opinion: v20j Genisys or v20i stock?
[G4 Android Development] draskome:
I could swear that on Genisys 4.6 security patch was from september, so I was also surprised that with 4.7 it's from June.

Regarding sprains k experience, for me 20i (France) was smoother and battery consumption in standby was much better...
[G4 Android Development] adamz667:
Has anyone problems with Youtube, G+ apps on this rom? Because whenever I start to scroll videos list app stops and FC after few seconds.
[G4 Android Development] polfrank:
You are right. I just opened Youtube, scrolled the related video list of a video and got FC on YouTube.

Also Snapchat crashes when I get a picture.
[G4 Android Development] oriax:
same here
[G4 Android Development] mdau:
Some few apps do that for me
[G4 Android Development] monkeydogger:
Hope this helps - LG G4 Locked Bootloader Flash Tutuorial re-write

Original translation by : Ignacio Ramírez (xda@the_naxhoo) - Latterly upgraded by me - Monkeydogger – Enjoy ;) As usual – I’m not responsible for anything from you bricking your phone to wormholes opening in your bedroom and taking you off to an inter dimensional mud wrestling contest with Anne Widicombe –

1.	Ensure that you have matching versions of your 6.0 MM OEM (.KDZ) and modified firmware files (.Tot) (i.e. 20g & 20g, 20j & 20j).

2.	Back up any files you need to keep – Just in case ;)

3.	Upgrade your phone to the latest OEM firmware (KDZ) using LGUp (the upgrade and refurbish options both work, however, I recommend the refurbish option). Allow it to reboot and complete it’s set up.

4.	Extract the system.img file from the modified firmware and save it to the root of your phones internal memory. For ease I suggest keeping the name as “system.img”

5.	Turn off the phone, and connect the USB cable while holding down the buttom “Volume +”. Your phone will enter "Download mode".

6.	Open LGUP on your PC and select a .KDZ (If you used LGUp to upgrade your firmware then the original KDZ should still be selected. This is OK.

7.	IMPORTANT (whilst this step is simple, I advise watching the Spanish installation video from the first post in this thread ) Start the installation process. When LGUp shows you have reached 9% progress and the screen on the G4 shows the number of USB port in green (eg COM13), disconnect the USB cable from the phone. (This process is necessary because LG has blocked access to the COM port in Marshmallow).

8.	Close the LGUP, reconnect the phone and check the COM port displayed by the phone and the COM port the computer says the phone is connected to are the same (Open "Device Manager" and branch "Ports (COM and LTP)" to see the port number.)

9.	Open the "LG_ROOT" folder, hold down the "Shift" key, right click and select "Open command window here".

10.	In the Command window type (without quotes) "Send_Command.exe \\.\COMXX" (COMXX should be replaced with the port number from step 7).

11.	Press Enter. A # should now appear in the command window.

12.	Copy and paste the following command into the current CMD window, after the "#":

dd if=/data/media/0/system.img bs=8192 seek=55296 count=529920 of=/dev/block/mmcblk0

* The name "system.img" may vary if you changed the file name in step 3.

* After a few moments the "#" symbol will re-appear in the command window.

13.	type LEAVE and press Enter

Your phone should now reboot. If it doesn’t, disconnect the USB and remove the battery then replace the battery and and turn on your phone.

You may want to perform a "Hard Reset" before using the ROM, However, I didn’t and haven’t had any problems.
[G4 Android Development] alnoerman:
Step by step like Genesis 5.0 ?

Is it work bro?

I'm already use Genesis 5.0

But I want to try Genesis 4.7 ROM if the step is like Genesis 5.0 to do.

Thanks
[G4 Android Development] CygnusBlack:
Thread updated with change log.

Thanks!
[G4 Android Development] monkeydogger:
Sorry, I haven't used Genesis 5.0, I don't know if it's available for BL locked variants.

This method works perfectly for me... so far... Hope it works for you.
[G4 Android Development] bazaleem818:
very fast ROM and good battery optimization

very fast ROM and good battery optimization

thanks developer
[G4 Android Development] alnoerman:
Thanks.. [emoji4] ...
[G4 Android Development] alnoerman:
Hi... I'm already download the modified tot file and extract the file. But I can't find the system image.

I just find the tot file. Can you explain where the system image?
[G4 Android Development] mdau:
Install the tot. File with LGUP
[G4 Android Development] alnoerman:
Install ? But he told me to use system image.

How to extract the tot file to get the system image?

Or do you already try install tot file ? Is it work?

Thanks.
[G4 Android Development] mdau:
Install the tot file with LGUP normally like the KDZ file but dont forget to flash the v20j kdz first.
[G4 Android Development] alnoerman:
Tks
[G4 Android Development] Loeon562:
I install first the kdz and then try to install the .tot file and it stuck at 11% now my phone only enter download mode. I try to normally flash a kdz but this don't go it only starts in download mode

What can i do please help?
[G4 Android Development] mdau:
Remove the battery and put it back, and put the phone into download mode. Then flash the v20j kdz or any other firmware kdz (not the tot file)
[G4 Android Development] Loeon562:
I tried it but it don't go
[G4 Android Development] aeneas84:
hi to all. is it possible to modify the tot file for disable the 2 big core for the people that have the ilapo problem? i mean the file etc/dir/init.qcom.post_boot.sh or some other system if some one know about it. thanks
[G4 Android Development] aoleary:
Hi.

Can I install 4.8 over a previous v4.6 install?
[G4 Android Development] leonardo_hd5:
You could make available a version with 530dpi please?
[G4 Android Development] alnoerman:
Hi, do you have ILAPO problem?

i have a problem with my device, my device get overheat and always reboot automatic, is it ILAPO problem? do you have solution or maybe link for me to solve the problem? because my device cannot use if my battery phone on 70% up. my phone stop reboot automatic if the battery low.

i am very confuse for this problem, i have try Genisys rom 4.8, and 5.0 for lock bootloader and still get ther problem.

i hope you or the others who read this message can help me to solve the problem.

Tks.

:o:o:o:o:o
[G4 Android Development] aoleary:
Follow these steps: http://xdaforums.com/g4/general/howto-android-pay-g4-custom-dpis-t3295574

You can go as low as 528.

These commands do not require backup before as nothing is reset, as long as you dont go lower than 528...

---------- Post added at 10:09 ---------- Previous post was at 10:05 ----------

Hi [MENTION=5796017]BySezerSimsek[/MENTION]

When I flash the 4.8 TOT file, will that wipe all my apps? Since I cant make any back since Im not rooted, I'm wondering how much is initialized to default?

I just moved to a G4 from a rooted G3, so was used to having Titanium Backup to restore everything after flashing ROMs :)

TIA
[G4 Android Development] CygnusBlack:
[MENTION=4956374]theKramer[/MENTION]

What about https://play.google.com/store/apps/details?id=com.idea.backup.smscontacts?

It won't backup your personal app data though. You need root for that :(
[G4 Android Development] aoleary:
I have SMSBackup&Restore for SMS, contacts are backed up to Google, but will this wipe Internal Memory as well ( i.e. "/storage/emulated/0" which contains DCIM/Downloads/et al )?

Sorry for all the questions. I was used to flashing ROMs on a rooted phone, so trying to figure out the process on a locked G4, and how much I will need to reconfigure if I flash the update..
[G4 Android Development] CygnusBlack:
[MENTION=4956374]theKramer[/MENTION]

Yep! Expect to do a full wipe of the phone. It's always nice to start over once you upgrade to a new rom anyway.

So... Backup whatever you think is important to your computer or SD card.

The app I've linked you to also backs up apps, so you don't need to download them again.
[G4 Android Development] andy8858:
procces stop

then download the rom tot use lgup but when he goes by nine percent the process stops
[G4 Android Development] mdau:
Backup with lg backup
[G4 Android Development] aoleary:
Didn't work for my H815, but I used the backup & restore feature within Settings and that created a backup of my internal storage..

However, I didn't need it as using the upgrade feature of LGUP didn't overwrite any data..
[G4 Android Development] CygnusBlack:
[MENTION=5796017]BySezerSimsek[/MENTION]

I'm finally using your rom. Thanks!

Two things I've noticed that I wonder if you can fix/change:

1) Using UX 4.0, I see lags in the animation while opening the 3-dots menu (in the upper right corner of the screen);

[IMG="3 dots menu"]https://s16.postimg.org/han6owt8l/Screenshot_2016_10_22_07_46_06.png[/IMG]

2) Sometimes, I can't write in Chrome (dev). The text gets stuck while using SwiftKey. Can you change the dev version for the normal one? I'm asking because it never happened using the original stock rom and Chrome app.

3) Dropdown and configuration menus have a white background. Using stock, I had them dark which are easier on the eye. Is there an option somewhere to change this? I couldn't find it.

4) Can't seem to enter the Download mode by pressing the Volume Up + Power Keys...

That's it for now. Thanks!
[G4 Android Development] CygnusBlack:
More infos....

1) The "3 dots bug" happens in all the 3 dots system menus.

3) Factory resetting the device and applying the UX4.0 variant fixed the dropdown menu color. Now it's dark. The configuration menu is still white, though.

The UX4.0 rom also has the UX5.0 launcher...?
[G4 Android Development] Martin0787:
I really want to give it a try but does it still have the quickcircle options? Thanks for answering me.
[G4 Android Development] guillefs:
Bug: galery G5 not working wifi smartshare
[G4 Android Development] aoleary:
I used this method to backup my phone that is built into the LG software: http://www.lg.com/us/support/produc...201522-file-media-transfer-pictures-music-etc

However, I didnt need it as by choosing the upgrade option in LGUP, it just upgraded the software, but didnt touch any of my files or configuration settings..
[G4 Android Development] CygnusBlack:
[MENTION=4956374]theKramer[/MENTION]

Me too. And I faced bugs.

The only way I found to fix one of them was the full wipe.

Could you help confirming some of them? (check the page before this one). Thanks.
[G4 Android Development] Or_r:
PLEASE HELP!

firs thank you it looks a amazing rom.

i flashed sucsesfuly the KDZ but when i try to flash the rom it`s stuck on 4 % and say tot is invaild, i tried the method from the front page with winex but not help, i tried the way to change things on the device manager and also not help, i tried to do that on new cpu and also not work,

maybe you have a solution???

tnx
[G4 Android Development] Bemxe:
[MENTION=5887982]Or_r[/MENTION]

Try it on another computer. I've had the same problem and this helped me.
[G4 Android Development] Or_r:
i did, it didnt work
[G4 Android Development] mdau:
After changing the name with winhex or any other program, copy the edited file to another location different from the original location. Then use the file copied file
[G4 Android Development] leonardo_hd5:
[MENTION=4956374]theKramer[/MENTION] change the dpi by adb generates several glitches both the launcher as in apps like whatsapp, Instagram. So I asked if it was possible to release a version with DPI edited in build.prop, which would prevent such problems.