[ROM][LineageOS 16.0][Android 9.0][voodik] for the ODROID-C4

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

[ROM][LineageOS 16.0][Android 9.0][voodik] for the ODROID-C4

Post by voodik » Fri Apr 24, 2020 12:10 am

Call for beta test : LineageOS-16.0 for Odroid-C4

Avoid using Android on MicroSD cards!

LineageOS-16.0.png
LineageOS-16.0.png (10.72 KiB) Viewed 2658 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

20200423 Alpha-v0.2
* Fixed Email app crash
* Fixed GPIO Power key IR remote suspend/wake up feature
* Fixed com.droidlogic (Device initialization after reboot, Camera hotplug detection)
* Updated mecia_codecs (add google software codecs as fallback)
* Updated media_profiles (add more resolutions, Camera video default set to 720p)
* add Logitech, Nintendo, MINIX NEO A3 keylayout configs.
* remote.tab4 custom IR config file moved to /odm/ and not been overwrites across updates
* Kernel: all enabled Input and HID drivers updated to latest version from mainline Kernel
* Kernel: enable new drivers: HID_NINTENDO, HID_LOGITECH, HID_LOGITECH_DJ, HID_LOGITECH_HIDPP, HID_MAGICMOUSE, HID_MICROSOFT
* Kernel: enable all controllers Force Feedback(vibration) support
20200423 Alpha-v0.1
* first alpha release

Kernel Source

Code: Select all

