yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Im_Just_A_Pasta:
I'm having trouble getting this rom to have stable connection to data/sms/cellular without gapps. As far as I can tell, stock rom works completely fine, and this rom works fine with gapps pico installed, but I don't want google play services. When I've tried to use this rom without gapps, it has lots of problems depending on which firmware I try, but they all fail. Once, data and texting worked fine, but calls are totally silent for me and the person I call. And when I flashed the firmware 107 and then installed RC4 no gapps (such that I got the "optimize for carrier" reboot in lineage), I couldn't get any sort of data or cellular connection for more than a second or so.

Edit: Nope, actually doesn't work even with gapps installed. It worked for about 20 minutes as I was setting up my apps, and then it randomly just lost all connections and will not reconnect unless I go into the *#*#4636#*#* menu and switch to GSM only, wait at least a minute until the "E" shows up, then switch back to LTE/CDMA/UMTS
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Airgio:
I'm with firmware 47.2.A.11.228, what i've to do in order to install this rom?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] guymontag12:
I really miss a step-by-step tutorial in this thread. For a noob like me it would make everything easier, if the developers would not only release the changelogs etc, but also a tutorial.

I´m on 47.2A10.107 and generally know the steps to unlock the bootloader, flash twrp, flash los, flash gapps, but without a proper tutorial and because of the fact, that i have no knowlage about programming, etc. an hence don´t understand what technically happens in all those processes, are too afraid to brick the phone.

LOS would be much more applied, if there would be a proper tutorial.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Airgio:
I'm perfectly agree with you
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
Thanks for explanation. Glad to hear that save to sd card will work in next build with stock camera app.

Download firmware files from here: https://xdaforums.com/showpost.php?p=79443903&postcount=33

Then follow the instructions from here: https://xdaforums.com/crossdevice-dev/sony/progress-newflasher-xperia-command-line-t3619426
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] .:B:.:
[MENTION=4297219]modpunk[/MENTION] Thanks for the work on 16.0 :D I kept building off your and derf elot's trees after you stopped publishing 15.1 images to keep up with the ASBs; would you be able to provide a migration build so people using test-keys can migrate back to your builds without needing a full wipe?

This also affects people using [MENTION=4063475]derf elot[/MENTION] 's recent 15.1 build afaik, since he didn't build using your keys.

Thank you!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] toobinator:
hi everyone total noob here,

i've just managed to install this ROM on a factory reset XZ1 compact. The OS is now running, but i think i have messed some things up. i followed a guide on some semi sketchy tech site, and came to the realisation that it was out of date, about halfway trough the process. i had put recovery onto the device via fastboot, but also probably done some other things wrong. At that point i was ready to give up, but it wouldnt boot into its original android pie firmware anymore so i had no choice other than to put lineageOS on it via recovery. I got that to work and at first i was relieved that i could boot into an OS at all, unfourtunately i immediately got flooded with crash notifications from the app store, so i had to uninstall it. afterwards it was fine. Sadly now i cant connect to wifi networks. when connecting to wifi, it instantly gives me ''failed to save network'' and ''failed to connect to network'' errrors. i have tried resetting app settings, wifi settings, using a different app to connect to wifi and a factory reset. none of these worked, and the factory reset booted me into recovery, and i had to flash lineageOS again.

anyone have any advice on how to get wifi working??? if not maybe on how to reset to the standard sony firmware?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Nouatik:
Same thing happened for me, solved it:

Reflash stock thru newsflasher

(Guide in second post)

Flash twrp via fastboot

Enter twrp

Wipe system and data

Flash Los16 and gapps

All good
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] tassee:
Hi guys,

first of all I want to give a huge THANKS to all the devs here - your work is amazing!

I upgraded to LOS 16 a few days ago and so far it runs quite smoothly, some issues I detected though:

* Sync: I cannot sync my accounts - even pressing sync now in Accounts-> myDAVXaccount -> Account sync -> Sync now has no effect whatsoever

I am running AFWall - is there a new/specific thing I have to allow to make this work? Or could this be some different bug? Logcat wasn't very helpful to me so far

* Storing app data on sdcard: This was a big argument for me to go to LOS16 already (as I thought this will finally work :P). Yet when trying it with OSMAND (my main usecase for this) I just cant select the sdcard within the app - think this might be ROM related somehow

Some other comments:

* Battery Life: Currently I notice a little decrease in battery life compared to LOS 15.1 - In my daily use BBS currently reports 1.3-1.5% /hour - do you guys have similar values? in LOS 15.1 I used to be around 0.9-1.1% /hour. I read that some people are having improved battery lifes.

