[ROM][11.0][UNOFFICIAL] LineageOS 18.1 for Unihertz Atom L and XL [Alpha] [2023-09-18]

Should the OTA update feature be enabled in the next build?

  • Yes, I'll overlook the montly updates otherwise.

    Votes: 1 100.0%
  • No, I don't have enough mobile data for a montly update cycle.

    Votes: 0 0.0%

  • Total voters
    1
  • Poll closed .
Search This thread

grandmagoblin

Member
May 11, 2023
16
4
hi guys, i saw that the rom has been updated to android 11! thats awesome! is the DMR still broken with the fully flashed rooted rom?

I haven't had a chance to try it since I don't have anyone to try it with. I can say that the app boots up and is stable, and I have not had it crash or anything, but I have not been able to try the call quality or routing. I am working on getting another Atom XL to test with, so I will let you know when I test it.
 
  • Like
Reactions: SPHM900
I haven't had a chance to try it since I don't have anyone to try it with. I can say that the app boots up and is stable, and I have not had it crash or anything, but I have not been able to try the call quality or routing. I am working on getting another Atom XL to test with, so I will let you know when I test it.
if you live in the NY area i could help
 

a-dead-trousers

Senior Member
Jul 28, 2016
487
1
189
Samsung Galaxy S5 Mini
where are the kernel sources?
In a vault at meditek headquaters.

