CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150707)

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150707)

Unread post by voodik » Fri Feb 27, 2015 7:01 am

cm-12.1-logo_1.jpg
cm-12.1-logo_1.jpg (23.05 KiB) Viewed 26414 times
Features
- Android 5.1.1 Lollipop Cyanogenmod 12.1
- Kernel 3.4.5
- OpenGL ES 1.1/2.0 (GPU acceleration)
- OpenCL 1.1 EP (GPU acceleration)
- Android RenderScript API support (high-performance computation across heterogeneous processors)
- 2D acceleration bug is fixed. Google Maps is working now.
- Mouse "right-click to ESC" and "wheel to zoom" mapping
- Multi-user feature is enabled (Up to 8 users)
- On board Ethernet and external USB 3.0 Gigabit Ethernet support
- RTL8188CUS and RTL8191SU Wireless USB dongle support
- exFAT, NTFS(r/w), EXT4 file system support
- USB Bluetooth support (A2dp Sink).
- USB 3G dongle support
- USB GPS dongle support
- USB tethering
- Portable Wi-Fi hotspot
- Android native USB DAC support
- USB UVC Webcam support
- HDMI-CEC support

Notice: Wifi module 2(rtl8191su) not working (trying to solve)
When updating from cm-11 or cm-12 "Format userdata" is required

Changes:

Code: Select all

20150707
Android: Updated to 5.1.1_r6
Android: added HDMI-CEC support for Kodi 14.2 "Helix"
Android: fixed Ethernet driver kernel panic
20150618
Android: Fixed USB 3.0 Gigabit Ethernet support again.
Android: Don't load ril lib when ro.radio.noril=1
20150603
Android: Updated to 5.1.1_r3
Android: New GPS HAL
Android: Fixed USB 3.0 Gigabit Ethernet support.
Android: added pinch zoom by mouse wheel (ported from BSP)
Android: Bluetooth service disabled by default
Android: added A2dp Sink support.
Android: fixed Bluetooth HID support.
Cyanogenmod: Music app landscape support
Cyanogenmod: Settable CPU frequency from Settings>Performance menu (menu appears after enabling Developer options)
20150415
Android: Update to cm-12.1 Lollipop 5.1
Android: New Audio HAL
Android: New Camera HAL (now you can take pictures, record video, stream video via apps or browser but Skype and Hangout still buggy)
Android: added USB DAC native support(USB hotplug, input, output support)
Android: Auto detect Bluetooth dongle at device boot.
Android: More Bluetooth dongles supported.
Android: Better USB 3G dongle support.
Android: fixed EXT4 external storage mount.
Kernel: SELinux enabled permissive by default (need for external EXT4 mount)
Kernel: added Realtek 8818eu wifi support.
20150315
Android: add Volume controls and Power button to Navbar
Android: Switch to cm-11 Camera app (because lollipop camera does not support old HAL)
Android: Disable VP8 hardware decoder (Exynos 5410 doesn't support it)
20150227
First Build
"After every update reinstall Google Apps"

Thanks to mdrjr for providing web hosting!
Now We can update Android with Odroid Updater app !


Tips:
Guide how to enable Root and install Google Apps
http://codewalkerster.blogspot.kr/2015/ ... lipop.html

To get Bluetooth work set in build.prop

Code: Select all

config.disable_bluetooth=false
To get Wifi work set proper module name in build.prop
for Realtek 8192cu (default) set

Code: Select all

wlan.modname=8192cu
for Realtek 8188eu set

Code: Select all

wlan.modname=8188eu
for Ralink RT33XX/RT35XX/RT53XX set

Code: Select all

wlan.modname=rt2800usb
if you want use USB 3G module set in build.prop

Code: Select all

ro.radio.noril=0
For USB GPS set proper tty and speed in build.prop

Code: Select all

ro.kernel.android.gps=ttyACM0
ro.kernel.android.gps.speed=9600
URL for updater:

Code: Select all

http://oph.mdrjr.net/voodik/ODROID-XU/CM-12.1/Alpha-0.4_07.07.15/update.zip
Google Apps 1-click installer for Lollipop
http://dn.odroid.com/GAPPS/GAppsInstaller_lollipop.apk

Git:
https://github.com/voodik

Build from source

Code: Select all

$ repo init -u git://github.com/voodik/android.git -b cm-12.1_5410
$ repo sync
$ ./build.sh odroidxu
Output images location /tmp/odroidxu/
Last edited by voodik on Tue Jul 07, 2015 6:02 am, edited 11 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

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 57 times
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150227)

