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

Status
Not open for further replies.
Search This thread

talksickisil

Senior Member
Dec 25, 2009
261
64
Aurora,IL
My struggle with the Android TV continues.
Now I got Nova launcher installed, but still unable to use any widgets.
Tried adding my usual Analog clock widget and the moment I place it on the screen, it just disappears.
What are my options of placing a clock on the home screen somehow?
At this point I am willing to settle even for digital one (though analog would be preferable).
I mean, you could search emotn ui launcher.. it’s actually designed for android tv, and has both live wallpapers and clock and weather widgets you can display. I just went to search it on play store before replying, and it’s seems it’s recently been removed. So, at your own risk and maybe search why is it not in play store or check out screen shots of how it looks on google images before downloading it. I can’t imagine a phone launcher like nova or apex to play nicely with android tv
 
  • Like
Reactions: BTK19

xperanto

Senior Member
Jan 22, 2017
76
69
-> And I managed to get to the Lineage OS Recovery Screen as you can see on the picture, but unfortunately I was not able to press the "OK"/"Enter" Button on any of the options, does anyone know what causes this?
The "Ok button" is wrongly assigned to the power button on the remote, but only in recovery mode .At least on my EU-Version. So press the power button on your remote to select.
Also, keep in mind, that wade uses IR for the remote and not bt in recovery mode.
It's somehow unclear for me if wade uses only BT completely as i think, instead of IR in LOS (e.g. if i cover the the ir-diode on the remote or use it while in another room it still works for e.g. navigating, but not in recovery).
Could be that IR is just meant as a fallback for recovery.
 

matrix200200

Member
Jun 22, 2010
48
4
I mean, you could search emotn ui launcher.. it’s actually designed for android tv, and has both live wallpapers and clock and weather widgets you can display. I just went to search it on play store before replying, and it’s seems it’s recently been removed. So, at your own risk and maybe search why is it not in play store or check out screen shots of how it looks on google images before downloading it. I can’t imagine a phone launcher like nova or apex to play nicely with android tv
Thanks I will try.
Do you know if it supports shortcuts?
I have a program called "Http shortcuts" to run my smart home stuff (Domotociz shortcuts).
Except for that I just need VLC and access to something similar to app drawer (don't want to put all my apps on the main screen).
 

talksickisil

Senior Member
Dec 25, 2009
261
64
Aurora,IL
The files for remapping the buttons are essentially a Magisk Module the guy built. It simply removes the already existing keybindings for the 4 buttons, so you can change them to something else.

Download the github repo
  • click CLONE
  • click DOWNLOAD ZIP
You will see the "onntvremap" folder you are missing inside the .zip file now on your pc.

You can either follow the remainer of the guide (easiest), or make the onntvremap folder into it's own zip and install it with Magisk.

If you Really knew what you were doing, you could also skip using the button remap app entirely and just change the button remappings by editing the onntvremap files, but that implies you know the exact path and commands needed to execute said apps. It's not hard so don't let me discourage you from trying.
Well I know the path. It’s the files in system > usr> key layout. The onn has a slightly different setup as somebody who had dopinder and then wade, both with magisk… that onn remote remap is not 100% compatible with wade a lot works but it doesn’t completely work. We need to ask the developer of that script to make it for wade. It works good. But just like you mentioned you need to know which file to change. There’s about 100 .kl files in the location I mentioned.
 

talksickisil

Senior Member
Dec 25, 2009
261
64
Aurora,IL
Good evening gentleman. So I ordered one of those Playstation Classics online I got a great deal on it. BUT, in order to mod it I needed a low power usb drive. The only one I know for sure is low power was the one assigned as internal storage on dynalink. So I cloned the drive on etcher, but I decided to start with a fresh install of Lineage since the cloned drive was larger and dynalink would not see the drives actual size. What was my point again? Oh yeah, I am no longer having issues with network upon reboot. Previously I needed to toggle wifi off then back on with every reboot. I could be wrong but I suspect the issue I was having is related to the apps having the issue were being installed onto my flash drive acting as internal storage rather than being installed to ACTUAL internal storage. Long story short, I have even less to complain about now. Has anybody else had this issue only to see it resolve recently? I am on the 12/4 build. If anybody is having this issue with wifi on reboot and is using an older build, try the 12/4 nightly and let me know if the issue remains! Thanks. I wish I would have waited one more day as the nightly builds always drop on Sunday but that's okay. Hope you guys have a great weekend.
 

iodemos

Member
Feb 20, 2021
17
7
Install this driver: https://drive.google.com/file/d/1q3Hwrmx-YCrw9U5JGtI2Ocn06zPkjrEG/view?usp=sharing
Download the Windows folder from here: https://github.com/osmc/aml-flash-tool/tree/master/tools
Extract the zip file and enter it from the cmd line
Run: `update.exe bulkcmd fastboot`

Will get you back to fastboot and able to reflash the correct recovery (18.1)

This is the method I debricked mine
My DynaLink TV Box Model DL-ATV36 is broken. After power on the logo DYNALINK is stuck, nothing works - neither ADB nor FASTBOOT mode are possible.

The 16-bit 'aml-flash-tool' from 2018 does not run on a Windows 10 64-bit system because of its incompatibility, on a Windows 8.1 32-bit system after entering the command 'update.exe bulkcmd fastboot' it aborts with the note: "Too big to fit in memory".

Is there another way to get into fastboot mode to at least flash the stock recovery.img?
 

talksickisil

Senior Member
Dec 25, 2009
261
64
Aurora,IL
My DynaLink TV Box Model DL-ATV36 is broken. After power on the logo DYNALINK is stuck, nothing works - neither ADB nor FASTBOOT mode are possible.

The 16-bit 'aml-flash-tool' from 2018 does not run on a Windows 10 64-bit system because of its incompatibility, on a Windows 8.1 32-bit system after entering the command 'update.exe bulkcmd fastboot' it aborts with the note: "Too big to fit in memory".

Is there another way to get into fastboot mode to at least flash the stock recovery.img?
Can you get to recovery by holding the button on the device while plugging it in ?
 

AiM2LeaRn

Senior Member
Aug 11, 2021
52
10
I had succes with unbricking my Dynalink wade on windows 10 using this unbricking tool:


Thanks alot to @skippyd, it saved me alot of headache :)
- Advise from me: Next time, try to put in all the unzipping parts in one folder

