yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] emdroidle:
The H990 single-SIM might actually be very simple with what I now know. Likely the modem would be the same as the other single-SIM models, so it would merely be one very simple modification of my approach. Only difficulty is packaging things up to the point where it is useable by non-developers (this last step is often very difficult).

I've gotten a setup where I'm not seeing the restart messages from the modem subsystem. Haven't tried it with SIMs installed yet though. If this works, I guess I'll have to acknowledge some help from the one developer. Problem is, while he/she/they have been providing some knowledge, on the flip side they've been making the LineageOS kernel tree rather more difficult to use since they've been breaking portions used by LG's stock image (not AOSP builds though).

If this works, then I'll need to package everything up for easy installation. That process is almost never easy. On a developer's machine you've made all kinds of minor tweaks you like, but those turn into assumptions in code/scripts and everything breaks when released to a broader audience.

Gah, also need to mention the current downsides. Currently there are two problems with the setup I've got at the moment.

First, the modem does crash on boot a significant portion of the time. This may be as bad as 2 out of 3 times. Once the device is past boot though things appear to be clear sailing. I hope this is acceptable for initial delivery and claiming of the bounty. As long as it never crashes after boot, this should cause minimal problems.

Second, HDMI out via DisplayPort alternate mode (aka "MyDP" and "Slimport") needs fixing. This should either respond to a fix similar to what appears to solve the modem problem, or else it may involve looking through device tree files and seeing what is different.

News on this latest approach. Sigh, another failure. Good news is we did manage to change the error message, so we've got more information about where the error is generated. Ideally I'd love to have someone able to break aboot apart and figure out what the H990DS aboot does differently.
[LG V20 Guides, News, & Discussion] umby75:
Hi, I'm sorry for my questions but on web I found here:

http://desktopsolution.org/guida-co...v20-h910-h918-ls997-us996-vs995-h990ds-h990n/

and OneClickRoot method as it has a procedure accepted by Xda

to root our H990DS.

What do you think??
[LG V20 Guides, News, & Discussion] farwish:
fake
[LG V20 Guides, News, & Discussion] Perpatoura:
$ value $

10$
[LG V20 Guides, News, & Discussion] abudgx:
The technical portion of it is the most difficult part. Isn't there anybody that can help with the installation process ?
[LG V20 Guides, News, & Discussion] roosta:
Hey guys,

I'm going to action ONE big update to the OP - I will be adding some new contributors who are pledging for a working root method for the v20 - and (if required) will be removing some. Therefore, I am reaching out to those who originally pledged. If you are still HAPPY and committed to handing out the nominated dollar amount if/when ROOT is achieved, then there is NO NEED TO REPLY OR RESPOND. Please ignore this post mention.

If however, you have changed your mind, or given up in search of a better phone or dev community that is willing to actually play around with dual SIM phones,

PLEASE REPLY HERE AND CONFIRM you are no longer interested and I will remove your pledge.

(SEE PAGE 1)

For any of those who may be wondering or even care - I've decided to try out the Huawei brand for the first time. I'm currently deciding between the Mate 9 and P10 Plus, but I'll have a FULL play around with both and will psot my findings in the respective forums. For reasons why - go back a handful of pages in this thread, I've listed some of the features and reasons I'm moving away from the v20 and the LG brand completely. They just DO NOT deserve my money and support. FYI root is working fine on both Huaweu devices!

In saying all that, THIS IS NOT AN L.G.E BASH THREAD! So unless you are responding to removing yourself from the bounty, adding to it with a pledge, or furthering the discussion for emdriodle and any other devs (regarding further workable suggestions for rooting the H990DS dual sim) - please refrain from further clogging the thread.

Cheers

RoOSTA
[LG V20 Guides, News, & Discussion] sho.mcgregor:
Count me out. I've moved onto the Xiaomi mi mix and have the s8 plus on pre order!!
[LG V20 Guides, News, & Discussion] avbeef2:
Count me out too. I've tried to hang on but really need root now so I'll be moving on to Huawei. Thanks for your efforts.
[LG V20 Guides, News, & Discussion] umby75:
$ 30AUD $ / H990DS

My phone has not arrivet yet and it's sold as "unlocked".

I asked at customer care what they meant as unlocked and they answered me that is related to unlock frequencies for worldwide use.