Unread post by memeka » Fri Feb 27, 2015 9:17 am

thanks Voodik!!

spcano01
Posts: 70
Joined: Wed Jan 08, 2014 2:17 am
languages_spoken: english
ODROIDs: XU-Lite
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150227)

Unread post by spcano01 » Fri Feb 27, 2015 4:31 pm

How exciting! Can't wait to try and report back! Thank you for your amazing continued support!

RockenZ
Posts: 17
Joined: Wed Jan 15, 2014 10:10 am
languages_spoken: english
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150227)

Unread post by RockenZ » Mon Mar 02, 2015 9:31 am

Great work Voodik! Thanks for not giving up on the XU!

I was able to load it, but I keep getting "Unfortunately, Bluetooth Share has stopped."

I tried force closing it and clearing cache/data for it, but it keeps showing.

Any way I can get rid of this?


I do have a non-odroid USB Bluetooth device I had plugged in (which wasn't working), but I unplugged it and rebooted and still get this.

Also, is there any way I can add support for it?

lsusb shows it as 0a5c:21e8

UncleSlug
Posts: 10
Joined: Wed Jan 15, 2014 3:37 pm
languages_spoken: english
ODROIDs: ODROID-N2
ODROID-XU Lite
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150227)

Unread post by UncleSlug » Mon Mar 02, 2015 9:49 am

I followed the build instructions (blindly) and now realize it was getting the old cm-11 version :( I guess it should be:

Code: Select all

$ repo init -u git://github.com/voodik/android.git -b cm-12.0_5422
?

Also looking in the manifesty thing it has references to odroidxu3 is that fine for the old xu or do you have to change it before doing the sync?

Code: Select all

<project path="device/hardkernel/odroidxu3" name="android_device_hardkernel_odroidxu3" remote="origin" revision="refs/heads/cm-12.0_5422" groups="device" >

User avatar
main.spec
Posts: 14
Joined: Thu Nov 07, 2013 7:52 pm
languages_spoken: english, russian
ODROIDs: XU
Location: spb.ru
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150227)

Unread post by main.spec » Mon Mar 02, 2015 8:16 pm

Voodik, how to root this ROM? Maybe you will add Android TV Launcher to this ROM?

RockenZ
Posts: 17
Joined: Wed Jan 15, 2014 10:10 am
languages_spoken: english
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150227)

Unread post by RockenZ » Mon Mar 02, 2015 9:27 pm

To enable root, go to settings -> about -> tap on build number until developer options are enabled (7 or 8 times I think).

From settings -> developer options -> enable root for apps and adb if you want.

If it is already enabled, disable it then enable it again.

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150227)

Unread post by voodik » Mon Mar 02, 2015 10:33 pm

RockenZ,
If you want disable bluetooth support remove or rename /system/lib/hw/bluetooth.default.so file.

UncleSlug,
cm-12.0_5422 branch is for XU3. At this moment I not pushed commits for XU.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

User avatar
main.spec
Posts: 14
Joined: Thu Nov 07, 2013 7:52 pm
languages_spoken: english, russian
ODROIDs: XU
Location: spb.ru
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150227)

Unread post by main.spec » Thu Mar 12, 2015 10:00 pm

Is it possible to add Atheros AR9271 driver to the kernel?

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150315)

Unread post by voodik » Mon Mar 16, 2015 5:09 am

Update!
Android: add Volume controls and Power button to Navbar
Android: Switch to cm-11 Camera app (because lollipop camer does not support old camera HAL)
Android: Disable VP8 hardware decoder (Exynos 5410 doesn't support it)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

clap
Posts: 57
Joined: Thu Sep 19, 2013 9:11 am
languages_spoken: english
ODROIDs: ODROID-XU
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150227)

Unread post by clap » Sat Mar 21, 2015 6:37 am

RockenZ wrote:Great work Voodik! Thanks for not giving up on the XU!
I was able to load it, but I keep getting "Unfortunately, Bluetooth Share has stopped."
I tried force closing it and clearing cache/data for it, but it keeps showing.
Any way I can get rid of this?
I'm having this exact same problem. I do use a Bluetooth adapter so disabling bluetooth is not an option. Any other ideas for a solution?

EDIT: I found this, it seems that it's not fixed yet:
https://code.google.com/p/android/issue ... l?id=67272

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150315)

Unread post by voodik » Sat Mar 21, 2015 6:35 pm

Sorry but i don't have a non Odroids Bluetooth adapters and can't debug this issue.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