I followed the instructions by @npjohnson from a previous page:

"adb reboot bootloader
fastboot oem 'setenv lock 10101000;save'
fastboot reboot bootloader
fastboot flashing unlock
fastboot flash dtb lineage-dtb.img
fastboot flash dtbo lineage-dtbo.img
fastboot flash recovery lineage-recovery.img
fastboot reboot-bootloader
fastboot boot lineage-recovery.img "

-> And I managed to get to the Lineage OS Recovery Screen as you can see on the picture, but unfortunately I was not able to press the "OK"/"Enter" Button on any of the options, does anyone know what causes this?

- I had no other option than pulling the plug, which led to a bootloop and now I am back on stock again.

- I noticed trying to change from charging to MTP (Media Transfer Protocol) always leads to crashing, but I need it on Linux(Fedora) in order to get permission in adb. (I do not receive an USB Debugging request on Linux somehow)

to use the remote to navigate recovery
-power button on remote is <enter><Select> on the recovery screen
-back button on the remote is to go back on the recovery screen
-up/down on the remote is to move up/down on the recovery screen
 

AiM2LeaRn

Senior Member
Aug 11, 2021
52
10
Does anyone know if can you SKIP the initial setup ( Connect to Wifi and Google Account Creation Setup ) with the UNOFFICIAL lineage build?
 

activadroid

Senior Member
Feb 25, 2020
53
9
Google Pixel
Google Pixel XL
just checked after installing today (2022Dec12) latest UNofficial wade (ver 20221212 downloaded an hour ago) Settings > Privacy > Trust > shows Android security patches as "A few months out of date'.
I would expect minutes, hours, or days out of date & not months.
Can anyone enlighten ?
 
Last edited:

iodemos

Member
Feb 20, 2021
17
7
Can you get to recovery by holding the button on the device while plugging it in ?
No, no reaction.

After entering

fastboot flashing unlock
fastboot flash dtb lineage-19.1-20221024-dtb-wade
fastboot flash dtbo dtbo.img
fastboot flash recovery lineage-19.1-20221211-recovery-wade.img

still shows only the DynaLink logo.
 

xperanto

Senior Member
Jan 22, 2017
76
69
Does anyone know if can you SKIP the initial setup ( Connect to Wifi and Google Account Creation Setup ) with the UNOFFICIAL lineage build?
You can skip/bypass the Google setup wizard in Unofficial LOS with

adb shell settings put global setup_wizard_has_run 1
adb shell settings put secure user_setup_complete 1
adb shell settings put global device_provisioned 1
 
Last edited:

AiM2LeaRn

Senior Member
Aug 11, 2021
52
10
You can skip/bypass the Google setup wizard in Unofficial LOS with

adb shell settings put global setup_wizard_has_run 1
adb shell settings put secure user_setup_complete 1
adb shell settings put global device_provisioned 1

wow, your are a life saver, thanks IT WORKED!!!!

i QUICKLY (cause if i dont push to allow adb connection the popup disappears after a few seconds) so i quickly enabled the adb connection at FIRST BOOT when the popup appeared. then i typed your commands in adb
adb shell settings put global setup_wizard_has_run 1 adb shell settings put secure user_setup_complete 1 adb shell settings put global device_provisioned 1

and then i unplugged the power from the device and plugged it back in and i was able to bypass the setup. bro thanks again.
 

iodemos

Member
Feb 20, 2021
17
7
Use the forum search feature to find any one of the multiple posts on how to get the device to enter fastboot or bootloader. ...
Well, I am already looking, but so far without success.

- - -
update bulkcmd fastboot
[update]:No [WorldCup Device] device after scan
[update]ERR(L1094):can not find device
 
Last edited:

iodemos

