Page 1 of 4

AOSP Android 9.0 Pie ROM + ATV version

Posted: Sat Jun 22, 2019 3:58 am
by secuflag
Image

Hi all,
I would like to share my ROM based on latest sources from hardkernel, codewalkerster and AOSP.
The goal of this ROM is speed and stability.


Main features:
  • Android 9 Pie - Release 46 (PQ3A.190801.002)
  • Latest security patches
  • Kernel 4.9.118
  • OpenGapps (pico variant)
  • Google Chrome
  • Google WebView
  • WireGuard VPN
  • Configurable Launcher3
  • RMSettings:
    • Statusbar: Network monitor
    • Statusbar: Clock and Date customizations
  • Extra Tile (VPN, Expanded desktop, Compass, USB tether)
  • Expanded Desktop
  • Eleven music app from LineageOS
  • Hosts file with AD block
  • ...and more!

Changelog:

Code: Select all

8 Mar 2020 - PIE-R.08:
- Merged march Android security patches
- Merged latest changes from HK
- Updated bootloader to support new DDR memory components (see https://forum.odroid.com/viewtopic.php?f=180&t=37854)
- Updated Kernel to v4.9.118
- Updated WebView 80.0.3987.132
- Updated hosts file: March-03-2020
- Updated Gapps packages - ATV & non-ATV versions
- Minor fixes, updates and improvements

11 Feb 2020 - PIE-R.07:
- Merged february Android security patches
- Merged latest changes from HK
- Updated WebView 80.0.3987.87
- Update SQLite 3.31.1
- Added statusbar clock and date customizations
- Updated hosts file: January-24-2020
- Updated Gapps packages - ATV & non-ATV versions
- Minor fixes, updates and improvements

26 Dec 2019 - PIE-R.06:
- Merged december Android security patches
- Merged latest changes from HK
- Updated WebView 79.0.3945.93
- Updated WireGuard 0.0.20191219
- Added statusbar network traffic monitor
- Updated hosts file: December-13-2019
- Updated Gapps packages - ATV & non-ATV versions
- Minor fixes, updates and improvements

9 Nov 2019 - PIE-R.05:
- arm64 version available
- Merged october and november Android security patches
- Merged latest changes from HK
- Updated SQLite 3.30.1
- Updated Ultimate.Hosts.Blacklist V1.1777.2019.11.08
- Updated WebView 78.0.3904.90
- Updated WireGuard 0.0.20191012
- Added APTX-Adaptive codec
- Removed Files by Google
- Updated Gapps packages - ATV & non-ATV versions
- Minor fixes, updates and improvements

14 Sept 2019 - PIE-R.04:
- Fixed modules in Gapps packages
- Removed ExtShared and ExtServices modules
- Updated GMS to v19.2.74
- Updated Google WebView 77.0.3865.73
- Added Files by Google (ATV only)
- Updated Gapps packages - ATV version
  * Google Play Store 16.3.39
  * Google Play Music 8.21.8170-1.O
  * Google Play Games 2019.08.12275
  * Android TV Home 1.10.5-267243504-f
  * Android TV Core Services 1.10.3-264673207-f

7 Sept 2019 - PIE-R.03:
- ATV version available!
- Kernel:
  *Added WireGuard VPN support
  *Added BFQ as default I/O scheduler
  *Enabled F2FS file system support
  *Merged latest patches from HK
- Launcher3:
  *Added a switch to hide search widget
  *Added option to change icon size
  *Added options to change grid sizes
  *Added rounded square icon shape option
  *Added option to swipe down on recents view to clear all
- SystemUI:
  *Added Compass tile
  *Added Expanded Desktop tile
  *Added USB Tether tile
  *Added VPN tile
  *Updated default wallpaper
- Settings:
  *Allow sorting apps by size
  *Open app when clicking on icon in App Info
  *Dashboard search bar round corners
- OdroidSettings:
  *Merged miscellaneous and Ethernet setting from HK
- Updated to WebView 76.0.3809.132
- Removed Google Device Health Services
- Updated hosts file (AD block): August-15-2019
- Minor fixes, updates and improvements

6 Aug 2019 - PIE-R.02:
- Updated to Android 9.0.0 Release 46 (PQ3A.190801.002)
- Security patch level: August 1, 2019
- Merged latest changes from hardkernel and codewalkerster
- Updated hosts file (AD block): July-13-2019
- Added OpenGapps (pico variant)
- Added Expanded Desktop
- Added Uptime timer
- Added support for the .opus file format 
- DisplaySettings: font size in 5% steps from 80% to 130%
- SystemUI: Android Q style Wifi icons
- Enabled AOSP Terminal app
- Updated WebView to v75.0.3770.143
- Updated SQLite to v3.29.0
- Added Eleven music app from LineageOS
- Minor fixes, updates and improvements

Download:
Important:
Before to set up your Google account you must:
  1. Open Odroid Settings -> Misc settings -> GSF id
  2. Go to: https://g.co/AndroidDeviceRegistration, login with your Google account and paste your Google Services Framework (GSF) id
  3. Wait between 2 to 5 minutes
  4. Reboot your N2
  5. Now you should be able to setup your Google account

Know issue:
  • ATV: Play Music icon disappear and/or there are UI glitches. Restore default version; Settings -> Apps -> Google Play Music -> Uninstall updates
  • ATV: Can't click on the top menu of Play Store. Restore default version; Settings -> Apps -> Google Play Store -> Uninstall updates

Credits:
Some screenshot:

Image Image

Re: Unofficial Android ROM for Odroid-N2

Posted: Sat Jun 22, 2019 2:01 pm
by Rmiino
Thank you very much.

Re: Unofficial Android ROM for Odroid-N2

Posted: Mon Jun 24, 2019 10:45 am
by codewalker
Hi, secuflag.
I have built now, I'm excited.

Re: Unofficial Android ROM for Odroid-N2

Posted: Sun Jun 30, 2019 5:08 pm
by secuflag
Hi codewalker, thanks!
You may need to resync the workspace since I made a lot of changes in the meantime.
Unfortunately my N2 seems to have some electrical issue so I need to take a break for now.

Re: Unofficial Android ROM for Odroid-N2

Posted: Sat Jul 06, 2019 3:53 pm
by rooted
That's unfortunate, I hope you can get the RMA handled soon.

Re: Unofficial Android ROM for Odroid-N2

Posted: Fri Aug 02, 2019 2:13 am
by secuflag
Finally got my board back 8-)