https://github.com/voodik/android_kernel_voodik_odroidg12
Last edited by voodik on Sat May 09, 2020 9:01 pm, edited 6 times in total.
These users thanked the author voodik for the post (total 5):
tobetter (Fri Apr 24, 2020 12:11 am) • joerg (Fri Apr 24, 2020 12:35 am) • ETAPRIME (Thu Apr 30, 2020 9:11 am) • rooted (Thu Apr 30, 2020 2:09 pm) • SACHOMAN69 (Mon May 04, 2020 7:40 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: 1809
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 34 times
Been thanked: 202 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by voodik » Fri Apr 24, 2020 12:10 am

Tips:

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
After Beta-v0.2 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 non'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
Last edited by voodik on Sun May 10, 2020 10:27 am, edited 1 time 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
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Fri Apr 24, 2020 12:35 am

Fast, faster, voodik.
These users thanked the author joerg for the post:
voodik (Fri Apr 24, 2020 1:02 am)

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

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by voodik » Fri Apr 24, 2020 1:02 am

joerg wrote:
Fri Apr 24, 2020 12:35 am
Fast, faster, voodik.
:D :D
These users thanked the author voodik for the post:
ETAPRIME (Thu Apr 30, 2020 9:11 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

ETAPRIME
Posts: 2
Joined: Sat Feb 25, 2017 10:19 am
languages_spoken: english
ODROIDs: c2 and xu4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by ETAPRIME » Thu Apr 30, 2020 9:10 am

Voodik....You are the Best!
These users thanked the author ETAPRIME for the post:
voodik (Thu Apr 30, 2020 9:17 am)

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

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by voodik » Thu Apr 30, 2020 9:18 am

ETAPRIME wrote:
Thu Apr 30, 2020 9:10 am
Voodik....You are the Best!
Thanks!
Android 10 for C4/N2 will be also available in middle of may ;)
These users thanked the author voodik for the post (total 2):
ETAPRIME (Thu Apr 30, 2020 9:19 am) • mad_ady (Thu Apr 30, 2020 2:26 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
rooted
Posts: 7640
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 677 times
Been thanked: 183 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by rooted » Thu Apr 30, 2020 2:26 pm

Thanks for the build, I haven't unboxed the C4 since I received a smashed TV today also but I intend on trying out your work soon as possible.

User avatar
mad_ady
Posts: 7921
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 504 times
Been thanked: 350 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by mad_ady » Thu Apr 30, 2020 5:36 pm

rooted wrote:Thanks for the build, I haven't unboxed the C4 since I received a smashed TV today also but I intend on trying out your work soon as possible.
Ouch...

User avatar
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Sun May 03, 2020 5:14 am

@voodik, I try to flash a modified devicetree, but I get error.

Code: Select all

sudo fastboot flash dtb arch/arm64/boot/dts/amlogic/meson64_odroidc4.dtb
target reported max download size of 134217728 bytes
sending 'dtb' (69 KB)...
OKAY [  0.013s]
writing 'dtb'...
FAILED (remote: 0x08000000cannot find partition)
finished. total time: 0.050s
You know how to flash the dtb? Can I also create a dtbs.img with mkdtimg and flash it with dd directly to the emmc? I tried to, but now I have to reflash the whole image. :(

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

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by voodik » Sun May 03, 2020 9:26 am

joerg wrote:
Sun May 03, 2020 5:14 am
@voodik, I try to flash a modified devicetree, but I get error.

Code: Select all

sudo fastboot flash dtb arch/arm64/boot/dts/amlogic/meson64_odroidc4.dtb
target reported max download size of 134217728 bytes
sending 'dtb' (69 KB)...
OKAY [  0.013s]
writing 'dtb'...
FAILED (remote: 0x08000000cannot find partition)
finished. total time: 0.050s
You know how to flash the dtb? Can I also create a dtbs.img with mkdtimg and flash it with dd directly to the emmc? I tried to, but now I have to reflash the whole image. :(
typo
fastboot flash dtbs arch/arm64/boot/dts/amlogic/meson64_odroidc4.dtb

you don't need create dtbs.img, you can write meson64_odroidc4.dtb directly via dd.
These users thanked the author voodik for the post:
joerg (Sun May 03, 2020 3:15 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
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Sun May 03, 2020 6:03 pm

Thank you very much, @voodik.
I was able to flash the new devicetree. But I think the typo comes from the wiki page. @Luke.Go, would you please check this:
sudo fastboot flash dtb meson64_odroidc4.dtb -> sudo fastboot flash dtbs meson64_odroidc4_android.dtb
Note that I had to flash the meson64_odroidc4_android.dtb, with meson64_odroidc4.dtb it was not booting, reclaiming missing sepolicy. But maybe this is LineageOS specific?
To make my DS3231 work I had to enable the DS1307 in config and to compile a custom kernel.

I let it here for reference, how I replaced the kernel without to download the whole source tree:
(hope that somebody can do it this way, without to charge @voodik with huge of work) ;)
-in adb shell, make a copy of boot partition

Code: Select all

cd /storage/emulated/0/Download
dd if=/dev/block/boot of=boot.img
-on your host machine, get the boot.img, create a new boot.img and flash it

Code: Select all

adb pull /storage/emulated/0/Download/boot.img
abootimg -x boot.img
abootimg --create newboot.img -f bootimg.cfg -k new_kernel -r initrd.img
adb shell reboot fastboot
fastboot flash boot newboot.img
These users thanked the author joerg for the post:
voodik (Sun May 03, 2020 6:30 pm)

User avatar
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Sun May 03, 2020 7:39 pm

When I want to open the inbuilt browser, the app crashs (cabled eth connection):

Code: Select all

05-03 12:34:42.561  3103  3115 W WebViewUpdater: creating relro file timed out
05-03 12:34:42.562  4495  4495 E WebViewFactory: Chromium WebView package does not exist
05-03 12:34:42.562  4495  4495 E WebViewFactory: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebViewFactory.getWebViewContextAndSetProvider(WebViewFactory.java:376)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:439)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:251)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebView.getFactory(WebView.java:2467)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebView.ensureProviderCreated(WebView.java:2462)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebView.setOverScrollMode(WebView.java:2527)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.View.<init>(View.java:4807)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.View.<init>(View.java:4948)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.ViewGroup.<init>(ViewGroup.java:659)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebView.<init>(WebView.java:408)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebView.<init>(WebView.java:353)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebView.<init>(WebView.java:336)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebView.<init>(WebView.java:323)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at org.lineageos.jelly.webview.WebViewExt.<init>(WebViewExt.java:63)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at java.lang.reflect.Constructor.newInstance0(Native Method)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.createView(LayoutInflater.java:647)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:467)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at org.lineageos.jelly.MainActivity.onCreate(MainActivity.java:156)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.Activity.performCreate(Activity.java:7144)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.Activity.performCreate(Activity.java:7135)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.os.Handler.dispatchMessage(Handler.java:106)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.os.Looper.loop(Looper.java:193)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.ActivityThread.main(ActivityThread.java:6718)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at java.lang.reflect.Method.invoke(Native Method)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
05-03 12:34:42.563  4495  4495 D AndroidRuntime: Shutting down VM
05-03 12:34:42.564  4495  4495 E AndroidRuntime: FATAL EXCEPTION: main
05-03 12:34:42.564  4495  4495 E AndroidRuntime: Process: org.lineageos.jelly, PID: 4495
05-03 12:34:42.564  4495  4495 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.lineageos.jelly/org.lineageos.jelly.MainActivity}: android.view.InflateException: Binary XML file line #73: Binary XML file line #73: Error inflating class org.lineageos.jelly.webview.WebViewExt
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2951)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:193)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6718)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #73: Binary XML file line #73: Error inflating class org.lineageos.jelly.webview.WebViewExt
05-03 12:34:42.564  4495  4495 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #73: Error inflating class org.lineageos.jelly.webview.WebViewExt
05-03 12:34:42.564  4495  4495 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at java.lang.reflect.Constructor.newInstance0(Native Method)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.createView(LayoutInflater.java:647)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:467)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at org.lineageos.jelly.MainActivity.onCreate(MainActivity.java:156)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7144)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7135)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:193)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6718)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: Caused by: android.util.AndroidRuntimeException: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:471)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:251)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebView.getFactory(WebView.java:2467)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebView.ensureProviderCreated(WebView.java:2462)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebView.setOverScrollMode(WebView.java:2527)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.view.View.<init>(View.java:4807)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.view.View.<init>(View.java:4948)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.view.ViewGroup.<init>(ViewGroup.java:659)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebView.<init>(WebView.java:408)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebView.<init>(WebView.java:353)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebView.<init>(WebView.java:336)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebView.<init>(WebView.java:323)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at org.lineageos.jelly.webview.WebViewExt.<init>(WebViewExt.java:63)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	... 30 more
05-03 12:34:42.565  4495  4495 E AndroidRuntime: Caused by: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebViewFactory.getWebViewContextAndSetProvider(WebViewFactory.java:376)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:439)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	... 43 more
05-03 12:34:42.568  3103  3115 W ActivityManager:   Force finishing activity org.lineageos.jelly/.MainActivity
05-03 12:34:42.574  3103  3120 I ActivityManager: Showing crash dialog for package org.lineageos.jelly u0
But firefox does work.

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

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by voodik » Sun May 03, 2020 8:03 pm