Member
Feb 20, 2021
17
7
The good news first: I was able to revive my TV box.
However,, the tips here and the extensive searching here on XDA were of no help to me. I finally found on the WWW the "Amlogic G12* SM1 Family Devices Tools v1.00" which reinstalled stock Android 10.

Amlogic-G12-SM1-Family-Devices-Tools-v1.00 .jpg

The bad news: The installation after the LineageOS Wiki Install LineageOS on wade bricks again my DynaLink TV Box Model DL-ATV36.

Unlocking the bootloader

adb reboot bootloader
fastboot devices
fastboot oem 'setenv lock 10101000;save'
fastboot reboot bootloader
fastboot flashing unlock

(6.) The TV box did not reboot automatically, so I rebooted it manually.

(7.) Since the device was completely reset, USB debugging had to be re-enabled to continue.
Flashing the partitions dtb and dtbo


Flashing the dtb and dtbo partitions
- - -
adb reboot bootloader
fastboot flash dtb dtb.img
fastboot flash dtbo dtbo.img


Installing a custom recovery with fastboot
- - -
adb reboot bootloader
fastboot devices
fastboot flash recovery lineage-19.1-20221211-recovery-wade.img
fastboot reboot-recovery

The command »fastboot reboot-recovery« was not executed, that means the TV-Box did not boot into the recovery to verify the installation.

Trying to boot the TV box manually into recovery mode failed and ended again at the DynaLink logo - and again could not be controlled with adb or fastboot commands. So I was again at the point #1.737 "My DynaLink TV Box Model DL-ATV36 is broken".

I will not use the official LOS installation guide again, so: which How-To brings me to the successful 'LineageOS on wade' installation?
 
Last edited:

AiM2LeaRn

Senior Member
Aug 11, 2021
52
10
Well, I am already looking, but so far without success.

- - -
update bulkcmd fastboot
[update]:No [WorldCup Device] device after scan
[update]ERR(L1094):can not find device
i had "format system" in recovery and the same thing happened to me, i got stuck on the logo and wasnt getting detected in fastboot, recovery or bootloader and the serial number was missing. I had to use the burn tool to restore factory image and then it worked again and the serial number was restored.

there are a bunch of ways to restore factory firmware, plenty are listed in this thread but its going to take time to READ and CAREFULLY FOLLOW.

have to install world cup driver and adb drivers. Helps if you have the windows sound on to help you know when it detects the device. you have to do the plug in while holding power button trick and as soon as you hear the detection noise in windows just wait like 1-3 seconds and you can let go of the power button, its all about timing it right, but eventually it detects and starts flashing from the logo screen.

I HOLD NO RESPONSIBILITY IF YOU TRY THIS BELOW, HOWEVER IT WORKED FOR ME...

this is automated and fairly simple and might work, i would try this first becuase it automates the driver installation and all the files you need to restore.


if that doesnt work you should have all the drivers and stuff installed from the files above and then you can maybe give this a try the RESTORE function from "backup and restore " script from Eliminater74 from here:

https://forum.xda-developers.com/t/official-unofficial-lineageos-19-1-for-amlogic-g12-sm1-family-devices.4313743/post-86327923

if those 2 dont work theres Amlogic burn tool... i personally got it to with the restore script from Eliminator. dont hold me responsible for using any of those methods or files, use at your own risk, however they worked for me.
 
Last edited:
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    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 Official Lineage OS 19.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:

    Official Builds:

    Disclaimer: My unofficial builds have full Android TV Google Apps and some other goodies included. OTA's roll roughly once a month. Support not guaranteed or implied.

    Unofficial Builds:
    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:
    EDIT: The development boards don't boot on LineageOS 19.1 at the moment for some reason, we're looking into it.

    If you don't follow these instructions, or use 3rd party add-ons (like Magisk) please don't expect support here.

    Known Bugs:
    • Recent apps/Multitasking menu doesn't launch.
    • (sabrina only) The remote firmware sometimes gets hung up, you can reboot to solve this issue.
    • (dopinder/sabrina) L1 is currently broken, this is what is holding up official builds for these devices.
    Notes:
    • GApps are baked in on Unofficial builds - 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.
    • 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.
    • On the unofficial OTA is provided the same way officials would have them.
    • Find any more on an official build? Report them according to this guide.
    FAQ:
    • Does L1 Widevine DRM break when I unlock my bootloader?

      Nope, it works fine. L1 certificates, and the mechanism that reports is all still exist and work as expected.

    • Can I haz Netflix?

      Yup! Play Store has it for you. Unless you're on dopinder or sabrina, but that will be fixed soon hopefully.

    • 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?

      Maybe - the only sure fire way it Magisk, as our boot loader is unlocked and can't be relocked safely.

    • 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
    • bgcngm
    • stricted
    • webgeek1234
    • deadman96385
    • trautamaki
    • luca020400
    • aleasto
    14
    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!
    7
    deadpool an wade are official again, hopefully we got it all right this time around.

    onto dopinder and Sabrina. Hoping to get those shipped soon.
    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.
    6
    wade and deadpool are official now!