yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] emdroidle:
One portion will certainly need a bit of adjustment, but most likely it will only need a tiny bit of tweaking and then it should work.

I'm pretty sure it could have been done much faster by people with the right experience. I know what others can do and so I don't consider this particularly amazing.

Since it is close enough, is there anyone interested in testing a setup which has known to have broken Bluetooth and hasn't even been confirmed to connect to a cell network single-SIM? This is very early stage and breakage is likely, having a fallback phone is important! Do have a fast revert to stock method, but this is still "seat of the pants".
[LG V20 Guides, News, & Discussion] exadeci:
I'm super keen on trying and if you plan on continuing development give me your PayPal or something and I'll send you my bounty.

If you don't plan on improving it I'd like the bluetooth to work first and that you release all you know and I'll send you the money.
[LG V20 Guides, News, & Discussion] capfirepants:
I don't have the phone yet (waiting for the root method, I don't want a phone that can't be rooted) but i'll be buying it in this case. Do you think you can make the root method available some time this week?
[LG V20 Guides, News, & Discussion] roosta:
[MENTION=6984210]emdroidle[/MENTION] I'll PM you RE bounty. Congratulations on your hard work/efforts and recent breakthroughs. We are certainly all in your corner and appreciative of your commitment to this project.

Please refer to OP and check my definition of 'viable'. While I can't speak for all other pledgers, I intentionally set a definition for 'viable' as I still needed a fully functional phone with root added. I can only assume most...if not all....pledged based on the same requirement/outcome.

Just a quick note for pledgers - if and when a fully workable root method has been designed and released for the v20...If you've contributed without stipulation, you are expected to follow through! Whilst no one can force any pledgers to pay anything, I'll do my best to ensure that if and when a fully functional (viable) root process is posted and test/confirmed as working, that all those who wasted time to post in this thread and fail to contribute, that mods actually leave a lasting mark on their profile/IPs. It's unfair to those working on the project and claiming the bounty and a waste of everyones time - from the devs to my updating of this post for the benefit of others. I don't mean to single one or two people out here, but this goes for everyone.

RoOSTA
[LG V20 Guides, News, & Discussion] roosta:
XDA mods - WTF is going on with this "bad gateway" shyte when trying to mod/edit my OP???
[LG V20 Guides, News, & Discussion] emdroidle:
Yup, this does not surprise me. I figured I would ask since Bluetooth isn't very valuable to many (I prefer wired headphones since that means one less battery to charge).

The other benefit was if this was sufficient, I'd release source for everything and someone might have a really quick fix for the Bluetooth issue. So, still need get Bluetooth working and this is a maze of lots of source files.

Then I get the tasks of writing directions, finding somewhere to upload all the files, also needing to create myself on Paypal (it is possible to avoid!).
[LG V20 Guides, News, & Discussion] Matt07211:
Just got a question cause I'm interested :)

If I remember correctly you are more or less using the method that dirty Santa uses to flash debug aboot, meaning you are really just working with the kernel sources to get everything working correctly.

If that's (above geuss) is correct you can just diff the sources (untouched stock kernel dofded against your modified one) and create a patch fule allowing developers to easily apply to kernel. Or is there other files involved.

Basically​ I want to know how you gonna make it easily accessible for both developers and end users.
[LG V20 Guides, News, & Discussion] emdroidle:
I suppose that could be done. I was planning for source code to be on GitHub. I'm basing off of the LineageOS tree, which is much closer to the Qualcomm upstream sources (and appears to have a better display driver). Trick is their goal is LineageOS, not stock so they've got a different Bluetooth driver. I'm trying to figure out which files I need from LGE's source to match the stock firmware. Reputedly LineageOS and AOSP are using a different Bluetooth stack, which makes this tricky. Good news is this means LineageOS should be available for the H990DS pretty quickly.
[LG V20 Guides, News, & Discussion] Matt07211:
Cool, I think adding a patch file would be nice because after a while trying to find the specific needed commits to apply to stock from the LineageOS commit history can become tedious
[LG V20 Guides, News, & Discussion] ldevilacl:
pledge USD $128

I will also officially pledge $128 AUD for the H990DS model.
[LG V20 Guides, News, & Discussion] BRPW_:
If the H990DS is rooted, will the same root work for the H990N?
[LG V20 Guides, News, & Discussion] farwish:
Same question, thanks
[LG V20 Guides, News, & Discussion] emdroidle:
Most likely no, but it likely won't need all that much adjustment. For one I've been led to suspect the H990N has a different 802.11 chip, as such that will need an adjustment. There could well be other hardware differences, but hopefully the changes would be small.