* GPS: -I read that GPS fixes are supposed to be slow - can't say this, for me its similar to LOS 15.1- //edit: ok it"s slow, just checked again. guess last time I was at an optimal spot.

* Notifications: As I am not running any GAPPS on my device I am wondering how you guys handle the notifications. I guess due to missing GCM (?) the notifications are kind of not so reliable (Whatsapp, SIgnal, K9,..)

* Development: As a developer myself I am curious on building LOS myself - are there any good guides? Overall the whole development looks like a confijguration nightmare to me :)

Thanks again - and keep it up!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] toobinator:
that did the trick! major thanks!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] sieghartRM:
Is there a version of this ROM without F-Droid pre-installed?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] stupidus89:
Thanks a lot for your work on LOS 16.0. I installed it yesterday and it seems to work fine (except for some trouble with magisk, but that was my fault, I just needed to uninstall it first).

The only problems I have were mostly already mentioned in this thread. The blue-ish color of the display disappears by changing LiveDisplay to Night and back to Day. However, I need to do this after every reboot.

I also have problems with writing to the external SD card. Osmand does offer to store to external memory, however, it shows an error message if you actually try to select it. I used the magisk module "ExSDCard Accesss Enabler" like on LOS 15.1 in order to get it working.

Microg is working without any problems. Even the nanodroid patcher worked to get signature spoofing (on LOS 15.1 I used xposed to get it working).

Saving photos to SD card also works with OpenCamera.

However, I am also noticing a faster battery drain. But this is just subjective. I do not have any data to back this up. It might also be simply related to the fact that I am using the phone a bit more in order to test things. I will keep looking into this.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] modpunk:
That also bugs me too. I'm not sure if this is an issue with osmand itself. If you use the Stock Camera from Sony and select to store data on the sdcard, it asks you for permissions. However osmand doesn't do that and so my guess is that it misses a flag to store data externally.

However I think you can adopt sdcards now. This means you can encrypt them and then it should work.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] modpunk:
Can you provide a link to that thing, I need to look into the source code to figure out how they fix it ...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] tassee:
I guess thats the one:

https://xdaforums.com/apps/magisk/module-exsdcard-write-access-enabler-t3670428

Gold to know thanks. What do you mean with adopt and encrypt though?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] modpunk:
Ouch, that disables SELinux. Also the fix doesn't look correct.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] modpunk:
The apps don't request

android.permission.WRITE_MEDIA_STORAGE

. So they don't get write access to external storage ...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] beggar23:
Is it possible for us to add that permission via adb for any app these apps?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
You can use microG / nanodroid to get notifications (GCM/FCM) working. If you want to go that way I can post more detailed instructions if needed. ;)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] tassee:
Urgh, that sounds bad.

That sounds nice. Would greatly appreciate it!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] sieghartRM:
I have the same problem in my in my Sony Xperia XZ1 Compact with Here WeGo and I have to install exsdcard Magisk module to use this app. It also did not work in Lineage OS 15.1 without this Magisk module.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
1) Get nanodroid from here: https://xdaforums.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928

I would recommend the minimal installation with nanodroid patcher and microG package.

2) run patcher with twrp (this can take several minutes)

3) reboot to system (to prevent bootloop, maybe this step is optional)

3) boot to twrp again and install microG package, then reboot to system

4) Start microG settings app. You will see an advice, that permissions are needed, grant them.

5) Enable device registration and cloud messaging in microG settings.

6) Enjoy your system without GApps but with push notifications through their services. ;)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] tassee:
Thanks for the explanation, will definitely try this.

Regarding your recommendation: You mean NanoDroid-patcher-20.8.20190504.zip + NanoDroid-microG-20.8.20190504.zip ? Or do you mean microG independently somehow?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
correct.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] modpunk:
I wanted to upload RC5, but the upload on androidfilehost doesn't work right now. I hope it will be fixed in the next hours.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] duckysmokton:
Can you post the changelog, just to make us curious ? ;)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] modpunk:
I've updated the changelog, upload is running.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] android_fury:
Can't wait to try it. Thank you!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] modpunk:
Upload for RC5 finished.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] danish0175:
Can any one share a sample of the bokeh effect added
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] doeternietoe:
First of all, thanks for the rc5 update. Very nice to see how well this ROM has been updated since the arrival of LineageOS 16.

I was wondering what the arrival of the binaries for AOSP Android 10 means for LineageOS on the XZ1 Compact. Will there be LineageOS 17? Personally I'd be fine with continuing (security) updates for LineageOS16, but I suppose much depends on the way future stock updates will go.

See: https://developer.sony.com/file/dow...es-for-aosp-android-10-0-kernel-4-14-yoshino/