No, seriously, mtk doesn't want their source code to be public and therefore developers like unihertz aren't allowed to publish them (or need to pay extra to do so; I don't really know the details)

There are some source code pieces in the official android kernel repository but they are way too old and not being actively maintained:
https://android.googlesource.com/kernel/mediatek/

If you want to have sources of a kernel that is compatibel with some (many?) mtk devices, there are some to be found in the various GSI builds but I doubt those will support the DMR of the Atom XL or the FM radio chipset among other things.
 

The_Anomalist

Senior Member
Jan 15, 2015
685
526
In a vault at meditek headquaters.

No, seriously, mtk doesn't want their source code to be public and therefore developers like unihertz aren't allowed to publish them (or need to pay extra to do so; I don't really know the details)

There are some source code pieces in the official android kernel repository but they are way too old and not being actively maintained:
https://android.googlesource.com/kernel/mediatek/

If you want to have sources of a kernel that is compatibel with some (many?) mtk devices, there are some to be found in the various GSI builds but I doubt those will support the DMR of the Atom XL or the FM radio chipset among other things.
Couple more questions. The link you provided. Could you find the source that works with or for your device and the 2nd question is how many people have been trying to decide for device?
 

The_Anomalist

Senior Member
Jan 15, 2015
685
526
I bet we could get more people involved. I am at least active. I have Atom XL and Atom L to test with. I plan to get another Atom XL to test DRM.
Well I'm down to help as well. I currently am building for many misc devices along with my OnePlus 8T. Check those source for me and see if they got something that might work. I'm currently at work myself so it will be a few hours before I can do anything
 

grandmagoblin

Member
May 11, 2023
16
4
I will check when I get home or have free time. I am currently at work. I will let you know what I come up with.
Okay so, the kernel version currently running is 4.14.186. There is a 4.4 version. The only issue that we would be downgrading, and I don't know how the software will take to that or if this even the right choice. How would using a Android Common Kernel work? I assume there will be some feature unavailable, but what is the general impact of that? I am willing to custom design apps to tailor to an updated kernel, if necessary.
 

The_Anomalist

Senior Member
Jan 15, 2015
685
526
Okay so, the kernel version currently running is 4.14.186. There is a 4.4 version. The only issue that we would be downgrading, and I don't know how the software will take to that or if this even the right choice. How would using a Android Common Kernel work? I assume there will be some feature unavailable, but what is the general impact of that? I am willing to custom design apps to tailor to an updated kernel, if necessary.
you got telegram?
 

a-dead-trousers

Senior Member
Jul 28, 2016
487
1
189
Samsung Galaxy S5 Mini
So I tested, and you are able to message, but not use voice. I am still working on determining what could be the issue.
As far as I know it should have something to do with USB and/or audio.
On A10 I was able to get it to work when "deactivating USB audio routing" in the developer settings. But it wasn't stable. Now on A11 I even had to tinker with A2DP and deactivate it to get bluetooth audio to work.
https://github.com/ADeadTrousers/an...mmit/c7a73e4dc7e55b12555c117634966a0834018eb5
I was only able to get this far and am not that good in system analysis especially what to look for. There are quite some errors and repeating warnings in the logs but nothing I tried seem to fix those (like selinux denies that I'm pretty sure to have added a corresponding allow for).
So every help is much appreciated.

Maybe you could also open up an issue on my github to keep track on your work.
https://github.com/ADeadTrousers/android_device_Unihertz_Atom_LXL/issues
 

grandmagoblin

Member
May 11, 2023
16
4
As far as I know it should have something to do with USB and/or audio.
On A10 I was able to get it to work when "deactivating USB audio routing" in the developer settings. But it wasn't stable. Now on A11 I even had to tinker with A2DP and deactivate it to get bluetooth audio to work.
https://github.com/ADeadTrousers/an...mmit/c7a73e4dc7e55b12555c117634966a0834018eb5
I was only able to get this far and am not that good in system analysis especially what to look for. There are quite some errors and repeating warnings in the logs but nothing I tried seem to fix those (like selinux denies that I'm pretty sure to have added a corresponding allow for).
So every help is much appreciated.

Maybe you could also open up an issue on my github to keep track on your work.
https://github.com/ADeadTrousers/android_device_Unihertz_Atom_LXL/issues

I submitted an issue on the GitHub to track it. Do you also want me to take a look into the camera issue? I also forgot to mention that the GApps Google Cam does not work and instantly crashes (it is something with the software itself not your build from the troubleshooting I have done). I am wondering if maybe some settings could be added to fix it.
 
  • Like
Reactions: a-dead-trousers

a-dead-trousers

Senior Member
Jul 28, 2016
487
1
189
Samsung Galaxy S5 Mini
I submitted an issue on the GitHub to track it. Do you also want me to take a look into the camera issue? I also forgot to mention that the GApps Google Cam does not work and instantly crashes (it is something with the software itself not your build from the troubleshooting I have done). I am wondering if maybe some settings could be added to fix it.
Thanks for your help.

I've only included google camera on my private builds and I don't think this could be fixed at all. As far as I know it's only useable on a Pixel phone. The only official version that should be working on other phones is 2.7.010 but that cannot be specifically included in A11 builds as it is only for max. A9. So no need for digging into that. Also as openGapps seems to be vacant I'm considering removing it anyway.

The other thing with the wrong resolution needs some help though
https://github.com/ADeadTrousers/android_device_Unihertz_Atom_LXL/issues/13
 

agarwaen163

Member
May 7, 2023
11
0
@a-dead-trousers I have been able to acquire a log from the time it boots to when it crashes. I think I see a good deal of permission errors. Honestly I see so many errors / warnings I'm not sure which is which so I'm just attaching the entire log. Please let me know if you'd like me to record with any different logcat options or anything. This is on the TEE versions following the steps I've mentioned in my previous posts.

Edit: I don't think this forum is allowing me to post the file? It attaches but never shows afterwards.
 

clewis.it

Senior Member
Nov 1, 2006
373
175
Despite my first assumptions DMR is working great with the Atom XL and Lineage OS 18.1.
Only thing that needs to be done is deactivating "USB audio routing" in the developer settings.
My bad.
Awesome. Now that this is basically resolved, I would like to redirect things a bit. I for one don't want to be stuck on android 11. I have (finally) got the right process to upgrade to newer android GSI's. No patching kernels or disabling things you aren't already disabling (except I do use Magisk for some stuff, so root may be a deal-breaker for some users). I will document the process next time I upgrade.

Negatives:
1) the 2021-11 (Android 11) version of Intercom won't load. I have signed the app with the appropriate key (public keys for GSI's unless you build your own), and set the selinux tag for the app. Intercom will start, but continuously cycles through initializing and failed to initialize.
2) IR blaster doesn't work after the first boot.
3) FM radio is not supported.
4) TWRP doesn't decrypt with newer android versions, last time I checked. I don't know if this is still an issue since I restored the stock firmware last week.
5) Something is wrong with LineageOS based GSI's that breaks DNS services, so no internet access. AOSP ROMs that are not derived from LineageOS seem to work fine.
6) headset jack isn't detected correctly. There are some settings in the GSI that help this, though.

