yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] DerSteppo:
Mine lasts for (almost) a couple of days, but I don't over-use it.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] .:B:.:
I've seen battery life go down compared to RC1 as well (RC1 used to be 15.1 levels, almost two full days).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] modpunk:
Check with BetterBatteryStats what is going on ...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] cumbalero:
Hello,

Thank you for your work. I've been running LO 15.1 on my lilac for a few months then I wished to give a try at Pie, removed all bloatware and privacy threatening stuff including GApps (got my own pure Android in a way) using Magisk unbloater. This RC2 sounds stable enough for me and I'm gonna install it this week-end.

Sony wouldn't take a device that has lost this partition in warranty, even if your issue is hardware related.

It's really much easier and safer than it sounds. I've flashed every Android device I have owned for 9 years and the worse I got was a non booting device (showing a funny dead robot) and a few bootloops, flashed again double checking and reading the doc and got them back.

You can read here people having a few issues, no one is complaining about having bricked his/her device. Read twice: most of them didn't respect the instructions strictly. Get the good stock firmware, check the MD5 signatures of every file you download the best way to get a blocked device, or I'd even say to brick a device, is to flash using a corrupted file. Reboot at every step. Some parts of the software run scripts to complete their installation at first boot, and there's an order to install these bits of code. Only Superman puts his underpants over his jeans.

Software isn't everything though. Charge your device to a good 80% before you go. Flashing the firmware itself won't use it but every other parts of the installation needs important resources and therefore are energy consuming. Use a good quality cable, prefer a short one, less subject to perturbations and a laptop.

Best regards

Cumbalero
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] schmolch:
I flashed the rom, gapps and addonsu-16.0-arm64-signed.zip but root-access is still disabled.

I am also unable to give sd card write access to apps.

In developer options there is no option to enable root.

Is there anything else i need to do?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
The "Root access" should be in developer options, about 20 entries down.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] WheelchairArtist:
Is anyone else having problems with vpn not working?

I can enter and save my vpn connetion but if i want to connect to it it fails and in logcat a get an error about keystore execption.

So is it just me having problems with my keystore or is it a los problem?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] XDA-shark:
Works fine for me, but I already had set it up on 15.1, so I just reconnect now.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] WheelchairArtist:
I also had it setup on 15.1, where it worked fine. Could it be that i botched the firmware update?

I didn't remove fotakernel.sin or vendor.sin before upgrading, everything else was removed as needed.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] schmolch:
Formating and reflashing fixed it.

Now I got root but there are several apps that can't write to sd-card (Spotify, podcast addict, SD benchmark etc).

The storage authorisation for the apps is given but there is nothing specifically for external storage.

The external storage write access in developer options is enabled.

Apparently this is a known issue and it should be added to the description because it's a major bug.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] T_Tank:
By chance do you host the roms elsewhere? AndroidFileHost has been a extreme PITA past couple of months.

Figured out the issue was running the newest sony firmware so had to dig around for the 47.2.A.10.62 and then go through the normal flashing process.

Though.... Tmobile USA won't connect even with the correct apn settings.. kinda a drag
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] cumbalero:
Well, everything went just fine, the longest part was making a nandroid backup before I go.

Thanks again for your job!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
Which oem.sin did you flash? Are you using the US customized? Can you provide a dmesg log right after boot for me?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] T_Tank:
Already relashed back to 47.2.A.10.80 with unlock hide and working on debloat but this is what I had setup prior as my phone is a daily so spending 4-5 hours in the morning trying to find something with VoLTE/VoWifi on Tmo usa has been a bit frustrating.

