• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[UNOFFICIAL] LineageOS 18.1 for Amlogic G12*/SM1 Family Devices

Search This thread

Big Dumb Object

Senior Member
May 22, 2020
50
20
Is there anyway to skip the Google sign in during set up?
It seems that npjohnson will not refuse to provide us a tablet version of this ROM eventually, which will be able to work without GApps and becomes the basis for the separate MicroG builds (or give us the opportunity to install GApps/MicroG with our own hands). Isn't that what you were looking for?
 

npjohnson

Recognized Developer
It seems that npjohnson will not refuse to provide us a tablet version of this ROM eventually, which will be able to work without GApps and becomes the basis for the separate MicroG builds (or give us the opportunity to install GApps/MicroG with our own hands). Isn't that what you were looking for?
There will be ATV Gapps less builds as well. Just not while we figure out OMX.

And yeah tablet builds at some point.
 

Big Dumb Object

Senior Member
May 22, 2020
50
20
Just not while we figure out OMX.
Before this thread was started, I considered investing in building a DIY ATV box with Raspberry Pi 4, but abandoned this idea because of a similar issue: the developers of android builds for Pi4 for years now can't get the HW video decoder to work. Looks like some kind of universal scourge...

Does this also apply to Odroid C4? Because LineageS for C4 and other Odroid boards has existed for a long time, so maybe its author knows the solution.
 

npjohnson

Recognized Developer
Before this thread was started, I considered investing in building a DIY ATV box with Raspberry Pi 4, but abandoned this idea because of a similar issue: the developers of android builds for Pi4 for years now can't get the HW video decoder to work. Looks like some kind of universal scourge...

Does this also apply to Odroid C4? Because LineageS for C4 and other Odroid boards has existed for a long time, so maybe its author knows the solution.
I'm in contact with him.

It's broken there too, and due to newer kernel, theirs can't ever work.

Ours has a chance but us broken as hell lol
 

lordsolrac2

Senior Member
Jul 6, 2012
193
21
Gurabo
Hello. I'm a bit stuck with a Dynalink (wade). I've been trying to flash the Lineage Recover (20211118) but it always remains on stock; even after reflashing stock (downgrading from Aug'21 update to Feb'21). I can boot into the recovery (via fastboot boot recover.img) but I get stuck on sideloading, as adb stops working for me when I go to Update->Update from ADB. So I'm not sure if I'm doing something wrong

I'm following the instructions as-is, except that fastboot reboot recovery isn't working for me (so I just reboot to system, enable adb and continue)

Edit:: After Fiddling around a few times; I managed to get it installed. -- Very unfortunate to deal with google again
 
Last edited:

retyre

Senior Member
Jan 14, 2011
295
309
Central FL
Anyone know where UART pins on Onn Uhd (dopinder) board?
Details here: link

I didn't want to get in there more than once, so I did this:

IMG_20211206_135817.jpg
 

Big Dumb Object

Senior Member
May 22, 2020
50
20
Could you guys please share your thoughts on the potential workability of such a solution with dopinder and others? It would be nice to use it in conjunction with a cheap USB splitter to overcome the lack of physical ports (especially the wired Internet), and I especially like the lack of requirement for a dedicated power here, but I can't know how it would work and which option (USB 2.0 or 3.0) to prefer for greatest compatibility.
OFCCOM.jpeg
 

vandyman

Senior Member
Jul 30, 2012
699
326
S.Jersey
Google Pixel 5
Google Pixel 6
Could you guys please share your thoughts on the potential workability of such a solution with dopinder and others? It would be nice to use it in conjunction with a cheap USB splitter to overcome the lack of physical ports (especially the wired Internet), and I especially like the lack of requirement for a dedicated power here, but I can't know how it would work and which option (USB 2.0 or 3.0) to prefer for greatest compatibility.
View attachment 5477145
I saw this (below) from feabay for $7.
I am thinking this should work, because it was made for the fire tv crap.
 

Attachments

  • Screenshot_20211207-172953.png
    Screenshot_20211207-172953.png
    778.4 KB · Views: 20

fathergweedo

Senior Member
Feb 8, 2014
154
63
Detroit
Could you guys please share your thoughts on the potential workability of such a solution with dopinder and others? It would be nice to use it in conjunction with a cheap USB splitter to overcome the lack of physical ports (especially the wired Internet), and I especially like the lack of requirement for a dedicated power here, but I can't know how it would work and which option (USB 2.0 or 3.0) to prefer for greatest compatibility.
View attachment 5477145
This one from Amazon works for me with ethernet and a keyboard. Haven't added a flash drive as of yet tho I suspect it will work.
 