joerg wrote:
Sun May 03, 2020 7:39 pm
When I want to open the inbuilt browser, the app crashs (cabled eth connection):

Code: Select all

05-03 12:34:42.561  3103  3115 W WebViewUpdater: creating relro file timed out
05-03 12:34:42.562  4495  4495 E WebViewFactory: Chromium WebView package does not exist
05-03 12:34:42.562  4495  4495 E WebViewFactory: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebViewFactory.getWebViewContextAndSetProvider(WebViewFactory.java:376)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:439)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:251)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebView.getFactory(WebView.java:2467)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebView.ensureProviderCreated(WebView.java:2462)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebView.setOverScrollMode(WebView.java:2527)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.View.<init>(View.java:4807)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.View.<init>(View.java:4948)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.ViewGroup.<init>(ViewGroup.java:659)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebView.<init>(WebView.java:408)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebView.<init>(WebView.java:353)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebView.<init>(WebView.java:336)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.webkit.WebView.<init>(WebView.java:323)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at org.lineageos.jelly.webview.WebViewExt.<init>(WebViewExt.java:63)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at java.lang.reflect.Constructor.newInstance0(Native Method)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.createView(LayoutInflater.java:647)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:467)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at org.lineageos.jelly.MainActivity.onCreate(MainActivity.java:156)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.Activity.performCreate(Activity.java:7144)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.Activity.performCreate(Activity.java:7135)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.os.Handler.dispatchMessage(Handler.java:106)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.os.Looper.loop(Looper.java:193)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at android.app.ActivityThread.main(ActivityThread.java:6718)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at java.lang.reflect.Method.invoke(Native Method)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
05-03 12:34:42.562  4495  4495 E WebViewFactory: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
05-03 12:34:42.563  4495  4495 D AndroidRuntime: Shutting down VM
05-03 12:34:42.564  4495  4495 E AndroidRuntime: FATAL EXCEPTION: main
05-03 12:34:42.564  4495  4495 E AndroidRuntime: Process: org.lineageos.jelly, PID: 4495
05-03 12:34:42.564  4495  4495 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.lineageos.jelly/org.lineageos.jelly.MainActivity}: android.view.InflateException: Binary XML file line #73: Binary XML file line #73: Error inflating class org.lineageos.jelly.webview.WebViewExt
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2951)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:193)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6718)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #73: Binary XML file line #73: Error inflating class org.lineageos.jelly.webview.WebViewExt
05-03 12:34:42.564  4495  4495 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #73: Error inflating class org.lineageos.jelly.webview.WebViewExt
05-03 12:34:42.564  4495  4495 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at java.lang.reflect.Constructor.newInstance0(Native Method)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.createView(LayoutInflater.java:647)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:467)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at org.lineageos.jelly.MainActivity.onCreate(MainActivity.java:156)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7144)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7135)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:193)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6718)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: Caused by: android.util.AndroidRuntimeException: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:471)
05-03 12:34:42.564  4495  4495 E AndroidRuntime: 	at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:251)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebView.getFactory(WebView.java:2467)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebView.ensureProviderCreated(WebView.java:2462)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebView.setOverScrollMode(WebView.java:2527)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.view.View.<init>(View.java:4807)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.view.View.<init>(View.java:4948)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.view.ViewGroup.<init>(ViewGroup.java:659)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebView.<init>(WebView.java:408)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebView.<init>(WebView.java:353)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebView.<init>(WebView.java:336)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebView.<init>(WebView.java:323)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at org.lineageos.jelly.webview.WebViewExt.<init>(WebViewExt.java:63)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	... 30 more
05-03 12:34:42.565  4495  4495 E AndroidRuntime: Caused by: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebViewFactory.getWebViewContextAndSetProvider(WebViewFactory.java:376)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:439)
05-03 12:34:42.565  4495  4495 E AndroidRuntime: 	... 43 more
05-03 12:34:42.568  3103  3115 W ActivityManager:   Force finishing activity org.lineageos.jelly/.MainActivity
05-03 12:34:42.574  3103  3120 I ActivityManager: Showing crash dialog for package org.lineageos.jelly u0
But firefox does work.

