yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] emdroidle:
Depending upon your wishes, you have to worry about the ability to unlock the device bootloader. Rather few LG phones get officially unlocked. Due to DirtySanta nearly all LG V20s have what amounts to an unlocked bootloader.

"If the bootloader can be unlocked fairly easily", hahaha. You can always hope, but I wouldn't be too optimistic. OTOH there are several other devices with secondary screen areas, so there could be some hope for collaboration on this project.

Certainly needs help from a few sources, since LineageOS's kernel now completely disables the "second screen". I know how to fix that, but the way it was done is really anti-social.
[LG V20 Guides, News, & Discussion] me2151:
Sneak peak. Making progress. status bar is on wrong side but working on it and before anyone says I just put the icons centered you are very wrong. there is literally nothing to the right of the clock. cant pull down the status bar there. :)
[LG V20 Guides, News, & Discussion] uppon2:
Put me down for $20
[LG V20 Guides, News, & Discussion] wuwtk:
$20 here for second screen.
[LG V20 Guides, News, & Discussion] joachim123:
I'll save $15 for this. Sign me up.
[LG V20 Guides, News, & Discussion] TheLoonyRebel:
I'm not 100% optimistic myself on the Q8 being bootloader unlockable but one never knows, right? And I fully do agree that it feels anti-social the way LineageOS is disabling the second screen. It just makes no sense to me at all why they are doing that.
[LG V20 Guides, News, & Discussion] me2151:
the reason it gets disabled is if you leave it enabled a good chunk of the status bar is covered by the camera since the phone uses that as its regular screen
[LG V20 Guides, News, & Discussion] emdroidle:
Perhaps I should have emphasized more, "the way it was done is really anti-social".

Specifically it was disabled here. Problem with this is you need to modify the source code to change this. A much better way of doing this is to add the line

#include "../../../../../../include/generated/autoconf.h"

to the top of all the arch/arm64/boot/dts/lge/msm8996-elsa_<carrier>/msm8996-elsa_<carrier>.dtsi files (as I originally did here), then you can disable the second screen like this instead.

By doing it this way if you configure the kernel with CONFIG_LGE_DISABLE_SECOND_SCREEN=n, the second screen is operational. While if you configure the kernel with CONFIG_LGE_DISABLE_SECOND_SCREEN=y, the second screen is disabled. No source code modifications needed to enable or disable it. The reasoning was obvious, but the way it was done was rather unpleasant.
[LG V20 Guides, News, & Discussion] Gabe2014:
Thanks guy's

I'm sure you'll make it work somehow

I would like to know a little more to help with this project, I'm not as smart as you guy's are
[LG V20 Guides, News, & Discussion] robtronic:
Moar

Can I stick thirty euro down on his bounty so ? Also any way I can help ? I do a bit of assembly code not sure if thats of any help ? wouldn't know where to begin with reversing a rom really tho. Is there anything in particular otherwise I could help with this interests me to no end as I like screens in particular.
[LG V20 Guides, News, & Discussion] Zacharee1:
The current strategy is building from scratch. It's an extension to the System UI package, so it's mainly Java and XML.

Reverse engineering is being avoided, because that could lead to copyright strikes.

Can I put you down for $35 (a little less than 30€), just to keep consistency?
[LG V20 Guides, News, & Discussion] askermk2000:
You can put me up for $5

I'd do more, but if this get implemented then we have 2nd screen and probably sound, but what about camera? The camera on v20 is really good, would be a shame to discard that.
[LG V20 Guides, News, & Discussion] Zacharee1:
Added you to the list.

