yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Distinguishing between GPS (precise, needs to be outside) and UnifiedNlp (network location, not precise, needs an active GSM network connection).

I did a complete wipe of my device yesterday and reinstalled RC4 to make sure that there are no scrambled permissions. In a building with virtually no GPS signal strength, I now get a fix in OsmAnd by network location, but it takes one or two minutes sometimes. The accuracy is pretty low, say 50 - 100 meters, what confirmes me that there actually is no GPS signal involved -- making sure GPS ist set to "high accuracy" from within the quick menu (this was described in the OsmAnd forum, currently i can't find the link).

My UnifiedNlp backend of choice is LocalGsmNlpBackend, which initially takes some time to download worldwide cellular data and build it's database. After install, it also asked me to

1) disable and enable the backend in UnifiedNlp settings

2) disable and enable GPS, i.e. from the quick menu

Sometimes, when I just wouldn't get a location fix, I repeated these steps. But in the end I'm not sure if network location did work from the beginning and if I just had to wait a little longer. There are some calculations done and if my devices does them, maybe it takes a while. On the other hand, GPS usually works great, provided I'm outside under the sky.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] arslanon.e:
I got it working man :)

Noted down my steps here.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Glad, that you made it. So you didn't have any GPS fix ever before reinstalling UnifiedNlp?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] arslanon.e:
Yup. Nothing, before.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Wow, this definitely make a change. After reinstallation of UnifiedNlp, I now get a network location fix as soon as I enable GPS from the quick menu. And all the checkboxes in UnifiedNlp's settings are enabled as well.

Thank you very much for your guide! (It also got me a lot of insight into Android!)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Btw, Package Manager complained about microG's Mozilla network location provider at boot:

PackageManager: Failed to parse /system/app/IchnaeaNlpBackend: Inconsistent version 20026 in /system/app/IchnaeaNlpBackend/IchnaeaNlpBackend.apk; expected 20033

Removed that by pushing IchnaeaNlpBackend 1.4.0 into /system/app/IchnaeaNlpBackend/
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] skisbit:
Thanks for your reply. I did try to install Paranoid Android, I don't know if it's an SODP based rom, but I never got as far as installing anything to oem. I tried to reflash the stock rom anyways, but I have no luck there. Sony's official flashing program won't allow me to do it anymore and FlashTool gets stuck while trying to run "getvar:max-download-size" (Which works fine in fastboot manually). I'm thinking I need myself a new phone.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] arslanon.e:
Have you tried Newflasher?

Also, I'd say try a different computer...

You can pm me and I can share my personal experience. I've been unable to install ROMs on my laptop twice on two different phones. A borrowed laptop did the trick.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Running 5.3.1-Arch, I had to build Newflasher from source, because the binary provided by munjeni exited with errors.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Haha, same here. Phone app stays silent for me and my partner can't hear me either. Other sound apps work fine, including calls by i.e. Whatsapp. I'm grepping the logs and found nothing so far, but logcat runs hot during calls anyway.

Edit: [MENTION=10156757]skisbit[/MENTION] Qualcomm telephony service triggers the described behaviour after being disabled once. Enabling it again does not resolve the issue. You need to remove the app's data:

$ adb root
$ adb remount
$ adb shell rm -rf /data/user/0/com.qualcomm*
$ adb pm enable com.qualcomm.qti.telephonyservice
$ adb reboot
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] skisbit:
I got some help and it's fixed now. I attempted to install the stock ROM, failed, and managed to create a boot-loop. After a reinstallation of Lineage using fastboot and TWRP, I noticed an unusual message about my phone calibrating itself towards my carrier, and it restarted. Now it works absolutely fine! I don't know how, but thanks for the replies. :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Kalimohan:
I still have some problems with RC4.

● Telephone calls are interrupted with the announcement "The number is not assigned, please call the operator". This happens randomly and you never know when the problem occurs.

● Tethering is no longer possible. At 5 GHz, the SSID is not displayed. I can connect with 2.4 GHz, but have no access to the Internet. A ping (from laptop to smartphone) sometimes goes through a few times. Then the connection is interrupted again. Disabling firewalls etc. is to no avail.

● From the laptop I can not access the smartphone via USB since RC4. The laptop recognizes the cellphone, I can choose File Transfer, but I can not mount the it or access it.

● Are the earplugs plugged in when receiving a call, I can't hear anything. Though the other side hears me. To use earplugs I have to plug them during a conversation only.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Disabled processes

For those who are interested: This is a list of processes that I disabled. It lacks Google services, since I do not have them installed at the moment.