Code: Select all

diff --git a/arch/arm64/boot/dts/amlogic/meson64_odroidc4_android.dts b/arch/arm64/boot/dts/amlogic/meson64_odroidc4_android.dts
index 859c8c38c59e..e13bbfc2fec9 100644
--- a/arch/arm64/boot/dts/amlogic/meson64_odroidc4_android.dts
+++ b/arch/arm64/boot/dts/amlogic/meson64_odroidc4_android.dts
@@ -44,13 +44,6 @@
                                        mnt_flags = "rw";
                                        fsmgr_flags = "wait";
                                };
-                               product {
-                                       compatible = "android,product";
-                                       dev = "/dev/block/product";
-                                       type = "ext4";
-                                       mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
-                                       fsmgr_flags = "wait";
-                               };
                        };
                };
        };
Compile and flash dtb again.

I will release new Kernel sources in next week
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
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Sun May 03, 2020 8:19 pm

It works, thank you.

scott0999
Posts: 2
Joined: Sun May 03, 2020 9:54 pm
languages_spoken: english
ODROIDs: ODROID C4
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by scott0999 » Sun May 03, 2020 9:57 pm

I'm using this OS with a 42" TV. I have the display size set to largest but still cannot see the top. is there an app or what should I do to fix the display settings? thanks

User avatar
mad_ady
Posts: 7921
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 504 times
Been thanked: 350 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by mad_ady » Mon May 04, 2020 12:49 am

Odroid settings has overscan settings.

User avatar
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Mon May 04, 2020 1:40 am

Three things that I tested today.

-GPS: My Ublox-7 dongle works. It exposes a ttyACM0, in Odroid Settings I enabled the GPS and I had to toggle once the Location switch, because in GPS Test app was shown GNSS error.

-3G/4G: My 4G dongle works, but I had to compile and copy usb_modswitch and give command usb_modeswitch -v 12d1 -p 1f01 -M '55534243123456780000000000000a11062000000000000100000000000000' to set it in Hilink mode. What a surprise, LineageOS does the rest, it connects to eth1! :o

-SPDIF: There is no signal at J7 pin 3. I looked into the dtb, there seems to be everything right, but no signal.

Code: Select all

[    1.289575] Error: Driver 'spdif-dit' is already registered, aborting...
[    1.292644] aml_spdif_platform_probe, spdif ID = 0
[    1.293110] aml_spdif_platform_probe, register soc platform
[    1.293152] aml_spdif_platform_probe, spdif ID = 1
[    1.293227] aml_spdif_platform_probe, register soc platform
[    1.504034] aml_dai_spdif_probe
[    1.504116] \x09 set spdifout clk:6144000, mpll:24576000
[    1.504120] \x09 get spdifout clk:6143997, mpll:24575987
[    1.504131] aml_dai_set_spdif_fmt , fmt 0x4010
[    1.504248] aml_spdif_new spdif_a, clk continuous:1
[    1.504252] spdifout_play_with_zerodata_free, spdif id:0
[    5.980453] aml_spdif_open
[    5.980609] audio_ddr_mngr: toddrs[0] registered by device ff660000.audiobus:spdif@0
[    5.980945] aml_spdif_close
[    5.981008] audio_ddr_mngr: toddrs[0] released by device ff660000.audiobus:spdif@0

User avatar
mad_ady
Posts: 7921
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 504 times
Been thanked: 350 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by mad_ady » Mon May 04, 2020 1:53 am

Tobetter mentioned working on a fix to support the hifi shields. Might be related to the spdif problem.

scott0999
Posts: 2
Joined: Sun May 03, 2020 9:54 pm
languages_spoken: english
ODROIDs: ODROID C4
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by scott0999 » Mon May 04, 2020 4:57 am

mad_ady wrote:
Mon May 04, 2020 12:49 am
Odroid settings has overscan settings.
Got it, didn't see that option at first. Thanks!

User avatar
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Mon May 04, 2020 5:50 pm

I try to get wake up pin 11 to work, but it won't. I have edited in env.ini:
gpiopower "479"
Is this function missing on Android/LineageOS?

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

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by voodik » Mon May 04, 2020 5:53 pm

