yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Ummmbra:
Hi, I love this ROM and I've been using it as a daily driver. It's perfectly stable in daily operation and there are only two issues with the camera. Installed RC5 today and running into the same two problems I had on RC3 and RC4.

1) When trying to record video, the camera app quits with a message "open camera error id: 0" as soon as I press the record button.

2) When the external SD card is selected as the storage for photos, the photos don't save properly. They don't appear in the preview on the bottom left, and in the Gallery app they show up as an empty photo filled with solid grey.

Has anyone else had this? I tried a third party camera app to fix the video problem, but it crashed too.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
I assume you are using the LOS camera? saving to sdcard does not work there, it's an upstream issue with FBE devices. as for the error, disable image stabilization in the options, it's not working for us. there's a way to remove it from the options, which I guess we should do.

you can always use Sony camera instead of course.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] 西瓜:
I have the same problem. After choosing language, a circle keeps spinning. After a while, the screen is stuck and brightness turn to max. After another while, the phone restart and when it boots up, there is a circle like before. And just restart again and again. The phone become hot.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Usually, there will be one of the services failing. Connect the phone via USB and have a look at the system log.

$ adb logcat

Hit Ctrl-C to stop the spamming and look for an error message pointing to an app or service. Then, find and delete it's data directory in /data/data/<appname>.

For me, this has been the case with "QtiTelephonyService". My device did not leave the "circle" boot screen, becoming quite hot. I found an error message regarding the latter service. Got it working again by running:

$ adb root
$ adb remount
$ adb shell rm -rf /data/data/com.qualcomm.qti.telephonyservice
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
I'm looking for a way to reduce the minimum volume during calls via headphones. So far, I lowered the first point of all call and headphones related settings to -9600 in /vendor/etc/audio_policy_volumes.xml, i.e.

<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEADSET">
<point>0,-9600</point>
<point>33,-6400</point>
<point>66,-3200</point>
<point>100,0</point>

But that seems not to have any effect. Minimum volume is still the same. Do you have suggestions?

Thank you
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
Did you install rc5? Using the stock audio hal I find the minimum volume already reduced to a decent amount - at least without using a headset, but it should be the same for using one.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Yeah, RC5 here. Minimum volume using internal speakers is fine, I agree. Might be my headphones are pretty loud due to their low impedance.

Anyway, although reducing the minimum value to -9600, I cannot find any difference in volume. Do you think the mentioned config file is the right approach?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Kalimohan:
Tethering still does not work properly. I went back to firmware 47.2.A.10.80 again.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Works for me. I'm writing this using RC5 and firmware 47.2.A.11.228 while tethering via USB.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] doeternietoe:
Tethering is working my side as well (didn't work on a previous install). It doesn't work at 5ghz, but I believe on stock that's not even an option...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Kalimohan:
Thanks for the feedback.

Unfortunately, I do not know why this does not work on my Xperia XZ1. I have already disabled the firewall etc.; both on the computer, as well as the Samrtphone itself. To no avail. :confused:

I can easily connect to the smartphone. Sometimes I even have access to the internet during the first 1 to 4 minutes. After a few minutes the connection is blocked. The WiFi connection itself is flawless. It's also easy to access the internet on a smartphone while tethering is active.

Update:

I gave it another try with the recent firmware (modem), because it seems I'm the only one with this tethering issues. Furthermore the WiFi was switching on and off for a few seconds every few minutes. Tethering works fine so far! I don't know what it was, probably it needed to flash the firmware (again) after installing LineageOS?

Thank you!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] :
Proximity Sensor Settings

First of all thanks for the great work!! At least an opensource, gapps-free phone which is SMALL!!

Everything seems to work fine for me exept one details which nevertheless is really anoying:

I have RC5 (2019-10-18) installed and everytime I make a call or listen to a voicemail, the display switches off completely and nothing I do swichtes it on again until the call or the message is over. I thought that might be solved through some settings but I can't find them neither in the app-specific settings (I use telegram and conversations) nor in the system settings and also not in dev-settings. I can't find anything similar in this thread and even a fresh (with sytem/data/cache/dalvik wipe) install didn't solve it.

Hopefully somebody can help!

Thanks in advance
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] IngolfN:
Hi Wyzco,

I have the same problem. Please can you explain, what you have done to fix the issue!?

I'm from Germany and I have flashed G8441_Customized DE_1310-4373_47.2.A.11.228_R3C and also tried G8441_Vodafone DE_1310-6690_47.2.A.11.228_R4C. The problem remains. Wi-Fi found - but succesful Login is not possible.