clap
Posts: 57
Joined: Thu Sep 19, 2013 9:11 am
languages_spoken: english
ODROIDs: ODROID-XU
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150315)

Unread post by clap » Sat Mar 21, 2015 10:29 pm

voodik wrote:Sorry but i don't have a non Odroids Bluetooth adapters and can't debug this issue.
I don't think it has anything to do with the adapter, since this happens even when booting without the adapter plugged in. But I don't think it's your problem either, seems to be a common problem with Android 5 Bluetooth stack.

On another subject, external USB with ext4 wasn't mounted automatically like it was on your 4.4.4 version. I couldn't mount it manually either, it seems USB wasn't recognized. Will have to revert to 4.4.4 for the time being, as my XU also works as my GIT server.
Google Apps 1-click installer doesn't give an option for Android 5 as of yet, so perhaps you should link to some other GApps installers out there in the post?

Thank you for all your work on these roms!

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150315)

Unread post by voodik » Sun Mar 22, 2015 12:21 am

1. I know about issue when booting without adapter or wrong permissions. But if your adapter don't recognized by Bluetooth USB stack this is same as boot without adapter. Solution - remove Bluetooth lib if your adapter not recognized .
I will check ext4 mount.
Install Google Apps with 4.4.2 option (Of course first enable root access from Dev Options).
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

RockenZ
Posts: 17
Joined: Wed Jan 15, 2014 10:10 am
languages_spoken: english
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150315)

Unread post by RockenZ » Mon Mar 23, 2015 8:22 am

Thanks Voodik for the new release and committing the changes!

It works great and runs very well!


Clap,

I haven't had any luck getting the non-odroid BT adapter to work yet despite trying a few kernel changes.

patchoncas
Posts: 12
Joined: Wed Apr 02, 2014 9:49 am
languages_spoken: english, portuguese
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150315)

Unread post by patchoncas » Wed Apr 01, 2015 10:57 am

Hi!
I have a XU in the living room being used as an HTPC, with KitKat 4.4.2.
Is this ROM stable enough for general use or does it need tinkering?

cikka
Posts: 10
Joined: Wed Mar 04, 2015 10:57 am
languages_spoken: english
ODROIDs: odroidx2/odroidq2
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150315)

Unread post by cikka » Thu Apr 02, 2015 8:39 pm

voodik wrote:
Screenshot_2015-03-16-00-12-11.png
Features
- Android 5.0.2 KitKat Cyanogenmod 12.0
- Kernel 3.4.5
- OpenGL ES 1.1/2.0 (GPU acceleration)
- OpenCL 1.1 EP (GPU acceleration)
- Android RenderScript API support (high-performance computation across heterogeneous processors)
- 2D acceleration bug is fixed. Google Maps is working now.
- Mouse "right-click to ESC" and "wheel to zoom" mapping
- Multi-user feature is enabled (Up to 8 users)
- On board Ethernet and external USB 3.0 Gigabit Ethernet support
- RTL8188CUS and RTL8191SU Wireless USB dongle support
- exFAT, NTFS(r/w), EXT4 file system support.
- USB Bluetooth support.
- USB 3G dongle support.
- USB GPS dongle support.
- USB tethering.
- Portable Wi-Fi hotspot.

Changes:

Code: Select all

20150315
Android: add Volume controls and Power button to Navbar
Android: Switch to cm-11 Camera app (because lollipop camera does not support old HAL)
Android: Disable VP8 hardware decoder (Exynos 5410 doesn't support it)
20150227
First Build
"After every update reinstall Google Apps"

Thanks to mdrjr for providing web hosting!
Now We can update Android with Odroid Updater app !


Tips:
For Ralink wifi support

Code: Select all

add ro.hardkernel.wifi2=true to /system/build.prop
URL for updater:

Code: Select all

http://oph.mdrjr.net/voodik/ODROID-XU/CM-12/Alpha-0.3_03.15.15/update.zip
Google Apps 1-click installer
https://www.dropbox.com/s/f2ljl13kdpum2 ... taller.apk

Git:
https://github.com/voodik

Build from source

Code: Select all

$ repo init -u git://github.com/voodik/android.git
$ repo sync
$ ./build.sh odroidxu
Output images location /tmp/odroidxu/




USB Bluetooth support.

Which USB Bluetooth has been verified work well?

Thanks

cikka
Posts: 10
Joined: Wed Mar 04, 2015 10:57 am
languages_spoken: english
ODROIDs: odroidx2/odroidq2
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150315)

Unread post by cikka » Tue Apr 07, 2015 7:36 pm