joerg wrote:
Mon May 04, 2020 5:50 pm
I try to get wake up pin 11 to work, but it won't. I have edited in env.ini:
gpiopower "479"
Is this function missing on Android/LineageOS?
for first there is typo))
should be

Code: Select all

gpiopower="479"
this work on N2, but facing some problems on C4.
Just checking it
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
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Mon May 04, 2020 6:36 pm

Oh yes, I am really blind...
But don't work this way and also not when I edit the boot.ini with setenv gpiopower "479" like in wiki.

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by tobetter » Mon May 04, 2020 7:41 pm

joerg wrote:
Mon May 04, 2020 6:36 pm
Oh yes, I am really blind...
But don't work this way and also not when I edit the boot.ini with setenv gpiopower "479" like in wiki.
Can you check what you have with /proc/cmdline?

User avatar
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Mon May 04, 2020 9:15 pm

I have this:

Code: Select all

cat /proc/cmdline
rootfstype=ramfs init=/init console=ttyS0,115200n8 no_console_suspend earlyprintk=aml-uart,0xff803000 quiet ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 max_freq_a55=2016 modeline=1024,600,32000,27777,43,1024,1064,1112,1152,600,613,616,645,0,0,1 customwidth=1024 customheight=600 disable_vu7=true touch_invert_x=false touch_invert_y=false zoom_rate=100 test_mt_vid=0000 test_mt_pid=0000 backlight_pwm=yes suspend_hdmiphy=1 usb-xhci.tablesize=2 prevent_sleep=0 androidboot.selinux=permissive androidboot.firstboot= jtag=disable androidboot.hardware=odroidc4 otg_device=1 buildvariant=eng colorattribute=444,8bit disablehpd=false logo=osd0,loaded,0x3d800000 hdmimode=custombuilt voutmode=dvi osd_reverse=0 video_reverse=0 gpiopower=479 enable_wol=0 otg_device=1 buildvariant=userdebug

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

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by voodik » Tue May 05, 2020 2:32 pm

joerg wrote:
Mon May 04, 2020 9:15 pm
I have this:
.....
Hi joerg,
Here is a test version with fixed IR and Gpio power key wake up functions.
lot of other features also fixed/added. Changelog will available when i release it.
You can download it here
https://drive.google.com/open?id=1i75bA ... XDcGvaHNnl

If you build custom kernel please use this updated sources
https://github.com/voodik/android_kerne ... _odroidg12