I wait for the august security patch and than I will release the update.

Re: [6 Aug] Unofficial Android 9.0 Pie ROM

Posted: Wed Aug 07, 2019 2:58 am
by secuflag
First post updated!

Have fun!

Re: [6 Aug] Unofficial Android 9.0 Pie ROM

Posted: Thu Aug 08, 2019 11:40 pm
by Sailor
Good afternoon,

Tried your ROM this afternoon and it is very good. Any chance you could get the A2DP Sink feature to work? Then it would be excellent...

Thanks and kind regards

Mark B.

Re: [6 Aug] Unofficial Android 9.0 Pie ROM

Posted: Fri Aug 09, 2019 9:38 am
by odroid
@secuflag,
Thank you for continually improving your ROM.

Re: [6 Aug] Unofficial Android 9.0 Pie ROM

Posted: Fri Aug 09, 2019 7:16 pm
by secuflag
@Sailor: I can't test the bluetooth since I don't have any dongle USB bluetooth on hand at the moment.
I wrote a PM to @voodik since he seems to have fixed it, let's see if he answers back.

@odroid: Thanks!

Re: [7 sep] Android 9.0 Pie ROM + ATV version

Posted: Sun Sep 08, 2019 1:33 am
by secuflag
A new release is available, with an ATV version ;)

Have fun!

Re: [7 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Fri Sep 13, 2019 2:17 am
by lightsout
Going to give this a shot and compare it to the other one, thanks.

Re: [7 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Sun Sep 15, 2019 1:31 am
by lightsout
I just installed this and it looks good. I'm on the ATV version. But I can't access the files app. When I open the app drawer there's only like five apps.

If I go to settings I can see it in system apps but can't open it.

I have no way to install the device I'd APK because I can't access my flash drive.

Am I missing something?

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Sun Sep 15, 2019 5:12 am
by secuflag
Copy the apk in a USB key and plug it in the board, you should be able to browse and install the app, or, install the release R.04 that make this process easier using Files by Google.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Sun Sep 15, 2019 5:14 am
by secuflag
Release R.04 available to download 8-)

Have fun!

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Sun Sep 15, 2019 5:20 am
by lightsout
secuflag wrote:Release R.04 available to download 8-)

Have fun!
Ok that should work. I had no way previously to search the USB stick. Showed it but no app to browse.

Thank you!

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Sun Sep 15, 2019 7:31 am
by lightsout
I did the update but still don't see the files app. I took some pictures these are the only apps installed.