Thnx
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] nussbaum:
Could be a hardware problem with your proximity sensor, it falsely detects your ear at the phone. If you are lucky it is just dirty or covered by case (not your ear) :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] tinypc:
My phone has a Volte signal and I can also access the Internet. Everything works fine and so fast! But I can't make a phone call or receive a text message.:crying:

In particular the SIM card of China Unicom （WCDMA+VOLTE） can make a phone call to receive SMS and the SIM card of China Telecom （CDMA+VOLTE） can only access the Internet.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] oel7:
Is it part of the ROM, or is there a recommended approach to get it? I remember a project in the past to bring the Sony stock camera to custom ROMs, with only limited success...

Thanks

---------- Post added at 09:27 AM ---------- Previous post was at 09:20 AM ----------

I've got SIMs from German Telekom in my two XZ1 Compact devices. Someone is running this combination as well? I'm thinking about switching to modpunks LineageOS ROM. IMS/VoLTE is a key feature to me, and for some reason it doesn't work on the Android 9 stock ROMs any more.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] :
Ok, found the problem and its hardware-sided - you were right. Seems to be a common problem after changing the screen and I didn't noticed it before when putting it back to stock because it works normally for some time (seconds to minutes) when pressing once on the upper right corner (thanks to a random russian youtube-guy for this advice!haha). Will take it apart and glue it back together properly, hope it will work permanently afterwards.

So...nevermind...and thanks again for the nice working ROM, will leave a few bucks soon!!!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] overbaked:
Hi,

i'm a returning user of lineageos and i happily manage to flash RC5 (for some reason RC4 bootlooped) - BTW i had to install OpenGapps on a second twrp boot, wifi&data not working if paired with lineageos .zip -.

I'm loving it so far ! So thanks you so much to keep supporting this device.

However i'm currently facing a security flaw and i wonder how to manage it.

I set a lock to my app store & file managers with the launcher feature. If i plug a usb stick F-Droid is launch without asking for password and i have access to the file manager by the top panel notification without password asked either.

any thought ?

Aside that, it's awesome, thanks again !
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Meth0d:
I'm on Telekom.de and my settings say i have advanced LTE enabled, not sure how to test if that actually works.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] XDA-shark:
Switch off WiFi. Make sure you are on LTE or LTE+ with good signal strength. Call someone. If the data connection falls back to H/H+ it is not working. If it stays on LTE/LTE+, it works.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] oel7:
That's the right way! A first estimate will also give you the IMS registration state. German menue:

Einstellungen - System - über das Telefon - Status der SIM Karte

[MENTION=8981421]XDA-shark[/MENTION]: What you see here on the end of the ist (scroll down) for "Status IMS Registrierung"? Only valid if you have a good LTE connection :)

Thank you
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] OceanKnoxville:
Hi, developer! thank you so much for the updating. but do u feel or know that actually Lineage 15.1 is more compatible to this device? i flashed 16.0 each version and i always go back to 15.1 becuz of battery consumption. can you update 15.1 for a stable version if possible? i have known issue now is headset doesn't work well when phone or app voice message play, music no problem. by the way if u can enhance the signal receive by soft fix would be greatfull, thanx again for ur delegation.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] XDA-shark:
That entry is not available in the menu on my device. Not a surprise, though. IMS isn't working on LOS 16 for me.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] arslanon.e:
Could it be because there is no option in Pie to turn off Wifi when screen off; and you were using that feature in Oreo? Battery life is fine for me if I install "Wifi Automatic" from F-Droid; and configure it to my needs.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zelmor:
Developers, thank you for your work on this. I would like to ask if you could include duck duck go in the build as a search provider? If I understand correctly, this is something that cannot be added by users.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] megaice:
Hi, i've tried RC5 and RC4 (with correct FW) yesterday, and after boot (can see LOS logo) i've ended with a black screen. When i press volume up/down (or long press power butt.) there is corresponding gui element for a few seconds. but no launcher gui, just black screen. Someone with similar install glitch/experience?

(latest flashtool/newflasher used)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
Does RC4 and RC5 make any changes to the audio and brightness? I'm on RC2 and the lowest brightness is still too bright at night, and also the max media volume is often too quiet.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] arslanon.e:
Audio level slider is much much improved (fixed?) in RC5 compared to RC4.

About brightness I can't say as it looked/worked just fine for me in RC4 as well as the current RC5.

You should be on RC5. Unless... there is a good reason for RC2.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Aaq7for:
Hi. My screen does not always respond to pressing. On Stock ROM and Treble/PIE AEX by russel5 I have not this issue
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] arslanon.e:
Hi, I had this behavior in RC4 as well as in RC5. It's like this: sometimes, like 5% may be on RC4, the touch won't get registered, and I'd retry and touch would work (whatever I was doing -- tapping an app, typing).

On RC5, I feel it's probably 1% - 3% of time this tap not happening on first try happens.