p.s. backup your boot.ini and env.ini )
These users thanked the author voodik for the post:
joerg (Tue May 05, 2020 8:40 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
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Tue May 05, 2020 11:28 pm

Thank you very much, it works now.

BTW. I forgot to tell about that the email app does crash by opening and by trying to make an account.
For me it doesn't hurry because I found a workaround. I only needed my email account present for licensing of PowerAmp.
Now I tested a lot of things that work. I am about to strip an interface board to install the C4 into my car, once I decided how to go with the power supply.

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

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by voodik » Wed May 06, 2020 12:50 pm

Update! :ugeek:

Code: Select all

20200423 Alpha-v0.2
* Fixed Email app crash
* Fixed GPIO Power key IR remote suspend/wake up feature
* Fixed com.droidlogic (Device initialization after reboot, Camera hotplug detection)
* Updated mecia_codecs (add google software codecs as fallback)
* Updated media_profiles (add more resolutions, Camera video default set to 720p)
* add Logitech, Nintendo, MINIX NEO A3 keylayout configs.
* remote.tab4 custom IR config file moved to /odm/ and not been overwrites across updates
* Kernel: all enabled Input and HID drivers updated to latest version from mainline Kernel
* Kernel: enable new drivers: HID_NINTENDO, HID_LOGITECH, HID_LOGITECH_DJ, HID_LOGITECH_HIDPP, HID_MAGICMOUSE, HID_MICROSOFT
* Kernel: enable all controllers Force Feedback(vibration) support
Avoid using Android on MicroSD cards!
These users thanked the author voodik for the post (total 2):
rooted (Wed May 06, 2020 2:56 pm) • odroid (Wed May 06, 2020 5:06 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
rooted
Posts: 7640
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 677 times
Been thanked: 183 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by rooted » Wed May 06, 2020 2:59 pm

I've been saying it for years now, using eMMC is almost a requirement for proper operation. Sure SD cards work but the fuller they get the more problems you will have with apps not responding and random crashes.
These users thanked the author rooted for the post:
tobetter (Wed May 06, 2020 3:22 pm)

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

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by voodik » Thu May 07, 2020 4:05 pm

joerg wrote:
Mon May 04, 2020 1:40 am
Three things that I tested today.

-GPS: My Ublox-7 dongle works. It exposes a ttyACM0, in Odroid Settings I enabled the GPS and I had to toggle once the Location switch, because in GPS Test app was shown GNSS error.

-3G/4G: My 4G dongle works, but I had to compile and copy usb_modswitch and give command usb_modeswitch -v 12d1 -p 1f01 -M '55534243123456780000000000000a11062000000000000100000000000000' to set it in Hilink mode. What a surprise, LineageOS does the rest, it connects to eth1! :o

-SPDIF: There is no signal at J7 pin 3. I looked into the dtb, there seems to be everything right, but no signal.

Code: Select all

[    1.289575] Error: Driver 'spdif-dit' is already registered, aborting...
[    1.292644] aml_spdif_platform_probe, spdif ID = 0
[    1.293110] aml_spdif_platform_probe, register soc platform
[    1.293152] aml_spdif_platform_probe, spdif ID = 1
[    1.293227] aml_spdif_platform_probe, register soc platform
[    1.504034] aml_dai_spdif_probe
[    1.504116] \x09 set spdifout clk:6144000, mpll:24576000
[    1.504120] \x09 get spdifout clk:6143997, mpll:24575987
[    1.504131] aml_dai_set_spdif_fmt , fmt 0x4010
[    1.504248] aml_spdif_new spdif_a, clk continuous:1
[    1.504252] spdifout_play_with_zerodata_free, spdif id:0
[    5.980453] aml_spdif_open
[    5.980609] audio_ddr_mngr: toddrs[0] registered by device ff660000.audiobus:spdif@0
[    5.980945] aml_spdif_close
[    5.981008] audio_ddr_mngr: toddrs[0] released by device ff660000.audiobus:spdif@0
Hi joerg ,

Do you upload usb_modeswitch sources somewhere ? Can i have access to them ?
I want add it to my builds, if you already ported and have sources i will look to save my time :)

Thanks
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
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Thu May 07, 2020 5:53 pm

Dear voodik, actually the source is on my machine. I will upload it to my github account and once ready give the link here. In fact I took the sources years ago from the original holder and made them compile against NDK. So I think it would be easy to integrate them. I think the sources are GPL licensed.

User avatar
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Thu May 07, 2020 7:07 pm

These users thanked the author joerg for the post:
voodik (Thu May 07, 2020 7:27 pm)

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

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by voodik » Thu May 07, 2020 7:34 pm

Thanks,
Is any reason to not use latest version ? 2.6.0 ?
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
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Thu May 07, 2020 7:44 pm

As it was only for me and it works with my modem I never updated...
If you like, I will update. But then I need to test it again.

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

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by voodik » Thu May 07, 2020 7:54 pm

joerg wrote:
Thu May 07, 2020 7:44 pm
As it was only for me and it works with my modem I never updated...
If you like, I will update. But then I need to test it again.
I'm already ;)
Just checking with you maybe some known issue with latest version.
Anyway Thanks!
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
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Thu May 07, 2020 8:07 pm

O.K. if you are ready with the next version I will test it with my modem. You know, I am thinking about how to automate this, call the usb_modeswitch only once from init.rc or implement a script as I made with the C1 years ago, or leave usb_modeswitch and patch the kernel that does it automatcally when the modem is attached to usb port. Bad, that Android doesn't have udev funcionallity...
Or maybe I could write a small executable that scans the usb ports periodically for new devices and looks in a file what action to do with it. Like udev, but far from be so powerful and complete.

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

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by voodik » Thu May 07, 2020 8:55 pm

joerg wrote:
Thu May 07, 2020 8:07 pm
O.K. if you are ready with the next version I will test it with my modem. You know, I am thinking about how to automate this, call the usb_modeswitch only once from init.rc or implement a script as I made with the C1 years ago, or leave usb_modeswitch and patch the kernel that does it automatcally when the modem is attached to usb port. Bad, that Android doesn't have udev funcionallity...
Or maybe I could write a small executable that scans the usb ports periodically for new devices and looks in a file what action to do with it. Like udev, but far from be so powerful and complete.
Tanks to be a volunteer)) i let you know when it ready.
It some kind 3G, LTE modem orientated update))
I enable some modem drivers and add few utilites.

BTW
About how to automate it.
There was multiple options.

Way without much hacking system/core libs/services is just make app with BroadcastReceiver
receive UsbManager.ACTION_USB_DEVICE_ATTACHED broadcast,
filter out vid/pid if it yours, trigger some action.
If it system apk it can just set some systemproperty
Then init service trigger usb_modeswitch "on property"

Like this i already make our GPS lib plug and play.
Its not to hard also filter out some other vid/pid with same Receiver.
And add rc template service for usb_modeswith.
But in any case people need to configure this service to add proper arguments for modem switching.

Hmm, just have idea, keep some usb_modeswitch config template in /odm partition (to make it persistent across updates)
Add usb_modeswitch.rc which waiting sysprop(e.g. sys.usb_modem_connected=true) trigger and pointing /odm/configfile
Add configurable property e.g. persist.usbmodem_vidpid="12d1:1f01"