Bluetooth still not work, some error message like below

E/bt_osi_config(15537): config_new unable to open file '/etc/bluetooth/ble_stack.conf': No such file or directory
I/bte_conf(15537): bte_load_ble_conf file >/etc/bluetooth/ble_stack.conf< not found

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12 Android 5.0.2 Lollipop for ODROID-XU (20150315)

Unread post by voodik » Wed Apr 15, 2015 9:11 am

cikka wrote:Bluetooth still not work, some error message like below

E/bt_osi_config(15537): config_new unable to open file '/etc/bluetooth/ble_stack.conf': No such file or directory
I/bte_conf(15537): bte_load_ble_conf file >/etc/bluetooth/ble_stack.conf< not found
I only tested Odroid Bluetooth and rare D-Link DBT-122 dongles.

P.S.
5.1 almost ready :geek:
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12.1 Android 5.1 Lollipop for ODROID-XU (20150415)

Unread post by voodik » Fri Apr 17, 2015 2:36 am

Android: Update to cm-12.1 Lollipop 5.1
Android: New Audio HAL
Android: New Camera HAL (now you can take pictures, record video, stream video via apps or browser but Skype and Hangout still buggy)
Android: added USB DAC native support(USB hotplug, input, output support)
Android: Auto detect Bluetooth dongle at device boot.
Android: More Bluetooth dongles supported.
Android: Better USB 3G dongle support.
Android: fixed EXT4 external storage mount.
Kernel: SELinux enabled permissive by default (need for external EXT4 mount)
Kernel: added Realtek 8818eu wifi support.

To get Wifi work set proper module name in build.prop
for Realtek 8192cu (default) set

Code: Select all

wlan.modname=8192cu
for Realtek 8188eu set

Code: Select all

wlan.modname=8188eu
for Ralink RT33XX/RT35XX/RT53XX set

Code: Select all

wlan.modname=rt2800usb
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

RockenZ
Posts: 17
Joined: Wed Jan 15, 2014 10:10 am
languages_spoken: english
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1 Lollipop for ODROID-XU (20150415)

Unread post by RockenZ » Fri Apr 17, 2015 4:07 am

Thanks Voodik! And thanks for committing the source too!

I've been patiently watching the XU3 thread since you posted about 12.1.

I'll definitely try this out today.

RockenZ
Posts: 17
Joined: Wed Jan 15, 2014 10:10 am
languages_spoken: english
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1 Lollipop for ODROID-XU (20150415)

Unread post by RockenZ » Wed Apr 22, 2015 11:58 am

Voodik,

I used the updater and formated userdata, but ended up with no display and a blinking blue led.
I reflashed it with fastboot and got it working.