I played around with porting the camera, but LG spread it across so many files, it'll be really hard to get running.
[LG V20 Guides, News, & Discussion] Ilxaot:
Realistically, if the second screen were to be enabled on custom ROMs, what features or usability would we see? I'm curious. It'd be cool if we could get weather applets or something stuck up there.
[LG V20 Guides, News, & Discussion] Zacharee1:
So here's the thing. Hopefully they're OK with me saying this: [MENTION=4591212]me2151[/MENTION] is currently working on something, using [MENTION=5184450]USA-RedDragon[/MENTION]'s progress. The plan is to have a few pages there by default, like the toggles, clock, signature. But hopefully, the project will be able to go beyond what LG did and provide an API for other developers to use to create their own pages.

Even if the API doesn't happen fully, I believe the end result will be open source, which means it should be as simple as adding an XML and some Java to the widget ViewPager in System UI, and creating a pull request after it's been tested.
[LG V20 Guides, News, & Discussion] Ilxaot:
Sounds promising, I'll keep tabs on this!
[LG V20 Guides, News, & Discussion] dudeawsome:
sounds good hope you could make it happen and would love to try this rom in the future
[LG V20 Guides, News, & Discussion] thomas.raines:
for what it's worth

I have actually been decompiling the apps associated with "2nd screen" to figure out how it works. It is treated as widget and specifically located in the area on the screen we all know. After a long discussion with one of my colleagues, we think we might have a plan on how to implement this into custom rom source without breaking other devices. Unfortunately, it will be slow progress for us. I would, however, really like to see the progress from @me2151 and @USA-RedDragon

. I think together, we might be able to get something going.
[LG V20 Guides, News, & Discussion] Zacharee1:
Hey everyone. If you have questions, PM me, not [MENTION=4591212]me2151[/MENTION].
[LG V20 Guides, News, & Discussion] whojabacod:
[youtube]YkADj0TPrJA[/youtube]
[LG V20 Guides, News, & Discussion] jinkerz9430:
Fits perfect for the current mood of the expectators lol
[LG V20 Guides, News, & Discussion] CM-Tester:
I had read around this thread... After all... is it correct, that if this bounty will finally have success, the second screen would do not come to lineageos anyway ? Or am i completely wrong with my evaluation ?
[LG V20 Guides, News, & Discussion] Zacharee1:
What?
[LG V20 Guides, News, & Discussion] CM-Tester:
I do not understand everything in this thread, and your statement "Reverse engineering is being avoided, because that could lead to copyright strikes." made me confused...

And if i am wrong and the second screen will work soon, how probably is it, that the official lineage-team will pick it up to the nightlies ?

Sorry if i made you confused, but i am not a native english speaker and i am still learning in all that flashing stuff etc. too...

So i am really sorry for that :eek:
[LG V20 Guides, News, & Discussion] Zacharee1:
Well we're not reverse engineering the second screen. We're making our own version entirely. Reverse engineering would mean taking LG's code. We're making our own implementation.

I don't really know if it'll get into the LineageOS source.
[LG V20 Guides, News, & Discussion] sobriquet506:
Dreaming of aosp on my lovely V20, but just can't give up the second screen! (besides, MegaRom is a pretty spiffy place to hang out in the meantime).

Really appreciate the work on this project, more than happy to add $50 to the pool! :)

Many thanks to everyone contributing! :good::good::good:
[LG V20 Guides, News, & Discussion] Gabe2014:
Thanks for Your contribution I hope we get something soon

If someone want to add some more money In to this project more than welcome :good:
[LG V20 Guides, News, & Discussion] lowridincrew,:
Oh Snap..
[LG V20 Guides, News, & Discussion] thomas.raines:
Commits?

@Zacharee1 Care to link the commits?
[LG V20 Guides, News, & Discussion] Zacharee1:
https://github.com/MustardCorp/V20SecondScreenAOSP
[LG V20 Guides, News, & Discussion] Gabe2014:
Woooow Look like the dev are close with this mod , thanks for the screen shot :good:
[LG V20 Guides, News, & Discussion] Zacharee1:
No we have a long way to go. Those demos are from Stock with SignBoard disabled. We still need to get AOSP to rotate correctly.
[LG V20 Guides, News, & Discussion] Zacharee1:
Guys, the music feature probably won't be possible. I don't know how LG did it, but music players aren't at all unified.