Do you know how will I able be to do to test the bootloader locking when the phone will arrive here?
[LG V20 Guides, News, & Discussion] coolfire000:
Count me in for AUD$ 40 (something around INR 2000) please help
[LG V20 Guides, News, & Discussion] Hamodi:
If its 990DS it is locked bootloader , no need to test it otherwise you will brick it
[LG V20 Guides, News, & Discussion] kratumay:
I'm really confused about this webpage.

http://www.androidinfotech.com/2016/12/root-lg-v20-h990ds-nougat-twrp.html

They seem to sell this very well to me, looks like the right variant too.
[LG V20 Guides, News, & Discussion] dude123188:
I just found that site too, it looks legit but I don't want to brick my phone just to see if it is.
[LG V20 Guides, News, & Discussion] me2151:
Its not legit. they literally copy and pasted the process for the H918 for every model just changing the model number. it wont work.
[LG V20 Guides, News, & Discussion] kratumay:
Yes you are right. When you click on the unlock the boatloader link it diverts to the U.S.model page.

Well, that's a disappointment :rolleyes:
[LG V20 Guides, News, & Discussion] exadeci:
On the page

Like the link says USA and when you get there the bootloader unlock procedure tells you to go on the LG official website which doesn't let you unlock your 990DS

All this works for a non DS.

This website seems to be just be someone stealing XDA work to get ads views and copy pastes the same tutorial for all models of a phone.
[LG V20 Guides, News, & Discussion] emdroidle:
I'm actually glad to read the reports of people dropping out of this bounty, since it allows us to keep track of the bounty and not be surprised if it gets accomplished and then you don't pay.

I'm not giving up, but at this point we really need someone with the skills of reverse-engineering the H990DS aboot so we can fully initialize the modem to the original state it is supposed to be in. I don't have a good enough feel for the ARM instruction set to be likely to accomplish this in a reasonable timeframe. The non-zero portion of aboot is barely over one megabyte, so it isn't all that large. Simply need to isolate the modem initialization and then turn that into a blob which can be prefixed onto a kernel.