Positives:
1) the 2021-05 (Android 10) version of intercom does work. The only issue here is that you might get audio stuttering while the record PTT option is turned on. This is an intermittent problem I'm not sure how to resolve other than turning off the record feature.
2) VoLTE works, and I believe VoWifi also works.
3) Fingerprint works for app authentication (if you so wish).
4) Android 12 and 13 features. Possibly 14 soon.

If anyone has any ideas how to fix the negatives above, I would appreciate some assistance.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    500px-Lineage_OS_logo.svg.png


    Code:
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.

    This is a LineageOS 18.1 ROM for the Helios P60 based Atom L (Atom_L) and Atom XL (Atom_XL), two rugged Android phones released by Unihertz in July 2020.

    This ROM supports both devices as well as both regional variants!
    You need to make sure which device and variant you need!


    LineageOS is a free, community built, aftermarket firmware distribution of Android 10.0 (Q), which is designed to increase performance and reliability over stock Android for your device.

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit our Gerrit Code Review. You can also view the changelog for a full list of changes & features.

    Working (but not as one would expect)
    • VoLTE has some issus with SELinux in enforcing mode
    • DMR needs "USB audio routing" deactivated in the developer settings
    • Bluetooth audio channel is set to use the fallback instead of A2DP
    Not Working
    • LiveDisplay is not working (and probably never will)
    • You tell me
    Releases
    Atom L EEA (european union)
    Atom XL EEA (european union)
    Atom L TEE (non-european union)
    Atom XL TEE (non-european union)

    How to install
    How to update
    How to upgrade

    Links
    TWRP
    Common device tree
    Device tree Atom L (model)
    Device tree Atom XL (model)
    Device tree Atom L EEA (european union)
    Device tree Atom XL EEA (european union)
    Device tree Atom L TEE (non-european union)
    Device tree Atom XL TEE (non-european union)
    Bug reporting

    2023-09-18
    * September security updates included
    2023-08-20
    * August security updates included
    2023-07-12
    * July security updates included
    * Use apns-conf.xml from 2022/2023 stock rom
    2023-06-12
    * June security updates included
    * Possible fix for VoLTE
    2023-05-14
    * May security updates included
    * Updated HardwareKeyMapper to only rely on AccessibilityService
    2023-04-20
    * April security updates included
    2023-03-23
    * March security updates included
    2023-02-18
    * February security updates included
    2023-01-12
    * January security updates included
    2022-12-12
    * December security updates included
    2022-11-14
    * November security updates included
    2022-10-09
    * October security updates included
    * Workaround for bluetooth audio not working with A2DP
    2022-09-22
    * September security updates included
    2022-08-22
    * August security updates included
    * Switched from NavButtonRemap to HardwareKeyMapper for PTT integration
    2022-07-15
    * Switched to LOS 18.1
    * July 2021 vendor updates included (needs vendor to be upgraded manually)
    * July security updates included
    2022-04-21
    * April security updates included
    * Extended apn list included
    2022-03-27
    * March security updates included
    2022-02-16
    * February security updates included
    * Updated apns-conf.xml with stock entries
    2022-01-31 (Only for Atom L TEE)
    * Fixing a mixup of the prebuilt kernel
    2022-01-22
    * January security updates included
    2021-12-16
    * December security updates included
    2021-11-14
    * November security updates included
    2021-10-10
    * October security updates included
    2021-09-16
    * New icon for NavButtonRemap
    * LineageOS OTA updates enabled
    * September security updates included
    2021-08-10
    * August security updates included
    2021-07-14
    * July security updates included
    2021-06-16
    * May vendor updates included (needs vendor to be upgraded manually)
    * June security updates included
    * FMRadio is working now
    * Nav Button Remap included
    2021-05-10
    * May security updates included
    2021-04-15 2021-04-21
    * April security updates included
    * FMRadio is working now, without sound
    * Raised the size of the system and product partition to support bigger gapps installs
    * Combining the work for the Atom L and XL
    2021-03-09
    * March security patches included
    * Built for the first time using a combined Atom L/XL device tree
    2021-02-11
    * February security patches included
    * Notification LED is working now
    * Included FMRadio app (but not working)
    2021-01-24
    * Intercom DMR is working now
    * Audio Jack fixed
    * Wifi Hotspot and USB Tethering are enabled
    2021-01-16
    * January security patches included
    * Switched to TWRP recovery
    2020-12-19
    * December security patches included
    * Updated for stock release 2020-11-04 (announced 2020-12-03), needs vendor to be updated separately
    * !!! untested (for now) !!!
    2020-11-10
    * Rom build variant is "user" and is signed with release keys
    * Recovery is still build variant "userdebug" and signed with test keys
    * November security patches included
    * Intercom doesn't crash anymore (but still doesn't work either)
    * Some apps and sepolicies included from stock rom
    2020-10-01
    * Initial Alpha build released

    Help from other developers is certainly welcome. Currently only myself is working on this ROM.

    Credit and Thanks

    • LineageOS team
    • @PeterCxy for starting the work on the Atom L

    Enjoy! (y)

    XDA:DevDB Information
    LineageOS 18.1 for Unihertz Atom L and XL, ROM for the Android General

    Contributors
    a-dead-trousers
    Source Code: https://github.com/ADeadTrousers/android_device_Unihertz_Atom_LXL

    ROM OS Version: Android 11
    ROM Kernel: Linux 4.x
    Based On: LineageOS

    Version Information
    Status:
    Alpha

    Created 2020-10-02
    Last Updated 2023-09-18
    2
    Good news my fellow Atom XL Users: DMR is working (kind of) even in the current release! :)

    BUT

    only with a freeset :confused:

    During my struggles to get the mediatek code integrated into LOS I encountered many problems. One was that I muted the phone entirely. So with every step I took I did a full sound check including audio jack and headphones. That's how I found out that the sound of the DMR was working all along even without any modifications. It's just not able to "access" the built in microphone and speaker.
    This feels quite familiar as I had some issues with the audio jack in the beginning but the other way round. So maybe some settings I changed to get the audio jack to work were counteracting this.

    Just to let you all know, that there is still some progress on my part.
    2
    Hi everyone!

    I am not sure whether I have ever posted on these forums at all, but this one got me seriously intrigued and for the first time I felt the sudden urge to jump in and assist if I can.

    Just received my Atom XL yesterday afternoon (which seems to be just the best phone I have ever owned), and I have started to look for options to replace the stock ROM or at least root it so I can remove the bloat and Google crap before I actually start using the phone as a phone.

    I am really happy to see we already have a working Lineage build for this - so huge thanks to everyone for the efforts so far!

    My other phone is a Blackview BV9100 for which there was not much to be found in terms of customization, and since the manufacturer software updates are non-existent I had to figure out everything by myself - which means I have some experience, so if there is anything I can provide to help fixing the current issues, just let me know. I will give a shot at rooting the XL tonight but keep the OS otherwise untouched for a while if needed. I see flashing a Magisk patched boot.img caused a bootloop for someone, so I will see if I can get it to work somehow.

    In the meantime I will have a look at the issue updates on Github as well to see what is the actual status.
    2
    First impressions: install went smoothly, I'm so happy to have a Google apps free install. I'll try features, but so far, no show stopper, it feels good!
    2
    Thanks for all the help above on flashing with the sdtool. I've been using the 11/10 build for the past couple months and have recently updated to the 1/24 build. Already noticed a few fixes for things that I use.

    Here is a list of things I encountered in the 11/10 build with notes as to what I've seen in the 1/24 build so far.


    Wifi/bluetooth randomly turning off - For some reason, wifi/bluetooth would just turn off after about 1-2 days of uptime. Toggling it back on through the menu brought it back up. Unsure if resolved, need more time to test.

    Bluetooth failing to connect to anything after days of uptime - After a few days, bluetooth would just die and require a restart of the phone to fix. Toggling bluetooth off/on again had no effect. Unsure if resolved, need more time to test.

    Wifi calling would only work on the first wifi network connected to - A quick test of toggling off wifi and reconnecting seems to allow wifi calling to still work. Will continue to see if it continues.

    Disconnecting wifi - Phone disconnects from 5GHz wifi every 30 minutes and reconnects, even with strong signal. Will disable 5GHz on the AP to see if it continues to do this tonight on 2.4GHz. This might be an issue with my AP.

    UHF radio not working - Tested with my ham radio, able to broadcast and receive now.

    Magisk unable to display the root access dialogue - Works now and apps can be granted root

    ADB over usb sometimes not working - Haven't seen this issue yet, but it was random before. Will continue to watch for this.