adb root
adb shell pm list packages -d | sort | sed 's/package://'
com.android.apps.tag
com.android.bips
com.android.bluetoothmidiservice
com.android.cts.ctsshim
com.android.cts.priv.ctsshim
com.android.dreams.basic
com.android.dreams.phototable
com.android.egg
com.android.email
com.android.gallery3d
com.android.keychain
com.android.mms.service
com.android.nfc
com.android.printservice.recommendation
com.android.printspooler
com.android.providers.blockednumber
com.android.providers.userdictionary
com.android.terminal
com.android.wallpaper.livepicker
com.qti.dpmserviceapp
com.qti.qualcomm.datastatusnotification
com.qualcomm.location
com.qualcomm.location.XT
com.qualcomm.qcrilmsgtunnel
com.qualcomm.qti.uceShimService
com.qualcomm.wfd.service
com.quicinc.cne.CNEService
com.sonyericsson.android.addoncamera.artfilter
com.sonyericsson.android.camera3d
com.sonymobile.android.addoncamera.soundphoto
org.gdroid.gdroid
org.lineageos.audiofx
org.lineageos.eleven
org.lineageos.jelly
org.lineageos.lockclock
org.lineageos.profiles
org.lineageos.recorder
org.lineageos.setupwizard
org.lineageos.snap
org.lineageos.weather.provider

To give it a try, put them into a text file, e. g. "/tmp/pm_disabled" and connect you device to adb:

$ adb root
$ for line in $(cat /tmp/pm_disabled); do adb shell pm disable $line; done

To enable them again, change "disable" to "enable".

Apart from the obvious named services some explanation:

> com.qualcomm.location*

Provides Qualcomms dodgy iZat location service

> com.qualcomm.qcrilmsgtunnel / qti.uceShim / wfd

Some advanced network services I prefer not to use

> org.lineageos.eleven / jelly / snap

The default music player / browser / camera apps

Use cases tested over the last days:

Make and receive phone calls

Osmand navigation by GPS and network location

F-Droid and Aurora store

Whatsapp, including calls

Spotify

Weather by Forecastie (uses openweathermaps)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] doeternietoe:
I got the exact same problem. At 5ghz the SSID seems not to be broadcasting, on 2,4ghz I can connect, but there is no connection to the internet.

For the rest, I'm very happy with RC4 of this ROM. Most things are working just fine. :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Kalimohan:
Actually I was able to solve two of the issues.

To access storage from Linux again I needed the latest libmtp-common, libmtp-runtime, libmtp9 in version 1.1.16.

To get Tethering to work again, I flashed the modem back to firmware version 47.2.A.10.80. For the call issues I have to test it further.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] android_fury:
I just installed RC4 and I can't get any signal on AT&T (US). I set it up just like my daily driver (Mi 9T Pro), and only then I moved the SIM card to my XZ1C. I didn't test much because of this, but it looks like everything else should work fine. Hopefully the developer will be able to sort that out soon. :good:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] DerSteppo:
Are you not supposed to install the ROM with the SIM card already inserted? I thought I have read something like this on another thread, but could be wrong. :confused: Care giving it a try?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] android_fury:
I just tried it and still have no signal. My APN is set up exactly like my other phone. And now my Wi-Fi went to crap. It's disconnecting every 30 seconds and reconnecting. I had the hardest time going through the initial ROM setup because it kept giving me connection errors. It was working 100% before.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] DerSteppo:
Hm sorry to hear that. :( Hopefully, the devs will find and implement a fix in RC5. I had wi-fi drops on occasion, but it was with a previous release. With RC4, I barely see the wi-fi icon disappear. Could have been the router, though.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] android_fury:
We'll get there eventually. We just need to give the developer enough time. :good:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
seeing as its not your dd, would you mind trying the following?

- insert Sim and use newflasher to flash the complete latest US customized ROM

- reboot to system and do the initial setup

- if there is a message telling you that a restart is required for optimizing things for your carrier, then do that

- flash twrp, format data, reboot to twrp and wipe all internal storage

- flash ROM and (if needed) su add-on and gapps and boot it up

thanks
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
I'm having this issue too since the beginning. If I listen to music via headphones and receive a call the music stops, but the notification sound is played over the phone's speaker, only. Answering the call, audio is still routed to the phone' speaker. Then, if I enable loudspeaker and disable it again, the call's audio is correctly routed to the headphones.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Network Location

Using UnifiedNlp with Ichnaea (Mozilla) backend, I do not get any network location fix, if there is no wifi network available or if wifi is disabled. Corresponding log message is "IchnaeaBackendService: Cells: 0".

Grepping for logs with wifi disabled finds the latter:

adb logcat | grep -i ichnaea

Can anyone confirm?

See also https://github.com/microg/IchnaeaNlpBackend/issues/38
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] techno-viking:
Are there still issues with apps like Here Maps in RC4? Any workaround?