So finely Java part receive broadcast, compare vid/pid with persist.usbmodem_vidpid. If vid/pid equals
Java sets sys.usb_modem_connected=true. rc service receive sys.usb_modem_connected=true trigger and run usb_modeswitch with config from /odm/
So finnaly we have some kind hotplug detection which keep config across updates.
I will make it tomorrow, and test with you if you have a time))

p.s. is your VID/PID change after modem switch ?
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
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Thu May 07, 2020 10:22 pm

Yes, this sound as a good plan. I do have time normally, but not always for sure. In Corona epoch I have more work from home office, but I have also days I need to go to customer. But as I told before, this all does not hurry for me.
The vid:pid of my modem after switch is: 12d1:14dc. Then it is in Hilink mode and generates a eth1 port (if eth0 is already there).

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

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by voodik » Fri May 08, 2020 6:41 pm

joerg wrote:
Thu May 07, 2020 10:22 pm
Yes, this sound as a good plan. I do have time normally, but not always for sure. In Corona epoch I have more work from home office, but I have also days I need to go to customer. But as I told before, this all does not hurry for me.
The vid:pid of my modem after switch is: 12d1:14dc. Then it is in Hilink mode and generates a eth1 port (if eth0 is already there).
First sample is ready ))
https://drive.google.com/open?id=12Oha6 ... XfBvUtpEyQ

After update you can find usb_modeswitch.conf sample in /odm/ partition.
Configure it for your devices.

then set.

Code: Select all

setprop persist.usbmodem_vidpid 12d1:1f01
reboot and check

I redirected log outpoot to logcat, so you can see usb_modeswitch logs there.

In this case USB modem also like plug and play, you can disconnect and connect again, usb_modeswitch trigger again.
It would bee good when something wrong with USB hub happens and it resets.. So you get back your connection soon if device appears back.

BTW, to speed up all this and avoid using usb_modeswitch why you not set your Modem to always start in CDC or NDIS mode ?
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
joerg
Posts: 1054
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: 35 times
Been thanked: 75 times
Contact:

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by joerg » Fri May 08, 2020 11:52 pm

Dear voodik, that's really amazing. Great thanks.
I can confirm that this configuration works:

Code: Select all

cat /odm/usb_modeswitch.conf                                      
#Huawei 

DefaultVendor= 0x12d1
DefaultProduct= 0x1f01

TargetVendor=0x12d1
TargetProductList="14db,14dc"
HuaweiNewMode=1

MessageEndPoint = "0x01"
MessageContent="55534243000000000000000000000011060000000000000000000000000000"
NoDriverLoading=1

Code: Select all

logcat|grep modeswitch
05-08 15:51:33.716  4667  4667 I init    : type=1400 audit(0.0:193): avc: denied { entrypoint } for path="/vendor/bin/usb_modeswitch" dev="mmcblk0p12" ino=5393 scontext=u:r:toolbox:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
05-08 15:51:33.720  4667  4667 I usb_modeswitch: type=1400 audit(0.0:194): avc: denied { read execute } for path="/vendor/bin/usb_modeswitch" dev="mmcblk0p12" ino=5393 scontext=u:r:toolbox:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
05-08 15:51:33.724  4667  4667 I usb_modeswitch: type=1400 audit(0.0:196): avc: denied { open } for path="/vendor/lib64/libusb.so" dev="mmcblk0p12" ino=5210 scontext=u:r:toolbox:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
05-08 15:51:33.744  4667  4667 I usb_modeswitch: Look for target devices ...
05-08 15:51:33.744  4667  4667 I usb_modeswitch:  No devices in target mode or class found
05-08 15:51:33.744  4667  4667 I usb_modeswitch: Look for default devices ...
05-08 15:51:33.744  4667  4667 I usb_modeswitch:  Found devices in default mode (1)
05-08 15:51:33.744  4667  4667 I usb_modeswitch: Access device 006 on bus 001
05-08 15:51:33.744  4667  4667 I usb_modeswitch: Get the current device configuration ...
05-08 15:51:33.744  4667  4667 I usb_modeswitch: Current configuration number is 1
05-08 15:51:33.744  4667  4667 I usb_modeswitch: Use interface number 0
05-08 15:51:33.745  4667  4667 I usb_modeswitch:  with class 8
05-08 15:51:33.745  4667  4667 I usb_modeswitch: Use endpoints 0x01 (out) and 0x81 (in)
05-08 15:51:33.745  4667  4667 I usb_modeswitch: Using standard Huawei switching message
05-08 15:51:33.745  4667  4667 I usb_modeswitch: Looking for active drivers ...
05-08 15:51:33.745  4667  4667 I usb_modeswitch:  OK, driver detached
05-08 15:51:33.746  4667  4667 I usb_modeswitch: Set up interface 0
05-08 15:51:33.746  4667  4667 I usb_modeswitch: Use endpoint 0x01 for message sending ...
05-08 15:51:33.746  4667  4667 I usb_modeswitch: Trying to send message 1 to endpoint 0x01 ...
05-08 15:51:33.746  4667  4667 I usb_modeswitch:  OK, message successfully sent
05-08 15:51:33.746  4667  4667 I usb_modeswitch: Read the response to message 1 (CSW) ...
05-08 15:51:33.746  4667  4667 I usb_modeswitch:  Response reading failed (error -1)
05-08 15:51:33.746  4667  4667 I usb_modeswitch: 
05-08 15:51:33.746  4667  4667 I usb_modeswitch:  Device is gone, skip any further commands
05-08 15:51:33.746  4667  4667 I usb_modeswitch: -> Run lsusb to note any changes. Bye!
05-08 15:51:33.746  4667  4667 I usb_modeswitch: 