Jun 12, 2014
31
4
I'm having issues launching Disney+ and HBO Max videos on my Onn. Is this is user problem or do these two services fall under the OMX umbrella? The OP only mentions Netflix specifically so I thought I was good. I haven't tried other services yet as I just installed Lineage.
 

vandyman

Senior Member
Jul 30, 2012
699
326
S.Jersey
Google Pixel 5
Google Pixel 6
I'm having issues launching Disney+ and HBO Max videos on my Onn. Is this is user problem or do these two services fall under the OMX umbrella? The OP only mentions Netflix specifically so I thought I was good. I haven't tried other services yet as I just installed Lineage.
They are part of the Amazon cloud storage service.
Amazon cloud service was down yesterday. I really do not know if it is back yet as I do not use Disney or HBO.
Try a rebooting..

Just throwing this out there.
 
Jun 12, 2014
31
4
They are part of the Amazon cloud storage service.
Amazon cloud service was down yesterday. I really do not know if it is back yet as I do not use Disney or HBO.
Try a rebooting..

Just throwing this out there.
Thanks for the reply but AWS isn't the issue. I just tried a few services on my PC without any issues. However on my Onn 4K running Lineage I tried AMC+, Disney+, HBO Max, Hulu, Pluto TV, KODI, and Amazon Prime Video. I could navigate all of these just fine, it was only when selected something to stream did something happen. AMC, HBO, and Hulu threw up error codes, Amazon Prime locked up the whole device, Disney would restart the app. Pluto and KODI played just fine. KODI is local DRM-free stuff so that makes sense and Pluto I don't *think* uses DRM which would explain why it works.

I guess I'll be returning to stock unless the ETA on the OMX issue is relatively soon. I could deal with a paperweight for another month tops. But I doubt the devs will announce an ETA on the fix, which is probably the smart move to make for them.
 
  • Like
Reactions: vandyman

Mogul345

Senior Member
Apr 14, 2006
250
37
Just wondering - does this ROM remap the keyboard such that backspace is no longer mapped to the hardware back button on the Onn Box?
 