Downgrade flash from 47.2.A.10.80 to oreo version (can't remember the exact version as I get boot loop going from .80 to .62 so have to downgrade WAAAAAY back then .62)

47.2.A.10.62 -tw base firmware (with bits removed to get working flash

47.2.A.10.62 - us customized OEM sin

Flashed most recent version of lineage os

signed into phone (phone asks to restart to configure to network)

let phone restart sign in and notice no cell reception though VoWifi worked to voicemail.

checked settings an found that no apn was set the T-Mobile US LTE

still no cell reception even after letting phone sit 30 minutes then restarted phone an waited another and still no cell signal from tmobile usa

Gave up an cleared phone out an reinstalled tw .80 then .80 usa sin and phone gets cell and VoLTE/VoWifi then unlock hider kernel.

I'll check it out again when I have free time again if issue comes up an run the various logs just been a bit sick of how many hoops it feels its taking to get roms on this and even getting them to boot OR even get viewable in adb when bootlooping.

Well since I fubard something trying to obliterate facebook off my phones storage..

So got it reinstalled again

Can't get dmesg command to work right I'm not sure what I'm doing wrong here to get it to save to my desktop cause it had data before it did a network configuration restart...

VoWifi still operational though
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
vowifi is sth, so at least ims is working...

for dmesg, you need root, so the su addon. also, you need to give root access to adb in dev options

edit: a poplar user with T-Mobile US is having the same issue it seems btw
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] T_Tank:
I somehow managed to get T-mo working and VoLTE an VoWifi

I did the fallowing

-(this might be optional but) flashed 47.1.A.2.324_CE1 with xperia flash

-unhooked usb DO NOT BOOT PHONE UP

-hooked up usb then flashed .80 tw customized

-unhooked usb again DIDN'T LET PHONE BOOT

-hooked phone up to bootloader an flashed twrp

-booted into twrp and flashed the rom

-let phone boot to os (before installing gapps)

-set phone up normally and let it sit for a bit (should catch cell network, if not toggle the phone to 3g and restart then let sit again)

-once data shows up then xperia flash the matching .80 us customized oem file

-once final boot phone should be able to connect correctly to tmo lte and vowifi

I'm really not sure WHY it let me flash over .80 now when before it would just bootloop but now everything is working.

Now I just have to figure out to get the phone to pass for google pay
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
Good news, looks like nfc is fixed. Should be in next release. :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] T_Tank:
Rad! Now quick question cause I'm waaaay behind on how to do backups anymore but. What do we all backup now when we want to do backups before flashing a newer rom version?

Oh want me to record a dmsg an logcat of my phone working on tmo to compare to the other user with it not working?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
yeah, some logs now that it works won't hurt.

personally, I make backups with TB every now and then. that's enough for me.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] DerSteppo:
Hmm my phone sometimes turns off / reboots for no reason. Just started a few days ago. Anyone else with the same experience?

EDIT: I will attach a logcat if it starts annoying me enough :D
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] beggar23:
The same here. I had the impression it's sometimes when a notification is popping up and the device comes out of doze. But I am not entirely sure.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
I just bought an XZ1c with the intention of installing this as a daily driver. As a bit of a newbie to flashing, I just wanna make sure I do everything correctly. Firstly, I have to unlock the bootloader of the device, before attempting the other stuff? Secondly, is the current RC2 stable/safe enough for use, or shall I wait for RC3? When's the final release coming? Thirdly, will I need Gapps or microG to make use of apps? (note that I don't use any Google apps, but I hear some other apps may not work without Play). Lastly, this ROM has the ambient display too?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Generic123.:
1. First, you should backup your DRM Keys, in the event that you need to revert to stock(forum post here | more detailed guide here). After that, you can unlock bootloader and such.

2. RC2(from my short experience with it on the non-compact XZ1) is stable enough; although NFC does not work. However, RC3 is coming sometime in August, and should fix the NFC issues. It's up to you if you want to wait.

3. The final release may or may not come; I think it depends on whether or not the person making builds wants to keep updating the ROM.

4. You will need a Open GAPPS package; most recommend to get nano/pico(make sure it is 9.0 and ARM64). They only include the bare necessities for google services to function.

5. I think it does have ambient display, although I'm not completely sure, so take that with a grain of salt.

Hopefully this helps.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] The.Kurgan.:
Hi Generic123.,

When you say in #1 , "and such", do you mean you use TWRP to install Lineage OS first, then use Newflash to install upgrade the firmware to match the LOS build (in my case 47.2.A.10.80). I wasn't entirely sure. Last time I flashed something was Cyanogen on an Nexus 5 and it way very straight forward. :confused:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Generic123.:
Flash the firmware first, then flash twrp, then flash lineageOS/GAPPS.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
Thanks that does help! So basically, DRM backup > bootloader unlock > flash firmware > flash TWRP > flash LOS+GApps or whatever.

Can I ask why is it necessary to flash a 'firmware' too? I only installed a custom ROM once before on another device and that didn't require anything like that (just TWRP and LOS). Also, is Open GApps required for certain apps or can I ignore that completely?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
GApps are optional. It depends on the apps you want to use and if you need "features" like GCM/FCM for getting push messages from certain apps.

If you need some kind of google services you can also have a look at nanodroid (microg). I'm using it as alternative to GApps and it uses less storage and also battery life is far better in comparison to GApps from my experience.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Killerkip:
The newer firmware includes things like driver updates and security patches that aren't patched/included on ROM level.

see my post for the newest firmware files necessary for LOS RC2 here: https://xdaforums.com/showpost.php?p=79877573&postcount=250

Instead of GApps you can use NanoDroid: https://xdaforums.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928/ if you want to use microG.

EDIT: [MENTION=5553627]Danko Jones[/MENTION] beat me to it about GApps :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] DerSteppo:
:laugh: the moment I started typing, it happened again... I had WhatsApp open and I think a message came in, but I don't have popup notifications enabled.

