[ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

[ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by voodik »

Call for beta test : LineageOS-17.1 Android 10 for Odroid-N2

Avoid using Android on MicroSD cards!

android-10-logo.jpg
android-10-logo.jpg (24.98 KiB) Viewed 6879 times

How to install.
For first time you need prepare your emmc/sd with spercial selfinstall image.

Selfinstall Images with preinstalled Gapps
64bit You can find latest version here

Selfinstall Images without preinstalled Gapps
64bit You can find latest version here

Image flashing guide.
https://wiki.odroid.com/troubleshooting ... hing_tools

For Google apps please read this.
https://www.google.com/android/uncertified/
Also after you register your Android framework ID, please wait some time (30-60 minutes) then reboot Odroid and try to add Google Account.

Extra:
  • tvheadend
  • androidvnc server
  • aptX aptXHD ldac Bluetooth codecs
Changelog:

Code: Select all

20200806 Alpha-v0.2
* Fixed MediaScanner(apps can't find media files on internal storage)
* Added Odroid Settings: Disable USB permission dialog
* Merge with last BSP changes
* Lineage merge with upstream
20200518 Alpha-v0.1
* first alpha release
Last edited by voodik on Thu Aug 06, 2020 10:29 pm, edited 8 times in total.
These users thanked the author voodik for the post (total 4):
odroid (Thu Sep 26, 2019 8:39 am) • milesian (Thu Sep 26, 2019 8:48 am) • Richardblakecr (Wed Aug 12, 2020 12:50 pm) • mad_ady (Thu Sep 10, 2020 3:51 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by voodik »

Tips:

Root Access
The fix to support Odroid-N2/C4 has already merged on Magisk repo.
So Magisk should be work starting next Magisk release.
I create fixed version based on 20.4, so use it till new Magisk will be released.

For Alpha-v0.2 and newer.
Magisk-20.4

For Alpha-v0.1.
Old-Magisk-20.4

To enable GPS support

Code: Select all

Odroid Settings> Misc settings> Enable GPS (Most of USB GPS modules is Plug and Play)
If your GPS is connected to UART or not detected you need set proper GPS serial node manually.
Change this lines according your GPS dongle in /vendor/build.prop (adb remount)

Code: Select all

ro.kernel.android.gps=ttyS1
ro.kernel.android.gps.speed=9600
How to configure usb_modeswitch
You can find usb_modeswitch.conf sample config file in /odm/ partition.
Change this file depending your hardware, run usb_modeswitch and check logcat is everything ok

Code: Select all

usb_modeswitch -c /odm/usb_modeswitch.conf
If configuration working lets enable auto trigger usb_modeswitch via prop

Code: Select all

setprop persist.usbmodem_vidpid 12d1:1f01
Value 12d1:1f01 is VID/PID of device which need monitored.
If your device after switching return with ssame VID/PID to avoid loop set

Code: Select all

setprop persist.usbmodem_vidpid_same true
In this case every second device attach event will be ignored .


List of custom properties introduced by me

Disable Bluetooth service globally. If you don't have a compatible USB Bluetooth dongle BT service keep crashing.
So disable it by default.

Code: Select all

persist.disable_bluetooth true|false default:true
Enable/Disable Bluetooth A2DP Sink support

Code: Select all

persist.service.bt.a2dp.sink true|false default:false
Enable/Disable GPS support

Code: Select all

persist.disable_location true|false default:false
Enable/Disable WiFi power saving. Most of USB WiFi modules have a problems with power saving mode.
So Disable it by default.

Code: Select all

persist.enable_wlan_ps true|false default:false
Some AP have a wrong timestamp and Android framework filter out this AP.
If You don't see your AP in WiFi scan results set this property true.

Code: Select all

persist.wifi_fixts true|false default:false
WiFi Linkstats is feature depending driver implementation, at this moment almost all USB drivers does not implement this feature.
Some of them have Linkstats support but it working wrong and crash whole WiFi service.
So i disable it by default.

Code: Select all

persist.disable_wifi_linkstats true|false default:true
Enable/Disable Shutdown without confirmation feature.
Set it true if you want shutdown your Board without confirmation by POWER button long press.

Code: Select all

persist.pwbtn.shutdown true|false default:false
Device tree tricks
We can modify our dtbs from bootloader to Enable/Disable or change configuration of dtb nodes.
We can add those commands to boot.ini before bootm command.

Enable UART_EE_A(ttyS1) port on 40Pin Header (disabled by default)

Code: Select all

fdt set /serial@ffd24000 status "okay"
Enable GPIO Buttons (by default 4 GPIO keys konfigured as F7-F10 keys)
You can remap them at boot stage by changing "linux,code" value.
In this example we are change Button1 and Button2 to function as Volume UP/DOWN.
And at the last line we need Enable GPIO buttons (disabled by default)

Code: Select all

fdt set /gpio_keys_polled/button@1 "linux,code" "<115>"
fdt set /gpio_keys_polled/button@2 "linux,code" "<114>"
fdt set /gpio_keys_polled status "okay"
List of Linux keycodes
https://github.com/hardkernel/linux/blo ... des.h#L189

Google Services Framework Android ID
You can get it from Odroid Settings> Misc > GSF ID
To get GSF Android ID from cmd use this commands

Windows command line

Code: Select all

adb shell sqlite3 /data/data/com.google.android.gsf/databases/gservices.db 'select * from main where name = \"android_id\";'
Terminal app

Code: Select all

sqlite3 /data/data/com.google.android.gsf/databases/gservices.db 'select * from main where name = "android_id";'
Last edited by voodik on Tue Aug 25, 2020 3:11 am, edited 3 times in total.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by voodik »

Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

Opilki Inside
Posts: 27
Joined: Sat Jul 04, 2015 4:32 pm
languages_spoken: english russian
ODROIDs: XU3 Lite, XU4, N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by Opilki Inside »

That was faster than Pixel phones receive public OTA from P to Q :lol:

I can confirm the basic features work - Wi-Fi, input, etc. Great job!

One issue I noticed - I don't have Bluetooth dongle and the Bluetooth service keeps crashing (a modal dialog keeps showing up asking to close/wait Bt app).
Attaching logcat dump for your considiration (sorry, full bugreport stuck at 69%)

Could you please share your plans on uploading the source code? I'm planning to mess a bit with the configuration (e.g. building a car flavor) and need to be able to build the full source.
Attachments
odroidn2-lineage17-logcat-dump.txt
(757.5 KiB) Downloaded 70 times

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by voodik »

Static ip doesn't work. Please don't use it. Trying to found root cause.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
istanbulls
Posts: 262
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID-N2, ODROID C4
Location: Istanbul-Turkey
Has thanked: 154 times
Been thanked: 34 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by istanbulls »

Right-click on the mouse works like Linux and Windows. This is really nice.

Opera works well,
Chrome, Chrome Beta and Canary crashes.

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by voodik »

kardanadm wrote:
Fri Sep 27, 2019 7:30 pm
Right-click on the mouse works like Linux and Windows. This is really nice.

Opera works well,
Chrome, Chrome Beta and Canary crashes.
Can you explain in which situations Chrome crash?
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
istanbulls
Posts: 262
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID-N2, ODROID C4
Location: Istanbul-Turkey
Has thanked: 154 times
Been thanked: 34 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by istanbulls »

voodik wrote:
Sat Sep 28, 2019 7:08 am
Can you explain in which situations Chrome crash?
30 seconds is required for crash, go up and down on the web page, it will crash.
I've had a few crashes with opera.

User avatar
istanbulls
Posts: 262
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID-N2, ODROID C4
Location: Istanbul-Turkey
Has thanked: 154 times
Been thanked: 34 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by istanbulls »

I thought I could use Android 10 until the desktop Mali GPU drivers for Linux were released.
But it's not ready for everyday use, it's too much crash.

A stable Android Q can be a good alternative to Linux.

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by voodik »

Update! :!:

Code: Select all

20190929 Alpha-v0.2
* Fixed Camera app crash
* Bluetooth Service disabled by default (you can enable it from Odroid Settings > Misc tab)
* Stay Awake by default (you can disable it from Developer options)
* Add Tvheadend binary
* Gapps cleanap and update
To check for updates go to Settings > System > Advanced > Updater
These users thanked the author voodik for the post (total 3):
rooted (Sun Sep 29, 2019 7:12 pm) • mad_ady (Sun Sep 29, 2019 7:17 pm) • odroid (Mon Sep 30, 2019 1:53 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

IskyNetFree
Posts: 4
Joined: Tue Aug 27, 2019 11:23 pm
languages_spoken: english
ODROIDs: ODROID N2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by IskyNetFree »

How to hide or delete status bar permanently?,
Some app It cann,t hide , it play on screen permanetely
Last edited by IskyNetFree on Tue Oct 01, 2019 12:46 am, edited 1 time in total.

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by voodik »

IskyNetFree wrote:
Mon Sep 30, 2019 3:06 pm
How to hide or delete status bar on permanently?,
Some app It cann,t hide , it play on screen permanetely
What app you using ?
These users thanked the author voodik for the post:
IskyNetFree (Tue Oct 01, 2019 12:50 am)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

IskyNetFree
Posts: 4
Joined: Tue Aug 27, 2019 11:23 pm
languages_spoken: english
ODROIDs: ODROID N2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by IskyNetFree »

voodik wrote:
Tue Oct 01, 2019 12:17 am
IskyNetFree wrote:
Mon Sep 30, 2019 3:06 pm
How to hide or delete status bar on permanently?,
Some app It cann,t hide , it play on screen permanetely
What app you using ?

Private Thailand TV app.My problem from status bar and it 's not full display scale can show at attach pictures .

https://drive.google.com/file/d/15c8NbP ... p=drivesdk

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by voodik »

IskyNetFree wrote:
Tue Oct 01, 2019 1:00 am
voodik wrote:
Tue Oct 01, 2019 12:17 am
IskyNetFree wrote:
Mon Sep 30, 2019 3:06 pm
How to hide or delete status bar on permanently?,
Some app It cann,t hide , it play on screen permanetely
What app you using ?

Private Thailand TV app.My problem from status bar and it 's not full display scale can show at attach pictures .

https://drive.google.com/file/d/15c8NbP ... p=drivesdk
For first register your device with google account as described on first page to avoid Google play services notifications.

LineageOS have a ExpandedDesktop feature winch can force every app go fullscreen (hide navigation and status bars).
Unfortunately this feature not fully ported to Androd 10, because Lineage team just only about 2 weeks is started porting Android 10.
So we need to wait when Lineage team bring up all lineage features.

I am tracking all lineage commits, and main features will be merged very fast and updates will be released.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

IskyNetFree
Posts: 4
Joined: Tue Aug 27, 2019 11:23 pm
languages_spoken: english
ODROIDs: ODROID N2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by IskyNetFree »

voodik wrote:
Tue Oct 01, 2019 1:28 am
IskyNetFree wrote:
Tue Oct 01, 2019 1:00 am
voodik wrote:
Tue Oct 01, 2019 12:17 am
IskyNetFree wrote:
Mon Sep 30, 2019 3:06 pm
How to hide or delete status bar on permanently?,
Some app It cann,t hide , it play on screen permanetely
What app you using ?

Private Thailand TV app.My problem from status bar and it 's not full display scale can show at attach pictures .

https://drive.google.com/file/d/15c8NbP ... p=drivesdk
For first register your device with google account as described on first page to avoid Google play services notifications.

LineageOS have a ExpandedDesktop feature winch can force every app go fullscreen (hide navigation and status bars).
Unfortunately this feature not fully ported to Androd 10, because Lineage team just only about 2 weeks is started porting Android 10.
So we need to wait when Lineage team bring up all lineage features.

I am tracking all lineage commits, and main features will be merged very fast and updates will be released.
Thanks for your very excellent image. I'll waiting to try your update images in soon.

Rmiino
Posts: 23
Joined: Fri May 17, 2019 3:49 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 7 times
Been thanked: 0
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by Rmiino »

IskyNetFree wrote:
Mon Sep 30, 2019 3:06 pm
How to hide or delete status bar permanently?,
Some app It cann,t hide , it play on screen permanetely
Same problem on LineageOS-16.0 .

User avatar
istanbulls
Posts: 262
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID-N2, ODROID C4
Location: Istanbul-Turkey
Has thanked: 154 times
Been thanked: 34 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by istanbulls »

Rmiino wrote:
Tue Oct 01, 2019 6:09 pm
IskyNetFree wrote:
Mon Sep 30, 2019 3:06 pm
How to hide or delete status bar permanently?,
Some app It cann,t hide , it play on screen permanetely
Same problem on LineageOS-16.0 .
yes

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by voodik »

Rmiino wrote:
Tue Oct 01, 2019 6:09 pm
IskyNetFree wrote:
Mon Sep 30, 2019 3:06 pm
How to hide or delete status bar permanently?,
Some app It cann,t hide , it play on screen permanetely
Same problem on LineageOS-16.0 .
kardanadm wrote:
Tue Oct 01, 2019 6:41 pm
Rmiino wrote:
Tue Oct 01, 2019 6:09 pm
IskyNetFree wrote:
Mon Sep 30, 2019 3:06 pm
How to hide or delete status bar permanently?,
Some app It cann,t hide , it play on screen permanetely
Same problem on LineageOS-16.0 .
yes
On LineageOS-16.0
Settings > Display > Advanced > Expaned desktop
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

wdr
Posts: 4
Joined: Tue Jul 23, 2019 8:07 am
languages_spoken: english
ODROIDs: N2
Has thanked: 11 times
Been thanked: 0
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by wdr »

voodik:

thx for LOS 17. Could we get a gapps-free version too?

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by voodik »

wdr wrote:
Thu Oct 03, 2019 10:11 pm
voodik:

thx for LOS 17. Could we get a gapps-free version too?
Yes, but after some main Lineage features bring up by lineage team.
This build just for preview.
These users thanked the author voodik for the post:
wdr (Fri Oct 04, 2019 6:03 am)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

Kernel
Posts: 32
Joined: Sun May 05, 2019 2:23 am
languages_spoken: english
ODROIDs: C1, C2, N2
Has thanked: 18 times
Been thanked: 4 times

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by Kernel »

wdr wrote:
Thu Oct 03, 2019 10:11 pm
voodik:
Could we get a gapps-free version too?
+1

Ropi49
Posts: 2
Joined: Thu Nov 07, 2019 11:18 pm
languages_spoken: english
ODROIDs: Odroid n2
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by Ropi49 »

This version support dell s2240t touchscreen?

noodle
Posts: 1
Joined: Sun Dec 15, 2019 6:45 pm
languages_spoken: english
ODROIDs: C2, N2 4GB
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by noodle »

Even though this is alpha this has surprisingly been stable. I was surprised that even Disney+ works fine on this.

Couple of things I can't figure out with this that seemed OK in 9:
  • NTFS drives - they don't seem to work where if I try to see it as Portable storage it tries to format it. mount.ntfs works but a lot of apps don't detect it as storage anyway e.g. Kodi. Is this anything to do with ntfs driver?
  • Arrow navigation - not sure if it's a launcher thing but a lot of apps don't work with keyboard navigation and need to do a manual mouse select. Is that some option that needs to be set so keyboard navigation is more native?
  • Custom Remote config - while this works with a service.rc that performs a remotecfg -c remote.conf -t remote.tab, was wondering if there was some way for this config to be auto detected?

invenis
Posts: 23
Joined: Sun Apr 19, 2020 12:40 am
languages_spoken: english
Has thanked: 4 times
Been thanked: 0
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by invenis »

@voodik
How's work going?
Can we expect the final build soon?
I am considering buying N2 and a well-functioning Android 10 would be a big argument for me.
I need Android 10 because it supports Nintendo Pro Controller.
Thank you for your work.

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by voodik »

invenis wrote:
Sat May 02, 2020 4:09 am
@voodik
How's work going?
Can we expect the final build soon?
I am considering buying N2 and a well-functioning Android 10 would be a big argument for me.
I need Android 10 because it supports Nintendo Pro Controller.
Thank you for your work.
The new, 64-bit version will come at middle of may.
You tested your Controller on this version ? Or on some other hardware ?
I just try to understand where in Android 10 Nintendo controller support is implemented.
Because HID: nintendo Kernel driver pushed to Linux mailing list and waiting for approval.

https://patchwork.kernel.org/patch/11441647/

BTW, post your controller USB VID/PID here.
If this driver compatible with your device i will try backport it to our Kernel and bring up native support for your controller to all Lineage builds.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by voodik »

invenis wrote:
Sat May 02, 2020 4:09 am
@voodik
How's work going?
Can we expect the final build soon?
I am considering buying N2 and a well-functioning Android 10 would be a big argument for me.
I need Android 10 because it supports Nintendo Pro Controller.
Thank you for your work.
The new, 64-bit version will come at middle of may.
You tested your Controller on this version ? Or on some other hardware ?
I just try to understand where in Android 10 Nintendo controller support is implemented?
Because HID: nintendo Kernel driver just pushed to Linux mailing list and waiting for approval.
March 17, 2020
https://patchwork.kernel.org/patch/11441647/

BTW, post your controller USB VID/PID here.
If this driver compatible with your device i will try backport it to our Kernel and bring up native support for your controller to all Lineage builds.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

invenis
Posts: 23
Joined: Sun Apr 19, 2020 12:40 am
languages_spoken: english
Has thanked: 4 times
Been thanked: 0
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by invenis »

voodik wrote:
Sat May 02, 2020 12:05 pm
You tested your Controller on this version ? Or on some other hardware ?
I haven't tested it. My knowledge is from this article https://9to5google.com/2019/11/06/andro ... r-support/:
The folks over at Android Police recently pointed out that, following the upgrade to Android 10, Google has quietly added support for the Nintendo Switch Pro Controller. XDA notes a commit that added the key layout file.
The controller could technically pair to a smartphone or tablet prior to the update, but following the update to Android 10, it’s buttons are properly mapped. You’ll be able to pair the Pro Controller to your Android phone by holding the pair button on the back of the controller – next to the USB-C port – and then going into the Bluetooth settings on your device.
Commit with mappings:
https://android.googlesource.com/platfo ... %5E%21/#F1
voodik wrote:
Sat May 02, 2020 12:05 pm
I just try to understand where in Android 10 Nintendo controller support is implemented?
Because HID: nintendo Kernel driver just pushed to Linux mailing list and waiting for approval.
March 17, 2020
https://patchwork.kernel.org/patch/11441647/
BTW, post your controller USB VID/PID here.
If this driver compatible with your device i will try backport it to our Kernel and bring up native support for your controller to all Lineage builds.
It's about connecting via Bluetooth - not via USB. Of course, connecting via USB would also be a nice addition - but I suppose most people prefer to connect via Bluetooth.
Here are VID / PID values when I connected the Nintendo Pro Controller to the Windows PC USB port:

Code: Select all

HID\VID_057E&PID_2009&REV_0200
HID\VID_057E&PID_2009
HID\VID_057E&UP:0001_U:0004
HID_DEVICE_SYSTEM_GAME
HID_DEVICE_UP:0001_U:0004
HID_DEVICE

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by voodik »

invenis wrote:
Sat May 02, 2020 6:28 pm
voodik wrote:
Sat May 02, 2020 12:05 pm
You tested your Controller on this version ? Or on some other hardware ?
I haven't tested it. My knowledge is from this article https://9to5google.com/2019/11/06/andro ... r-support/:
The folks over at Android Police recently pointed out that, following the upgrade to Android 10, Google has quietly added support for the Nintendo Switch Pro Controller. XDA notes a commit that added the key layout file.
The controller could technically pair to a smartphone or tablet prior to the update, but following the update to Android 10, it’s buttons are properly mapped. You’ll be able to pair the Pro Controller to your Android phone by holding the pair button on the back of the controller – next to the USB-C port – and then going into the Bluetooth settings on your device.
Commit with mappings:
https://android.googlesource.com/platfo ... %5E%21/#F1
voodik wrote:
Sat May 02, 2020 12:05 pm
I just try to understand where in Android 10 Nintendo controller support is implemented?
Because HID: nintendo Kernel driver just pushed to Linux mailing list and waiting for approval.
March 17, 2020
https://patchwork.kernel.org/patch/11441647/
BTW, post your controller USB VID/PID here.
If this driver compatible with your device i will try backport it to our Kernel and bring up native support for your controller to all Lineage builds.
It's about connecting via Bluetooth - not via USB. Of course, connecting via USB would also be a nice addition - but I suppose most people prefer to connect via Bluetooth.
Here are VID / PID values when I connected the Nintendo Pro Controller to the Windows PC USB port:

Code: Select all

HID\VID_057E&PID_2009&REV_0200
HID\VID_057E&PID_2009
HID\VID_057E&UP:0001_U:0004
HID_DEVICE_SYSTEM_GAME
HID_DEVICE_UP:0001_U:0004
HID_DEVICE
The mapping just adds basic controller support (buttons, thumbs) in case when device can work with standard HID protocol.
Device special driver add extended features support, e.g. leds, battery status, force feedback(vibration). Also in case with this controller accelerometer and gyro support.
Special drivers converting proprietary data to Linux standard input report to make Linux understand and process input events.
USB or Bluetooth is just transport layer, after transport layer device binds to some driver(Special if available or standard HID driver).
So this driver for both USB and Bluetooth.

BTW
As i say before i will try to add this driver to our kernel, and add this mapping also to Lineage-16.0.
So your controller will be supported on all my builds.
These users thanked the author voodik for the post:
invenis (Sun May 03, 2020 3:41 am)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

invenis
Posts: 23
Joined: Sun Apr 19, 2020 12:40 am
languages_spoken: english
Has thanked: 4 times
Been thanked: 0
Contact:

Re: [ROM] LineageOS-17.0 (Android Q) for ODROID-N2

Post by invenis »

voodik wrote:
Sat May 02, 2020 7:28 pm
The mapping just adds basic controller support (buttons, thumbs) in case when device can work with standard HID protocol.
Device special driver add extended features support, e.g. leds, battery status, force feedback(vibration). Also in case with this controller accelerometer and gyro support.
Special drivers converting proprietary data to Linux standard input report to make Linux understand and process input events.
USB or Bluetooth is just transport layer, after transport layer device binds to some driver(Special if available or standard HID driver).
So this driver for both USB and Bluetooth.
BTW
As i say before i will try to add this driver to our kernel, and add this mapping also to Lineage-16.0.
So your controller will be supported on all my builds.
Thank you for the explanation, I understand now.
I will try your new builds as soon as I have N2. :-)

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by voodik »

LineageOS-17.0 development deprecated

This thread switched to LineageOS-17.1
Found and fixed major issue and now this build is 64-bit.
This build supports almost every features available in LineageOS-16.0
First, second posts updated!

Selfinstall Images with preinstalled Gapps
64bit You can find latest version here

Selfinstall Images without preinstalled Gapps
64bit You can find latest version here
These users thanked the author voodik for the post (total 2):
rooted (Tue May 19, 2020 12:02 am) • Sav (Tue May 19, 2020 5:17 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

Slaminger
Posts: 151
Joined: Tue Jul 16, 2019 12:30 am
languages_spoken: english
ODROIDs: Xu4, n2, c2, c4, OGA, OGA-BE
Location: Canada
Has thanked: 19 times
Been thanked: 45 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by Slaminger »

How does this function vs the stock hard kernel image?

trycatch
Posts: 5
Joined: Thu Jun 11, 2020 5:35 pm
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by trycatch »

hi @voodik,
i just purchase odroid-n2 and i couldnt buy emmc writer but have emmc with hardkernel pie9 32 bit installed.(emmc writer will get in 20 days :( )
i want to try your lineage 17.1.
can i install it someting like this in android adb shell?
dd if=los171.img of=/dev/block/mmcblk0

thanks any way.

b8e5n
Posts: 3
Joined: Tue Jun 16, 2020 5:58 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by b8e5n »

@voodik Good job for porting and updating android versions for this board!
I don't have an N2 yet, but I was hoping that it would be possible to watch live broadcast tv from android TV (DVB-t2). Is it possible with this version? I cannot find anyone showing it on the web. More interestingly, Voodik mentions tvheadend addon on the first post, so does that mean the server is preinstalled? Can I just whatch tv with google's live tv app, or KODI?
The thing is that it is not for me, and it would be best to just run android than dual-boot with coreelec.
Last edited by b8e5n on Sun Jun 21, 2020 5:45 am, edited 1 time in total.

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by voodik »

b8e5n wrote:
Tue Jun 16, 2020 6:11 am
@voodik Good job for porting and updating android versions for this board!
I don't have an N2 yet, but I was hoping that it would be possible to watch live broadcast tv from android TV (DVB-t2). Is it possible with this version? I cannot find anyone showing it on the web. More interestingly, Voodik mentions tvheadend addon on the first post, so does that mean the server is preinstalled? Can I just whatch tv with google's live tv app, or KODI?
The thing is that it is not for me, and it would be best to just run android and dual-boot with coreelec.
Which Dvb-t2 dongle you have?
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

Jack1997
Posts: 38
Joined: Sun Jun 07, 2020 9:06 pm
languages_spoken: english
Has thanked: 7 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by Jack1997 »

Is this rooted?
how can i disable usb permission dialog?

User avatar
joerg
Posts: 1150
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 55 times
Been thanked: 128 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by joerg »

No, it's not rooted. You need to install Magisk for rooting. It's a decision of Lineage that the OS does not come anymore with inbuilt root.

Jack1997
Posts: 38
Joined: Sun Jun 07, 2020 9:06 pm
languages_spoken: english
Has thanked: 7 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by Jack1997 »

what about usb permission dialog?

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by voodik »

Jack1997 wrote:
Wed Jun 17, 2020 8:36 pm
what about usb permission dialog?
I will check possibility to add it in next build.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

Jack1997
Posts: 38
Joined: Sun Jun 07, 2020 9:06 pm
languages_spoken: english
Has thanked: 7 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by Jack1997 »

voodik wrote:
Wed Jun 17, 2020 8:41 pm
Jack1997 wrote:
Wed Jun 17, 2020 8:36 pm
what about usb permission dialog?
I will check possibility to add it in next build.
I should develop an app in Odroid n2 for my company, you will became an angel if you do this as soon as possible.
thanks alot.

zohar
Posts: 29
Joined: Mon Jul 29, 2019 6:15 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by zohar »

Just received my new eMMC card, so first thing was to install this ROM.

Found two problems Inside Settings:
1) the arrows keys does not go through the different options of the screen.
2) the "About tablet" option is hidden under the nav bar. I just cannot click on that option. there is no way for me to scroll the lines so it will get above the nav bar

User avatar
joerg
Posts: 1150
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 55 times
Been thanked: 128 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by joerg »

On my C4 with LineageOS 17.1 I see half of the 'About tablet' and can touch it. But I changed the density today. It may also help you if you do a wm density ..., with 140, 160, 180, ... for example. You need adb connection, hope it works if you can't enable developer settings.

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by voodik »

Jack1997 wrote:
Wed Jun 17, 2020 8:49 pm
voodik wrote:
Wed Jun 17, 2020 8:41 pm
Jack1997 wrote:
Wed Jun 17, 2020 8:36 pm
what about usb permission dialog?
I will check possibility to add it in next build.
I should develop an app in Odroid n2 for my company, you will became an angel if you do this as soon as possible.
thanks alot.
Could you try this test version ?
https://drive.google.com/open?id=1JYwoL ... bAy8_oKxnc

Download it to your pc, put it on root of your internal storage.
Update via Odroid Settings > Update > From downloaded package

*EDIT*
USB permission dialog can be disabled from Odroid Settings > Misc section.
reboot, try and let me know is it works ?
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

zohar
Posts: 29
Joined: Mon Jul 29, 2019 6:15 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by zohar »

I've installed the test version and it runs nicely.
Not sure what to test with the USB, tried to insert a USB diskonkey and the system reboots ~30sec after inserting it!

The only thing that I'm missing over the V16 is the display -> extended desktop.

I don't understand how to install Magisk, tried to install it from recovery but could not find how.

b8e5n
Posts: 3
Joined: Tue Jun 16, 2020 5:58 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by b8e5n »

voodik wrote:
Tue Jun 16, 2020 6:53 am
b8e5n wrote:
Tue Jun 16, 2020 6:11 am
@voodik Good job for porting and updating android versions for this board!
I don't have an N2 yet, but I was hoping that it would be possible to watch live broadcast tv from android TV (DVB-t2). Is it possible with this version? I cannot find anyone showing it on the web. More interestingly, Voodik mentions tvheadend addon on the first post, so does that mean the server is preinstalled? Can I just whatch tv with google's live tv app, or KODI?
The thing is that it is not for me, and it would be best to just run android and dual-boot with coreelec.
Which Dvb-t2 dongle you have?
I have two xbox one usb tuners. It was recommended because it is supported in many system bluilds I tested it, and it works out of the box on libre/coreelec.

Jack1997
Posts: 38
Joined: Sun Jun 07, 2020 9:06 pm
languages_spoken: english
Has thanked: 7 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by Jack1997 »

voodik wrote:
Thu Jun 18, 2020 7:53 am
Jack1997 wrote:
Wed Jun 17, 2020 8:49 pm
voodik wrote:
Wed Jun 17, 2020 8:41 pm
Jack1997 wrote:
Wed Jun 17, 2020 8:36 pm
what about usb permission dialog?
I will check possibility to add it in next build.
I should develop an app in Odroid n2 for my company, you will became an angel if you do this as soon as possible.
thanks alot.
Could you try this test version ?
https://drive.google.com/open?id=1JYwoL ... bAy8_oKxnc

Download it to your pc, put it on root of your internal storage.
Update via Odroid Settings > Update > From downloaded package

*EDIT*
USB permission dialog can be disabled from Odroid Settings > Misc section.
reboot, try and let me know is it works ?
I enabled this, but still asking prompt.

Jack1997
Posts: 38
Joined: Sun Jun 07, 2020 9:06 pm
languages_spoken: english
Has thanked: 7 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by Jack1997 »

is there any hope to solve this?

User avatar
voodik
Posts: 1854
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 39 times
Been thanked: 240 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by voodik »

Jack1997 wrote:
Sun Jun 21, 2020 2:50 am
is there any hope to solve this?
Checking
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

Jack1997
Posts: 38
Joined: Sun Jun 07, 2020 9:06 pm
languages_spoken: english
Has thanked: 7 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by Jack1997 »

if this is not gonna work, can you enable default root instead?

m8kbv
Posts: 110
Joined: Thu Nov 14, 2019 6:27 pm
languages_spoken: English
ODROIDs: 2x Odroid N2 4GB
Odroid Go Advance
Location: Poland
Has thanked: 32 times
Been thanked: 16 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by m8kbv »

I have several problems in this and other versions of android tv on Odroid N2:
1) sometimes the tv remote does not control android tv (as if hdmi cec did not always work with my tv), restarting the system solves the problem.
2) sometimes when you turn on tv, there is no image from android tv, helps turn off and on odroid n2
3) sometimes turning off the device does not turn off the android tv (again problems with hdmi cec?)
4) No 5.1 audio with hdmi. Forcing codecs in the system settings causes an intermittent sound.
Is it all I have? :)
Despite all the problems, all is well done by Voodik, the system is great :)

trycatch
Posts: 5
Joined: Thu Jun 11, 2020 5:35 pm
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-N2

Post by trycatch »

hi @voodik,
thanks for great rom for n2,

i have some small music problems in n2 with l17.1
music apps cant see my music in /sdcard/Music ?
Last edited by trycatch on Mon Jun 29, 2020 12:45 am, edited 1 time in total.

Post Reply

Return to “Android”

Who is online

Users browsing this forum: Baidu [Spider] and 0 guests