Okay, I'd been waiting to do some portions of testing until things were further along. Finally decided it was time to do some of that testing... :eek: Oy vey, really did need that testing, since actual testing demonstrates lots more things are currently non-functional.

I was hopeful the phone portion of things was operational since the dialer was showing dual-SIM and while I was seeing some problems on boot, it was only sometimes. Upon trying with an actual SIM in place (generally they remain in working phones), pretty clearly things are not okay, neither slot was successfully detecting a SIM. Apparently I figured out how to tell the programs in the OS that it was dual-SIM, but some portion of behind the scenes stuff isn't working.

So, I'm not quite as far along as I thought I was. Ugh. Certainly not planning to give up, but this is still going to take a while. On the flip side, I've definitely got root.
[LG V20 Guides, News, & Discussion] eladeb:
can we try it on the H990 single?
[LG V20 Guides, News, & Discussion] Hamodi:
Actually yes you can .

I should had been tried it by now but i have been busy with work i only can try it by Saturday .
[LG V20 Guides, News, & Discussion] scottie720:
Is there root or mo? Just want an adblocker lol
[LG V20 Guides, News, & Discussion] me2151:
990 single doesnt work. Dont bother.
[LG V20 Guides, News, & Discussion] eladeb:
And why is that?
[LG V20 Guides, News, & Discussion] capfirepants:
Different modem. This was already stated a few times
[LG V20 Guides, News, & Discussion] Hamodi:
It requires some adjustment on software and it should work with [MENTION=6984210]emdroidle[/MENTION] root method. Need to be tested tho
[LG V20 Guides, News, & Discussion] me2151:
This is correct.
[LG V20 Guides, News, & Discussion] eladeb:
[MENTION=4008040]Hamodi[/MENTION]

Any update?
[LG V20 Guides, News, & Discussion] Hamodi:
wait until [MENTION=6984210]emdroidle[/MENTION] is online , some download links not working .

still early morning on USA so it will be later on tonight ;)
[LG V20 Guides, News, & Discussion] ronaldp31:
When the root method offcial launch for h990ds [MENTION=6984210]emdroidle[/MENTION]
[LG V20 Guides, News, & Discussion] mix1987:
Cant seem to find a minimum eligible pledge sum. I officially pledge $20 SGD. Hope my little contribution helps.
[LG V20 Guides, News, & Discussion] scottie720:
So there will b root for h990ds today?:)
[LG V20 Guides, News, & Discussion] eladeb:
[MENTION=4008040]Hamodi[/MENTION]

Np...i guess your the only one ? with single willing to test these root method.

Thanks!!!!!
[LG V20 Guides, News, & Discussion] scottie720:
Will there b public release :)
[LG V20 Guides, News, & Discussion] me2151:
Eventually
[LG V20 Guides, News, & Discussion] capfirepants:
Also interested in the public release. Im getting the phone on Monday and would like to root it from the Start if possible...
[LG V20 Guides, News, & Discussion] Hamodi:
Seriously?? Is it comming ?
[LG V20 Guides, News, & Discussion] me2151:
Eventually. He wants to fix all the issues first. Probably not soon.
[LG V20 Guides, News, & Discussion] galaxy2055:
Am i dreaming?? .

I am waiting from long time for the root please make it possible the only thing that i hate about my phone the support
[LG V20 Guides, News, & Discussion] emdroidle:
This sums the situation up. If root is such a high priority for you that you want to have a phone which doesn't make phone calls, I can give that to you today. If being able to make phone calls is a priority then it is going to take a while. :( Camera and 802.11 are known to work, but most other things are either unconfirmed (IR is untested, but simple enough that it will likely work) or known broken at the moment.