My bluetooth adapter still doesn't seem to work, I know you added some more support and auto detect so I thought I would try.
I was going to see if I could add kernel support when you released CM12, but saw it was already listed in one of the kernel files.
Any thoughts on how I could troubleshoot it and get it working? lsusb shows it as 0a5c:21e8
(I happen to have it on the same port as you, so I don't need to change ueventd.odroidxu.rc)

I also tried flashing my own kernel and modules to get my touchscreen to work.
I wasn't able to get WiFi to work, so I'm wondering if the modules were not built/loaded properly (your kernel and modules work fine with WiFi, so I don't think build.prop needs to be changed).
I tried flashing them a few times and rebuilding all of them as well as a new kernel.
Is there anything that needs to be different from building the previous CM12 kernel?
I read through some of the guides you posted and made sure JDK 7 was installed for the Lollipop build.

Thanks again for continuing to make releases for the XU! It's greatly appreciated!

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 57 times
Contact:

Re: CM-12.1 Android 5.1 Lollipop for ODROID-XU (20150415)

Unread post by memeka » Thu Apr 23, 2015 10:19 am

Voodik,

can you add support for the Tenda W522 wifi adapter? https://wikidevi.com/wiki/Tenda_W522U
It's using the Ralink RT3572 chipset:

Code: Select all

Bus 001 Device 005: ID 148f:3572 Ralink Technology, Corp. RT3572 Wireless Adapter
and uses the rt2800 driver:

Code: Select all

rt2800usb              13799  0
rt2x00usb              10247  1 rt2800usb
rt2800lib              46899  1 rt2800usb
rt2x00lib              40338  3 rt2x00usb,rt2800lib,rt2800usb
led_class               3343  1 rt2x00lib
EDIT: saw you have it already! Thanks!

spcano01
Posts: 70
Joined: Wed Jan 08, 2014 2:17 am
languages_spoken: english
ODROIDs: XU-Lite
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1 Lollipop for ODROID-XU (20150415)

Unread post by spcano01 » Sat Apr 25, 2015 10:41 pm

Voodik,

Thank you again!! Your constant development here is very appreciated!

Sonny

alejandro_pnz
Posts: 2
Joined: Sun May 10, 2015 10:26 pm
languages_spoken: english, russian
ODROIDs: ODROID X2, ODROID XU
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1 Lollipop for ODROID-XU (20150415)

Unread post by alejandro_pnz » Sun May 10, 2015 10:28 pm

Big thanks, Voodik!
At compile I gave next error:

Code: Select all

target Java: ctstestrunner (/home/alejandro/android-5.1-odroid-xu/out/target/common/obj/JAVA_LIBRARIES/ctstestrunner_intermediates/classes)
packages/services/Telecomm/src/com/android/server/telecom/TelecomService.java:183: error: TelecomService.TelecomServiceImpl is not abstract and does not override abstract method switchToOtherActiveSub(long) in ITelecomService
    class TelecomServiceImpl extends ITelecomService.Stub {
    ^
packages/services/Telecomm/src/com/android/server/telecom/TelecomService.java:705: error: getActiveSubscription() in TelecomService.TelecomServiceImpl cannot implement getActiveSubscription() in ITelecomService
        public int getActiveSubscription() { return 0; }
                   ^
  return type int is not compatible with long
packages/services/Telecomm/src/com/android/server/telecom/TelecomService.java:704: error: method does not override or implement a method from a supertype
        @Override
        ^
packages/services/Telecomm/src/com/android/server/telecom/TelecomService.java:707: error: method does not override or implement a method from a supertype
        @Override
        ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
How to solve this? Or where setup javac compiler arguments?

P.S.: Can anyone clone his android 5.1 system as image file? :)

solapower
Posts: 5
Joined: Thu Apr 30, 2015 5:05 pm
languages_spoken: english
ODROIDs: odroid-xu
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1 Lollipop for ODROID-XU (20150415)

Unread post by solapower » Mon May 11, 2015 4:42 pm

Hi, Voodik
when I flashed system.img, cache.img and zImage after building them, I got a kernel panic as follows in kernel boot time
I did not change CM-12.1 android source or configs when I build android.
Is there anything that I have to do before building android?
I'd be grateful if you give me any comment about this.

Code: Select all

 Failed to execute /init.  Attempting defaults...
[    5.405314] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    5.416402] Backtrace:
[    5.418745] [<c0012c9c>] (dump_backtrace+0x0/0x10c) from [<c06c60d4>] (dump_stack+0x18/0x1c)
[    5.427176]  r6:c096a3c0 r5:00000007 r4:c0a1dec0 r3:00000001
[    5.432787] [<c06c60bc>] (dump_stack+0x0/0x1c) from [<c06c62f4>] (panic+0x90/0x1d8)
[    5.440445] [<c06c6264>] (panic+0x0/0x1d8) from [<c06c5f78>] (init_post+0xac/0xd0)
[    5.448029]  r3:de840000 r2:c099f808 r1:c1033258 r0:c0848a18
[    5.453595]  r7:c0a1b440

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12.1 Android 5.1 Lollipop for ODROID-XU (20150415)

Unread post by voodik » Tue May 12, 2015 3:13 am

Which system.img you flashed ? You need to flash system.img located in /tmp/odroidxu/update/ folder.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

solapower
Posts: 5
Joined: Thu Apr 30, 2015 5:05 pm
languages_spoken: english
ODROIDs: odroid-xu
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1 Lollipop for ODROID-XU (20150415)

Unread post by solapower » Wed May 13, 2015 10:26 am

I reflashed those images located in /tmp/odroidxu/update and then it's working now!
It's a major step forward to use bluetooth on the device :lol: Thank you for your quick support: )

mcoburn
Posts: 104
Joined: Tue Feb 26, 2013 9:56 am
languages_spoken: English
ODROIDs: ODROID-U2, ODROID-XU, ODROID-C1
Location: Australia
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1 Lollipop for ODROID-XU (20150415)

Unread post by mcoburn » Thu May 14, 2015 4:00 pm

Hey voodik, can you test on your XU if you get screen tearing in Gameloft's Modern Combat 4 or Modern Combat 5? On mine, I get some tearing around the top of the screen when connected to my 24" HDMI monitor. MC5 is the most noticeable.
Not sure if it's tearing or just stuttering. 1080p seems to make it worse, while 720p makes it less noticable. I don't have HDMI capture equipment at this point in time, but I can get you some screenshots if you want them.

Is this because the drivers aren't optimized for Lollipop 5.1 or are some graphics calls being corrupted somehow?

Running the games on my older U2 causes a little bit of stuttering (GPU likely can't keep up with everything) but no graphics tearing.
M. Coburn
Coburn Tech Solutions
ODROIDs owned: ODROID-U2/ODROID-XU Rev 0.3 (20130717)/ODROID-C1/ODROID-XU4
Accessories: eMMC NAND modules, ODROID-VU, WiFi Modules, Serial Terminal to USB Adapter

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12.1 Android 5.1 Lollipop for ODROID-XU (20150415)

Unread post by voodik » Fri May 15, 2015 12:46 am

I know about a glitches around the top, unfortunately i can't fix them ... Odroid XU doesn't supported anymore by Hardkernel and Samsung, We have a old hal libs which have a vsync issues and libs doesn't updated. If you want a play games i suggest you to buy XU3/lite.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150603)

Unread post by voodik » Thu Jun 04, 2015 6:42 am

Update :!:

Android: Updated to 5.1.1_r3
Android: New GPS HAL
Android: Fixed USB 3.0 Gigabit Ethernet support.
Android: added pinch zoom by mouse wheel (ported from BSP)
Android: Bluetooth service disabled by default
Android: added A2dp Sink support.
Android: fixed Bluetooth HID support.
Cyanogenmod: Music app landscape support

Cyanogenmod: Settable CPU frequency from Settings>Performance menu (menu appears after enabling Developer options)
Setting CPU frequency from Odroid Utility is removed because now we have CM native method for this.

Google Apps 1-click installer updated for Lollipop (thanks Codewalker) download it from 1-st post.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

RockenZ
Posts: 17
Joined: Wed Jan 15, 2014 10:10 am
languages_spoken: english
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150603)

Unread post by RockenZ » Fri Jun 05, 2015 2:00 am

Thanks Voodik!

Can't wait to try it out, keep up the good work!

Small donation coming your way shortly.

fleixi
Posts: 126
Joined: Sun Apr 27, 2014 3:48 am
languages_spoken: english, german
ODROIDs: XU
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150603)

