exact tut to edit tot with hex - LG G Pro 2

After bricking my f350l wth d838 kdz
I faced cross dll error
And there was no exactly noob friendly tut tht how to edit tot ..wat ever we have to change in tot..nd how much we have to change...so i got hard bricked my device..if u are same like me then
download any hex editer
Open tot in hex editer
Now go to line 00006017 the first name of ur device in tot..
Just edit that only..no need to change further phone model in tot....just only the model in line 00006017
Save it
Nd flash it

Related

best way and tools to use to edit initflashfiles.dat

*********
*********
What is the best way and tools to use to edit initflashfiles.dat
This file is very important and we need step by step clear guide with example
Attached one sample edited by TofClock ... let use this as an example
*********
*********
Just change the extention of it to .txt
edit it and after finish editing
change the extension back to dat
Is this answe ur question?
Thanks for quick response. I appreciate it.
Are you sure i do not have to convert from unicode to text and then edit and then back to unicode??
Is it normal text file ... it does not look to me that way!
Did you check the attached file?
I did this several times
Attached your file in .txt after rename it and it will tel u that the file may be damaged, do not care
You must rename the file again to be .dat after making ur changes
But be curfull any mistake in this file will create a big problem do it but be curful
llbasha said:
*********
*********
What is the best way and tools to use to edit initflashfiles.dat
This file is very important and we need step by step clear guide with example
Attached one sample edited by TofClock ... let use this as an example
*********
*********
Click to expand...
Click to collapse
You can right click on the file - open with - and it should open with notepad. Yes you need to save it as unicode but even then you will find it will not work. You need to use a hexeditor and delete the first ff and fe as these are added when saving with notepad.
Would u please explain more, how to find this FF & FE?
I know how to nba files only
Thanks
The_hesham said:
Would u please explain more, how to find this FF & FE?
I know how to nba files only
Thanks
Click to expand...
Click to collapse
When you open the file with a hex editor the first 2 values seen are FF and FE just delete these and save.
Thanks man
this is quite helpfull
but .. r u sure if i edit the file with notpad it will fail to run
i think one of my friends edited it with notpad and all gone well
thx for the nice wotk guys .. this is very appritiated
Sincerly
Adam
solomhamada said:
this is quite helpfull
but .. r u sure if i edit the file with notpad it will fail to run
i think one of my friends edited it with notpad and all gone well
thx for the nice wotk guys .. this is very appritiated
Sincerly
Adam
Click to expand...
Click to collapse
I tried it without removing those 2 values and it always hangs the device. If in doubt check the file (before and after editing with notepad) with a hex editor and you will see ff and fe are added.
meschle said:
I tried it without removing those 2 values and it always hangs the device. If in doubt check the file (before and after editing with notepad) with a hex editor and you will see ff and fe are added.
Click to expand...
Click to collapse
i dunno
i'll ask him
cheers!
ADAM
I'm sure I did change the file without doing the removing of FF & FE and it works normaly
But no prob., next time I will try meschle advise
I discovered that the best way to edit any unicode file is by using an old program called editpad (free version copy attached here: ( http://forum.xda-developers.com/showthread.php?p=1130485#post1130485 ) that allows to do, among many other things, to convert unicode to ansi and back to unicode without destroying the file structure. I feel sure many will find this very useful. Also it can be used as direct replacement for notepad by just rename it notepad.exe and over write your window one (or rename it before copying).
initflashfiles Editor
Hi every body been working on a rom kitchen when i got to the initflashfiles File Editing I put this Tool Together thought i'd share it so here it is
Thanks to every body how share's there work and tools on this site I would like to here what you think of this tool please as your comments will help to improve the tool this is virsion 0.1.0, I think it's completed but let me know your thourght's
Swampy395
The_hesham said:
I did this several times
Attached your file in .txt after rename it and it will tel u that the file may be damaged, do not care
You must rename the file again to be .dat after making ur changes
But be curfull any mistake in this file will create a big problem do it but be curful
Click to expand...
Click to collapse
OK, when I cut the new initflashfile und paste it in the windows folder what will happen with the existing initflashfile.dat? Will the newer one replace the older one or will be two files in the folder after doing this? Thanks for help.
I have a Acer Tempo DX900 if it is neccesary to know that.

[The way to root V20B bin ROM]

After doing some research on the bin format rom, i finally find the system.img offset in the v20 bin rom。
tool we need
winhex other HEX edit tool ,yaffs2img or other ext3 img editor.
Step
1.open the LGP920AT-00-V20b-ESA-XXX-JAN-10-2012+0_AP.bin in winhex or other HEX edit tool.
2. use winhex to dump the content from offset
0XB80000 to the end, and save the dump as system.img .
3. now you can use yaffs2img or other ext3 edit tool to edit the img. add su to bin/ (set permission 6755 ),add supperuser.apk to app/ (set permission 0644).
4,save the changes to the img.
5. write the img back to the bin.
6. flash the bin (you know how to right ?)
test fine on my 3D
Ok,where can we find that bin rom???
great work..
can you share your modified bin ????
it would be great to try .....
actually this is required to have modified and pre-rooted roms, those can be flashed direstly
dclx said:
After doing some research on the bin format rom, i finally find the system.img offset in the v20 bin rom。
tool we need
winhex other HEX edit tool ,yaffs2img or other ext3 img editor.
Step
1.open the LGP920AT-00-V20b-ESA-XXX-JAN-10-2012+0_AP.bin in winhex or other HEX edit tool.
2. use winhex to dump the content from offset
0XB80000 to the end, and save the dump as system.img .
3. now you can use yaffs2img or other ext3 edit tool to edit the img. add su to bin/ (set permission 6755 ),add supperuser.apk to app/ (set permission 0644).
4,save the changes to the img.
5. write the img back to the bin.
6. flash the bin (you know how to right ?)
test fine on my 3D
Click to expand...
Click to collapse
well the original v20b bin + fls is linked in this thread http://forum.xda-developers.com/showthread.php?t=1517531 ( thanks pandaball) , so could someone release a modified version with superuser included for us noobs
The modified file please !
Is there any .bin version for V20e?
pennzoilgtr said:
Is there any .bin version for V20e?
Click to expand...
Click to collapse
+1 for that..
I only have v20B currently. In any case, I'm uploading the modified .bin file now. Please wait while it takes its own sweet time to upload
thanks pandaball, hopefully you "find" other ones aswell
pandaball said:
I only have v20B currently. In any case, I'm uploading the modified .bin file now. Please wait while it takes its own sweet time to upload
Click to expand...
Click to collapse
U got any issue with gb baseband on singtel?? I'm on m1 and I got no ghost call though but my radio would just hang and I can't even turn on airplane mode to rectify fortunenately not everytime
pennzoilgtr said:
U got any issue with gb baseband on singtel?? I'm on m1 and I got no ghost call though but my radio would just hang and I can't even turn on airplane mode to rectify fortunenately not everytime
Click to expand...
Click to collapse
Nope, haven't had any dropped calls/sms or any problems related to basebands. I was surprised too since I read that there were issues with the Gingerbread baseband.
pandaball said:
Nope, haven't had any dropped calls/sms or any problems related to basebands. I was surprised too since I read that there were issues with the Gingerbread baseband.
Click to expand...
Click to collapse
i see, btw how is the video recording for 20b? i experiencing persistent stuttering when recording 1080p on my class 6 sandisk for 21a/b, 20e .. froyo seems smoother. but very bad memory management :/
strange thing is that stutters appear to happen when my sd running very low space. but was very smooth when there is tons of space left.
Haven't tried video recording yet, only had this phone for about 2 weeks
pandaball said:
Haven't tried video recording yet, only had this phone for about 2 weeks
Click to expand...
Click to collapse
only had for it for 2 weeks and gone so hardcore
20b and 20e already available pre-rooted in general forum
exploit for 20C coming soon.
20c
rooted 20c fg trill rom on lg o3d
thx

Back to Stock from Future 3.0 and Drake v1 or CrossDL error

Here is some guide as i faced problem to go back once from future 3.0 and the other time i installed drake v1 and it changed to d838 so when i tried to install tot it gave me error like crossDL so i figured it out after alot of search that how to go back to my stock 4.4 and now I want to share this method with you people, it may help some those who are really stuck in there. It's my own effort so if you find it helpful then plz appreciate.. thanks.
Steps to follow:
1. Download Winhex software: https://mega.co.nz/#!IUFnRRBb!JlQpWk_PiQ5NIpE2Pc7y7ovRuv3Fx-slT0A3W7ARpMc
2. Extract it and open it and there will be folder inside winhex. its pre-installed app so you don't need to install it just open folder and run the application and it give some message that you can not save larger file with evaluation version.. just open and click on help and then register option then a dialogue box will be opened and past the key you will find in the main folder text file named with "key". it will be registered version now you can open your tot file and edit it.
3. Open your tot file and click on edit and then on find then search for word "F350" and you will be there. Just change the last word with "L". if you have F350K than K with L and if you have F350S then S with L. if you want to go back from future 3.0 rom and change whole letter with "D838" and remove last digit by putting 00 on left column. you can see the pics for guide.
4. Now save the file and with this file flash your lg g pro 2 and for that i m sure you guys already have guide to flash tot file otherwise you can search for it..
Guide for flashing through tot and dll file:
http://www.lg-phones.org/how-to-flash-lg-g-pro-2-with-a-tot-firmware.html
Note: I am not responsible for any damage do it at your own risk..
amir. said:
Here is some guide as i faced problem to go back once from future 3.0 and the other time i installed drake v1 and it changed to d838 so when i tried to install tot it gave me error like crossDL so i figured it out after alot of search how to go back to my stock and now want to share with you people. It my own effort so if you find out helpful then plz appreciate.. thanks.
Steps to follow:
1. Download Winhex software: https://mega.co.nz/#!IUFnRRBb!JlQpWk_PiQ5NIpE2Pc7y7ovRuv3Fx-slT0A3W7ARpMc
2. Extract it and open it and there will be folder inside winhex. its pre-installed app so you don't need to install it just open folder and run the application and it give some message that you can not save larger file with evaluation version.. just open and click on help and then register option then a dialogue box will be opened and past the key you will find in the main folder text file named with "key". it will be registered version now you can open your tot file and edit it.
3. Open your tot file and click on edit and then on find then search for word "F350" and you will be there. Just change the last word with "L". if you have F350K than K with L and if you have F350S then S with L. if you want to go back from future 3.0 rom and change whole letter with "D838" and remove last digit by putting 00 on left column. you can see the pics for guide.
4. Now save the file and with this file flash your lg g pro 2 and for that i m sure you guys already have guide to flash tot file otherwise you can search for it..
Guide for flashing through tot and dll file:
http://www.lg-phones.org/how-to-flash-lg-g-pro-2-with-a-tot-firmware.html
Note: I am not responsible for any damage do it at your own risk..
Click to expand...
Click to collapse
Can this method be used for my phone which is now on Future ROM, but originally is D838 32GB?
I just need to get the tot file?
There is easy way to go back on stock for d838 model.. Use kdz method..
Secondly i didn't check on d838 model but u can check by using tot file n tot flash method.. Just search for F350L tot file.. I guess its available online.. Then u can try if it works may b it work but i m not sure..
Thirdly its my guess.but u can check if d838 firm can be edited then.edit that file and change it to f350L then use it through kdz method..
But u have to check it at ur own risks..
Sent from my LG-F350K using XDA Free mobile app
amir. said:
There is easy way to go back on stock for d838 model.. Use kdz method..
Secondly i didn't check on d838 model but u can check by using tot file n tot flash method.. Just search for F350L tot file.. I guess its available online.. Then u can try if it works may b it work but i m not sure..
Thirdly its my guess.but u can check if d838 firm can be edited then.edit that file and change it to f350L then use it through kdz method..
But u have to check it at ur own risks..
Sent from my LG-F350K using XDA Free mobile app
Click to expand...
Click to collapse
From what @orsonwang posted, his phone goes to bootloop when flash using kdz.
Your guide, I can get F350 tot file and change the hex to D838? I have found a working F350S v10e tot file and DLL. Can I use these file?
xb360 said:
Can this method be used for my phone which is now on Future ROM, but originally is D838 32GB?
I just need to get the tot file?
Click to expand...
Click to collapse
Here is link of tot file for F350L:
https://www.fshare.vn/file/TVR9DPAC7T
for dll file you can use any variant dll file because it is common for all K/L/S..
xb360 said:
From what @orsonwang posted, his phone goes to bootloop when flash using kdz.
Your guide, I can get F350 tot file and change the hex to D838? I have found a working F350S v10e tot file and DLL. Can I use these file?
Click to expand...
Click to collapse
yes orsonwang eventually did the same tot method to get his phone back that give more confidence in this method. you can check this as this modification works for all tot files.. if it works i hope it will go beyond 80% and then its ok even at the end it gives error on flash tool because in my experience it didn't able to make to 100% not even a single time but it worked for me.. you can check if didn't start flashing then you have you current at least and if it started then hopefully it will go beyond 80% and i hope it will work but not confirmed you have to make your own mind to take risk as i have no such experience i am just guessing it might work..
Best of Luck..
amir. said:
yes orsonwang eventually did the same tot method to get his phone back that give more confidence in this method. you can check this as this modification works for all tot files.. if it works i hope it will go beyond 80% and then its ok even at the end it gives error on flash tool because in my experience it didn't able to make to 100% not even a single time but it worked for me.. you can check if didn't start flashing then you have you current at least and if it started then hopefully it will go beyond 80% and i hope it will work but not confirmed you have to make your own mind to take risk as i have no such experience i am just guessing it might work..
Best of Luck..
Click to expand...
Click to collapse
It only goes till 80%, but the phone still able to boot up?
xb360 said:
It only goes till 80%, but the phone still able to boot up?
Click to expand...
Click to collapse
no it went beyond 80 but didn't complete 100.. it normally went to 92 to 93.. but once phone rebooted by itself then it should be ok..
Back to Stock
amir. said:
no it went beyond 80 but didn't complete 100.. it normally went to 92 to 93.. but once phone rebooted by itself then it should be ok..
Click to expand...
Click to collapse
Hy !
Please help me. My device is D838. I installed the "Future_V3.1_Lollipop".
How can'i revert back to STOCK D838 ?
I have D838.tot but when I try to flash it back, there is a many error messages.
I edited the build.prop to correct anything in it.
KDZ not work, only hope is the TOT method.
Please help me !
THX !!
LorinczG77 said:
Hy !
Please help me. My device is D838. I installed the "Future_V3.1_Lollipop".
How can'i revert back to STOCK D838 ?
I have D838.tot but when I try to flash it back, there is a many error messages.
I edited the build.prop to correct anything in it.
KDZ not work, only hope is the TOT method.
Please help me !
THX !!
Click to expand...
Click to collapse
Are you using the correct DLL file?
Try this DLL file: http://forum.xda-developers.com/showpost.php?p=58628114&postcount=32
This is for 32GB phone.
Your tot file is original D838 or modified from F350?
Maybe you want to try this to file, it's from TW 10D 32GB
http://forum.xda-developers.com/showpost.php?p=58628087&postcount=31
Then just follow the steps from the guide on 1st post
http://www.lg-phones.org/how-to-flash-lg-g-pro-2-with-a-tot-firmware.html
I did mine with both these files and that guide, flashed without problem.
amir. said:
Here is some guide as i faced problem to go back once from future 3.0 and the other time i installed drake v1 and it changed to d838 so when i tried to install tot it gave me error like crossDL so i figured it out after alot of search how to go back to my stock and now want to share with you people. It my own effort so if you find out helpful then plz appreciate.. thanks.
Steps to follow:
1. Download Winhex software: https://mega.co.nz/#!IUFnRRBb!JlQpWk_PiQ5NIpE2Pc7y7ovRuv3Fx-slT0A3W7ARpMc
2. Extract it and open it and there will be folder inside winhex. its pre-installed app so you don't need to install it just open folder and run the application and it give some message that you can not save larger file with evaluation version.. just open and click on help and then register option then a dialogue box will be opened and past the key you will find in the main folder text file named with "key". it will be registered version now you can open your tot file and edit it.
3. Open your tot file and click on edit and then on find then search for word "F350" and you will be there. Just change the last word with "L". if you have F350K than K with L and if you have F350S then S with L. if you want to go back from future 3.0 rom and change whole letter with "D838" and remove last digit by putting 00 on left column. you can see the pics for guide.
4. Now save the file and with this file flash your lg g pro 2 and for that i m sure you guys already have guide to flash tot file otherwise you can search for it..
Guide for flashing through tot and dll file:
http://www.lg-phones.org/how-to-flash-lg-g-pro-2-with-a-tot-firmware.html
Note: I am not responsible for any damage do it at your own risk..
Click to expand...
Click to collapse
I was on Drake v1 and i flashed 4.4 rom after that phone is giving security error at boot. I downloaded tot and dll for my ph (F350s) and following your above mentioned post i edited F350s to D838 but still i am getting cross dl error. Any help pl?
Ahmed Xperia p said:
I was on Drake v1 and i flashed 4.4 rom after that phone is giving security error at boot. I downloaded tot and dll for my ph (F350s) and following your above mentioned post i edited F350s to D838 but still i am getting cross dl error. Any help pl?
Click to expand...
Click to collapse
Did u delete "S" from F350S??
amir. said:
Did u delete "S" from F350S??
Click to expand...
Click to collapse
yes id deleted S by putting 00 on left column
Should i use dll file for D838?
Ahmed Xperia p said:
yes id deleted S by putting 00 on left column
Should i use dll file for D838?
Click to expand...
Click to collapse
yes.. u should use dll for d838.. once i faced that..
amir. said:
yes.. u should use dll for d838.. once i faced that..
Click to expand...
Click to collapse
i have downloaded dll for 8d38 but not sure it's for 16 g or 32 g. Will it make any difference? If possible send me dll you flashed. Thanks
Update: Tried using D838 Dll but same error
PS: I am on windows 8.1 if this makes difference
---------- Post added at 11:27 AM ---------- Previous post was at 11:12 AM ----------
DL upgrade or Board Dl
I figured out there are these options on lg flashtool. By default upgrade dl is selected. Do i need to select board dl?
Ahmed Xperia p said:
i have downloaded dll for 8d38 but not sure it's for 16 g or 32 g. Will it make any difference? If possible send me dll you flashed. Thanks
Update: Tried using D838 Dll but same error
PS: I am on windows 8.1 if this makes difference
---------- Post added at 11:27 AM ---------- Previous post was at 11:12 AM ----------
DL upgrade or Board Dl
I figured out there are these options on lg flashtool. By default upgrade dl is selected. Do i need to select board dl?
Click to expand...
Click to collapse
bro i m using windows 7 and i m not sure if that is the case.. anyhow i am attaching dll file..
amir. said:
bro i m using windows 7 and i m not sure if that is the case.. anyhow i am attaching dll file..
Click to expand...
Click to collapse
Didint get dll file bro
Ahmed Xperia p said:
Didint get dll file bro
Click to expand...
Click to collapse
I guess this time I have attached it..
amir. said:
I guess this time I have attached it..
Click to expand...
Click to collapse
Thanks but i solved my problem my eidting and flashing kdz
Sent from my LG-D838 using XDA Free mobile app
Ahmed Xperia p said:
Thanks but i solved my problem my eidting and flashing kdz
Sent from my LG-D838 using XDA Free mobile app
Click to expand...
Click to collapse
Good nice to hear that..

[LG-H960AY/AR] ROOT H960AY Variant Using TOT File

Recently XDA Member @tungkick posted a method to root LG-H960A
However, different variants like H960AY gave error "TOT File is Invalid".
I managed to avoid it with some Hex-editor changes:
Use at your own risk!!
Tested on my H960AY and working
Other variants like H960AR can give it a try, it might work as well - Please - tell us.
Instructions:
1. Download Fixed TOT File for H960AY - Here.
(If you have a different variant like h960AR: open a hex editor like HxD, Locate first line that has "AY" and change the letter to your own model.
This will bypass validation check of LGUP. Theres a reason for these checks, however in our case there shouldn't be changes between H960A, H960AY, H960AR etc...
2. Download LG USB Drivers - Here
3. Download LGUP - Props to @tungkick .
4. Install LGUP_Store_Frame_Ver_1_14_3.msi.
5. Install LGUP_8994_DLL_Ver_0_0_1_18.msi
6. Copy "common" folder to "C:\Program Files (x86)\LG Electronics\LGUP\model"
7.Boot V10 into Download Mode (turn off -> press volume+ -> connect usb to your PC while volume+ pressed)
8.Run LGUP --> Select your Phone --> Select bin file (The file you downloaded)
--> Choose: Upgrade (so you won't lose data).
9. Enjoy a rooted V10.
Props to xda member @tungkick , who brought you the original TOT file.
Looks good man, thank you!!
will it work on H960YK?
You should look for differences in devices(maybe different bands - in that case i don't know what will happen)
If there aren't major differences then yes, try editing the file(step 1) and flash.
The worst outcome is that you'll have to send it to repair(to flash original). Please consider before attempting.
Where do you get the exact model number? Is it from the hidden menu?
SW Version Info: H96010c-ESA-XX
Factory Version: LGH960AT-00-V10c-ESA-XX-NOV-18-2015
SW Original Version: LGH960AT-00-V10l-GLOBAL-COM-NOV-18-2015
So mine's H960AT?
Xaeons said:
So mine's H960AT?
Click to expand...
Click to collapse
I think so.
Btw, I really don't want to download another 4gb tot file, could you tell me what you changed from tungkick's tot file? From A* to AY? I can't really see what I need to change from the original tot file..
Nvm, found it. Is this correct?
Xaeons said:
Nvm, found it. Is this correct?
Click to expand...
Click to collapse
Yes. You only need to change the first occurence, it seems to statisfy the LGUP Software.
Is possible to have stock firmware of lg h960ay? Where can I find this? I don't know if this post is ok here! Help me please..thanks..sorry for my bad english
Worked on my LG-H960AY Israel 5.1.1
can you tell us what you did exactly? I have h960yk from Israel
lushmolik said:
can you tell us what you did exactly? I have h960yk from Israel
Click to expand...
Click to collapse
yeah, i followed the guide step by step without changing the file in hex editor and it worked, i also managed to root another(friends) device with this method.

			
				
Gorgemu06 said:
yeah, i followed the guide step by step without changing the file in hex editor and it worked, i also managed to root another(friends) device with this method.
Click to expand...
Click to collapse
Gorgemuo6 says he has the 960AY version. its not like 960YK even though he says he is in israel. be careful about doing the same lushmolik. I have the 960YK as well. I think it's better to wait than be sorry.
Thank you so much!! ^-^
Thank you so much!! ^-^ :laugh: YOU THE BEST!!! :good::good::good:
The flash erase all phone content??
OMG ty sooo much i love you
worked on lg v10 h960ay 5.11 israel
NOt WORK on 6.0
Gorgemu06 said:
Worked on my LG-H960AY Israel 5.1.1
Click to expand...
Click to collapse
this doesn't hurt warranty since we don't unlock bootloader, right ?

LG V10 ILAPO Infinite Loop Auto Power Off FIX!!!

Hey GUys,,,,
LG V10 ILAPO is here
LG V10 Infinite Loop Auto Power Off FIX!!!
Flash it with lg up and uppercut link is below........
<MOD EDIT - LINK REMOVED>
Anything for h962? I have bootlopp and I want to try this method (without hope obviously.....but never say never)
Has somebody tried it?
Hi guys, not work for me & with error.
Is it applied for Lollipop, MM, and Nougat
Dear Fahad!
Are the tot files for LP, MM or N version?
Guys!
This is a lie. The google drive link posted in the description of the youtube video referred in the OP contains folder names and filenames of V10 model but the TOT files contained therein are of LG G4 models. You can check yourself by searching xVLG in the TOT files using any hex editor.
And that is also why the LGUP says that its an invalid TOT file.
Kidding with us
rizkhan999 said:
Guys!
This is a lie. The google drive link posted in the description of the youtube video referred in the OP contains folder names and filenames of V10 model but the TOT files contained therein are of LG G4 models. You can check yourself by searching xVLG in the TOT files using any hex editor.
And that is also why the LGUP says that its an invalid TOT file.
Click to expand...
Click to collapse
i downloaded the file for my model (f600l) it's size 1.66MB , it contains 4 files: PrimaryGPT_0.bin , aboot.bin , abootbak.bin , BackupGPT.bin .
tried to extract them but it took 220 GB then my hdd part empty it need more space what is that even windows os don't need all this space lol
will give it a try now , as my phone bootlooping
Just asking
Does someone has their V10 already fixed via iLapo fix? If so, then let me know. Thanks!

Categories

Resources