I do keep getting this feeling there is a simpler approach, but I haven't generated one yet. I'm also seeing moves by developers on the LineageOS side which tend to make their kernel source rather less useful for anything besides LineageOS. :(
[LG V20 Guides, News, & Discussion] capfirepants:
[MENTION=6984210]emdroidle[/MENTION] I'm ready to pay you the bounty if you release the root method now and continue to work on it. With this I hope that more people can do work on fixing the problems so that we have root sooner.
[LG V20 Guides, News, & Discussion] franksmj:
Let [MENTION=6984210]emdroidle[/MENTION] to work on his own way.... We appreaciate your work sir... Thank you for working on lg v20 root....

We are happy to wait and we respect your work and precious time... Thank you...
[LG V20 Guides, News, & Discussion] reaktor TuT:
Here Here!

emdroidle will release root when he is happy with the results. Otherwise there will be a hundred people hounding him about this & that. We have waited this long, we can wait a little longer.

For those needing an adblocker I suggest Power Browser from the play store. Does a fantastic job of blocking 98% of ads. At least we can be ad-free until root comes our way.
[LG V20 Guides, News, & Discussion] emdroidle:
Hmm, means I need to start investing more time into packaging it appropriately for end-users. Right now a key step for getting Bluetooth operational means a small modification to /system and while I know the commands, I need to package that into a TWRP .zip file. Are you okay with the inability to connect to the phone network? This means no phone calls and no data currently. This will also be a very early release and rather unfriendly.

For people wanting root for a variant other than the H990DS. I'll need information from 2 commands run on the phone:

adb shell getprop ro.product.name
adb shell cat /sys/firmware/devicetree/base/chosen/bootargs

Of these three, do not post the entirety of the second! I strongly suggest you filter the value of the "androidboot.serialno" value. I need the model name prefix of that value, not the entire value. I'm guessing it will be "LGH990" for both the single-SIM H990 and dual-SIM H990N, but I do not know this for certain. Both of these are effected by installing the debug bootloader and need a bit of trickery to "correct" them back to their original values. I'd post something like:

Okay I've gotten Bluetooth working. I really don't like what I had to do to make it work, but it is working. Now I'm fighting the modem/phone portion and it isn't being too helpful. Apparently I've managed to cause an error message which even a LineageOS kernel developer had never seen before. At the moment I've got two thoughts on how to fix and will be pursuing them. Hopefully I don't end up sitting here puzzled as to what to try next. There could be other issues after the modem is fixed, but given how much is working now I'm cautiously optimistic.
[LG V20 Guides, News, & Discussion] exadeci:
Looks like a CAF browser that some dev themed and is selling you, I prefer this open source version https://play.google.com/store/apps/details?id=net.scweeny.CS.browser.dev

[MENTION=6984210]emdroidle[/MENTION]

elsa_global_com

sched_enable_hmp=1 sched_enable_power_aware=1 console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 user_debug=31 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=32M@0-0xffffffff androidboot.hardware=elsa lge.rev=rev_10 model.name=LG-H990ds lge.sim_num=2 lge.dsds=dsds lge.bootreason=0xe6edf6bd cc_mode=0 kswitch lge.bootreasoncode=0xe6edf6bd bootcable.type=NO_INIT lge.battid=SW3800_VC1 androidboot.bl_unlock_complete=false androidboot.dlcomplete=0 androidboot.ddr_size=4294967296 androidboot.ddr_info=0x1 lge.crash_handler=off lge.hreset=off boot_cpus=0-3 androidboot.revision=12 androidboot.verifiedbootstate=green androidboot.veritymode=enforcing androidboot.rpmb_state=1 androidboot.bootdevice=624000.ufshc androidboot.serialno=LGH990******* gpt androidboot.authorized_kernel=true lge.signed_image=true androidboot.baseband=msm mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_sw49407_dsc_qhd_video:config1:1:none:cfg:single_dsi
[LG V20 Guides, News, & Discussion] roosta:
Sadly, I don't see any attractive phones that compete with the v20 features.

Features that are removed and lack any legitimate reasoning for being dropped these days:

* FM radio (despite most phones having the chipset, they choose to disable it)

* Infrared (IR) blaster

* LED Notification light that can actually CHANGE COLOURS w/ root and app.

* Wireless charging (seems to be region specific on some new phones; or capable but not delivered (such as the v20)

* DUAL SIM capability

* NFC capable

* Relatively new CPU and at leas 4GB RAM

Why are ALL brands (Yes ALL, not most) completely coming away from these features? I can do without the FM radio now...but not the rest. How many are sticking with the v20?

RoOSTA
[LG V20 Guides, News, & Discussion] emdroidle:
Let us not forget: removable battery.

Lithium-ion batteries to expire after a while, so being able to replace the battery allows you to stick with a phone for longer, yet now non-replaceable batteries are becoming standard. :(

Most of the features on your list are available individually, but rarely all together. IR and NFC are a pretty uncommon mix. The big deal is the V20 has an IR receiver in addition to the IR transmission, those were never easy to find. Alas, LGE's engineers created an API that is only suitable for copying remote control commands and cannot be used for interacting with IrDA devices, but that can be solved with the right software modifications.

Dual-SIM is quite common; however, dual-SIM without the "shared" SD card slot is somewhat uncommon.

Great combination of features that are hard to find together.

Still in a mode of fighting the modem. I've hit a major wall here and am right now low on ideas for solving it. :(
[LG V20 Guides, News, & Discussion] Matt07211:
Tell us what it is, maybe some of us can help with the problem. A different perspective can help
[LG V20 Guides, News, & Discussion] elliwigy:
I agree with matts comment here.. it took quite a few ppl brainstorming over weeks and weeks before dirty santa.. although there was a few main ppl that made it happen i am sure the brainstorming helped more than anything..

if u dont habe one already i suggest a google hangouts with ppl willing and have the know how to brainstorm ideas
[LG V20 Guides, News, & Discussion] Matt07211:
Maybe run something self hosted or use a service that required less info, or provides less info to others.

I highly doubt it's caused by aboot, aboot is the first thing in the chain of trust that we as a user, are able to interact with and disable signature checking on, in unlockable phones (In our case replace the stock one with debug, still verified and signed by manufacture, but signature checking disabled by default ). As seen here (http://newandroidbook.com/Articles/aboot.html), aboot starts stuff like stack, heap, timer (and a few other misc things) and bootstrap2. Bootstrap2 does a couple of things, one of them is booting Recovery/Fastboot/or what's ever is on the Flash/MMC partition (boot.img I believe), the other two tasks of bootstrap2 I don't really know, so it might control/handle the modem part, but I highly doubt it.

So I'd say it would be 5% chance of it being aboot.

About your theory, why would it be harder (keep in mind I haven't played with that part of the Android system before) to modify? Do the values get reset at boot (Put a Script in the ramdisk)? Are the values region specific (Compile a list of the values then)?

I haven't played with that area of Android so I am shooting in the dark.

Grab a log when you flash back to stock. If it works, them we can see how it differs, and try to apply what it does. Haveing a log would allow us to compare and pinpoint the problem much easier.

This is all typed out really fast, so it might have typos or might not even make sense, if so please ignore those parts and carry on with your life. :)
[LG V20 Guides, News, & Discussion] roosta:
Keep up the work guys.

Just on a quick side note - for those who are 'childishly impatient' for root on a 6 month old v20 phone and are looking for alternatives; I finally have a fantastic and viable suggestion - although this time, I'll

wait

til root is officially confirmed - introducing the Huawei P10 Plus!

http://pdadb.net/index.php?m=device...standard_edition_dual_sim_td-lte_vky-l29_64gb

- Like the v20 - Comes in dual SIM

- Like the v20 - Supports* B28 700Mhz (good for us Aussies on 4GX *waiting on official confirmation!*)

- Like the v20 - Comes with 5.5" IPS, 2K screen (much smaller/more comfortable body)

- Like the v20 - Has NFC

- Like the v20 - Has IR / infrared as well as sensor to LEARN IR remotes too

UNLIKE the v20 - *DOES* have notification light

UNLIKE the v20 - *DOES* have a much better battery life (3750mAh) - but it's built-in though

UNLIKE the v20 - *DOES* have MIMO dual antennas for BETTER coverage/download speeds

UNLIKE the v20 - MicroSD slot is taken up by 2nd SIM :( (Get 128G/6G version if this bothers you)

UNLIKE the v20 - Fingerprint sensor is placed on the front, which is a step back in my eyes...

UNLIKE the v20 - doesn't have a battery-chewing 2nd screen

UNLIKE the v20 - doesn't have FM radio

UNLIKE the v20 - doesn't have Quad DAC. I've never heard the benefits of such a feature, really...

My thread in P10 Plus thread:

https://xdaforums.com/p10-plus/how-...lus-lg-v20-t3574944/post71479948#post71479948

P10 Plus Support page:

http://consumer.huawei.com/en/support/mobile-phones/huaweip10plus-en-sup.htm

P10 Plus can be bootloader unlocked for free and rooted - but its not proper system-access root. So, stil waiting there.

RoOSTA
[LG V20 Guides, News, & Discussion] exadeci:
[MENTION=3102329]roosta[/MENTION] I'm not sure of why you bought the V20 if the second screen wasn't a feature that you wanted.

I happy for you that you found a replacement for it even tough IMO the S8 that will be released in about a month would be a better replacement.

Could we stay on the topic? So so long, and thanks for the thread!
[LG V20 Guides, News, & Discussion] emdroidle:
So it has an IR LED, does it also have an IR sensor? (allows copying existing remote controls, or potentially talking to devices which support IrDA) Appears most of the versions of the V20 include support for 2x2 MIMO, only the Chinese (cno_cn), Japanese (DoCoMo/KDDI) and international versions lack it. Maybe some versions of the P10 will lack support as well...

Meanwhile I shake my head at that last one. Why do various companies keep concluding it is worth it to cut off an arm to become ambidextrous? It is silly to make one choose between these two options, since you'll always want both?!

There are the IRC channels on Freenode.

I suspect you meant here (yeah, looks like a typo). You're right that aboot isn't supposed to do all that much, but the evidence pointing there is pretty simple. With the standard aboot everything works, with the debug aboot things break. Of note I tried a boot image with the original kernel and the screen was badly messed up (triggering the proximity sensor doesn't fix things, unlike other V20s) and the exact same messages were displayed in the system log (normal users can get the system log, just run `dmesg` at a shell).

Pretty simple evidence that the debug aboot is doing something differently and causing things to act differently. What was mentioned below does give me another plausible idea though.

No, it is an issue of complexity. /proc/cmdline is a single C string inside the kernel; I can very nearly modify while sleeping (2KB is the maximum size allowed). /sys/firmware is a very complex data structure, plus it is 345KB; the shear amount of data and the structure make modifications much harder.

This does actually give me an idea. There is quite a bit of system operation influenced by what is provided to the kernel (and in turn passed to userspace via /sys/firmware). I could well believe the debug aboot causes modification of /sys/firmware, which in turn breaks operation of the modem chip. As stated above though, modifying that data structure is rather more complex than modifying /proc/cmdline. Other trick is how to go about grabbing an unmodified copy of that data structure from when the non-debug aboot is in place?

Then there is the task of getting my device back to stock. I've got unmodified copies of all the data, but I'll need one new piece of software to accomplish the task.

In other news it appears LGE is not properly complying with the GPL. In order to comply they need to release the sources they used to build the kernel for the H990DS. Now, LGE has released sources reputedly used for building the H990DS kernel, but I've made an observation which indicates what they've released is not the actual source. Try running `adb shell dmesg` very near when your device boots. If you've seen Linux booting before you may have observed the line "Kernel command line: <a fair bit of data>". LGE's kernel does not produce this line, but a kernel compiled from their kernel source will produce this line.

Now, this is a tiny change, but it is a change. Dear LGE, perhaps the source you provide is close to what you use, but it isn't the actual source.
[LG V20 Guides, News, & Discussion] Matt07211:
There's that :)

Yea forgot to space my parenthesis from the URL, so the XDA Parse the URL with the parenthesis included

Can't really do much else here until your able to test with a stock aboot.

oh, as I said I hadn't touched that area of Android so was oblivious to the complexity of that task.

But if you know/can find out where it derives there data from then you could modify the origin of that data.

The bootloader already appends it's own values onto the boot.img, it might influence other areas, unknown to us.

There is various ways to grab unmodified data, just gotta be a bit creative. For example, my Samsung device wouldn't let me ADB pull the audit log (some other things wouldn't also let me grab the file) so I ran 'cat' on the file and piped the contents into a text file in data/local/tmp , all I'm saying is there is multiple ways to get around a problem, you'll just need to be creative.

So if you figure out a way to grab the data you need (but unable to go back to stock) then just get any one of the users in this thread to grab it off there stock device.
[LG V20 Guides, News, & Discussion] core720:
Sorry Link for root h990ds?
[LG V20 Guides, News, & Discussion] chacho_2me:
need to wait bro
[LG V20 Guides, News, & Discussion] eladeb:
Wow...its so frustrating an a end user to not have root.

Somtimes i feel its an iPhone de ja voo.
[LG V20 Guides, News, & Discussion] exadeci:
Haha I think you meant "Déj