Unread post by fleixi » Mon Jun 08, 2015 12:04 am

I have problems with CEC in the kodi-apk.

dmesg:

[ 3.469851] s5p-tvout-cec s5p-tvout-cec: probe successful

and there is a device /dev/CEC

kodi log:

ERROR: Unable to load libcec.so, reason: (null)
ERROR: virtual void PERIPHERALS::CPeripherals::Initialise() - failed to initialise bus cec


Is CEC not compiled in the kernel or is this a error in kodi?

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150603)

Unread post by voodik » Mon Jun 08, 2015 3:23 am

CEC is not working on Android.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

User avatar
codewalker
Posts: 873
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 32 times
Been thanked: 40 times
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150603)

Unread post by codewalker » Wed Jun 10, 2015 5:42 pm


fleixi
Posts: 126
Joined: Sun Apr 27, 2014 3:48 am
languages_spoken: english, german
ODROIDs: XU
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by fleixi » Sun Jun 21, 2015 10:51 pm

i have big problems downloading something. my odroidxu is shuting down if i am tring downloading anything "larger".

it doesnt matter if i using firefox, playstore or wget(shell). between 300mb and 700mb the odroid begin to hang for a few seconds and if im not able to stop the download the xu is shuting down. if i stop wget and start the download a few seconds after the error starting againg after ~100mb again. so with wget i am able to download some files but not really usable.

i dont know were i could find a logfile with more informations and if this is a software or hardware issue. on linux i have had some short stops somethimes downloading many (10000 and up) files via git, but no more simliary problems. So hope its a software issue.

it doesnt matter if the virtuell sdcard0 is poining to my emmc patition or to my usb3 drive so i dont think its a problem with this two parts of my xu

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by voodik » Sun Jun 21, 2015 11:10 pm

You downloading via wget in terminal or via browser download manager ?
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

fleixi
Posts: 126
Joined: Sun Apr 27, 2014 3:48 am
languages_spoken: english, german
ODROIDs: XU
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by fleixi » Sun Jun 21, 2015 11:36 pm

it doesnt matter both are crashing the system. downloading a app via playstore too. so i think it a general network or storage problem. if i stream livetv from an other device over network (tvheadend and kodi.apk) there is no problem so i dont know if the problem is a matter of size or time or connecting to the internet.

