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

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

a-dead-trousers

Senior Member
Jul 28, 2016
479
1
186
Samsung Galaxy S5 Mini
Oh. that's my Magisk repo.
It's not working so well and I thought I had it removed from the build guide. My bad.
The problem here is, that the script requires an already existing boot.img but that gets build later in the process. I haven't found a solution for that yet but I can offer two workarounds:
1) Do not not include magisk at all. Don't forget to remove the folder under "vendor"
2) Comment out these two lines https://github.com/ADeadTrousers/an..._Atom_LXL/blob/master/deviceCommon.mk#L66-L67 and build the rom. Uncoment the two lines once again and build once more. In the end you need to manually add the boot.img from the "out" driectory into the final zip file to have magisk installed alongside the rom.
 

agarwaen163

Member
May 7, 2023
6
0
That was it, thank you! Build has completed now, I had to install `openjdk-11-jdk` to get through one final hickup. I appreciate the help and the effort. Will report back once I've been able to test flashing and hopefully get a chance to use it.
 

agarwaen163

Member
May 7, 2023
6
0
Hello again. I have successfully flashed both the latest release image from the github and my built image into mostly working OS's. It seems to work fine for about 50 seconds and then it spits me back out into TWRP after the restart. I can click `Reboot System` in TWRP and get back to LOS but then it will repeat this error again the same way indefinitely.

I didn't click on the `Lineage Recovery` option when LOS was first installed though, not sure if it's best to replace TWRP yet? Also did not include magisk.
 
Last edited:

grandmagoblin

Member
May 11, 2023
14
4
Okay so, I did a custom build using your guides and stuff. Is there anything that would limit the camera resolution? My camera is currently pulling up as 11MP max. I have tried using the Open Camera and another third party camera, same result. I cannot use Google Camera since it crashed upon reopening. Any ideas?
 

agarwaen163

Member
May 7, 2023
6
0
Which stock rom did you have installed prior to lineage?
Build Number: Unihertz_Atom_XL_20210729
I originally tried with the updated super.img from 2021-05, that didn't work, then I updated it to 2021-11 and that seemed to work (wasn't sure which to use). Is there a different stock rom I need to flash it back to / another step I need to do?
I don't have a windows machine but I'm sure I can get it working with Debian if it's possible(?)
 

a-dead-trousers

Senior Member
Jul 28, 2016
479
1
186
Samsung Galaxy S5 Mini
Okay so, I did a custom build using your guides and stuff. Is there anything that would limit the camera resolution? My camera is currently pulling up as 11MP max. I have tried using the Open Camera and another third party camera, same result. I cannot use Google Camera since it crashed upon reopening. Any ideas?
Hmmm... I seem to have missed that. It was once 48MP on my device and now it's 11MP too. Some others reported the same phenomenon but I couldn't reproduce it. Now I can. *hurray*
I think this might have happend when switching from A10 (LOS 17.1) to A11 (LOS 18.1).
Build Number: Unihertz_Atom_XL_20210729
I originally tried with the updated super.img from 2021-05, that didn't work, then I updated it to 2021-11 and that seemed to work (wasn't sure which to use). Is there a different stock rom I need to flash it back to / another step I need to do?
I don't have a windows machine but I'm sure I can get it working with Debian if it's possible(?)
You need to have the same stock rom version installed as the kernel that is used in boot.img. There are some driver and bootloader partitions included that need to be updated alongside the kernel and the vendor partition (part of super.img).

You can use the info from my UPGRADE guide to do a "partial" flash of the stock rom to not need a full installation
https://github.com/ADeadTrousers/android_device_Unihertz_Atom_LXL/blob/master/docs/HOW-TO-UPGRADE.md

An other reason for immediate reboot could be an "incompatible" data partition. The only way to correct this would be a full wipe.
 

grandmagoblin

Member
May 11, 2023
14
4
Has anyone else reported any issues with cellular? It's weird. I can use data and text message, but I cannot make any calls. It does not even get to the dial tone. I will see about running a pcap, and see if I can capture what is going on.
 

agarwaen163

Member
May 7, 2023
6
0
Alright... well that was arduous af on linux, but I think I have come to a solution.

First, https://www.xda-developers.com/bypass-mediatek-sp-flash-tool-authentication-requirement/ this guide on bypassing the sp-flash-tool authentication was required as I couldn't get the SP_Flash_Tool to work via any means on Linux.