Major concern is how restricted the processor state is after aboot has run. Might be impossible to get back to that state to reinitialize the modem. :(

In other news several US states are trying to put in "Right to Repair" laws, which could have the effect of forcing manufacturers to unlock bootloaders. Problem is whether those laws will actually be written in a way which forces that.
[LG V20 Guides, News, & Discussion] all2i:
U cant blame people for dropping out , u re working for about 4 monthes and its looks like its really hard phone to unlock.

add me to the bounty for 40$ USD
[LG V20 Guides, News, & Discussion] farwish:
he didnot blame, he did his best,
[LG V20 Guides, News, & Discussion] tickertapes:
Do you know if it's possible to load other regional versions of the H990DS. Mine is Taiwan and I want VOLTE support. The Philippines version supports this.

https://lg-firmwares.com/lg-h990ds-firmwares/

Regards,

Paul.
[LG V20 Guides, News, & Discussion] halfnhalf71:
I'll pledge AU$20 for the H990DS

Glen
[LG V20 Guides, News, & Discussion] exadeci:
You read that wrong, he says he's glad that users post to say they are not interested anymore, this way when he'll be claiming the bounty he won't be disappointed by a lower total.

[MENTION=6984210]emdroidle[/MENTION] Have you used: http://newandroidbook.com/AIvI-M-RL1.pdf
[LG V20 Guides, News, & Discussion] alandaleb:
count me in for 50$

Thanks for the hard work you are doing guys :good:
[LG V20 Guides, News, & Discussion] Pierre118:
This is a topic about bounty for root. Topics about your question are easy to find.
[LG V20 Guides, News, & Discussion] allyrocky:
I would like to Pledge USD 10 for this cause.

Also anyway to see if H990DS has hidden bands and unlock it ? I'm interested in Band 66
[LG V20 Guides, News, & Discussion] Pierre118:
Count me in for $20 US dollar
[LG V20 Guides, News, & Discussion] hykhleif:
i think what should be done is a youtube petition and then send to lg

that petition have contact details of lg v20 owners that have locked bootloaders

i think then lg will react
[LG V20 Guides, News, & Discussion] limsy:
Is this legit?

https://www.oneclickroot.com/lg/lg-v20-h990ds/
[LG V20 Guides, News, & Discussion] me2151:
No.
[LG V20 Guides, News, & Discussion] Prowler_gr:
Check for yourself

https://www.oneclickroot.com/rootable/

If you run their "Check root availabilty" wizard it says H990 not supported yet...
[LG V20 Guides, News, & Discussion] allyrocky:
Maybe bring attention of popular youtube channels like pocketnow etc $2000 is an impressive bounty so it might attract coverage from these YouTube channels
[LG V20 Guides, News, & Discussion] exadeci:
Here goes nothing something https://twitter.com/exadeci/status/858837525611270144 let's see if we can make some noise about it.
[LG V20 Guides, News, & Discussion] RdT21:
Hope it does the trick. Good job!
[LG V20 Guides, News, & Discussion] farwish:
nothing gonna happen, i think
[LG V20 Guides, News, & Discussion] tickertapes:
Is there anyone on here with a DS they can lend to me, sell me cheap or has a bricked device. I was talking to our sw engineer today and I'm quite confident he can pull it off. He's so experienced as he writes code all day long 5 days a week.

Anyone at all?
[LG V20 Guides, News, & Discussion] dbo989:
Pledge

I pledge $100 USD for full functionality rooted phone method.

When the pledge is called, please notify me as I do not check the forum often.
[LG V20 Guides, News, & Discussion] eladeb:
Iv decided to ditch the 990h ss.

Its a pretty nice phone.with no root!

Bummer... [MENTION=3009077]emDroid[/MENTION] good work you did there body.

Good luck....
[LG V20 Guides, News, & Discussion] Moe5508:
Sadly same here and I have to say bye to the V20 Single SIM...6 months on, not much mention of root for the variant and still no root...hats off to the hard work the Devs here have put in but I missed root sooo much and have jumped to the S8+ and am already rocking a custom ROM with Majisk root.

All the best guys.
[LG V20 Guides, News, & Discussion] MR.EXCEPTIONAL:
Is this work?

http://www.androidinfotech.com/2016/12/root-lg-v20-h990ds-nougat-twrp.html

https://www.oneclickroot.com/lg/lg-v20-h990ds/
[LG V20 Guides, News, & Discussion] exadeci:
It has been asked tens of times already and do you think that if rooting/unlocking the bootloader was a quick google search we would be pledging $2000 for it?
[LG V20 Guides, News, & Discussion] rubiicon59:
Hehe
[LG V20 Guides, News, & Discussion] me7tarfeek:
I'm in for 50USD for the H990DS
[LG V20 Guides, News, & Discussion] InsertDumbNick:
I'm in for $30 SGD for the H990DS
[LG V20 Guides, News, & Discussion] Akhayev:
edit
[LG V20 Guides, News, & Discussion] roosta:
Delete please
[LG V20 Guides, News, & Discussion] mahdibassam:
edit
[LG V20 Guides, News, & Discussion] bajasur:
To all in this thread, please abide by the following rules:

Only post the amount you are willing to donate to the Developer who will root and unlock this device.

Anymore off topic posts will result in the thread being closed and bounty being done.

Please only post your donation amount and specifics.
[LG V20 Guides, News, & Discussion] capfirepants:
Also in for 40$
[LG V20 Guides, News, & Discussion] elliwigy:
edited lol
[LG V20 Guides, News, & Discussion] avbeef2:
Desperate for TWRP and Root on the H990DS so in for $100 USD
[LG V20 Guides, News, & Discussion] jdmsohc22:
I as well have $20usd for the VS990 VZW root/unlock/twrp.
[LG V20 Guides, News, & Discussion] elliwigy:
lmao.. you know the h990ds is a lg v20 right? not verizon and not the v10.. youre pledging in the wrong thread haha check out the vzw v10 forum
[LG V20 Guides, News, & Discussion] me7tarfeek:
It is getting interesting...

I decided to add another 50USD.... So it will be 100USD in total.
[LG V20 Guides, News, & Discussion] jdmsohc22:
I don't have a V10, I have an LG V20..
[LG V20 Guides, News, & Discussion] MartianNinja:
I'm planning on buying this phone but no root is a deal breaker. I would pledge 50 AUD for the phone (h990ds) to be rooted
[LG V20 Guides, News, & Discussion] elliwigy:
bro, you said vs990, thats the model for an LG V10 with Verizon.. theVZW model is a VS995, and still the wrong thread.. theres abounty thread for sprint/att/verizon, not this thread
[LG V20 Guides, News, & Discussion] jdmsohc22:
Damn bro, I can't believe I was off by one whole fkn number on my two day old phone, what an idiot I am.. You should def send me your paypal so I can send you something nice for helping me out, I can't believe how screwed up I got that entire one digit on that model number.. We're so thankful for people like you, I mean seriously, what would we do without you bro..?!?!?
[LG V20 Guides, News, & Discussion] elliwigy:
lol not sure if thats sarcasm or realism lol.. just sayin, you need to put your bounty in the right thread so it goes towards your actual device.. the other bounty is higher and bunch of us currently working on it..

hopefully a method will work on all v20 models but at this time theres separate bounty threads.
[LG V20 Guides, News, & Discussion] Singularity_iOS:
Hell yes, I don't want my phone to be the 'odd model out' (H990DS) I'll pledge $25-$40 AUD

Aaannnd subscribed.
[LG V20 Guides, News, & Discussion] ipsuvedi:
+1+1+1
[LG V20 Guides, News, & Discussion] darkstorm99:
$30 AUD pledge from me
[LG V20 Guides, News, & Discussion] brunochka:
Pledge

I pledge Euro 30 for full functionality rooted phone method.

When the pledge is called, please notify me as I do not check the forum often.
[LG V20 Guides, News, & Discussion] ghostrider08:
Pledge

I pledge $30 USD for full functionality rooted phone method.

When the pledge is called, please notify me as I do not check the forum often.
[LG V20 Guides, News, & Discussion] all2i:
count my 40USD off . I just got s8 and its rooted.

thanks for trying
[LG V20 Guides, News, & Discussion] SAO:
I'm also out [MENTION=3102329]roosta[/MENTION]
[LG V20 Guides, News, & Discussion] eagleeyetom:
[MENTION=3102329]roosta[/MENTION] I had to split the OP into 3 posts, as the number of mentions caused a massive database usage. As a result, the site crapped out and gave error 502.

Everything should be fine now, but you need to restore/change the formatting.

I strongly suggest not to use more than 20 mentions in one posts, as the situation might occur again. I have added two extra posts for your convenience. Please let me know if you need more.

Also good luck with root :good:
[LG V20 Guides, News, & Discussion] eladeb:
Next time response 301 to HP.
[LG V20 Guides, News, & Discussion] Misutsu:
I just sold My LG V20, so i quit

Thanks for your help anyway !
[LG V20 Guides, News, & Discussion] lucfig:
Has anyone received an actual answer from LG support regarding the bootloader unlock tool? I tried several times and they gave me the following answers:

1) Issue escalated to the responsible dept which will contact me soo. (They never reached me back)