Are there still issues with apps like Here Maps in RC4? Here Maps and I think a few other apps would crash seemingly because it cannot find the external sd card. This issue has been discussed several times through this thread like in Post #410.

If it still is an issue, has anyone found a workaround?

There are a couple apps that I use regularly and find very useful like Here Maps and and ATLOGIS Geoinformatics Topo Maps that still seem to be finicky with this ROM.

A big thanks for the developers in providing this ROM.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] shtefus:
Screen colors get inverted

For most use cases this ROM gets the job done. When I select 5 Ghz band in the Wi-fi hotspot settings it does not work but still I did not have this option in stock. Some of the banking apps and for example Galaxy Wearable do not work or are not available in the store but this is because the unlocked bootloader It had happened to me three times already that the colors get inverted and I need to restart the phone. Most of the times when this happened I was tweaking the display color settings and I have a live wallpaper. The battery life and drain seems to be a little bit better on stock Pie ROM but I have to test it further. I didn't get the chance to back-up the DRM keys and now when I revert to stock ROM the colors on the display are awful even in Super-vivid mode is there any solution to this having the latest Pie 107 firmware installed or another version downloadable that I can FOTA I have tried the other solutions on XDA but to no avail, although with this ROM the colors are better.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
I think it would be best not to tinker with what stock allows us to use (e.g. no 5ghz hotspot). the reason being, that 5ghz channels are under quite heavy regulations, and these also vary from country to country. many frequencies are also restricted to indoor use only in several countries.

So to avoid confusion, I think it's best to remove that option from the settings. I'll have a look if it's possible.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mvn23:
As far as I can tell this is still an issue. I haven't been able to find a workaround which works for every app, but with the ExtSDCard Access Enabler Magisk module your sd card will be mounted on /mnt/media_rw/ where writes are possible. If an app allows you to specify a destination path this will work, but for apps that only offer the choice between internal or external storage then the issue still persists.

I'm still hoping for a fix for this.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] nussbaum:
https://xdaforums.com/xperia-xz1-co...os-16-0-unofficial-todo-t3925675/post80248311
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] techno-viking:
Thanks to both of you for the replies. I think I solved it, at least for the 2 apps I mentioned (Here Maps, Atlogics Canadian Topo Maps).

For the latter, the ExtSDCard module seemed to solve it. For Here Maps, I found an old version (1.1104...) where you can toggle more app permissions as compared to the latest version. Other old versions might also work, but the 1.1104... is the one I'm using. In the old version, there is an actual toggle for storage where in the new version there is not. I allow the app to access storage and the problem is solved so far.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
I have the inverted colors issue sometimes when using the "vivid" color profile. Never seen this using the other profiles.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] doeternietoe:
Hi,

Got a problem with this ROM and was wondering if somebody can help me with it. Up until yesterday I ran RC4, quite happily. That is until I decided to try out using an older modem firmware to try to get tethering working. It didn't solve my problem so I decided to restore a backup from a day earlier via TWRP. After that my phone got into a boot loop and I haven't got it properly running since...

Basically, I had this ROM running without any serious problem for months, and after a failed backup&restore I can't get it running again... :-S

What I've tried:

- Restoring an old backup -> still fails. I've noticed that restoring data goes well beyond 100%.

- Wiping data and system and Freshly installing LineageOS 16 RC4 -> phone goes either in a bootloop or I get stuck at the first boot. What happens is that after I've entered my pin code the screen gets totally black (but with the backlight on) and nothing happens. If I leave the phone long enough waiting it will either display a "system UI isn't responding"-error or the brightness shoots inexplicably up, after which it completely freezes. When I long press the power button, I can enter the menu to power off er reboot. With the menu, also the back button appears in the bottom left corner. When I repeatedly hammer it, I sometimes get through to the LineageOS first boot wizard. Sometimes this wizard freezes somewhere in the middle. Twice I've managed to get trough it. After that, however, my phone feels extremely buggy. Apps refuse to open and after some time my phone freezes.

- Flashing an official Sony ROM with Newflasher. The official ROM works like it should, but as soon as I try to replace it with LineageOS, the above problems start all over.

- Flashing an older version of LineageOS. RC's from the 16.0 branch all give the exact same problems. LineageOS 15.1 starts a bootloop.

- Tried to format data instead of wipe. This makes no difference.

Any ideas would be appreciated!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
I suspect USB debugging is not enabled by default, but give it a try and have a look at the log. (Connect your phone via USB, open a terminal, type "adb logcat")

If that's not possible, start from the beginning:

- Install modpunks TWRP via adb

- Boot into recovery and format

all

system partitions (since wipe is more like "rm -rf", thus suppressing error messages)