This guide by Miss Montage was super helpful for getting the actual flash_tool to run at all in linux, with the libpng12.so.0 issues being solved the most simply by just downloading a later version (this is the exact link/version I used: v5-2228). (it's also possible to build that dependency yourself and ln -s the .so, but new version didnt require this).

But running on my normal Debian 11 install I kept running into this error no matter what I attempted:
Bash:
Connect BROM failed: STATUS_ERR(-1073676287)
Disconnect!
BROM Exception! ( ERROR : STATUS_ERR (-1073676287) , MSP ERROE CODE : 0x00.

So I first got the fireiso listed in the first article running. All steps after this are on the fireiso OS:
From there I installed the correct linux version of the SP_Flash_Tool as listed above, and copied the 2021-11 version of the Unihertz Stock ROM over too.
Next, I cloned the exploits_collection and copied `default_config.json5` and `payloads` to the `bypass_utility-v.1.4.2` directory. I then ran the `./main.py` as specified in the first article.
Next, I plugged in the Atom XL phone using the factory shipped usb cable while holding the Volume+ button. The python script ran briefly and exited.

Then, without unplugging the phone, I started `./flash_tool` from the same terminal. Following your instructions on Upgrading the Stock ROM I specified the scatter file and selected `Download` from the drop down menu.
EDIT: `Download` still resulted in bootloops after everything. Try `Firmware Upgrade` instead.
My phone had booted into TWRP during this time, so it was simple enough to click `Reboot` `Fastboot` from here (important thing is to boot the phone into fastboot), which is where the `./flash_tool` finally worked for me.

(Back on Debian 11)
Following this, I had to follow the normal steps for installing Lineage, including installing TWRP via the recovery.img, updating the super.txt to the 2021-11 version, wiping the data as specified in the install guide, and then installing via the SD card method.
The first time I tried this I got an error about it failing to unmount `vendor` partition at the end of the install in TWRP. The phone then bootlooped.
I got back into TWRP and redid the last part of installing the Lineage Zip, and this time I didn't get any errors on the install.
 
Last edited:

agarwaen163

Member
May 7, 2023
6
0
Hm well it would seem that I've run into the same error as before. Reflashing https://drive.google.com/file/d/1JUYt3HCFqUQrpWj1lGF0F7axVPXaQAR5/view?usp=share_link this image still gives me the same stock ROM version at the end of flashing STOCK (Build Number: Unihertz_Atom_XL_20210729). (And thus the same lineageOS bootloop errors). I have tried Firmware Upgrade and Download Only now. I matched the super.img too. What exactly was the Stock ROM you used and where did you get it? AFAIK this should all match now, but my build of 20210729 makes me wonder if the firmware upgrade simply restored it somehow(?) or more likely that something is off. Should I be using the 2023 release from Unihertz drive?
Finally, it seems after "Firmware Upgrade" to the stock rom mentioned and now I can't unlock fastboot at the beginning of the flash process. I will post any updates as I make them.

Edit: Was forgetting to reenable "OEM Unlock" option. I have updated to the 2023 version of the Stock Unihertz ROM but same result and build number. Still experimenting.
 
Last edited:

a-dead-trousers

Senior Member
Jul 28, 2016
479
1
186
Samsung Galaxy S5 Mini
@agarwaen163
You did quite the effort to get sp flash tool working in linux. I'll need to try that too.

I'm using the stock package starting with 20211117 including the kernel with build date 2021-11-17 and security patch level 2021-07-05.
The 20230110 package contains the same kernel and therefore in my opinion isn't worth the effort of providing an update.

For the bootlooping I'm pretty much out of ideas. The only bootloops I had were with non matching rom partitions (EEA vs. TEE and/or different release dates) and "incorrect" data partitions. You could try to flash userdata only using sp flash tool instead of doing a wipe but I doubt that would make a difference.

Only way possible now to tackle this would be to logcat and dmesg the boot process and see if something out of the ordinary shows in the logs.
 

a-dead-trousers

Senior Member
Jul 28, 2016
479
1
186
Samsung Galaxy S5 Mini
Has anyone else reported any issues with cellular? It's weird. I can use data and text message, but I cannot make any calls. It does not even get to the dial tone. I will see about running a pcap, and see if I can capture what is going on.
Let me guess: You're using VoLTE.
I just recently found an error in the logs while trying to get the DMR of the XL to work. Reguarding the name of the executable involved 'vtservice' my guess is that it might be related to VoLTE. I already found a possible workaround for this but currently it's not performing as it should.
https://github.com/ADeadTrousers/an...mmit/f9b38ff159a6090b0c7b75a209a2f11d9e0b6c6b
 

grandmagoblin

Member
May 11, 2023
14
4
Let me guess: You're using VoLTE.
I just recently found an error in the logs while trying to get the DMR of the XL to work. Reguarding the name of the executable involved 'vtservice' my guess is that it might be related to VoLTE. I already found a possible workaround for this but currently it's not performing as it should.
https://github.com/ADeadTrousers/an...mmit/f9b38ff159a6090b0c7b75a209a2f11d9e0b6c6b

So I do see that there is not an option for VoLTE, and it is disabled. I changed providers to test whether it was a provider issue, and it is.. mostly. I am using Mint Mobile right now, and there is a significant delay in the calling which is to be expected since I have read that it because VoLTE is not supported. I am still able to make calls, just takes a bit to make them like ~30-60 seconds delay. As far as getting this working, what can I do to help? I have both an Atom L and Atom XL that I am willing to brick if necessary.
 

a-dead-trousers

Senior Member
Jul 28, 2016
479
1
186
Samsung Galaxy S5 Mini
So I do see that there is not an option for VoLTE, and it is disabled. I changed providers to test whether it was a provider issue, and it is.. mostly. I am using Mint Mobile right now, and there is a significant delay in the calling which is to be expected since I have read that it because VoLTE is not supported. I am still able to make calls, just takes a bit to make them like ~30-60 seconds delay. As far as getting this working, what can I do to help? I have both an Atom L and Atom XL that I am willing to brick if necessary.
The next release should include a fix for vtservice and hopefully that fixes the VoLTE issue.
https://github.com/ADeadTrousers/an...mmit/1953275ee7939a97ed90d6956f62e681500214f3

What I'd need is someone who is willing to do a little bit of research on the VoLTE front, test things out on their own (e.g. forking, tinkering, building, testing) and in the end providing merge requests/commits to fix VoLTE for good.

The same goes for the DMR on the Atom XL.
 

grandmagoblin

Member
May 11, 2023
14
4
The next release should include a fix for vtservice and hopefully that fixes the VoLTE issue.
https://github.com/ADeadTrousers/an...mmit/1953275ee7939a97ed90d6956f62e681500214f3

What I'd need is someone who is willing to do a little bit of research on the VoLTE front, test things out on their own (e.g. forking, tinkering, building, testing) and in the end providing merge requests/commits to fix VoLTE for good.

The same goes for the DMR on the Atom XL.

I am willing to do that. I have a basic understanding of coding. I have most of my background in Networking. When I try to build, it is getting issues with FMRadio and APN conf. I just synced my repo btw. I see that you recently made some changes.


Code:
[ 27% 10/36] build out/target/product/Atom_XL_TEE/gen/ETC/apns-conf.xml_intermediates/apns-conf.xml
FAILED: out/target/product/Atom_XL_TEE/gen/ETC/apns-conf.xml_intermediates/apns-conf.xml
/bin/bash -c "(rm -f out/target/product/Atom_XL_TEE/gen/ETC/apns-conf.xml_intermediates/apns-conf.xml ) && (python vendor/lineage/tools/custom_apns.py out/target/product/Atom_XL_TEE/gen/ETC/apns-conf.xml_interme
diates/apns-conf.xml device/sample/etc/apns-full-conf.xml device/Unihertz/Atom_LXL/etc/apns-conf-keep.xml device/Unihertz/Atom_LXL/etc/apns-conf.xml device/Unihertz/Atom_LXL/etc/apns-conf-additional.xml )"
Traceback (most recent call last):
  File "vendor/lineage/tools/custom_apns.py", line 62, in <module>
    main(sys.argv)
  File "vendor/lineage/tools/custom_apns.py", line 30, in main
    raise ValueError("Wrong number of arguments %s" % len(argv))
ValueError: Wrong number of arguments 6
[ 30% 11/36] target  C++: libfmjni <= packages/apps/FMRadio/jni/fmr/libfm_jni.cpp
FAILED: out/target/product/Atom_XL_TEE/obj/SHARED_LIBRARIES/libfmjni_intermediates/libfm_jni.o
/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -I libnativehelper/include_jni -I frameworks/base/include/media -I packages/apps/FMRadio/jni/fmr -I out
/target/product/Atom_XL_TEE/obj/SHARED_LIBRARIES/libfmjni_intermediates -I out/target/product/Atom_XL_TEE/gen/SHARED_LIBRARIES/libfmjni_intermediates -I libnativehelper/include_jni -Isystem/core/libcutils/includ
e -Isystem/core/libprocessgroup/include -D__LIBANDROIDICU_API__=1 -Iframeworks/av/media/libmedia/include -Iframeworks/av/media/libmedia/include -Iframeworks/av/media/libstagefright/include -Iframeworks/av/media/
ndk/include -Iframeworks/native/libs/binder/ndk/include_ndk -Iframeworks/native/libs/binder/ndk/include_platform -Ilibnativehelper/include_jni -Iout/soong/.intermediates/frameworks/av/media/libmedia/resourcemana
ger_aidl_interface-ndk_platform-source/gen/include -Iframeworks/native/libs/binder/include -Isystem/core/base/include -Isystem/core/libcutils/include -Isystem/core/libutils/include -Isystem/core/libbacktrace/inc
lude -Isystem/core/liblog/include -Isystem/core/libsystem/include -Isystem/core/libprocessgroup/include -Iout/soong/.intermediates/frameworks/native/libs/binder/libbinder/android_arm64_armv8-a_shared/gen/aidl -I
external/icu/libandroidicu/include -Iframeworks/av/media/libaudioclient/include -Iframeworks/av/media/libaudiofoundation/include -Isystem/media/audio/include -Iframeworks/av/media/libmediahelper/include -Iout/so
ong/.intermediates/frameworks/av/media/libaudioclient/libaudioclient/android_arm64_armv8-a_shared_cfi/gen/aidl -Iframeworks/av/media/libmedia/aidl -Iframeworks/native/headers/media_plugin -Iframeworks/native/hea
ders/media_plugin/media/openmax -Iframeworks/av/media/libstagefright/foundation/include -Isystem/libhidl/transport/token/1.0/utils/include -Isystem/libhidl/base/include -Isystem/libhidl/transport/include -Isyste
m/libhwbinder/include -Iexternal/fmtlib/include -Iout/soong/.intermediates/system/libhidl/transport/manager/1.0/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/system/libhidl/transport/man
ager/1.1/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/system/libhidl/transport/manager/1.2/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/system/libhidl/transpor
t/base/1.0/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/interfaces/graphics/common/1.0/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/
interfaces/media/1.0/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/interfaces/graphics/bufferqueue/1.0/[email protected]_genc++_headers/gen -Iout/soong
/.intermediates/hardware/interfaces/media/omx/1.0/[email protected]_genc++_headers/gen -Iframeworks/native/libs/ui/include -Iframeworks/native/libs/ui/include_private -Iframeworks/native/libs/native
base/include -Iframeworks/native/libs/nativewindow/include -Ihardware/libhardware/include -Isystem/bt/types -Iframeworks/native/libs/arect/include -Iframeworks/native/libs/math/include -Iout/soong/.intermediates
/hardware/interfaces/common/aidl/android.hardware.common-ndk_platform-source/gen/include -Iout/soong/.intermediates/hardware/interfaces/graphics/common/aidl/android.hardware.graphics.common-ndk_platform-source/g
en/include -Iout/soong/.intermediates/hardware/interfaces/graphics/common/1.1/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/interfaces/graphics/common/1.2/android.ha
[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/interfaces/graphics/mapper/4.0/[email protected]_genc++_headers/gen -Iframeworks/native/libs/gralloc/types/inc
lude -Iout/soong/.intermediates/frameworks/av/media/libmedia/libmedia_omx/android_arm64_armv8-a_shared_cfi/gen/aidl -Iout/soong/.intermediates/frameworks/av/media/libmedia/libmedia/android_arm64_armv8-a_static_c
fi/gen/aidl -Isystem/core/liblog/include -Iexternal/libcxx/include -Iexternal/libcxxabi/include -D__LIBC_API__=10000 -Ibionic/libc/include -D__LIBM_API__=10000 -D__LIBM_API__=10000 -D__LIBDL_API__=10000 -Iextern
al/libcxxabi/include   -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I frameworks/native/include -I framewor
ks/native/opengl/include -I frameworks/av/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic
/libc/kernel/android/uapi -c  -Werror=implicit-function-declaration -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-mult
ichar -O2 -g -fno-strict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -Werror=int-co
nversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -Wno-c99
-designator -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa
,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=format-security -nostdlibinc -march=armv8-a  -Bprebuilts/gcc/lin
ux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin  -Wsign-promo -Wimplicit-fallthrough -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-gnu-include-next -fvisibility-inlines-hidden  -std=gnu++17
  -fno-rtti -Wall -Werror -fPIC -DANDROID_STRICT -target aarch64-linux-android10000   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=fortify-source -Werror=address-of-temporary -Werror=return-ty
pe -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-int-in-bool-context -Wno-sizeof-array-div -Wno-tautological-overlap-compa
re -Wno-deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-string-compare
 -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-pessimizing-move  -MD -MF out/target/product/Atom_XL_TEE/obj/SHARED_LIBRARIES/libfmjni_intermediates/libfm_jni.d -o out/target/product/Atom_XL_TEE/obj/S
HARED_LIBRARIES/libfmjni_intermediates/libfm_jni.o packages/apps/FMRadio/jni/fmr/libfm_jni.cpp"
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:28:26: error: unused parameter 'env' [-Werror,-Wunused-parameter]
jboolean openDev(JNIEnv *env, jobject thiz)
                         ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:28:39: error: unused parameter 'thiz' [-Werror,-Wunused-parameter]
jboolean openDev(JNIEnv *env, jobject thiz)
                                      ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:38:27: error: unused parameter 'env' [-Werror,-Wunused-parameter]
jboolean closeDev(JNIEnv *env, jobject thiz)
                          ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:38:40: error: unused parameter 'thiz' [-Werror,-Wunused-parameter]
jboolean closeDev(JNIEnv *env, jobject thiz)
                                       ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:48:26: error: unused parameter 'env' [-Werror,-Wunused-parameter]
jboolean powerUp(JNIEnv *env, jobject thiz, jfloat freq)
                         ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:48:39: error: unused parameter 'thiz' [-Werror,-Wunused-parameter]
jboolean powerUp(JNIEnv *env, jobject thiz, jfloat freq)
                                      ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:61:28: error: unused parameter 'env' [-Werror,-Wunused-parameter]
jboolean powerDown(JNIEnv *env, jobject thiz, jint type)
                           ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:61:41: error: unused parameter 'thiz' [-Werror,-Wunused-parameter]
jboolean powerDown(JNIEnv *env, jobject thiz, jint type)
                                        ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:71:23: error: unused parameter 'env' [-Werror,-Wunused-parameter]
jboolean tune(JNIEnv *env, jobject thiz, jfloat freq)
                      ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:71:36: error: unused parameter 'thiz' [-Werror,-Wunused-parameter]
jboolean tune(JNIEnv *env, jobject thiz, jfloat freq)
                                   ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:83:21: error: unused parameter 'env' [-Werror,-Wunused-parameter]
jfloat seek(JNIEnv *env, jobject thiz, jfloat freq, jboolean isUp) //jboolean isUp;
                    ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:83:34: error: unused parameter 'thiz' [-Werror,-Wunused-parameter]
jfloat seek(JNIEnv *env, jobject thiz, jfloat freq, jboolean isUp) //jboolean isUp;
                                 ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:109:43: error: unused parameter 'thiz' [-Werror,-Wunused-parameter]
jshortArray autoScan(JNIEnv *env, jobject thiz)
                                          ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:146:24: error: unused parameter 'env' [-Werror,-Wunused-parameter]
jshort readRds(JNIEnv *env, jobject thiz)
                       ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:146:37: error: unused parameter 'thiz' [-Werror,-Wunused-parameter]
jshort readRds(JNIEnv *env, jobject thiz)
                                    ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:161:39: error: unused parameter 'thiz' [-Werror,-Wunused-parameter]
jbyteArray getPs(JNIEnv *env, jobject thiz)
                                      ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:179:43: error: unused parameter 'thiz' [-Werror,-Wunused-parameter]
jbyteArray getLrText(JNIEnv *env, jobject thiz)
                                          ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:197:25: error: unused parameter 'env' [-Werror,-Wunused-parameter]
jshort activeAf(JNIEnv *env, jobject thiz)
                        ^
packages/apps/FMRadio/jni/fmr/libfm_jni.cpp:197:38: error: unused parameter 'thiz' [-Werror,-Wunused-parameter]
jshort activeAf(JNIEnv *env, jobject thiz)
                                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[ 33% 12/36] target  C++: libfmjni <= packages/apps/FMRadio/jni/fmr/common.cpp
FAILED: out/target/product/Atom_XL_TEE/obj/SHARED_LIBRARIES/libfmjni_intermediates/common.o
/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -I libnativehelper/include_jni -I frameworks/base/include/media -I packages/apps/FMRadio/jni/fmr -I out
/target/product/Atom_XL_TEE/obj/SHARED_LIBRARIES/libfmjni_intermediates -I out/target/product/Atom_XL_TEE/gen/SHARED_LIBRARIES/libfmjni_intermediates -I libnativehelper/include_jni -Isystem/core/libcutils/includ
e -Isystem/core/libprocessgroup/include -D__LIBANDROIDICU_API__=1 -Iframeworks/av/media/libmedia/include -Iframeworks/av/media/libmedia/include -Iframeworks/av/media/libstagefright/include -Iframeworks/av/media/
ndk/include -Iframeworks/native/libs/binder/ndk/include_ndk -Iframeworks/native/libs/binder/ndk/include_platform -Ilibnativehelper/include_jni -Iout/soong/.intermediates/frameworks/av/media/libmedia/resourcemana
ger_aidl_interface-ndk_platform-source/gen/include -Iframeworks/native/libs/binder/include -Isystem/core/base/include -Isystem/core/libcutils/include -Isystem/core/libutils/include -Isystem/core/libbacktrace/inc
lude -Isystem/core/liblog/include -Isystem/core/libsystem/include -Isystem/core/libprocessgroup/include -Iout/soong/.intermediates/frameworks/native/libs/binder/libbinder/android_arm64_armv8-a_shared/gen/aidl -I
external/icu/libandroidicu/include -Iframeworks/av/media/libaudioclient/include -Iframeworks/av/media/libaudiofoundation/include -Isystem/media/audio/include -Iframeworks/av/media/libmediahelper/include -Iout/so
ong/.intermediates/frameworks/av/media/libaudioclient/libaudioclient/android_arm64_armv8-a_shared_cfi/gen/aidl -Iframeworks/av/media/libmedia/aidl -Iframeworks/native/headers/media_plugin -Iframeworks/native/hea
ders/media_plugin/media/openmax -Iframeworks/av/media/libstagefright/foundation/include -Isystem/libhidl/transport/token/1.0/utils/include -Isystem/libhidl/base/include -Isystem/libhidl/transport/include -Isyste
m/libhwbinder/include -Iexternal/fmtlib/include -Iout/soong/.intermediates/system/libhidl/transport/manager/1.0/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/system/libhidl/transport/man
ager/1.1/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/system/libhidl/transport/manager/1.2/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/system/libhidl/transpor
t/base/1.0/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/interfaces/graphics/common/1.0/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/
interfaces/media/1.0/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/interfaces/graphics/bufferqueue/1.0/[email protected]_genc++_headers/gen -Iout/soong
/.intermediates/hardware/interfaces/media/omx/1.0/[email protected]_genc++_headers/gen -Iframeworks/native/libs/ui/include -Iframeworks/native/libs/ui/include_private -Iframeworks/native/libs/native
base/include -Iframeworks/native/libs/nativewindow/include -Ihardware/libhardware/include -Isystem/bt/types -Iframeworks/native/libs/arect/include -Iframeworks/native/libs/math/include -Iout/soong/.intermediates
/hardware/interfaces/common/aidl/android.hardware.common-ndk_platform-source/gen/include -Iout/soong/.intermediates/hardware/interfaces/graphics/common/aidl/android.hardware.graphics.common-ndk_platform-source/g
en/include -Iout/soong/.intermediates/hardware/interfaces/graphics/common/1.1/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/interfaces/graphics/common/1.2/android.ha
[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/interfaces/graphics/mapper/4.0/[email protected]_genc++_headers/gen -Iframeworks/native/libs/gralloc/types/inc
lude -Iout/soong/.intermediates/frameworks/av/media/libmedia/libmedia_omx/android_arm64_armv8-a_shared_cfi/gen/aidl -Iout/soong/.intermediates/frameworks/av/media/libmedia/libmedia/android_arm64_armv8-a_static_c
fi/gen/aidl -Isystem/core/liblog/include -Iexternal/libcxx/include -Iexternal/libcxxabi/include -D__LIBC_API__=10000 -Ibionic/libc/include -D__LIBM_API__=10000 -D__LIBM_API__=10000 -D__LIBDL_API__=10000 -Iextern
al/libcxxabi/include   -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I frameworks/native/include -I framewor
ks/native/opengl/include -I frameworks/av/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic
/libc/kernel/android/uapi -c  -Werror=implicit-function-declaration -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-mult
ichar -O2 -g -fno-strict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -Werror=int-co
nversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -Wno-c99
-designator -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa
,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=format-security -nostdlibinc -march=armv8-a  -Bprebuilts/gcc/lin
ux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin  -Wsign-promo -Wimplicit-fallthrough -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-gnu-include-next -fvisibility-inlines-hidden  -std=gnu++17
  -fno-rtti -Wall -Werror -fPIC -DANDROID_STRICT -target aarch64-linux-android10000   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=fortify-source -Werror=address-of-temporary -Werror=return-ty
pe -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-int-in-bool-context -Wno-sizeof-array-div -Wno-tautological-overlap-compa
re -Wno-deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-string-compare
 -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-pessimizing-move  -MD -MF out/target/product/Atom_XL_TEE/obj/SHARED_LIBRARIES/libfmjni_intermediates/common.d -o out/target/product/Atom_XL_TEE/obj/SHAR
ED_LIBRARIES/libfmjni_intermediates/common.o packages/apps/FMRadio/jni/fmr/common.cpp"
packages/apps/FMRadio/jni/fmr/common.cpp:104:20: error: unused parameter 'fd' [-Werror,-Wunused-parameter]
int COM_get_ps(int fd, RDSData_Struct *rds, uint8_t **ps, int *ps_len)
                   ^
packages/apps/FMRadio/jni/fmr/common.cpp:131:20: error: unused parameter 'fd' [-Werror,-Wunused-parameter]
int COM_get_rt(int fd, RDSData_Struct *rds, uint8_t **rt, int *rt_len)
                   ^
packages/apps/FMRadio/jni/fmr/common.cpp:157:20: error: unused parameter 'fd' [-Werror,-Wunused-parameter]
int COM_get_pi(int fd, RDSData_Struct *rds, uint16_t *pi)
                   ^
3 errors generated.
[ 36% 13/36] target  C++: libfmjni <= packages/apps/FMRadio/jni/fmr/fmr_core.cpp
FAILED: out/target/product/Atom_XL_TEE/obj/SHARED_LIBRARIES/libfmjni_intermediates/fmr_core.o
/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -I libnativehelper/include_jni -I frameworks/base/include/media -I packages/apps/FMRadio/jni/fmr -I out
/target/product/Atom_XL_TEE/obj/SHARED_LIBRARIES/libfmjni_intermediates -I out/target/product/Atom_XL_TEE/gen/SHARED_LIBRARIES/libfmjni_intermediates -I libnativehelper/include_jni -Isystem/core/libcutils/includ
e -Isystem/core/libprocessgroup/include -D__LIBANDROIDICU_API__=1 -Iframeworks/av/media/libmedia/include -Iframeworks/av/media/libmedia/include -Iframeworks/av/media/libstagefright/include -Iframeworks/av/media/
ndk/include -Iframeworks/native/libs/binder/ndk/include_ndk -Iframeworks/native/libs/binder/ndk/include_platform -Ilibnativehelper/include_jni -Iout/soong/.intermediates/frameworks/av/media/libmedia/resourcemana
ger_aidl_interface-ndk_platform-source/gen/include -Iframeworks/native/libs/binder/include -Isystem/core/base/include -Isystem/core/libcutils/include -Isystem/core/libutils/include -Isystem/core/libbacktrace/inc
lude -Isystem/core/liblog/include -Isystem/core/libsystem/include -Isystem/core/libprocessgroup/include -Iout/soong/.intermediates/frameworks/native/libs/binder/libbinder/android_arm64_armv8-a_shared/gen/aidl -I
external/icu/libandroidicu/include -Iframeworks/av/media/libaudioclient/include -Iframeworks/av/media/libaudiofoundation/include -Isystem/media/audio/include -Iframeworks/av/media/libmediahelper/include -Iout/so
ong/.intermediates/frameworks/av/media/libaudioclient/libaudioclient/android_arm64_armv8-a_shared_cfi/gen/aidl -Iframeworks/av/media/libmedia/aidl -Iframeworks/native/headers/media_plugin -Iframeworks/native/hea
ders/media_plugin/media/openmax -Iframeworks/av/media/libstagefright/foundation/include -Isystem/libhidl/transport/token/1.0/utils/include -Isystem/libhidl/base/include -Isystem/libhidl/transport/include -Isyste
m/libhwbinder/include -Iexternal/fmtlib/include -Iout/soong/.intermediates/system/libhidl/transport/manager/1.0/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/system/libhidl/transport/man
ager/1.1/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/system/libhidl/transport/manager/1.2/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/system/libhidl/transpor
t/base/1.0/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/interfaces/graphics/common/1.0/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/
interfaces/media/1.0/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/interfaces/graphics/bufferqueue/1.0/[email protected]_genc++_headers/gen -Iout/soong
/.intermediates/hardware/interfaces/media/omx/1.0/[email protected]_genc++_headers/gen -Iframeworks/native/libs/ui/include -Iframeworks/native/libs/ui/include_private -Iframeworks/native/libs/native
base/include -Iframeworks/native/libs/nativewindow/include -Ihardware/libhardware/include -Isystem/bt/types -Iframeworks/native/libs/arect/include -Iframeworks/native/libs/math/include -Iout/soong/.intermediates
/hardware/interfaces/common/aidl/android.hardware.common-ndk_platform-source/gen/include -Iout/soong/.intermediates/hardware/interfaces/graphics/common/aidl/android.hardware.graphics.common-ndk_platform-source/g
en/include -Iout/soong/.intermediates/hardware/interfaces/graphics/common/1.1/[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/interfaces/graphics/common/1.2/android.ha
[email protected]_genc++_headers/gen -Iout/soong/.intermediates/hardware/interfaces/graphics/mapper/4.0/[email protected]_genc++_headers/gen -Iframeworks/native/libs/gralloc/types/inc
lude -Iout/soong/.intermediates/frameworks/av/media/libmedia/libmedia_omx/android_arm64_armv8-a_shared_cfi/gen/aidl -Iout/soong/.intermediates/frameworks/av/media/libmedia/libmedia/android_arm64_armv8-a_static_c
fi/gen/aidl -Isystem/core/liblog/include -Iexternal/libcxx/include -Iexternal/libcxxabi/include -D__LIBC_API__=10000 -Ibionic/libc/include -D__LIBM_API__=10000 -D__LIBM_API__=10000 -D__LIBDL_API__=10000 -Iextern
al/libcxxabi/include   -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I frameworks/native/include -I framewor
ks/native/opengl/include -I frameworks/av/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic
/libc/kernel/android/uapi -c  -Werror=implicit-function-declaration -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-mult
ichar -O2 -g -fno-strict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -Werror=int-co
nversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -Wno-c99
-designator -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa
,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=format-security -nostdlibinc -march=armv8-a  -Bprebuilts/gcc/lin
ux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin  -Wsign-promo -Wimplicit-fallthrough -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-gnu-include-next -fvisibility-inlines-hidden  -std=gnu++17
  -fno-rtti -Wall -Werror -fPIC -DANDROID_STRICT -target aarch64-linux-android10000   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=fortify-source -Werror=address-of-temporary -Werror=return-ty
pe -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-int-in-bool-context -Wno-sizeof-array-div -Wno-tautological-overlap-compa
re -Wno-deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-string-compare
 -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-pessimizing-move  -MD -MF out/target/product/Atom_XL_TEE/obj/SHARED_LIBRARIES/libfmjni_intermediates/fmr_core.d -o out/target/product/Atom_XL_TEE/obj/SH
ARED_LIBRARIES/libfmjni_intermediates/fmr_core.o packages/apps/FMRadio/jni/fmr/fmr_core.cpp"
packages/apps/FMRadio/jni/fmr/fmr_core.cpp:83:26: error: unused parameter 'idx' [-Werror,-Wunused-parameter]
int FMR_chk_cfg_data(int idx)
                         ^
packages/apps/FMRadio/jni/fmr/fmr_core.cpp:282:19: error: unused variable 'j' [-Werror,-Wunused-variable]
    fm_s32 i = 0, j = 0;
                  ^
packages/apps/FMRadio/jni/fmr/fmr_core.cpp:490:24: error: unused variable 'cur_freq' [-Werror,-Wunused-variable]
    fm_softmute_tune_t cur_freq;
                       ^
packages/apps/FMRadio/jni/fmr/fmr_core.cpp:489:24: error: unused variable 'j' [-Werror,-Wunused-variable]
    fm_s32 ret = 0, i, j;
                       ^
packages/apps/FMRadio/jni/fmr/fmr_core.cpp:489:21: error: unused variable 'i' [-Werror,-Wunused-variable]
    fm_s32 ret = 0, i, j;
                    ^
packages/apps/FMRadio/jni/fmr/fmr_core.cpp:581:133: error: unused parameter 'NF_Space' [-Werror,-Wunused-parameter]
int FMR_scan_Channels(int idx, uint16_t *scan_tbl, int *max_cnt, fm_s32 band_channel_no, fm_u16 Start_Freq, fm_u8 seek_space, fm_u8 NF_Space)
                                                                                                                                    ^
packages/apps/FMRadio/jni/fmr/fmr_core.cpp:771:23: error: unused parameter 'idx' [-Werror,-Wunused-parameter]
int FMR_stop_scan(int idx)
                      ^
7 errors generated.
17:47:43 ninja failed with: exit status 1

#### failed to build some targets (8 seconds) ####
 

grandmagoblin

Member
May 11, 2023
14
4
So I have some interesting results from testing. I was able to call on wifi, but only outward. I suspect it is because my IMS is not registered, but it will not allow me because the phone does not "support" it. I added a couple more parameters to the /device/Unihertz/Atom_LXL/product.prop. I have included the file below and the results. I am going to do some more testing and see what happens, but I will keep you updated.

Code:
# Debug Options
persist.dbg.ims_volte_enable=1
persist.dbg.volte_avail_ovr=1
persist.dbg.vt_avail_ovr=1
persist.dbg.wfc_avail_ovr=1

# Data Options
persist.data.iwlan.enable=true
persist.data.iwlan=1
persist.data.iwlan.ipsec.ap=1

# Radio Options
persist.radio.rat_on=combine
persist.radio.data_ltd_sys_ind=1
persist.radio.data_con_rprt=1
persist.radio.calls.on.ims=1

#IMS Options
persist.ims.disable=0
persist.ims.reg=true
persist.ims.volte=true
persist.ims.vt=true
persist.ims_support=1

# Other Options
persist.sys.cust.lte_config=true
persist.rcs.supported=1
telephony.lteOnCdmaDevice=1

#Instant Ring
ro.telephony.call_ring.delay=0
ring.delay=0

#LED Settings
ro.LED_KEYLIGHT_TEST=yes
ro.agui.single.mic=yes
ro.LED_COLOR_TEST=yes
ro.low_battery_led=yes
ro.battery_charging_led=yes
ro.miss_call_ledcolor=Red
ro.other_notifi_ledcolor=Green
ro.unread_notifi_ledcolor=Red
ro.incoming_ledcolor=Blue
ro.scridle_ledcolor=None

#Bluetooth Settings
persist.bluetooth.a2dp_offload.disabled=true
persist.bluetooth.bluetooth_audio_hal.disabled=true


Phone B is the Atom XL that I am using.

Inbound​
Calling from Phone A to Phone B​
Wifi​
Straight to Voicemail​
No Audio​
Inbound​
Calling from Phone A to Phone B​
LTE​
Straight to Voicemail​
No Audio​
Outbound​
Calling from Phone B to Phone A​
Wifi​
Call was placed​
Two-Way Audio; Able to place call with just wifi enabled, and with LTE enabled.​
Outbound​
Calling from Phone B to Phone A​
LTE​
Call was placed​
Two-Way Audio; When call was established LTE disappeared​
 

grandmagoblin

Member
May 11, 2023
14
4
So I have some interesting results from testing. I was able to call on wifi, but only outward. I suspect it is because my IMS is not registered, but it will not allow me because the phone does not "support" it. I added a couple more parameters to the /device/Unihertz/Atom_LXL/product.prop. I have included the file below and the results. I am going to do some more testing and see what happens, but I will keep you updated.

Code:
# Debug Options
persist.dbg.ims_volte_enable=1
persist.dbg.volte_avail_ovr=1
persist.dbg.vt_avail_ovr=1
persist.dbg.wfc_avail_ovr=1

# Data Options
persist.data.iwlan.enable=true
persist.data.iwlan=1
persist.data.iwlan.ipsec.ap=1

# Radio Options
persist.radio.rat_on=combine
persist.radio.data_ltd_sys_ind=1
persist.radio.data_con_rprt=1
persist.radio.calls.on.ims=1

#IMS Options
persist.ims.disable=0
persist.ims.reg=true
persist.ims.volte=true
persist.ims.vt=true
persist.ims_support=1

# Other Options
persist.sys.cust.lte_config=true
persist.rcs.supported=1
telephony.lteOnCdmaDevice=1

#Instant Ring
ro.telephony.call_ring.delay=0
ring.delay=0

#LED Settings
ro.LED_KEYLIGHT_TEST=yes
ro.agui.single.mic=yes
ro.LED_COLOR_TEST=yes
ro.low_battery_led=yes
ro.battery_charging_led=yes
ro.miss_call_ledcolor=Red
ro.other_notifi_ledcolor=Green
ro.unread_notifi_ledcolor=Red
ro.incoming_ledcolor=Blue
ro.scridle_ledcolor=None

#Bluetooth Settings
persist.bluetooth.a2dp_offload.disabled=true
persist.bluetooth.bluetooth_audio_hal.disabled=true


Phone B is the Atom XL that I am using.

Inbound​
Calling from Phone A to Phone B​
Wifi​
Straight to Voicemail​
No Audio​
Inbound​
Calling from Phone A to Phone B​
LTE​
Straight to Voicemail​
No Audio​
Outbound​
Calling from Phone B to Phone A​
Wifi​
Call was placed​
Two-Way Audio; Able to place call with just wifi enabled, and with LTE enabled.​
Outbound​
Calling from Phone B to Phone A​
LTE​
Call was placed​
Two-Way Audio; When call was established LTE disappeared​

Forgot to include results of texting:


Inbound​
Text from Phone A to Phone B​
Wifi​
Never received​
Inbound​
Text from Phone A to Phone B​
LTE​
Never recieved​
Outbound​
Text from Phone B to Phone A​
Wifi​
Sent successfully​
Outbound​
Text from Phone B to Phone A​
LTE​
Sent successfully​
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I resolved my own issue with rerunning the patches. So false alarm.
    1
    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.
    1
    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.
    1
    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.
  • 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.

    Not Working
    • VoLTE is working but has some issus with SELinux in enforcing mode
    • LiveDisplay is not working (and probably never will)
    • DMR (Atom XL) is not working
    • Bluetooth audio channel is working (although it's set to use the fallback instead of A2DP)
    • 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-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-05-14
    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.