Code: Select all

lsusb
Bus 002 Device 002: ID 2109:0817
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 005: ID 16b4:0703
Bus 001 Device 003: ID 08bb:2902
Bus 001 Device 002: ID 2109:2817
Bus 002 Device 001: ID 1d6b:0003
Bus 001 Device 007: ID 12d1:14dc
Bus 001 Device 004: ID 046d:c00e

Code: Select all

ifconfig -a
sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1 
          RX bytes:0 TX bytes:0 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0 
          inet6 addr: ::1/128 Scope: Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:163 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:163 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1 
          RX bytes:24881 TX bytes:24881 

eth1      Link encap:Ethernet  HWaddr 0c:5b:8f:27:9a:64  Driver cdc_ether
          inet addr:192.168.8.100  Bcast:192.168.8.255  Mask:255.255.255.0 
          inet6 addr: fe80::859c:17f2:d825:eeca/64 Scope: Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4519 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:3220 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000 
          RX bytes:4966845 TX bytes:444603 

eth0      Link encap:Ethernet  HWaddr 00:1e:06:48:0c:8b  Driver meson6-dwmac
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:62 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000 
          RX bytes:0 TX bytes:8409 
          Interrupt:13 

tunl0     Link encap:UNSPEC  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1 
          RX bytes:0 TX bytes:0 

ip_vti0   Link encap:UNSPEC  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1 
          RX bytes:0 TX bytes:0 

ip6tnl0   Link encap:UNSPEC  
          NOARP  MTU:1452  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1 
          RX bytes:0 TX bytes:0 

ip6_vti0  Link encap:UNSPEC  
          NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1 
          RX bytes:0 TX bytes:0 
BTW., why I use the modem in Hilink mode?
When I started years ago with the C1 in my car, there was no ready solution. I had to figure out by myself how to connect with ppp and in the end I had to write an own libril from scratch, because I couldn't make work the existing libraries. During the years I changed the modem and also to the C2. (The old modem made trouble because of it's high current consumption) But when I got my modem E3372 and became to know about the Hilink mode I decided to go this way. For me it is much easier to handle, it generates an eth port, it has configuration webpage, inbuilt providers, it reconnects by itself. I don't know about a way to switch it permanent. And it's not needed with this solution. I bet a lot of users will benefit from this.
These users thanked the author joerg for the post:
voodik (Sat May 09, 2020 12:04 am)

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

Re: [ROM][UNOFFICIAL][9.0][voodik] LineageOS 16.0, ROM for the ODROID-C4

Post by voodik » Sat May 09, 2020 12:18 am

Thanks for confirmation,

Since Android framework started normal Ethernet handling, Hilink is prefer solution for use 3G/LTE modems.
I have just one Lte dongle (Huawei E3272). 4-5 years ago i flashed it with Hilink firmware and make it start by default CDC(Ethernet) mode.
Now i can't find any usable manual how to do this :D
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: 118
Joined: Tue Jul 16, 2019 12:30 am
languages_spoken: english
ODROIDs: Xu4, n2, c2, c4, OGA, OGA-BE
Location: Canada
Has thanked: 17 times
Been thanked: 33 times
Contact:

Re: [ROM][LineageOS 16.0][Android 9.0][voodik] for the ODROID-C4

Post by Slaminger » Sat May 30, 2020 11:58 pm

So far this image is pretty solid, I have used it to put together a image focused on retro gaming and media,as I do with all hard kernel devices, named Slash TV. Thank you for all your hard work!

acain
Posts: 1
Joined: Thu Nov 07, 2019 8:43 am
languages_spoken: english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][LineageOS 16.0][Android 9.0][voodik] for the ODROID-C4

Post by acain » Wed Jun 03, 2020 9:23 am

Hi, it seems the current build of Lineage 16.0 for the C4 - 20200506 doesn't support SPDIF output. Is that correct?
I noticed that there was a fix in the N2 release on 20200509 for SPDIF, is that fix common to the C4 and if so when is it likely to be ported to the C4 build?

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 2 guests