GloDroid / glodroid_manifest

Android port that aims to bring both user- and developer-friendly experience in using AOSP with a set of single-board computers (SBC), phones and other devices.
472 stars 66 forks source link

[Request] Android 10 port for Orange Pi Prime / PC2 #23

Closed AnhDQHE181109 closed 4 years ago

AnhDQHE181109 commented 4 years ago

I'm wondering if we could port Android 10 to Allwinner H5 devices? The H5 has been supported by mainline kernel since 4.14 (or 4.18, I'm not sure).

And most of the Prime's drivers have also been integrated into the kernel since then. So I guess we can make a port for it?

*Edit: I'm really tired of Xunlong's Android ROM for it, well, buggy and unfinished. Really drove me mad :<

rsglobal commented 4 years ago

I do not have these boards, but if you can help with testing we could try/

AnhDQHE181109 commented 4 years ago

Alright, I'll be more than happy to help you with that ;) (Android 5.1 is buggy af to be honest)

rsglobal commented 4 years ago

opi-prime v1: https://drive.google.com/file/d/1xCNAPStrLd3JXrRGTnQ950IMriKbRmom/view?usp=sharing Use https://github.com/GloDroid/glodroid_manifest/blob/next/README.md as deploying manual.

AnhDQHE181109 commented 4 years ago

Hmmm, that's weird... It almost worked

At first, my PC recognized it as "USB Download Gadget" then "LeMobile Android Bootloader" But then it said the USB device wasn't recognized...

Probably because of my 8GB Class 4 SD Card, well, lemme try the 32GB Class 10 one

rsglobal commented 4 years ago

It would be very helpful if you can attach ttl-uart usb adapter and send me logs.

AnhDQHE181109 commented 4 years ago

1592988149569

Alright, I got'em. I managed to get it to boot using the 8GB one (my PC recognized it as LeMobile Android device, weird.. but it worked :D)

Now the issues... I guess for stability and speed, I'll try again with the 32GB one. And for now:

[Edit] Update:

[Edit 2] Thank you very much for your work :DD The first time my Pi Prime runs Android 10, not even my phone has an Android 10 update ;)

rsglobal commented 4 years ago

@Quang-vip ,

Thank you for testing. It seems that you are using 1080p screen, and Android lack contiguous memory for graphic buffers. It uses LIMA GPU driver for rendering, but unfortunately without GPU offloading by composer hardware for now.

Can you open settings and check if wifi works?

AnhDQHE181109 commented 4 years ago

@rsglobal Well, I tried to pull the apps list up but then it hung Lemme try again

rsglobal commented 4 years ago

I've increased video memory from 128M to 256M, UI should be more stable.

V2: https://drive.google.com/file/d/1MDY6srLyZZ2v_4BagVw-09ddaNfQQKcG/view?usp=sharing

rsglobal commented 4 years ago

Please also check audio functionality

AnhDQHE181109 commented 4 years ago

@rsglobal Is there any way to enter fastboot mode without having to send the adb command to it?

The settings app is really messed up, clicking on sub-menus doesn't open it up

AnhDQHE181109 commented 4 years ago

1592999048091

Alright, we've got more positive results here

Wifi and bluetooth don't work but ethernet does, well, except its orange LED keeps flashing continuously. But still, Internet is working fine through ethernet.

Audio is also working thru the 3.5mm jack, I haven't tested HDMI audio but I think it also works.

And yea, the UI is much more stable now ;))

ADB is also working after I re-enable USB debugging through developer options.

[Edit] After a few minutes of video playing, it suddenly froze

rsglobal commented 4 years ago

[Edit] After a few minutes of video playing, it suddenly froze

I may guess SOC is overheated. Throttling may not enabled for now. Try to install heatsink.

Could you send me output of:

adb shell dmesg
adb shell logcat
adb shell lsmod

Thanks in advance.

AnhDQHE181109 commented 4 years ago

Alright, here's:

rsglobal commented 4 years ago

Thanks. Please check if wifi works on v3: https://drive.google.com/file/d/1QIgEryuyQq2QhedWG2YhWVPEccMM_tqp/view?usp=sharing

AnhDQHE181109 commented 4 years ago

@rsglobal Wifi is confirmed to be working on the v3 image ;)

rsglobal commented 4 years ago

PC2: https://drive.google.com/file/d/11-MIB1D7Q0WJ0Ocpkgswyu6RKM06LI_2/view?usp=sharing

rsglobal commented 4 years ago

@Quang-vip , would you have a chance to test opi-pc2 in a nearest time?

AnhDQHE181109 commented 4 years ago

@rsglobal Sadly, I only own an OPi Prime :((

But I think we could put that on the Orange pi forum and ask if anyone wants to help?

rsglobal commented 4 years ago

I see.

Initial bring-up of opi-prime finished, available in next branch and will be included into next release.

fiamko commented 3 years ago

I have an OPI PC2 and I would like to help, but the links are no longer accessible ...

rsglobal commented 3 years ago

Link was for test image that didn't worked. You may try downloading/building PC2 from the sources.

rsglobal commented 3 years ago

Latest image can be downloaded here: https://github.com/GloDroid/glodroid_manifest/releases/tag/v0.6.1

RamagaGrodno commented 1 year ago

hello, AND THERE IS A 10 ANDROID FIRMWARE IN .img FORMAT so that you can flash it or run it from a USB flash drive ?. phonix card software? Thanks.