Let's see if one of those logcats are any useful [MENTION=4063475]derf elot[/MENTION] [MENTION=4297219]modpunk[/MENTION]
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] T_Tank:
Here is a logcat of the phone when I had lost signal and took about 5 minutes of fiddling to get it to go 2g then 3g and finally get it to get lte signal.

This was in a area where I normally get full lte signal.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Great work.

Awesome. Your build of Lineage was the reason for me to get a XZ1C and it works flawlessly. Thanks a lot. And thank you for the Linux comliant workflow, too. I really appreciate that.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] cumbalero:
I'd insert and move a few steps: set developer mode and usb debugging > DRM backup > bootloader unlock > flash TWRP > do a Nandroid backup > flash firmware > boot > set developer mode and usb debugging > flash LOS > format data using TWRP > boot > set developper mode and usb debugging > flash GApps or whatever
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] wirdSchoon:
How do you proceed with the next update?

So if the version RC3 and the Sony firmware is available, which steps are necessary?

Do I have to delete the data (from RC2), too?

Somehow that's confusing. :confused:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] cumbalero:
If you're running RC2 when RC3 is released, you'll just have to flash RC2 to RC3 without wiping data in TWRP, just the cache. If you wish to flash from Xperia to RC3, just check the firmware you're running fulfil the requirements and flash Xperia to RC3 wiping data in TWRP.

Wiping data is necessary when flashing from Xperia to LineageOS as these are different OS and using LineageOS with user rights set on /data by Xperia can lead to problems.

As long as you're starting with a device you've never used, you won't loose anything, making it easier.

The nandroid backup part is to allow you to go back to Xperia and TWRP installed easily in case of something goes wrong flashing.

Tell me if it's not crystal clear to you.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] wirdSchoon:
Thank you so much for the explanation. I've developed a certain understanding of the process. :D

So far i wasn't aware that LOS didn't update the firmware.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Kanlas:
I used Smali Patcher to build Magisk module to make Signature Spoofing available for this ROM.

Here it is
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] wirdSchoon:
I would be happy if the LOS supports microG directly.

Will you integrate the possibility for signature spoofing?

https://github.com/microg/android_packages_apps_GmsCore/tree/master/patches
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Killerkip:
Please use the search function, the question was answered a few pages back: https://xdaforums.com/showpost.php?p=79889595&postcount=266
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Bug: Call volume

I'm seeing a bug during calls using a wired headset: The volume is very high in general. When moving the call volume slider between 0% and 100%, the volume varies beween, say, 80% and 100%, only.

Can anyone confirm?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] _that:
I noticed the same on unofficial 15.1 yesterday without headset. And sometimes I can't hear the other side at all.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Killerkip:
On LOS 15.1 call issues regarding not hearing the other side are thought to be caused by audiofocus issues discussed on this page of the LOS 15.1 thread: https://xdaforums.com/xperia-xz1-compact/development/lineageoslilac-t3745215/page82

I haven't faced any issues regarding calls on LOS 16 yet, but I haven't touched the volume during a call.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
I can confirm that, too. Answering to a call is fine if I'm using the built in speaker. But if I have a headset plugged in, there is no audio until I switch outputs. On the other hand, when starting a call, I don't have any issues neither with built in speaker nor with headphones.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Killerkip:
Are you saying you're facing the same issues reported in the thread for LOS 15.1 on LOS 16?

I've had no issues yet since moving to LOS 16, so I'm assuming those issues are fixed for LOS 16.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] remctrl:
Possible Cause?

Hi, Sorry for the oversight. I didn't know about the google apps incompatibility:

https://wiki.lineageos.org/gapps.html

This page warns of "crash-o-matic" behavior if LOS is booted before an G replacement is installed. Duh, that's were I'm at.

Unfortunately, I booted LOS before installing any gapps replacement. My goal is to loose google completely, so this is no biggie. But, as I said above my first attempt at RC1 on US_Customized was successful (wifi + cellular) because I believe wiping all goog garbage BEFORE installing LOS 'prevented' the issues I observed (see above).

So, does anyone know how to expunge all Google apps after installing and booting LOS? I'm starting down the path of removing google apps one by one to see if the problems resolve.

One prime suspect IMHO is: "carrier services" (com.google.android.ims). I haven't uninstalled that yet, but anyone know if that might be the problem? Or - what other possibilities?

Please let me know if anyone has ideas.

Thanks.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Killerkip:
What steps are you performing to flash LOS?

- I would flash the latest Sony stock firmware (to start completely fresh)

- let it boot and skip through initial setup without setting anything up

- let it rest for a few mins