2) Call my local support. (Obviously this do not help)

3) Visit their service center. (Once again, not helpful at all)

8 have tagged all the replies as very dissatisfied.

I think if we put some pressure on their support, they might consider.
[LG V20 Guides, News, & Discussion] roosta:
I thought the last 30 pages it had been clearly established they truly, genuinely and honestly...give a sh*t about H990DS (worldwide v20 users outside US). Give up hope and switch to a phone you can root if this is what you're after.

What does this mean?

RoOSTA
[LG V20 Guides, News, & Discussion] invertedskull:
Hey, thanks for keeping this thread alive. I'm still using my V20 (H990DS), and would LOVE to gain root access on it. I see a few people have dropped off or bailed from the pledge, but if this pledge leads to the root access I am still coughing up the moola I've vowed to.
[LG V20 Guides, News, & Discussion] farwish:
your tooth lol
[LG V20 Guides, News, & Discussion] thubble:
I took a look at the H990DS and debug aboot's in Ida. One notable difference is that the H990DS one writes some configuration data into the shared memory (smem) such as the model name and "nt code". Have you looked into this at all? It would probably fix that "modem subsystem reset" error you were having a while ago, but you mentioned you fixed that. I can post details if you want, I haven't completely figured out the data structure it writes, but fairly close. I'll keep looking at the aboot's, there may be other differences.
[LG V20 Guides, News, & Discussion] rubiicon59:
[MENTION=6984210]emdroidle[/MENTION]

[MENTION=3061906]thubble[/MENTION]

I understand very little of your posts.

But man I wish you luck!!!

Or maybe the relevant powers at LG will quit being nobs and give us bootloader unlock.
[LG V20 Guides, News, & Discussion] thubble:
[MENTION=6984210]emdroidle[/MENTION]

I figured I might as well post what I found out so far. It looks like the bootloader adds an smem "SMEM_ID_VENDOR0" section with custom data which the modem code then uses.

It may be possible to use the smem framework in the kernel. In theory, as long as this is run before the attempt to bring the modem up, it should work. I'm assuming (hoping) this is true, and that the memory is writable.