With that said, right now we have toggles. You can color the toggles, and the plan is to add more in the future and make then reorderable. Obviously, we can't just have one page, so if you have a feature you want to see, go to the GitHub repo (https://github.com/MustardCorp/V20SecondScreenAOSP) and open an issue.
[LG V20 Guides, News, & Discussion] Gabe2014:
Thank You so much for the information … :good:
[LG V20 Guides, News, & Discussion] Dylanballardlgv20:
I can live without the music controls. But the toggles and app launches. Gotta have those. Ty for all the hard work so far. Id donate if i wasnt just a poor boy.
[LG V20 Guides, News, & Discussion] AidenM:
I've only done a little bit of Android development but I do think it should be possible to have simple media controls (track name, play, pause, skip, rewind) using MediaController. Most music apps (Spotify, Pandora, GPM, etc) should be implementing this. You can also get the player's package name and display the icon so it could be just like the LG implementation. I suspect this is exactly what LG did.

Here's the link: https://developer.android.com/reference/android/media/session/MediaController.html

Let me know if there's anything I can do to help.
[LG V20 Guides, News, & Discussion] Zacharee1:
LG actually has a custom broadcast for the media controls. I looked into MediaController a bit, but it looked like I could only start my own stream, not intercept another one.
[LG V20 Guides, News, & Discussion] Zacharee1:
Good, because those are the easy ones, heh.
[LG V20 Guides, News, & Discussion] thomas.raines:
Very good work, but in order for it to work in AOSP, don't you still need to add resources, bools, etc to framework, settings, etc?
[LG V20 Guides, News, & Discussion] Zacharee1:
For what? It seems to work if you don't rotate. It's a separate app, just one that needs to be signed with the platform build key and be under priv-app.
[LG V20 Guides, News, & Discussion] thomas.raines:
interesting... giving it a shot...
[LG V20 Guides, News, & Discussion] Zacharee1:
I'm going to be pushing a commit that will require you to either sign the APK with the OS keys or disable signature verification.
[LG V20 Guides, News, & Discussion] thomas.raines:
Ok, but why?
[LG V20 Guides, News, & Discussion] jinkerz9430:
I have a question. Is it possible to see the notification icons when the screen is off like on stock? Not having a notification light makes it a must have on aosp. Dont know if i should put it on github
[LG V20 Guides, News, & Discussion] Zacharee1:
Otherwise it's impossible to have it show on the lock screen or when the screen is off.
[LG V20 Guides, News, & Discussion] Zacharee1:
That comes after the screen on functionality.
[LG V20 Guides, News, & Discussion] thomas.raines:
Gotcha... I figured you guys would release this as a prebuilt .apk, but if it has to be signed, then we would need source to allow it to be built in with rom, correct?
[LG V20 Guides, News, & Discussion] Zacharee1:
Well I wanted to make it just an APK to install as a system app, but Android security doesn't like that, so we need the system signature. It can still be released as an unsigned APK that ROM makers just sign with their keys, but it'd probably easier just to incorporate the source.

The app also isn't the only thing that adds the functionality. Changes have to be made in the kernel (still figuring them out) that offset the display but still allow it to receive touches.
[LG V20 Guides, News, & Discussion] tymestopm:
$20
[LG V20 Guides, News, & Discussion] Stonkers:
$20
[LG V20 Guides, News, & Discussion] Zacharee1:
Apps!
[LG V20 Guides, News, & Discussion] The_Keeper86:
Awesome!! I'm guessing we will be able to add our own apps? I use Unified Remote alot and having that at the top would definitely be handy :)
[LG V20 Guides, News, & Discussion] Zacharee1:
Yup
[LG V20 Guides, News, & Discussion] The_Keeper86:
Sweet!! Can't wait to give it a try once this out. My aosp rom of choice atm is Resurrection Remix.
[LG V20 Guides, News, & Discussion] Stonkers:
This is awesome. I really hope it works out. I dont understand why people have lost interest in this phone. Its highly underated. Theres still so much development going on for the g3 way beyond this phone. I really dont get it.