- if you have an SD card now would be a good time to connect the phone to a PC and copy the latest LOS zip (and addonsu if you want root) to it and either GApps zip (https://opengapps.org/ (ARM64 > 9.0 > pico)) for Google apps or NanoDroid (patcher and microG zip (https://xdaforums.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928/)) for microG, if you don't have an SD card skip this step

- power off the phone

- flash TWRP

- boot TWRP

- when in TWRP go to wipe > format data

- go to the reboot menu in TWRP and select reboot recovery

- when TWRP is booted again, go to wipe > advanced wipe and select dalvik + data + system + cache > wipe

- !ONLY DO THIS STEP IF YOU DON'T HAVE AN SD CARD! connect the phone to a PC (TWRP has mtp mode) and copy the LOS (and addonsu if needed) zip and either GApps or the NanoDroid zip files mentioned above to root of phone storage

- flash zips and reboot (the latest build of NanoDroid should have fixed the LOS bootloop issues, I don't know of any issues with GApps as I don't use them)

- Profit

EDIT: If you chose to flash NanoDroid be sure to flash the patcher before microG (LOS > patcher > microG) and be sure to backup all your files because the whole phone storage will be wiped by flashing the stock firmware and the format data step in TWRP.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Yeah, it seems related. Glancing through the 15.1 thread I assume people had audio issues accepting a call in general. For me using 16.0 it only takes place if I accept a call with headphones plugged in.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Killerkip:
Maybe [MENTION=4063475]derf elot[/MENTION] can shed some light on this as he got sent some logs at the time from a user with an xz1 about audiofocus issues as I don't know if headphones are related to that issue.

Having said that, it seems there were some issues with calls over wired headsets according to modpunk in the devonly thread for LOS 15: https://xdaforums.com/showpost.php?p=76960415&postcount=271 and I think he refers to these instructions to debug it: https://xdaforums.com/showpost.php?p=76334448&postcount=263

Keep in mind that those posts and instructions are for LOS 15 and I have no idea if they are in any way applicable to LOS 16.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
Since I only ever use headphones to listen to music and not for calling I cant really say if they are related. I don't _think_ this is related to audiofocus issues anymore, rather a general issue with headphones & calling (maybe detection) which indeed was similar in 15.1. Whether the same method for debugging still applies, I don't really know, maybe [MENTION=4297219]modpunk[/MENTION] can say. Personally, I haven't dug into audio & routing on android much myself yet, so take this with a grain of salt. But it would be nice if we could get this sorted out. [MENTION=4901061]mcgi5sr2[/MENTION] was going to have a look at this as well, but I think he fell into a rabbit hole while doing so - I know the feeling.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] remctrl:
Update Installation instructions?

IMHO I probably "stumbled" on a way to accomplish a Google free install of LOS, but this part of post #2 is a bit misleading:

Should be:

You MUST download and install a Google Apps "Replacement"....

See: https://wiki.lineageos.org/gapps.html

Simple answer: Posts #1, and #2. But thanks for the extra detail - might should be included in post #[1,2]??

I'm glad to see increasing interest in LineageOSon the XZ1C, but missing the Google Apps replacement requirement cost a lot of time.

However as I said, My main goal is to be Google Free. And given I "stumbled" on a way to avoid it altogether using RC1, I'm hoping to understand how/if this can be accomplished without the Goo replacement requirement.

I understand my 'goal' moves beyond the buttonology needed to get LineageOS up and running. So if anyone has a deeper understanding of how stock goo fubars the LOS install, please reply. Scientific (or non) Wild A$$ Guesses (SWAGs) are welcome :)

Thanks
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
Noob here. I also want to be free of Google, but with access to Play Store apps. As far as I know, I should flash LOS together with microG, and then install Yalp (or Aurora Store) to access Play Store apps. Is this the correct method?

Sorry I'm just a little confused with this Open GApps and microG. From what I understand, GApps is basically the Google apps repackaged, while microG makes use of Play Services to enable certain non-Google apps to work properly. Is this correct or am I wrong? Since I don't use any Google apps, microG is all I need right?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Killerkip:
I don't understand what it is exactly you're trying to achieve?

If you follow my instructions in my post above and use NanoDroid you won't have anything related to Google on your phone, you can even flash just LOS without any other zips and use it like that.

See my post above, you can skip the steps you have already done if any as it should be pretty self explanatory, just be sure to clean flash LOS (and backup your data to be safe if anything goes wrong or you need to format data).

You can configure NanoDroid to install a patched Play Store if you want to use apps you paid for, but as default it comes with Aurora store afaik.

You're not far off, microG is more like a stub to let you use GCM/FCM for notifications ect. and it only sends the data it needs to function to Google (feel free to correct me if I'm wrong).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
I'm not quite sure about the point either. Maybe the fact the _if_ you want to install any sort of gapps or replacement it should be directly when ROM is flashed? Then again, it has been like this for a while iirc.