[ROM][LineageOS 18.0][Android 11.0][voodik] for the ODROID-C4

Post Reply
User avatar
voodik
Posts: 1931
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 46 times
Been thanked: 292 times
Contact:

[ROM][LineageOS 18.0][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

Call for alpha test : LineageOS-18.0 Android 11 for ODROID-C4/HC4

Tested only on EMMC so avoid sdcards

android-11.png
android-11.png (52.3 KiB) Viewed 130 times

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

20201203 Alpha-v0.2
* Fixed Recovery HDMI output with custom resolution
* Fixed i2s1 output on J7
* Added hifishield, hifishield2 dtb overlays
* Added Realtek 8814au WIFI driver
* Kernel enable CONFIG_HID_SMARTJOYPLUS
* Bring back ODEX for boot and system jars.
* Bring back HDMI-CEC feature but disabled globally. (Not tested, enable it from OdroidSettings>MIsc tab if your TV support CEC)
* Minor cleanup/fixes
20201118 Alpha-v0.1
* first alpha release
Last edited by voodik on Thu Dec 03, 2020 2:19 pm, edited 3 times in total.
These users thanked the author voodik for the post (total 3):
daimon (Thu Nov 19, 2020 1:23 am) • joerg (Thu Nov 19, 2020 2:47 am) • kyoumaH (Thu Nov 19, 2020 3:25 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

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

Re: [ROM][LineageOS 18.0][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

Tips:

Root Access
Magisk-21.1


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 Thu Nov 19, 2020 3:59 am, edited 1 time in total.
These users thanked the author voodik for the post:
odroid (Thu Nov 19, 2020 10:45 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

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

Re: [ROM][LineageOS 18.0][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

Ready :ugeek:

Some notes.
The build in Alpha stage, some features not ported/tested yet(e.g USB permission dialog disable, etc).
HDMI-CEC disabled by me, it makes system not bootable. So I need more deep investigate code to understand root cause.

Update image also available.

Code: Select all

https://oph.mdrjr.net/voodik/S905X3/ODROID-C4/Android/LineageOTA-18.0/builds/full/
I tested only update from Android 10. In any case backup your data first.
Update image is a 'two-step' OTA package. So update process restart system 3 times.
To save space on system partition DEXPREOPT is disabled. First boot after update took little longer and some bootanimation brakes occurs, but it just one time after update.
Don't' worry.
With more space on system partition I returned Google Search app to build. Because Assistant doesn't work when Search installed from Play Store.
These users thanked the author voodik for the post:
odroid (Thu Nov 19, 2020 10:45 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

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

Re: [ROM][LineageOS 18.0][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

Update :!:

Code: Select all

20201203 Alpha-v0.2
* Fixed Recovery HDMI output with custom resolution
* Fixed i2s1 output on J7
* Added hifishield, hifishield2 dtb overlays
* Added Realtek 8814au WIFI driver
* Kernel enable CONFIG_HID_SMARTJOYPLUS
* Bring back ODEX for boot and system jars.
* Bring back HDMI-CEC feature but disabled globally. (Not tested, enable it from OdroidSettings>MIsc tab if your TV support CEC)
* Minor cleanup/fixes
These users thanked the author voodik for the post:
odroid (Fri Dec 04, 2020 11:10 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

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 1 guest