The developer is still fixing issues with each release so I hope it will get sorted soon :)

Edit: It's not consistent. Erratic. Sometimes happens sometimes I'd type a whole paragraph with no glitch.

For the devs, I just took fresh logs. I just typed for the logs' duration. Attaching.

There is a possibility it's because of the hydrogel screen protector I'm using. May be touch works fine without a protector?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
While not having any screen protection, I can confirm that. Maybe 3% of touch inputs seems to be ignored, exspecially when pressing buttons. Scrolling always works.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Meth0d:
VoLTE does not seem to work for me, even though all settings seem to indicate that it does. Ive tried with a few calls, and everytime it switches from LTE/LTE+ to H when making a call.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] lentinj:
Installed RC5 after updating stock firmware, all seemed to go smoothly, although not tried a SIM card in yet yet.

First problem I've noticed is the hall sensor (for shutting screen off on cover close) doesn't seem to be doing anything. logcat reveals on magnet press:-

11-01 21:27:28.877 1347 1519 D WindowManager: Sending cover change broadcast, mLidState=0
11-01 21:27:28.878 996 996 W libc : Unable to set property "vendor.cover_state" to "1": connection failed; errno=13 (Permission denied)
11-01 21:27:28.878 996 996 E touchcoverd: set_cover_property - Failed to set property : vendor.cover_state rc - -1
11-01 21:27:28.876 996 996 W kobjeventd: type=1400 audit(0.0:48): avc: denied { write } for name="property_service" dev="tmpfs" ino=11173 scontext=u:r:kobjeventd:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 ppid=1 pcomm="init" pgid=1 pgcomm="init"
11-01 21:27:28.897 807 807 D illumination-service: 'buttons': Color ffffffff, BrMode 0, OnMS 0, OffMS 0, Mode 0

... pulling the magnet away again ...

11-01 21:27:32.305 1347 1519 D WindowManager: Sending cover change broadcast, mLidState=1
11-01 21:27:32.306 996 996 W libc : Unable to set property "vendor.cover_state" to "0": connection failed; errno=13 (Permission denied)
11-01 21:27:32.306 996 996 E touchcoverd: set_cover_property - Failed to set property : vendor.cover_state rc - -1
11-01 21:27:32.303 996 996 W kobjeventd: type=1400 audit(0.0:49): avc: denied { write } for name="property_service" dev="tmpfs" ino=11173 scontext=u:r:kobjeventd:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 ppid=1 pcomm="init" pgid=1 pgcomm="init"

(if you want to play along at home, the sensor is just below the selfie cam)

Neither vendor.cover_state or touchcoverd are particularly google-able, my guess is that it's a Sony daemon that's failing to interface with LineageOS rather than simply a permissions problem.

Any hints?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
looks like we just need to add an appropriate selinux rule to make it work.

you can test this by temporarily disabling selinux (via "setenforce 0" run as root in either terminal or adb) and trying again. you can re-enable selinux by entering "setenforce 1" or simple rebooting.

if it works while being permissive, please check the logs again to see if any other deinials pop up.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
right, i managed to find a magnet and tried this myself ;)

I fixed all the selinux denials, but that didn't make it work in the end. turns out, we need to build a LOS app called FlipFlap. I now did this and configured it to turn off the device immediately after closing the lid.

There is also the option to generate a cover view screen for X seconds before turning off the screen. I now chose a full screen one (as opposed to e.g. a rectangular or circular one), but I suppose for us it doesn't really matter - at least the official covers that I found on the Sony site don't sport a window in the lid.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Linglai233:
PS4

PS4? cannot be used：哭泣：
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] lentinj:
Thanks! Sorry I didn't get a chance to try at the weekend.

I've not seen any covers for this phone with a window, official or otherwise, whilst looking on amazon.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
Alright thanks of that.

I just haven't checked XDA for a long time and had been using RC2 all this time. I'll try to get RC5 now.

Just wanna confirm, all I have to do it flash the RC5 file in TWRP and nothing else? Everything will be OK? I've never updated my build here so I wanna make sure I'm not doing anything wrong.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] duckysmokton:
Be sure to run the recommended firmware version, and the latest TWRP.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] techno-viking:
Probably a dumb question here - I have RC4 with the proper firmwear currently installed.

If I don't want to go through the effort of reinstalling all my apps and settings after upgrading to RC5, would a TWRP backup work after I install the new firmwear / rom? If so, what would I back up? I tried looking online but could not find a solid answer.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] :
Afaik you don't need to wipe anything while upgrading from a previous version. Just install rc5 in twrp. An update wouldn't hurt anyway. I always backup everything just in case (system,data,boot,internal storage)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
still needs some work (obviously ;) ) but it is coming along. sneak preview:

https://app.unsee.cc/?v=1#a2c39a7e
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Wow! Very cool! Thanks!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zelmor:
Is this going to cause the los16 release not go out of RC state for some time? I'm waiting on that currently, not enough time to mess around with release candidates.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
Software is never really 100% stable and bug free. Alpha, beta, RC, versions...that's all just numbers and indicators at best. At some point you have to decide for yourself whether something is good enough to use or not.

As for 16.0, no, this is not the end of the road for it., e.g. I will look at a few more (USB-related) issues this weekend like tethering. Will 16.0 ever "loose" it's RC status? Probably not.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zelmor:
Thank you for taking the time to answer.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
In the Arch Linux philosophy, there is one version of a piece of software, only - the current release. No oldstable, no long term support and even no testing / unstable. If the hardware is capable, there is no reason not to upgrade, while the main reason to do it is always security. Since we're all talking the same hardware here, and since [MENTION=4063475]derf elot[/MENTION] is working on a new release - why would anybody want to stick to version 16?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Aaq7for:
Sony camera crashes when you take a lot of photos

RC5. I took about 50 photos without turning off the Sony camera and the application began to crash when I clicked on the photo button. Reboot helped. Can anyone check this issue?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Same here. Reboot to TWRP and wipe the cache (former dalvik) and retry. If that doesn't work, connect via adb and delete the app's data folders:

adb root
adb remount
adb shell rm -rf /data/data/com.sony*camera*
adb reboot

For me, "/data/user/0" is symlinked to "/data/data". Check if there are more folders like "com.sonymobile.camera" within your "/data/user/0/" or "/data/user_de/0".

Then, during reboot, the app gets recompiled and will take photos again.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Meth0d:
Apart from the VoLTE issue Los aparently always has issues with, RC5 is rock stable for me.

Bern using it as daily since release and never looked back.

Thank you for your work btw :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] danish0175:
Thank you
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zelmor:
Because I use Debian stable on my laptop, and I deal enough with software bugs in my day job to prefer my home machines stable. :)

To each his own.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] AllesMeins:
WifiScanRequest throtteling - any known way around it?

Is there any known way to disable the new background Wifi scanning throttle that is implemented in android pie? Installing Googles PlayStore broke my UnifiedNLP-Location-Provider. So I installed the XposedUnifiedNlp-Package that should work on devices with GApps. Unfortunatly Android is limiting the Wifi-Scan Requests to something about once every 20 minutes what makes it pretty useless as a way to get accurate location data.

WifiScanRequestProxy
Scan request from org.nlp.backend.ichnaea throttled

The folks over at the UnifiedNlpBackend-Project don't know how to deal with it, so I was wondering if there is any known way to get rid of this WifiScanThrottle altogether with the deep system access that using LineageOS provides?

In know that this is a "feature" that will be fixed in the next Android Versionm but I don't want to wait until it is released.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] :
Call volume too loud

Hi,

after some weeks of testing RC5 I think the volume while calling someone or being called and listening with the ear directly at the phone, the volume is quite to high. In some calls the minimum or depending on my surrounding even slightly higher is fine but with most calls I even find the minimum volume much too loud! Anyone else?!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] danish0175:
I experience this even on stock pie
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
What about my personal files and apps and settings? I don't wanna have to start installing and setting and customizing everything again from the start. Currently I'm on RC2.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Your settings and files will be fine when upgrading to RC5.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] lentinj:
I found that Trello and uk.co.ordnancesurvey.osmaps would crash on startup unless I granted them storage permissions first (I've used NanoDroid to get MicroG and signature spoofing too, they may have worked without). OS maps in particular had this in logcat:

ComponentInfo{uk.co.ordnancesurvey.osmaps/uk.co.ordnancesurvey.osmaps.flow.FlowActivity}:
java.lang.IllegalStateException: cannot create cache directory

The cache in question I think is /storage/emulated/0/Android/data/uk.co.ordnancesurvey.osmaps/cache/os-elevation-cache/

Not a problem for me now, but thought it might be useful information.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Nouatik:
My headphonejack has broken, does this phone or rom support usb-c to 3.5mm adapter? Im on rc4
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zelmor:
Stock supports it, buth with usbC headphones AND usbC>jack converters. I think this should too. Make sure you allow USB devices.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Nouatik:
Didnt fint "allow new usb devices" but maybe i need to flash new rc5 wich uses stock audio hal?

Can i flash it without upgrading firmware?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zelmor:
This had been answered before.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Nouatik:
Ye sorry, found it. I flashed rc5 no problems. Altho sony branded usbc-3.5mm doesnt work. Not sure why... (Ps did not flash latest fw)