i am using the firefox but since the most apps are using the android download api (firefox and playstore too) i think it is similiar in other apps. but i would try other apps if it is needed to debug.

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by voodik » Mon Jun 22, 2015 12:24 am

Android 5 Download manager have a bug, its not clean our cache after download is complete. Our data partition is small, maybe no free space when you downloading large files.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

fleixi
Posts: 126
Joined: Sun Apr 27, 2014 3:48 am
languages_spoken: english, german
ODROIDs: XU
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by fleixi » Mon Jun 22, 2015 1:17 am

maybe, maybe not, i have modified the init.odroidxu.rc to mount the usb3device as the sdcard0. so the storage in the mountpoint sdcard0 has many free space. but the patitions a free too:

df

/ 1006.7M 574.5M 432.2M 4096
/ 1006.7M 574.5M 432.2M 4096
/dev 872.3M 36.0K 872.3M 4096
/sys/fs/cgroup 872.3M 12.0K 872.3M 4096
/mnt/asec 872.3M 0.0K 872.3M 4096
/mnt/obb 872.3M 0.0K 872.3M 4096
/system 1006.7M 574.5M 432.2M 4096
/cache 251.9M 4.0M 247.8M 4096
/data 2.0G 1.1G 838.3M 4096
/mnt/media_rw/sdcard0 3.9G 1.5G 2.4G 4096
/mnt/secure/asec 1861.1G 474.4G 1386.7G 4096
/storage/sdcard0 1861.1G 474.4G 1386.7G 4096
/mnt/media_rw/usb3host 1861.1G 474.4G 1386.7G 4096
/mnt/secure/asec 1861.1G 474.4G 1386.7G 4096
/mnt/media_rw/sdcard0/.android_secure 1861.1G 474.4G 1386.7G 4096
/storage/usb3host 1861.1G 474.4G 1386.7G 4096

or where is the cache stored? wget isnt using this

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by voodik » Mon Jun 22, 2015 4:52 am

Cache stored in /data partition, you have a only 838.3M free on it, and of course you get a error when you download large files using android download api.
I will try reproduce this issue later. I think you get kernel panic but for debug it you need USB-UART module.

p.s.
maybe better way modify fstab.odroidxu to mount usb3device as the sdcard0 ?
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

fleixi
Posts: 126
Joined: Sun Apr 27, 2014 3:48 am
languages_spoken: english, german
ODROIDs: XU
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by fleixi » Mon Jun 22, 2015 6:13 am

only strange that the system is shuting by 500mb and/or if i using wget. wget shouldnt use any part of the android cache and im using wget in an folder of my extern drive.

i will try mounting data on my usb3 drive too. im not using the fstab because i have had strange right problems using this. like root:root in my media_rw or sdcard_r not sdcard_rw. But maybe i will find a way to mount it with the fstab (some hint?)