Anyway thanx so much for this!
[LG V20 Guides, News, & Discussion] me2151:
Guys its still no where near ready for aosp roms. There are MANY system bugs when using the 2nd screen right now. Those need to be resolved before this is practical. Every screenshot so far from above is on stock so it doesnt have those display bugs that aosp does.
[LG V20 Guides, News, & Discussion] USA-RedDragon:
Also seconding [MENTION=4591212]me2151[/MENTION]'s statement. Stock is fine and dandy, but once aosp gets involved there are bugs that some people may not have the ability to fix. me2151 and I are working on something independently from [MENTION=7055541]Zacharee1[/MENTION] that won't have the issues AOSP causes.
[LG V20 Guides, News, & Discussion] shadavis08:
Nice have you started your own thread or telegram group yet ? So we can stay caught up on progress?
[LG V20 Guides, News, & Discussion] me2151:
Nope. Dont think we plan on it. we are just talking back and forth through telegram
[LG V20 Guides, News, & Discussion] thomas.raines:
Would be nice if one that would like to help could get invited into that telegram...
[LG V20 Guides, News, & Discussion] USA-RedDragon:
Update: I had a programming breakthrough last night. The biggest issue with AOSP and it's display has been fixed. There are two minor issues to deal with now, both quite simple. Here's the time frame I'm looking at for release: in the next 2 days, I will soft release to a group of testers to see if any bugs are present(do NOT message to ask if you can test, the answer is no.) If they don't find any within two days of that, I'll start cleaning the code up and packaging for adding to ROMs, along with an API and write up for third party developers to be able to make second screen apps with to put on the play store. Along with the release of the second screen API and service, I will be releasing several apps to the play store to emulate stock LG functionality. These will be free, but I'm also going to make more premium apps that are 99 cents(the minimum price Google Play let's me use for apps, though I think 50 cents would be more fair, sorry).

So all in all, there will likely be a full release for all users within a week, and all the stock LG app equivalents will be on the play store the day of release for free, with premium ones also available.
[LG V20 Guides, News, & Discussion] uppon2:
That's really cool, man. You guys are going to get XDA front page for this I bet!
[LG V20 Guides, News, & Discussion] Gabe2014:
Woooow Sound great , we waiting for this ?
[LG V20 Guides, News, & Discussion] TheLoonyRebel:
Curious what apps is coming for AOSP second screen?
[LG V20 Guides, News, & Discussion] Aaren11:
Fantastic news RedDragon, can't wait to see what you've come up with.

How do we go about pledging by the way?
[LG V20 Guides, News, & Discussion] lowridincrew,:
Shout out to you for this. I've been patiently waiting and I see patience pays off. Keep it up. You and everyone else that put forth a effort.
[LG V20 Guides, News, & Discussion] thomas.raines:
Just as I got the app Zacharee1 made to build in-line on AOSP... Oh well, time to test it out anyways...
[LG V20 Guides, News, & Discussion] pbedard:
I will buy all of them u guys deserve it.
[LG V20 Guides, News, & Discussion] wickedninjalo:
Amazing.
[LG V20 Guides, News, & Discussion] smuvman:
Any fix for the Bluetooth issue?

---------- Post added at 04:47 PM ---------- Previous post was at 04:44 PM ----------

Sorry wrong thread.
[LG V20 Guides, News, & Discussion] :
Ooh so excited!!
[LG V20 Guides, News, & Discussion] Zacharee1:
Working on porting my widgets over to Jacob's implementation. QuickTools are under his jurisdiction, since they need to be part of the system, but I can do the music controller, app launcher, contacts shortcuts, and such.
[LG V20 Guides, News, & Discussion] tymestopm:
Are you going to finalise the bounty now and link a place to sent it? Or hold off?
[LG V20 Guides, News, & Discussion] rholm:
I'll contribute to the bounty.

Cheers,

Rich
[LG V20 Guides, News, & Discussion] Zacharee1:
I'll have to talk to Jacob about it.
[LG V20 Guides, News, & Discussion] USA-RedDragon:
Not until stuff is released to people. I don't want to claim it until I know I deserve it. There may be some issue that comes up randomly towards the very end
[LG V20 Guides, News, & Discussion] Zacharee1:
So it turns out you can add custom pages to the stock second screen...
[LG V20 Guides, News, & Discussion] TheLoonyRebel:
I'm assuming will we have the ability to keep the second screen on when the main screen is off right?
[LG V20 Guides, News, & Discussion] USA-RedDragon:
Yes that was one of the biggest issues I had to fix. It's still being a bit of a pain right this second but it is coming close. I suppose I should do a proof of concept video on YouTube for you guys
[LG V20 Guides, News, & Discussion] Gabe2014:
I'm so excited and I can not wait, thanks for the hard work , I am ready to give my cooperation, just waiting for the link :D
[LG V20 Guides, News, & Discussion] shadavis08:
You don't have to . Thanks for all your hard work I appreciate it!
[LG V20 Guides, News, & Discussion] MishaalRahman:
Hey,

I know little about the LG V20 custom ROM scene except for what I just read on this thread, but I'm getting excited to see all this progress! Want to chat? I would love to feature the work you and others have been doing on the XDA Portal!

Reach out to me at mishaal@xda-developers.com if you are interested. Let's get this work the attention it deserves.
[LG V20 Guides, News, & Discussion] shadavis08:
Hey someone wants to interview you how awesome! lol
[LG V20 Guides, News, & Discussion] USA-RedDragon:
Here's the proof of concept video, here in a few I'll show it running with [MENTION=7055541]Zacharee1[/MENTION]'s widgets in a bit. [MENTION=7050182]MishaalRahman[/MENTION], I'll be emailing you in a few minutes when I'm free

[YOUTUBE]wr7vn0pXV1U[/YOUTUBE]
[LG V20 Guides, News, & Discussion] thomas.raines:
UGH! I appreciate the hard work... but stop teasing!!!!!!!!!! lol... Can't wait for the commits!
[LG V20 Guides, News, & Discussion] uppon2:
I called it. A rom that I compiled for The Oppo find7a was featured on the portal and that was NOTHING compared to this. You guys definitely need the recognition! I'm so excited to see this come to fruition considering some people have written off this device. It's still the best phone with a removable battery and IR Blaster. Not to mention everything else wonderful about this device and the community is only getting stronger. Please don't stop
[LG V20 Guides, News, & Discussion] pbedard:
Dude u have nothing to prove if people domt believe it f it
[LG V20 Guides, News, & Discussion] USA-RedDragon:
Don't need to prove anything, just like letting the community build up hype.
[LG V20 Guides, News, & Discussion] pbedard:
Hopefully ucan make perfection like u did with the rom im adding 20 to the bounty
[LG V20 Guides, News, & Discussion] MishaalRahman:
Article on this is going live tomorrow. I did my best to make it as thorough as possible. I apologize if I missed anything or anyone. Many thanks to Zacharee1 and USA-RedDragon in helping me to understand everything.

Edit: it's up https://www.xda-developers.com/lg-v20-second-screen-custom-widgets/
[LG V20 Guides, News, & Discussion] me2151:
Congratz on front page [MENTION=5184450]USA-RedDragon[/MENTION]
[LG V20 Guides, News, & Discussion] shadavis08:
Hey I have a question. Theoretically speaking this second screen api can be added to another phone right ? I mean it's actually all the same screen and given that the second screen size would be bigger on any other phone .... Like maybe the v30 . Wouldn't it work?
[LG V20 Guides, News, & Discussion] TheIronMaiden:
V30 is going to have a floating display no need or different implementation
[LG V20 Guides, News, & Discussion] Zacharee1:
V30 just needs someone to make an overlay, since it's a floating window implementation, and there are already tons of those available.
[LG V20 Guides, News, & Discussion] shadavis08:
Thank you
[Google Pixel XL Questions & Answers] pTeronaut:
I don't want to spam each & every new ROM thread with this question so I'll ask it once here. (Probably updating this post & thread with each new ROM that arrives.)

Can anybody report on each of the following ROMs as to whether they pass Safetynet?

[ROM][Pixel-XL][7.1.1_r13]★ Pure Nexus ★ Substratum | Fi | WiFi Calling ★[01/21/17]

Unrooted:

Yes

Rooted, suhide & lockswitch:

Yes

[ROM] Vanir/Commotio N71 Testing.

Unrooted:

???

Rooted, suhide & lockswitch:

???

Dirty Unicorns (cannot link)

Unrooted:

???

Rooted, suhide & lockswitch:

???

[ROM][CM-14.1][ALPHA+TESTING]Hexa-Project[31/Jan][OMS][TabCustomization][PIXELXL]

Unrooted:

???

Rooted, suhide & lockswitch:

???

[ROM][1/27/17][Marlin][7.1.1][NMF26V]Team OctOs Oct-N

Unrooted:

???

Rooted, suhide & lockswitch:

???

[KERNEL/ROM]Sharkey Kernel and Uberstock for Pixel/Pixel XL

Unrooted:

???

Rooted, suhide & lockswitch:

???

[ROM][Resurrection Remix v5.8.1][Android Nougat 7.1.1][OMS][01/31/17]

Unrooted:

???

Rooted, suhide & lockswitch:

???

[7.x.x][WEEKLIES] CarbonROM | cr-5.1 [marlin]

Unrooted:

???

Rooted, suhide & lockswitch:

???
[Google Pixel XL Questions & Answers] yearn2burn:
Pure Nexus can be easily modified. Anything based on most recent NMF26V build should be modifiable using the Pure Nexus files from the libandroid thread, including the unmodified NMF26V build. See my posts there for instructions.

https://xdaforums.com/showthread.php?p=70731339

https://xdaforums.com/showthread.php?p=70757328
[Google Pixel XL Questions & Answers] pTeronaut:
I know about purenexus, that's why I put "yes" against both unrooted & rooted.
[Samsung Galaxy S7 Edge Questions and Answers] stolendo:
SOLVED:

I just went back to 6.01 android. Nougat also messed up my camera app. Samsung needs to fix their ****. Never should have left Nexus.

My s7 edge on android 7.0 (official update)

randomly stopped showing in file explorer on my PC.

I have USB debugging on and usb mode set to MTP.

it makes a noise when connecting and shows as

MTP in the "Devices and Printers" location

Device manager shows

SM-G935F

SAMSUNG Mobile USB composite device

SAMSUNG Android ADB Interface

I have tried to uninstall the drivers and then reinstall but so far nothing.

Different USB cables don't work.

It was just working recently :(

thanks to anyone who helps

UPDATE:

now it shows as "MTP" in devices and as SM-G935F in device manager.

I managed to get access to the sd card from the PC but ONLY when in TWRP recovery install tab.
[Mate 8 Q&A, Help & Troubleshooting] DesertRose65:
I installed the Android Nougat (NXT-L29C432B560) version with THIS LINK. But writes 'NRD90M test-keys' in the phone settings. How can I install to the real (NXT-L29C432B560) Nougat version?
[Mate 8 Q&A, Help & Troubleshooting] paulcl:
Are you sure you installed update_data_full_hw_eu too?

If yes, did you start from a NXT-L29C432 version?