- Put the RC4 zip file onto an SD card and install it from within TWRP
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] duckysmokton:
If I understand well you're still on the older firmware you're mentioning at the beginning of you post ? Just reinstall the latest version.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] doeternietoe:
Thanks for your replies!

I tried both: the latest firmware and some older versions.

I've started from the beginning many times, however you may be right about formatting all partitions. There is no option for formatting anything other than data in TWRP, but I've tried the repair function and now I've gotten as far as a *somewhat* functional version. It's still very buggy on bootup, however. Checking the sd-card takes particularly long, so I'm gonna check if that's faulty.

Update: After some testing I have to conclude that a faulty sd-card is in fact the problem. After removing it from my phone it still acted strange, but after completely wiping and repairing all file systems and starting from scratch again with a different (temporary) memory card, LineageOS installs and runs as expected. When I reinsert my broken sd-card, I get all kinds of sudden freezes and other buggy behaviour. I'm still a bit puzzled how a memory card can wreak so much havoc (I did have signature checking on all the time and it threw no error), but there you have it. Thanks again for your suggestions!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] XDA-shark:
I am on RC4. It worked flawlessly for weeks. As of this morning, I no longer get any cellular signal ("Service not available"), and my WiFi drops out repeatedly. I tried switching to flight mode and back off, rebooting, switching off, rebooting without SIM card, switching off again, rebooting with SIM card again, no difference. I did not flash anything lately, just had a couple of app updates through Play Store.

Any ideas to get it back to work?

Edit: Wiped Cache and Dalvik and it seems to be back to normal.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Meth0d:
Any chance to bump FW to 47.2.A.11.228 ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] techno-viking:
Just one more update. Here maps force updated (not through the play store) to the latest version 2.0.13452. Good news is that it still works with this ROM after the update. I think the way to solve using Here Maps is to first find and install an old version (1.1104...), allow the app to have storage access per the app permissions (which the old version allows) and then update to the new version. I can conform it still works...for now ;)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] duckysmokton:
Maybe try with MindtheGapps instead of OpenGapps ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
use an opengapps from 6th October or earlier. There's a bug in current one that wont let LOS boot:

https://xdaforums.com/android/software/pa-gapps-continuation-t3098071/post80488715#post80488715

---------- Post added at 10:31 AM ---------- Previous post was at 10:16 AM ----------

edit: actually, it's supposed to be fixed now with 13th build. maybe there's a dissent issue now. but 6th October works for sure.

---------- Post added at 10:33 AM ---------- Previous post was at 10:31 AM ----------
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Meth0d:
Thanks for the headsup, i actually tried the 13th build and got it booting, but had some weird issues with apps freezing and crashing.

I am using open_gapps-arm64-9.0-pico-20191006 now, and everything seems fine.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Airgio:
Gcam works? And the full procedure to install It? I'm on stock pie with locked bootloader
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] doeternietoe:
I've had it working on my previous install of LineageOS, but honestly I didn't find it a huge improvement over the Sony camera app. I can't exactly remember how I got it running, but I remember that not all apk's would work and I had to try quite a few before it would take pictures.

If you really want to know I *might* be able to dig up the apk I used in the end. But then again, I'm not sure I have it anymore.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Airgio:
I wasn't clear on my previous message, Sorry about It. The First question was about gcam; the second about how to install the rom starting from stock rom with locked bootloader. I'm not really expert so a step by step procedure for beginners would have been useful!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
Firmware 47.2.A.11.228

Just leaving current FW files (Customized DE) here, as they are probably required for RC5. Newflasher included.

https://androidfilehost.com/?fid=1899786940962608696
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Reksos007:
Hallo guys, i tried to flash the newest lineageOS version after i wiped system,internal storage basically everything. After doing so i get to start menu where i pick a language. Once im done there i have this "just a sec" loading circle which just keep spinning. Dose anyone had this issue before or have an idea what is wrong?

Edit: When i flash the lineageos alone, my phone boots into TWRP recovery, when i flash it with Lineageos, open gaaps and superUS. It boots into lineageos.

In my previous attempts i run into an issue where after picking my wifi network, the screen went black but i could still use volume up and power button with their UI elements.

Edit 2: Now after some time the circle slows down/stops, the screen brightness increase and then decrease again while the circle goes back to spin at its usual pace.

Edit 3: I tried to use different version of open GPPA and mind something GPPA. The open GPPA version i tried are from 15,6 oktober and 18,17,13 september. Still same result.

Edit 4: I tried to use both the pico and nano version of the open GPPA, the issue remains unchanged.

UPDATE: I flashed a stock rom via newflasher, so for anyone in situation like me, where they phone is a very essential part of they everyday life and everyday responsibilties. Then i recoomend this guid for you, it says everything you need to know when you are in a situation where nothing works: https://www.xperiablog.net/2018/01/2...-xz1-and-more/