Well, I'm afraid it's really just the steps you mention. If you want a step-by-step guide, writing out explicitly what you have to do, I *might* be able to do that. Due to a malfunctioning sd-card I've just gone through the steps multiple times... I don't run gapps, however.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] android_fury:
Dude, I completely missed this. Here's what I did:

Flash latest US firmware

Enable USB debugging/ADB access

Flash TWRP

Format data

Flash RC5

Flash nano gapps

The setup freezes right at the beginning and the phone restarts. I can't get past it. I modified the steps above by flashing the latest UK firmware, then I tried flashing pico instead of nano gapps, and it still crashed. I just can't get RC5 to advance. Is anyone having this issue?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
Those binaries are for usage with the Sony Open Devices Project (SODP, see at https://www.github.com/sonyxperiadev ), which is very different from stock.

While I really like that effort in general, it does have major drawbacks. 1) Camera is not (and likely never will be) close to stock quality as it uses the CAF stack rather than Sony's. 2) Features like IMS will also likely never be supported there 3) Most importantly, it is not based on the stock kernel. That's not an issue per se. But before one kernel ever becomes truely stable, there's a bring-up to a newer one, introducing new regressions, etc - moving from 4.4, via 4.9, to now 4.14 (I believe). Again, I really like this effort in general, by for the mentioned (and other) reasons, I much prefer a stock based ROM.

Now, concerning 17.0, it should be possible. It is always nicer (and easier) to have a stock ROM running the same Android version, of course. There usually are ways to get around these issues though. Also, luckily for us, other msm8998 devices like OP5, Essential and (I believe) a couple of Xiaomis _will_ receive official Q. That means we can also "borrow" some proprietary files from them. The only issue I could foresee is regarding the camera. I've tried several times already to update out GPU stack, which broke our camera out of the box. I haven't yet looked into why that is, but I'm sure we'll find a solution.

That being said, I am now planning to start some preliminary work for Q already, bumping our kernel to LA.UM.8.4-r1 (which is the CAF 4.4. kernel for Q) from our current LA.UM.7.4-r1 (P kernel). This always takes a bit if time so it's good to start a little early :)

---------- Post added at 11:38 PM ---------- Previous post was at 11:34 PM ----------

Did you also wipe the remaining partitions after formatting data in TWRP (doing a reboot back to TWRP after formatting data)?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] wyt18:
is it possible to use Magisk instead of the LOS su add-on?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
Not using it myself, but several people seem to. So should be fine.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] tinypc:
Rc5 works fine! Including the Volte it works fine! Root works fine!Perfect Rom!

But I can not send and receive text messages, in addition to a very strange question, there is a small plug on the WiFi signal with the cell phone signal icon?

I'm not good at English sorry guys.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] wyt18:
i had the same question, as this was my primary reason for changing rom from stock. after asking here a few times, without success ... i finally tried this rom myself today

there is a "portrait" mode in snap camera, but unfortunately there is no visible bokeh effect (for both objects and people). not going to upload samples as there is no difference from a normal photo

so am going to go back to stock ... have been looking for a proper bokeh mode camera for the xz1c ever since i got the phone and it's frustrating that gcam (which works great on almost all other SD 820+ devices) doesn't work on the xz1c. and that the sony official "bokeh" app is just rubbish. amazing how sony which makes great cameras for all other devices can't get a simple bokeh function working on its own phones!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Airgio:
So the gcam doesn't work in this rom?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] wyt18:
no it doesn't, as it is based on stock sources
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] 7gue8a:
Same here regarding SMS messages: they don't seem to arrive with RC5. Other than that, works great. Thanks!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] brordavid:
SMS and MMS (both sending and receiving) is working just fine here on RC5 for me.

The only feature I cannot get to work is "a longpress and release will launch camera" under

Systems/buttons, but that is really a minor thing.

Fantastic work with this rom! :good:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] danish0175:
Nope
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] arslanon.e:
SMS work fine. Great work [MENTION=4297219]modpunk[/MENTION] and [MENTION=4063475]derf elot[/MENTION]
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Meth0d:
I am still on RC4 but longpress home to launch camera works for me when enabled in settings.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] brordavid:
Got it to work after freezing Los camera app in titanium backup. Everything work as it should now.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] 7gue8a:
SMS works fine, false alarm. Sorry for that.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Meth0d:
Yeah everything still working fine exept one thing that annoys me but i had that on RC4 also:

Chrome always starts with chome-duet disabled (adress bar on bottom) and will only change that if i disable-enable-disable-enable it. And then after some days it will eventually disable itself again.

Never had that before and it annoys me to death but i have no idear where that setting comes from.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Give Bromite by csagan5 a try. It comes with sane defaults and adblocking. And, regarding your issue, it has never disabled chrome-duet for me.