The android_mount is so complicated in compare of a normal linux system :-(

i hope i could fix the problem without uart-module.

fleixi
Posts: 126
Joined: Sun Apr 27, 2014 3:48 am
languages_spoken: english, german
ODROIDs: XU
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by fleixi » Tue Jun 23, 2015 6:00 am

I have tested it with a bigger /data partition:

root@odroidxu:/ # df
Filesystem Size Used Free Blksize
/ 1006.7M 574.5M 432.2M 4096
/ 1006.7M 574.5M 432.2M 4096
/dev 872.3M 36.0K 872.3M 4096
/sys/fs/cgroup 872.3M 12.0K 872.3M 4096
/mnt/asec 872.3M 0.0K 872.3M 4096
/mnt/obb 872.3M 0.0K 872.3M 4096
/system 1006.7M 574.5M 432.2M 4096
/cache 251.9M 4.0M 247.8M 4096
/data 7.4G 1.4G 6.0G 4096


but with a similar error. Now it has crashed after 250mb using the playstore

important maybe that i have used a very very slow sdcard to mount as /data so i think its not a matter of space, its a matter of time. i havent stopped the time with the emmc and the sdcard but its possible that both tries the time from download starting till crash is the same.

I will try my usb3 device as /data tomorrow, to prevent an error with my slow sdcard but i dont think that this was the problem this time.

fleixi
Posts: 126
Joined: Sun Apr 27, 2014 3:48 am
languages_spoken: english, german
ODROIDs: XU
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by fleixi » Sun Jun 28, 2015 8:18 pm

Now i have tried to mount /data on my usb3-harddrive with 60GB free space... same result. I also have tested an other emmc with data mounted to usb3 and there the process com.android.media is crashed just befor the odroidxu is shutdown. Maybe imported?

Then i have watched the cpu temp, usage and ram usage. No problems there.

I have no more ideas what the problem could be. I will try an other odroidxu the next weeks but i would be thankfull for other ideas to test.

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by voodik » Mon Jun 29, 2015 5:03 am

I think something wrong with your custom mounts, i tested my XU without mounts modifications, downloaded 700Mb file with wget and Browser, no any issue.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

fleixi
Posts: 126
Joined: Sun Apr 27, 2014 3:48 am
languages_spoken: english, german
ODROIDs: XU
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by fleixi » Tue Jun 30, 2015 2:22 am

I have tried it without mounting anything else, just the emmc with a fresh system and playstore. shutdown by 800mb downloading a game via the playstore.

I habe no clue whats wrong with my system. I will try another XU this week. Maybe hardware broken.

fl0wtec
Posts: 18
Joined: Thu May 28, 2015 11:46 pm
languages_spoken: english
ODROIDs: C1, XU, X2, U2
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by fl0wtec » Fri Jul 03, 2015 2:25 am

@voodik
Thanks for your great work, it works flawlessly on my XU.

The only issue that I experience is with portrait orientation of the screen. I started out from various android versions (Pocketrocket 4.4.4. / original Hardkernel images etc.) from which I upgraded to CM-12.1 (reset userdata etc. switches were set). All show the same reslult. Portrait works flawlessly on all images except for the CM-12.1

Here are the details:
@codewalker posted a tutorial in his blog: http://codewalkerster.blogspot.de/2015/ ... op-cm.html
which fails to work for me.

It starts out with what I guess is an old version of the Odroid utility. Apart from the options which are displayed in the tutorial and I am familiar with from using the C1, the utility on my XU doesn't show the rotation angles but the inverted resolution 1080x1920. This works on all Android distributions so far, just not for the CM-12.1
-->
1.JPG
1.JPG (210.57 KiB) Viewed 25429 times
I can get to the point where my screen is displayed in the narrow portrait view but not rotated still upright and with horizontal orientation
-->
2.JPG
2.JPG (133.81 KiB) Viewed 25429 times
There is no Landscape option in the quick menu to cycle through Landscape->Auto-rotate -> Portrait as @codewalkers tutorial suggests. There are just portrait/auto rotate options which doesn't change anything on my side.
-->
3.JPG
3.JPG (328.52 KiB) Viewed 25429 times
Could you please tell me what I'm doing wrong?
Is there a way to upgrade the odroid utility? Would this help?

Thanks!

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by voodik » Fri Jul 03, 2015 4:54 am

fl0wtec

add this lines to /system/build.prop

Code: Select all

persist.demo.hdmirotation=landscape
ro.sf.hwrotation=0
Reboot odroid
After that open Utility app and set portrait mode.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

clap
Posts: 57
Joined: Thu Sep 19, 2013 9:11 am
languages_spoken: english
ODROIDs: ODROID-XU
Has thanked: 0
Been thanked: 0
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by clap » Tue Jul 07, 2015 5:50 am

fleixi wrote:I have tried it without mounting anything else, just the emmc with a fresh system and playstore. shutdown by 800mb downloading a game via the playstore.

I habe no clue whats wrong with my system. I will try another XU this week. Maybe hardware broken.
Hello,
I can confirm the same behavior in mine. I was using an http server on my local PC and the browser to transfer large files to the XU. Same erratic crashes every time it downloads something large.
It might be network-related, as I also noticed sometimes watching Youtube, Netflix, etc. the audio begins stuttering, then the video freezes and continues intermittently, similar to what happens when you download a file, then the system crashes completely. However, if I stop the application (or the browser from downloading) before a complete freeze, the system continues operating normally.
It apparently has nothing to do with the drive itself (tested with 2 different flash drives + the internal eMMC card), or the format of the drive (tested with ntfs and ext4).
It's not exclusive to Android 5 either. I downgraded to the latest official firmware 4.4.2 and it does it much less, but still happens.

If you find the cause please share, as I'd like to have it fixed.

User avatar
voodik
Posts: 1693
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 17 times
Been thanked: 137 times
Contact:

Re: CM-12.1 Android 5.1.1 Lollipop for ODROID-XU (20150618)

Unread post by voodik » Tue Jul 07, 2015 5:53 am

Update :!:
Android: Updated to 5.1.1_r6
Android: added HDMI-CEC support for Kodi 14.2 "Helix"
Android: fixed Ethernet driver kernel panic
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 1 guest