This is sort-of pseudocode (e.g. I'm not sure if the kernel uses strcpy or anything) but it should be largely complete. "smem_find" is used elsewhere in the msm8996 lineage kernel.

struct lg_vendor0_smem_data
{
int boot_vadc_revid;
char qcom_model[10];
char nt_code[2048];
char lg_model_name[22];
int sim_num;
int flag_gpio;
};

void populate_modem_smem_data()
{
struct lg_vendor0_smem_data* data = smem_find(SMEM_ID_VENDOR0, sizeof(struct lg_vendor0_smem_data), 0, SMEM_ANY_HOST_FLAG);

// this is from my H990ds, not sure if it's the same for every one. Haven't figured out how the bootloader determines it.
strcpy(&data->nt_code[0], "\"1\",\"FFF,FFF,FFFFFFFF,FFFFFFFF,56\"");
// "LG-H990N", etc. might work too
strcpy(&data->lg_model_name[0], "LG-H990ds");
data->sim_num = 2;
data->flag_gpio = 1; // ??? haven't figured out exactly how the bootloader determines this, but it is only ever set to 0 or 1.
}

If this doesn't work, it might still be possible to manually find the entry (the smem entry point is 0x86000000) and put it in a code section at the beginning of the kernel.

I hope this helps. I have a 990ds but I'm not yet willing to sacrifice it to test this. :)
[LG V20 Guides, News, & Discussion] carpler:
I have expressed my opinion some time ago, but I try to say again what I think.

I'm interested not only in root, but also that someone can porting the Lineage OS on H990DS (also H990N, because here in Italy this two are the most popular models).

Since emdroidle has explicitly written that he needs help, in my opinion it would be necessary:

1) find a developer known for his skills and ask him if he is available to collaborate

2) use part of this bounty to buy and send to him a H990DS

I don't know if this bounty is still over $2000, but we can buy a new H990DS for little more than 360€ (see here, for example: they ship from Honk Kong I think).

For the purchase I'm ready to immediately send 15 € to the person who deals with the purchase of the mobile phone.

I think it's not a problem to reach this intermediate goal...

Unfortunately I do not know any developers to ask for. Do you have any suggestions?
[LG V20 Guides, News, & Discussion] tickertapes:
As I have already said, I have a man who thinks he can crack the 990DS but he does not have a phone. I need to borrow one or buy one cheap.
[LG V20 Guides, News, & Discussion] carpler:
Yes, I read your post.

But let me say: I think it's better to pay a developer known for his skills and known in the scene. Is your man one of these?
[LG V20 Guides, News, & Discussion] tickertapes:
No, he's not well known on here, all I can tell you is that he has a degree in computer science, writes kernels every week, fluent in java, python, C, HTML, QNX, Linux, android etc. I'm wondering about taking a punt and buying him a phone and splitting the bounty with emdroidle, Graham keeps the phone as a reward.
[LG V20 Guides, News, & Discussion] rubiicon59:
[MENTION=7326679]tickertapes[/MENTION]

That sounds good to me. And right now it looks the only viable option for root.

I'll chip in some cash once a developer / cracker together with a way of obtaining root have been confirmed.

*Note* to any LG employee reading this thread: sort out the ridiculous position you have put us in. We own these phones so let us do whatever we wish. Give us the bootloader unlock option. Thanks.
[LG V20 Guides, News, & Discussion] invertedskull:
This sounds somewhat promising, but I think since it deviates from the original pledge mission, everyone who has pledged should agree to it first?
[LG V20 Guides, News, & Discussion] emdroidle:
This seems rather simpler than I was expecting, so at the moment I'm skeptical, but I'll try looking at this as soon as I can. The bad news is I'm going to be away from my desktop for a week and a half so "as soon as I can" is going to be that long. :(

Any kernel is going to have an implementation of a fair bit of libc's API. Linux has implementations of most of the str*() functions, including both strcpy() and strlcpy(), even strchr() and strchrnul(). I think FreeBSD may have them as kstrcpy(), but they get used too much to not have them available.

Due to the availability of KDZ files for the H990DS you can break many things on the phone, but still have a rescue line. Just need to avoid touching "laf" where download mode is implemented and you've got a pretty good backup. The one problem is download mode with the DirtySanta bootloader may want a US996 KDZ, so reverting may first require returning the bootloader to stock.

My efforts go a long way towards this goal. I've been generating kernels based on LineageOS's source tree, because otherwise the H990DS has a rather more serious "static screen" issue than the other V20 variants (I wasn't able to make it go away by covering the proximity sensor). One problem is the LineageOS developers for the V20 have been making changes desirable for LineageOS, but outright harmful to other uses. Their source is going to need some fixes for the H990DS.