I suggest to get it via F-Droid as described here.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] guymontag12:
step by step tutorial

I managed to install los, following the steps of this tutorial: https://www.getdroidtips.com/download-and-install-lineage-os-16-on-sony-xperia-xz1-compact-9-0-pie/

the steps it takes are:

unlock bootloader: i followed the sony unlock homepage

install twrp: you have to install the right file for your built number; making ab backup still does not work (error 225, whatever that means).

install the proper LOS zip and gapps zip and superuser zip: it worked, but rootchecker says, it´s not rooted.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Mustermann Max:
Hey, is there a way to flash firmware without pc, in Twrp for instance? My laptop won't start anymore...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] stupidus89:
I installed RC5 yesterday and everything seems to be working fine.

The only issues I still have are probably upstream (Lineageos) related and not specific to this ROM. For example, the fact that all music players only can play around half of my ogg vorbis encoded music. The other songs do show up in the player, but are just skipped when I try to play them. I probably should look for this on the Lineageos bug tracker.

EDIT: It is an upstream issue: https://gitlab.com/LineageOS/issues/android/issues/549
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
maybe we can apply the same fix as nile though. you can try to edit /vendor/etc/audio_policy_configuration.xml and remove the vorbis lines (should be #137-139). save and reboot and let us know :)

edit: let that be /vendor/etc/audio/audio_policy_configuration.xml of course
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] stupidus89:
I deleted those lines, and rebooted the phone. Now it seems worse than before, it does not play any ogg files at all anymore (at least the ones that I tested, it would take way to long to actually test all of them). Before it was sort of random which files it would play. It seemed also to depend on time, i.e. files that had been on the phone for a few months had a higher chance at playing, than files that were added recently. I guess I will revert the changes to the file for now.

EDIT: I actually edited the wrong file, because I did not see your edit in time. I will try again with the correct file.

EDIT: It seems to be working now, after editing the correct file. Thanks a lot.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] lordnils:
I just flashed the .228 firmware and got the "no connection" problem again as described here: https://xdaforums.com/xperia-xz1-co...icial-todo-t3925675/post80062067#post80062067

I thought after the full-wipe I did the last time this problem should be gone but here we go again. I followed the steps for upgrading the firmware and tried with the Customized DE one first, then flashed the one for my carrier which is a sub-contractor of o2.

I flashed in the following order:

Customized DE

LineageOS 16 RC5

reboot

o2 DE

reboot

o2 DE (only cust-reset.ta and modem*.sin, with deleting /cache/modem etc. before)

reboot

LineageOS 16 RC5 again

reboot

Only after 7) did I get the "reboot" message but still no connection afterwards. And I still can't start the CustomizationSelector->ModemSwitcher, nothing happens when I try to open this Activity with Nova Launcher.

Also flashing Lineage again in Step 8) did not change anything. Afterwards I could force the "reboot" message again by Clearing CustomizationSelector and /cache/modem again, after clicking "Reboot" I still got no network connection though.

It's a full-wipe for me again, is it? :crying:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
I don't really understand why the modem switcher activity isn't opening for you. when I do this (also with Nova) I get the attached screen. switching modems there should do it normally :(

edit: as a work-around, could you disable VoLTE, VoWiFi and/or Video Calling in options to see if that works? If that doesn't work, then under the *#*#4636#*#* screen at the bottom?

edit2: as a last resort, you could comment out the following props from /vendor/build.prop?

persist.dbg.volte_avail_ovr=1
persist.dbg.vt_avail_ovr=1
persist.dbg.wfc_avail_ovr=1
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
We don't have the source, but I've decompiled it (which is not optimal). But I don't think there's anything useful there. Is there Anything else in the logs for "CS-" ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] lordnils:
There are recurring lines like this:

10-22 01:01:32.664 11463 11463 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1531 android.content.ContextWrapper.startService:664 android.content.ContextWrapper.startService:664 com.sonymobile.customizationselector.EventReceiver.onReceive:60 android.app.ActivityThread.handleReceiver:3417
10-22 01:02:08.061 2398 2909 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1005 android.content.ContextWrapper.sendBroadcast:444 com.qualcomm.qti.uceShimService.RCSService.postServiceDown:230 com.qualcomm.qti.uceShimService.RCSService.access$700:50 com.qualcomm.qti.uceShimService.RCSService$3.onReceive:283

(I PN'ed you the link to the full logcat output, didn't check for private data in there for a while...)

edit:

Ah I just searched for Custom* but filtering on CS-* as you mentioned also brings up this line several times:

10-22 01:02:16.794 11463 6329 I CS-CommonUtil: Returning bundle with sim id S77.2, modem: telefonica_germany_volte_vilte_vowifi, config id: 310