Edit #2 I was able to access the files app, went to odroid settings>shortcuts>F7 and wable able to make a shortcut. But its not accessible from the launcher app drawer.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Sun Sep 15, 2019 5:29 pm
by secuflag
Unfortunately Google Files isn't designed for ATV but you can launch the app from: Settings -> Apps -> See all apps -> Show system apps

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Sun Sep 15, 2019 9:27 pm
by lightsout
secuflag wrote:Unfortunately Google Files isn't designed for ATV but you can launch the app from: Settings -> Apps -> See all apps -> Show system apps
How do you launch it from there. I tried every button, shower press, long press. Nothing works work.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Mon Sep 16, 2019 5:36 pm
by secuflag
Settings -> Apps -> See all apps -> Show system apps -> Files -> Open

(click on thumbnail)
Image Image

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Mon Sep 16, 2019 11:03 pm
by lightsout
I tried that multiple times but I swear open was not an option. Maybe it is only on the recent update? Anyways I got it working. The lineage Rom has a files app in the app drawer. I am liking yours though as the scaling looks correct. Icons in the launcher are the same size as my shield.

[14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Mon Sep 16, 2019 11:24 pm
by lightsout
ImageI just see force stop.

Edit# Also notice for me when I reboot from Android to Coreelec using petiboot. Often when returning to Android Ethernet is no longer detected. Only pulling the power cord fixes it.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Tue Sep 17, 2019 12:51 am
by secuflag
You must click on this icon, not on the blue one :D

Image

Edit: There is a problem with the Chromecast built-in feature, it does not receive any input, I need to investigate if this is related with DRM or what :roll:

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Tue Sep 17, 2019 12:55 am
by lightsout
Oh gosh lol. Sorry man thanks.

Any idea on the Ethernet thing. I also tried Chromecast but it doesn't seem to work. But I always thought that was standard with non certified boxes.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Tue Sep 17, 2019 8:11 pm
by secuflag
I don't know, would be nice to have some logs to figure out if there is any issue.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Tue Sep 17, 2019 10:25 pm
by lightsout
secuflag wrote:I don't know, would be nice to have some logs to figure out if there is any issue.
True. It's been years since I played around with Android. I'll have to look up how to grab them.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Wed Sep 18, 2019 6:21 pm
by mad_ady
Really impressive ROM. I've just played with it a bit and I like it.
However, I couldn't get the Chromecast feature to work. I'm trying to cast a browser tab (from Chromium, on Linux) and it can't find the Chromecast on the N2. Do I need to go through a Chromecast setup process? If yes, how? I don't see anything obvious in the settings...

Edit: Ok, played with it a bit more. It gets seen as a cast device from an android phone and I can select it from youtube on android, but it gets stuck at Connecting to ... (phone and N2 are in the same LAN - N2 wired, phone wifi).
Also - some requests for the next version.
1. Please enable adb shell over serial if possible
2. Could you try to replace youtube with youtube vanced? I had forgotten how annoying youtube ads are :D. Instructions that should work for you too here: viewtopic.php?f=137&t=36356

[14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Wed Sep 18, 2019 11:18 pm
by lightsout
I am unable to use Chromecast as well. Tried multiple apps from an iPhone. Looks like it's going to start and then nothing happens.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Thu Sep 19, 2019 3:22 pm
by mad_ady
One more thing to report. I've played a bunch of long youtube videos (>20 minutes) and for all of them the image freezes after ~19 minutes. Sound keeps going fine. If I navigate a bit in the video, the video will continue normally. Any idea what's going on?

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Thu Sep 19, 2019 6:05 pm
by rooted
mad_ady wrote:One more thing to report. I've played a bunch of long youtube videos (>20 minutes) and for all of them the image freezes after ~19 minutes. Sound keeps going fine. If I navigate a bit in the video, the video will continue normally. Any idea what's going on?
Instead of using vanced try this, it's simply awesome:

https://smartyoutubetv.github.io/

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Thu Sep 19, 2019 7:04 pm
by secuflag
lightsout wrote:
Wed Sep 18, 2019 11:18 pm
I am unable to use Chromecast as well. Tried multiple apps from an iPhone. Looks like it's going to start and then nothing happens.
There's definitely something wrong with Chromecast, I'll look into it.
mad_ady wrote:
Thu Sep 19, 2019 3:22 pm
One more thing to report. I've played a bunch of long youtube videos (>20 minutes) and for all of them the image freezes after ~19 minutes. Sound keeps going fine. If I navigate a bit in the video, the video will continue normally. Any idea what's going on?
Are you using YouTube vanced or the default YouTube app?

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Thu Sep 19, 2019 7:56 pm
by mad_ady
I was using the stock app, and tested with multiple videos

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Thu Sep 19, 2019 8:34 pm
by secuflag
Ok, I'll take a look ASAP.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Thu Sep 19, 2019 8:54 pm
by mad_ady

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Fri Sep 20, 2019 1:54 am
by secuflag
Wow! What a nice view! Almost better than here in the Swiss Alps :D

I see a lot of "dropped frames" in that video set to 1440p, need to investigate more.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Fri Sep 20, 2019 2:40 am
by mad_ady
I've tried it with @rooted's suggested app and this time video didn't freeze (but I too watched it in 4k, while the youtube app had only 1080p). So different app, different resolution, different codec. Not sure if relevant.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Fri Sep 20, 2019 3:05 am
by lightsout
mad_ady wrote:
Fri Sep 20, 2019 2:40 am
I've tried it with @rooted's suggested app and this time video didn't freeze (but I too watched it in 4k, while the youtube app had only 1080p). So different app, different resolution, different codec. Not sure if relevant.
Odd, why wouldn't the youtube app have a resolution that that custom youtube app had? Are you running the desktop res @ 1080p?

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Fri Sep 20, 2019 4:00 am
by mad_ady
Desktop (and TV) is 1080p. I just haven't tried 4k with stock youtube, it's not that it wouldn't work. Will test some more tomorrow

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Fri Sep 20, 2019 5:00 am
by lightsout
mad_ady wrote:
Fri Sep 20, 2019 4:00 am
Desktop (and TV) is 1080p. I just haven't tried 4k with stock youtube, it's not that it wouldn't work. Will test some more tomorrow
Ah I gotcha, thought that was odd.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Fri Sep 20, 2019 7:30 am
by rooted
mad_ady wrote:I've tried it with @rooted's suggested app and this time video didn't freeze (but I too watched it in 4k, while the youtube app had only 1080p). So different app, different resolution, different codec. Not sure if relevant.
You can also switch between VP9 and AVC by selecting quality then video. It will open a menu with all the resolutions and codec choices.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Fri Sep 20, 2019 4:55 pm
by mad_ady
Ok, tested some more. With SmartYoutubeTV video plays fine at 1080p. With stock youtube video freezes after some minutes at 1080p.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Sat Sep 21, 2019 4:08 am
by lightsout
I got the ethernet error again today, even a cold boot didn't fix it. I will see if I can't figure out how to get some logs this weekend. Hopefully its not through ADB.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Mon Sep 23, 2019 12:20 am
by raidenii
Does anyone experience sleep problem? Namely, if I turned off my TV and put Odroid to sleep, then when I turn TV back on Odroid will not output anything to the TV after waking up from sleep. A hard reboot is required.
The HDMI CEC option in Odroid setting is greyed out.

nvm - seems "suspend_hdmiphy = 0" fixed the issue.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Tue Sep 24, 2019 7:57 pm
by mad_ady
I have the impression that this image isn't rooted. I tried to install Linux Deploy and couldn't get it to ask for root rights...
Need to get my linux vibe in a different way. Though I need root access so I can access the GPIO pins...

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Wed Sep 25, 2019 5:07 pm
by secuflag
I'm working to implement it on the next release ;-)
In the meantime you can use this way to root it, viewtopic.php?f=178&t=34063

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Sat Sep 28, 2019 2:45 pm
by Patjutzu
Good morning
Her Rom is just great.
But why wasn't it built in 64bit?

Would be really nice if you could build this rom in 64bit.

Greetings

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Sat Sep 28, 2019 4:07 pm
by voodik
Patjutzu wrote:
Sat Sep 28, 2019 2:45 pm
Good morning
Her Rom is just great.
But why wasn't it built in 64bit?

Would be really nice if you could build this rom in 64bit.

Greetings
64-bit BSP just released yesterday.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Sat Sep 28, 2019 6:23 pm
by Patjutzu
@voodik

Yes the normal Android is new yesterday because that's true but I would like to have the ATV version as 64bit

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Sun Sep 29, 2019 4:52 pm
by secuflag
I'm working to build the new release based on the new 64bit BSP.
Still have to fix some stuff but I should be able to release on the oncoming week.

Re: [14 sep] AOSP Android 9.0 Pie ROM + ATV version

Posted: Sun Sep 29, 2019 7:10 pm
by Patjutzu
Hello @secuflag

Thanks you're great.