Top Liked Posts

  • 1
    I have had many people sending me messages asking for this scrip, I never heard back from @npjohnson as to the okey to posting this, so I will just post this, if he has an issue, I will delete it.. for now here is the zip..

    I am not one to write instructions and so on. I only wrote a quick one. Please be smart and view the bat file before you run it. Never just take anyones word for it.. View the files before you run them.

    This is not a quick fix everything for you peepz, its only to allow going back in forth a bit easier on you.
    if you have no clue what worldcup or should I say USB Burn mode is, then this is prob not for you.
    matter of fact I would say the whole project would prob be a bit to advanced for you.

    I am sorta moving on from this, bought a Khadas Vim 3 Pro board. Which Google fully supports, and I am going to tinker with that, the Raspberry PI 4 just bored me. But I am willing to help here if I can.

    Hope all continues to go well for the OP.. Its people like him that you all have options like this.

    Take care..
  • 6
    Note:

    Since the Lineage Android TV Builds for this little box (aka Boxes), are stable for the most part, but seems
    people are bouncing back in forth from Stock to Lineage and back to stock.

    I created a batch file that will auto flash the stock images and wipe data and so on.. pretty much it will
    make your box as it was when you first booted it after taking it home to try it.

    2nd, I also created a batch file that will backup current images.. No need for a fancy recovery or anything like the
    such. it will use the worldcup or what I like to say, USB Burn mode, and backup each and every partition.
    as well as some not so much needed ones like, misc and metadata. (Just for giggles)..

    backups will be copied to backup dir, I also created a separate batch file to restore your backup.


    I am one that hates doing things the long way over and over, so I always create ways to make things simple
    in the future for people.

    This way, you all can test your hearts out all the new lineages and still have your full Stock backup (including data).
    and restore back in forth as you wish.

    I will upload the backup_restore zip package as soon as I can and with @npjohnson permission I will link
    in thread. Otherwise you will have to just DM/PM me and ill link you the location.

    I am just trying to help the many that I seen complain and dont understand how to go back in forth.
    so with this script, it should take care of most on that. No Fancy Recovery needed...

    you will need worldcup driver for Amlogic........ you can find that on your own.

    Also, to get into USB Burn mode, press side button while plugging in USB cable.
    Keep pressing till you see the LOGO or hear the sound from your computer.

    then just run the batch file and wait..

    if its easier for you:

    Run the batch file, it will keep saying waiting for device..
    Just press the side button while plugging in USB, when you see it start, then release button...........
    and wait till finished..

    Only TESTED On Dopinder Boxes, but im sure they are all the same as for the partition layouts.
    1
    I used USB Burning mode to flash the images with Amlogic Updater tool..
    just couldnt get dtb to flash only dtb0............ But still it reset it and flashed..

    but yes new firmware stops everything from working.........

    If you were able to restore the factory firmware using usb mode, then the bootloader shouldn't be locked.

    I found a version of the Amlogic USB update tool (update.exe) and was able to recover my device to the 20210326 factory firmware. The bootloader is still unlocked, so all is good with this device. I don't know why I had trouble the first time.
    1
    Could it be that you found a clue for OMX problem?
    I have a few ideas to try once home from holidays.

    I'm hoping 12 just fixes it, but I bricked my Deadpool hard. So. Limited atm. Lol
    1
    please tell me if there is support afr for onn. box?
    afr?

    Adaptive framerate? No. It doesn't have android 12, nor support it yet.
    1
    I have had many people sending me messages asking for this scrip, I never heard back from @npjohnson as to the okey to posting this, so I will just post this, if he has an issue, I will delete it.. for now here is the zip..

    I am not one to write instructions and so on. I only wrote a quick one. Please be smart and view the bat file before you run it. Never just take anyones word for it.. View the files before you run them.

    This is not a quick fix everything for you peepz, its only to allow going back in forth a bit easier on you.
    if you have no clue what worldcup or should I say USB Burn mode is, then this is prob not for you.
    matter of fact I would say the whole project would prob be a bit to advanced for you.

    I am sorta moving on from this, bought a Khadas Vim 3 Pro board. Which Google fully supports, and I am going to tinker with that, the Raspberry PI 4 just bored me. But I am willing to help here if I can.

    Hope all continues to go well for the OP.. Its people like him that you all have options like this.

    Take care..
  • 18
    lineage-os-logo.png

    Amlogic G12*/SM1 Family Devices
    Code:
    - Your warranty is now void.
    - You have been warned.
    - Use at your own risk.

    Introduction:
    This is the Unofficial Lineage OS 18.1 thread for the Amlogic G12*/SM1 SoC family of devices.

    Downloads:
    Please follow the install instructions in your device's Wiki page linked below exactly, and make sure your device's firmware matches the required firmware listed:
    We also support a few development boards, but at least (for now, until we have time to write up instructions), you're on your own to figure out the install process and set things up:
    If you don't follow these instructions, or use 3rd party add-ons (like Magisk) please don't expect support here.

    Known Bugs:
    • Hardware backed OMX - Therefore, by proxy, L1 DRM is broken, we're currently trying to fix it, but it's proving tough to figure out. Software OMX fallback is in use for now, though, and works fine on almost all non-DRM videos.
    • SELinux is permissive, this is only due to a lack of time to put together a decent looking sepolicy for the devices,
    • (wade/dopinder only) Side-button doesn't work - On wade, you can use the IR remote to navigate recovery, on dopinder, you'll need an OTG adapter, and a keyboard or controller to attach.
    Notes:
    • GApps are baked in - No, I will not be building without GApps included for this device. These builds are built, packaged, and signed by me, and not affiliated with LineageOS whatsoever. OTA is provided the same way officials would have them.
    • Firmware is shipped in the ROM package for this device, so you'll end up on the newest version of compatible firmware after install. Please don't touch firmware partitions after install.
    FAQ:
    • Does L1 Widevine DRM break when I unlock my bootloader?

      Nope, it works fine, or at least, it will once we fix hardware backed OMX. L1 certificates, and the mechanism that reports is all still exist and work as expected.

    • Can I haz Netflix?

      Not the Android TV one, not until we fix hardware backed OMX, at least - after that it should work fine. For now, you can go sideload the tablet Netflix, it works fine!

    • Is this Android TV or Google TV?

      Android TV, with some of the better components of Google TV.

    • Can I go back to stock and relock the bootloader?

      Yeah, grab the factory image for your device and flash it just like you would for a Pixel device, you can find the factory images here. Don't know it I'd relock though, consider that process largely untested on these device. Especially on sabrina, where you can't necessarily re-unlock should you ever want to.

    • Are these the stock codenames for these devices?

      Astute observation, no, they are not. The ADT-3 is actaully `adt3`, but earlier in production is was `deadpool`, which is much cooler. The Dynalink box internally is extremely similar to the ADT-3, so we coined it `wade` after Wade Wilson, AKA deadpool. The Onn box is in the same family, but different enough to coin it `dopinder`, after, well, go watch Deadpool the movie I guess. sabrina is actually the codename given by Google - no clue as to the reason.

    • Does it pass SafetyNet?

      Nope, SELinux is permissive, among other things. You can probably use Magisk if you really need that, but the good news is, 99% of Android TV apps don't care about SafetyNet, unlike on mobile, where a lot of them do.

    • Does the stock remote work?

      Yup, just like it would on stock, in-remote-microphone and all! If it's an IR remote like wade's, it will even work in recovery!

    • Can we we support higher resolution than 4K, higher FPS, or HDR on non-certified screens?

      Nope.

    • I have a very similar device! Can I install these builds and use them?

      No. Please don't do that. You will brick your device, as we include firmware and bootloader images.

      If you're a developer looking to help port to a new device, contact me.

    Kernel Source: https://github.com/LineageOS/android_kernel_amlogic_linux-4.9

    Contributors:
    • npjohnson
    • stricted
    • webgeek1234
    • deadman96385
    • trautamaki
    • luca020400
    • aleasto
    10
    Yeah, you used the stock recovery. You need to fastboot flash, then fastboot boot recovery, I'll update the docs.

    For dopinder, it's needed right now.

    Found a procedure for dopinder without the need for keyboard/OTG.

    The docs under "Installing a custom recovery using fastboot" state to use "adb reboot fastboot" which doesn't work for booting recovery, needed to do "adb reboot bootloader" instead.

    Full command log (after unlocking bootloader and re-enabling USB debugging) of the install process with just a regular Micro USB to USB A cable:
    Code:
    adb reboot bootloader
    fastboot flash recovery lineage-18.1-20210805-recovery-dopinder.img
    fastboot boot lineage-18.1-20210805-recovery-dopinder.img
    adb reboot sideload
    adb sideload lineage-18.1-20210805-UNOFFICIAL-dopinder.zip
    # if successful then load bootloader and factory reset
    adb reboot bootloader
    fastboot -w
    fastboot reboot

    Successfully booted to LineageOS after this!
    6
    Note:

    Since the Lineage Android TV Builds for this little box (aka Boxes), are stable for the most part, but seems
    people are bouncing back in forth from Stock to Lineage and back to stock.

    I created a batch file that will auto flash the stock images and wipe data and so on.. pretty much it will
    make your box as it was when you first booted it after taking it home to try it.

    2nd, I also created a batch file that will backup current images.. No need for a fancy recovery or anything like the
    such. it will use the worldcup or what I like to say, USB Burn mode, and backup each and every partition.
    as well as some not so much needed ones like, misc and metadata. (Just for giggles)..

    backups will be copied to backup dir, I also created a separate batch file to restore your backup.


    I am one that hates doing things the long way over and over, so I always create ways to make things simple
    in the future for people.

    This way, you all can test your hearts out all the new lineages and still have your full Stock backup (including data).
    and restore back in forth as you wish.

    I will upload the backup_restore zip package as soon as I can and with @npjohnson permission I will link
    in thread. Otherwise you will have to just DM/PM me and ill link you the location.

    I am just trying to help the many that I seen complain and dont understand how to go back in forth.
    so with this script, it should take care of most on that. No Fancy Recovery needed...

    you will need worldcup driver for Amlogic........ you can find that on your own.

    Also, to get into USB Burn mode, press side button while plugging in USB cable.
    Keep pressing till you see the LOGO or hear the sound from your computer.

    then just run the batch file and wait..

    if its easier for you:

    Run the batch file, it will keep saying waiting for device..
    Just press the side button while plugging in USB, when you see it start, then release button...........
    and wait till finished..

    Only TESTED On Dopinder Boxes, but im sure they are all the same as for the partition layouts.
    5
    I ultimately settled on 1126400000, gives ~1.1GB to the system and accommodates the app adjustments I've been making for my builds without tripping OpenGApps' space check for TV stock
    this ended up being _wayyyyy_ to much, as this is the full value of the partition vs just the space to reserve, both will work, but we want to split it amongst partitions. One of our guys recalculated it and got it working.

    Should be good to build now from breakfast/extract-files (or syncing the muppets).

    Only thing left is hardware OMX. Hopefully we can figure it out!
    4
    This is is exactly what I've been waating to do just didn't want to go through the tedious parrt of figuring out the keymap remapping scheme . Could you share your changes or point me in the right direction? Also can I get some clarification on DRM is it working or not working ? The OP is a little confusing. If I understand correctly it is not working but only because od broken HW omx not bootloader unlock so it's just a bug not a limitation. Or is that incorrect? (I'll help with development btw, synced tree last night . Gonna dive in tonight)
    Netflix and Amazon Prime 4k work with Magisk on stock, safetynet ctsProfile does fail but looks like it doesn't matter like OP said.

    For remap I placed the attached folder in /data/adb/modules