yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Questions & Answers] kudos1uk:
No it won't, why do you want to erase the unused slot?

The unused slot is a failsafe should the update fail, as such it remains redundant and unused following a successful update, what is your reasoning for wanting to do this?

Although a failsafe the A/B setup is more about performing a seamless update, allowing you to use Android while the phone is updating to the unused slot, ie no more watch that "updating" message, just a simple reboot, once updated the old slot is unimportant and not worth worrying about.
[Xiaomi Mi A1 Questions & Answers] _mysiak_:
Mi Flash script will overwrite both slots with the same FW version and set slot A as active. Check the content of flash_all_lock.bat file to see what is being flashed and how. You can remove lock command from the script to keep bootloader unlocked.

OTA update reflashes only the inactive slot.
[Xiaomi Mi A1 Questions & Answers] Tiemichael:
[MENTION=5710255]kudos1uk[/MENTION], [MENTION=1677632]_mysiak_[/MENTION]:

Thanks for your reply!

Background of my question is this: Somehow I might have screwed up the slot assignment ...

Before I installed Magisk, I used 'fastboot set_active a', and I see Magisk is using slot A. But maybe my OTA upgrade before went to slot B , which could explain why the OTA-upgrade became obsolete/invisible/...
[Xiaomi Mi A1 Questions & Answers] kudos1uk:
Sorry, I was not aware the Mi Flash script overwrites both slots.

Either way it's certainly the right advice to start over.
[Xiaomi Mi A1 Questions & Answers] ash_5:
can i get the script for repartition of Mi A1 ROM?? I'm unable to find it anywhere
[OnePlus 6 Questions & Answers] szybki_ben:
I've got TWRP and magisk but I want to update to the latest OOS because I'm on 9.0.5 (mostly for security patches). Is there a possibility of updating so I don't loose TWRP? Because lately I don't have access to a pc.
[OnePlus 6 Questions & Answers] cobusr:
Download the rom (1.6 gb) then restart in twrp than flash the rom after that flash twrp then reboot to recovery than flash magisk and your done.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
LineageOS 16.0 for Sony Xperia XZ1

[IMG="POPLAR01"]https://i.ibb.co/B4RrBdz/Screenshot-20190616-145336-Trebuchet.png[/IMG] [IMG="POPLAR02"]https://i.ibb.co/ZfSSbj2/Screenshot-20190616-145414-Settings.png[/IMG]

RELEASE

This is an alternative ROM for the Sony Xperia XZ1, offering several privacy features.

Please report any issues you observe apart from the ones listed below. Logs are needed for me to fix anything (preferably dmesg and logcat). I can't test NFC very thoroughly, to please report your findings.

FEATURES

Signed with dev keys

Stock camera

WireGuard kernel support

Well tested but some bugs maybe included

DOWNLOAD

You can download the latest releases here:

poplar (G8341):

twrp-3.3.1-0-20191013-poplar

lineage-16.0-20191212-UNOFFICIAL-RC7-poplar

poplar_dsds (G8342):

twrp-3.3.1-0-20191013-poplar_dsds

lineage-16.0-20191212-UNOFFICIAL-RC7-poplar_dsds

poplar_canada (G8343):

twrp-3.3.1-0-20191013-poplar_canada

lineage-16.0-20191212-UNOFFICIAL-RC7-poplar_canada

Check the ChangeLog below for firmware requirements!

INSTALLATION

Put the zip file of the ROM on your sdcard or internal storage, boot into recovery and flash. When coming from stock: boot into TWRP,

format

data, reboot to recovery and wipe all internal partitions. Then flash the ROM + su addon (if needed) and Gapps (if needed).

When updating from previous RC builds, simply dirty flash the ROM.

KNOWN ISSUES

IMS support is experimental

Phone may not work well with Mifare NFC tokens (not tested)

XDA:DevDB Information

lineageos_16_sony_poplar, ROM for the Sony Xperia XZ1

Contributors

derf elot, modpunk, myself5

Source Code (poplar): https://github.com/derfelot/android_device_sony_poplar

Source Code (poplar_dsds): https://github.com/derfelot/android_device_sony_poplar_dsds

Source Code (poplar_canada): https://github.com/derfelot/android_device_sony_poplar_canada

ROM OS Version: 9.x Pie

ROM Kernel: Linux 4.x

Version Information

Status: Stable

Current Stable Version: RC7

Stable Release Date: 2019-12-15

Created 2019-06-16

Last Updated 2019-12-15
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
Reserved

SECURITY ADVICE

Don't flash ROMs or Magisk modules which set SELinux to permissive or you welcome malware on your device!

UPGRADE FIRMWARE

Grab the Sony Stock firmware using e.g. XPeriFrim. You should always flash the firmware matching the LOS build.

Grab newflasher and put it in the same folder as the firmware files.

Read the newflasher original post on XDA for general instructions!

Remove the follwing from the folder so they won't get flashed:

all *.ta files (keep the one in the boot/ directory)

cache*.sin

fotakernel*.sin

kernel*.sin

system*.sin

userdata*.sin

vendor*.sin

Turn off your phone

Hold the volume down button and attach it via USB to your system till you see LED turning green

Run newflasher from within this directory to flash the remaining files

You can say yes to the first optional step, in case you dont have working drivers installed.

Skip the second optional step (dumping of trim area), it's useless if your bootloader is unlocked already and takes a long time.

How to get root?

Flash the su addon from LineageOS you can find here: https://download.lineageos.org/extras

Google Apps

You can download and install the Google Apps from opengapps.org. You need ARM64 and 9.x. I suggest to *always* use the pico package. If you need additional apps you find them in the Play Store.

Privacy Guard for GApps

I wouldn't run GApps without Privcy Guard. Here is what you need to do:

Go to: Settings -> Security & location -> Privacy Guard

Open the advanced menu (3 dots) and select: Enable by default and Show built-in apps.

Search for Google Play Services and turn it on by tapping the entry. A long press will give additional options. There are more Google Apps you should turn it on and revoke permissions like the syncing stuff.

MicroG

This ROM doesn't support Signature Spoofing. However we are watching MicroG and check if they provide newer builds e.g. for Android Pie.

Simple Mobile Tools

This is a collection of really awesome Open Source and AD-free Apps! Don't get confused by the name! Especially the Calendar and Gallery app are really good! If you like his stuff, support him by buying the Simple Thanks app.

You can find them in FDroid and the Play Store.

Known Issues

Some apps don't work (Gardenscapes, Die Zeit, ...)

When an app is installed then it should ask for Permissions on the first startup. However for some apps this doesn't happen. To fix it you need to go to Settings -> Apps & Notifications -> See all apps -> Select the App -> Permissions. Now manually activate the required permission, normally the Storage Permission is missing in that case!

Got an issue?

Also consider looking at the thread of the XZ1 Compact located here: https://xdaforums.com/xperia-xz1-compact/development/rom-lineageos-16-0-unofficial-todo-t3925675 The hardware is very similar and bugs are likely to exist on both.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
Reserved

REQUIRED FIRMWARE: 47.2.A.11.228

CHANGELOG

2019-12-15 | RC7 | 47.2.A.11.228

Updated Android to 9.0 December ASB

Updated kernel to 4.4.206

2019-11-18 | RC6.1 | 47.2.A.11.228 (dsds variant only)

Fixed power HAL for dsds devices

2019-11-17 | RC6 | 47.2.A.11.228

Updated Android to 9.0 November ASB

Updated kernel to 4.4.202 & latest CAF tag

Added support for smartcovers

Fixed audio issues with ogg playback

Potentially fixed some tethering issues

Revert LOS camera (Snap) to API1 (better image quality) and disable DIS (which doesn't work for us)

2019-10-15 | RC5 | 47.2.A.11.228

Updated Android to 9.0 October ASB

Updated kernel to 4.4.196 & latest CAF tag

Updated WiFi to latest CAF tag

Fixed WFD issues

Fixed audio issues

More device tree cleanups

Updated WireGuard kernel support to latest snapshot

First release for Canadian variant (G8343)

...

2019-09-19 | RC4 | 47.2.A.10.107

Updated Android to 9.0 September ASB

Updated kernel to 4.4.193 & latest CAF tag

Added WFD support

Fixed issue with NFC sometimes not working after flashing a new build

Improved memory management

Reworked init and implemented a fresh kernel merge

2019-08-24 | RC3.1 | 47.2.A.10.107

Based on 47.2.A.10.107 Sony FW (July vendor update)

Completely switched to stock gps stack

Added QC location stack (should help with gps without gapps installed)

2019-08-11 | RC3 | 47.2.A.10.80

Updated Android to 9.0_r46 (August ASB)

Added support for double tap to wake (Thanks to sjllls)

Fixed NFC

Fixed media_profiles (4k recording now works in both Snap and stock camera)

Fixed no data connection for sim2 [dsds]

Fixed random reboots in kernel

Several kernel optimizations/improvements

Updated kernel to 4.4.188 & latest CAF tag

Display fixes - color profiles are back and picture adjustments are working

...

2019-07-21 | RC2 | 47.2.A.10.80

Fixed perf service and power HAL

Fixed audio issues in kernel

Enabled bokeh mode in Snap

Fixed bluetooth issues

Fixed some IMS issues

Fixed irq balancing

Updated kernel to 4.4.185 & latest CAF tag

Updated Android to 9.0_r44 (July ASB)

First release for dsds variant (G8342)

...

2019-06-16 | RC1 | 47.2.A.10.62

Initial release
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] 7hr08ik:
First!

Litterally just having an argument with my phone about not working and you drop this!!!! Yeasshh!!!

---------- Post added at 03:06 PM ---------- Previous post was at 02:32 PM ----------

Hey,

Just a quick question.....In OP you say to flash from TWRP, but then in next post you have instructions to remove .sin .ta etc.

Do i just flash full stock then LOS, or do i need to flash the stock ROM with the bits removed, then flash LOS with TWRP?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
You need to have these stock firmware files flashed, before using LOS. So if you run 47.2.A.10.62 stock, you can simply flash this rom. If you are running SODP-based builds, I would recommend flashing stock first, booting once and then switching over.

The instructions in the second post are for updating FW files when you are already running LOS, without loosing data. LOS builds are tied to a specific FW/stock version. If they don't match, things like camera sometimes won't work. And we always stay up-to-date with FW files and blobs for security etc. reasons.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] 7hr08ik:
Thank you
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Rumzie:
Very exciting, thanks for your work!!

Wish I could flash now, will have to wait for the dual sim version :fingers-crossed:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] haiha2001:
I hope you can enable Camera2API and support for XZ1 Dual Sim ?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
Since this rom is stock-based, we can only support what is there in stock. So full api2 including raw is a no go I'm afraid.

As for dual sim, making a build is not a problem, but unifying them is. Now with IMS support, there are different files in /system and different overlays for CarrierConfig needed for DSDS. Need to come up with a smart way to handle that.

edit: I actually had a look at the files now and they seem to be mutually exclusive. so shouldn't be too problematic. but I will need a tester with a dsds device once its done.

edit2: no, looks like I was too quick - there are some which would clash. so I will opt to make a separate build for dsds for now. will still need a tester or two though ;)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] sinkoo1979:
can't flash on SOV36. doesn't have firmware 47.2.A.10.62. so this rom is only for G8341?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
currently, yes. I will release a build for G8342 soon, then I can have a look at Japanese variants. I've never looked at them tbh, so I have no idea right now how they differ.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Riskypedia:
Seems it's based on the stock firmware, am I right?

So, we might impossible to use GCAM :(

BUT! I'll test this rom. Thanks dev! :)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
Yes, this is indeed based on stock. I don't know much about these camera mods, but if it doesn't work on stock, it more than likely wont work here either ;)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] sinkoo1979:
Converted my SOV36 to G8341 and the phone still won't flash the rom. the error message that I been seeing is "not treble compatibility zip".
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
When did you last update your twrp? Have you tried my version?

https://www.androidfilehost.com/?fid=6006931924117885339

edit: if that fails too, you can delete the compatibility.zip from inside the rom.zip. that should definitely work. but please try with a newer twrp first.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] HoiFung:
It Can't it be unified using a way like maple?Just curious:good:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] sinkoo1979:
will try the newer twrp. Thanks

update: rom booted. Thanks for the rom.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
hi, yes that would work, but the devil is in the details.

I don't think we can get ims to work that way because the modem customization files are different, yet have the same names - at leat I think the sony-modem-switcher binary doesn't care about whether the files contain "fsg" or "dsds" in the name.

also the manifest for the dsds is slightly different as it contains entries for the second sim slot. not sure how important they are. but I know that SecureElement for example will crash on a single sim device if an entry for the second sim is present. not sure about the radio ones.

finally, the dtsi's are slightly different for the kernel. I haven't tried running the single sim device with the ones from dsds. it might work.

I might try making a unified build eventually, it would also make my life easier. but first I'll go for separate builds to verify things are working - especially since I don't have a dsds device to test.

speaking of which, I made my first build for dsds. adding some finishing touches for ims right now. I will need a brave tester or two soon ;)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] HoiFung:
OK, I see:).
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] jxwu0129:
does the nfc will be repair soon？
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
It's in on the list of things to look at ;)

As it is, I don't think it can be flashed in G8343 devices. if you can flash a G8341 fw without issues first, then you probably can. But I haven't checked fit any potential differences between the two fw's.

Which Google app is that exactly? I don't have those buds to reproduce, a log would help.

I've heard that before from one other user on XZ1C. But I cannot reproduce this even though I am using FF myself. Anything specific that triggers it? Lots of open tabs? A specific add-on? A logcat after this happens would be good.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] up2dateneurosis:
Happens with Facbook Lite too, so I guess tabs and addons do not matter in this case. But anyways it happens even with just one tab opened. I will do a log if I notice it again. But it already happened sometimes.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] yuezhengbaizhi:
NFC still not working for dsds poplar (G8342) , can't find NFC in settings
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] pattriccio:
Click the pencil edit.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] yuezhengbaizhi:
There is no NFC

Edit:

I am coming from the stock 10.80, did a clean flash on my g8342 when installing
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] pattriccio:
Use this link a few page back
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] yuezhengbaizhi:
Okay, just dirty flash it?

Edit: thanks, just flashed it, NFC now works fine
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] 7hr08ik:
Hey, any news on this? Finally got enough spare time this weekend to update.

Is it worth updating to RC3 now, or are you dropping the next one soon?

Also, im on RC1 ATM, so im gonna need a full re-install right? But dirty flash from RC2 onwards
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
Yes, thats correct. Ill upload an RC3.1 build based on .107 FW this weekend, probably Sunday.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] 7hr08ik:
Sweet,

My bank holiday is now planned ?

Backups all weekend
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
RC3.1 is uploaded. Enjoy.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] haiha2001:
Perfect
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Ice_Devil:
I just updated to RC3 yesterday and today...

Anyway I've noticed sometimes unresponsive screen when waking the phone (G8341). Put it back to sleep and back on does the job.

I think my NFC has an issue but as mentioned in previous comments, I probably did something wrong.

So, I am now downloading new firmware and hopefully will be ready in couple of hours. Or more... Dunno who is faster! A turtle, a sneil, my internet connection...

Well done for the great job!!!
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
Next time you get an unresponsive screen, please send some logs (pm if you want, preferably logcat and dmesg). like I said before, I cannot reproduce this issue. without logs I can't do anything about it.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Ice_Devil:
I will stick around with RC3 for a while then. If it is gonna be useful would be happy to help.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
feel free to upgrade. if the issue is gone, even better. but likely it will still happen in 3.1. at least we didn't fix anything specific for that. but if it does, please send some logs :) thnx
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hsheemi:
Thanks for all that hard work but why did u change the stock camera app in the last build?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
Not sure what you mean, I didn't change anything. As before, there are two camera apps: the Sony stock cam and the LOS camera (Snap).
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hsheemi:
Sorry i didn't know it was there thanks again but i need screen cast or mirroring to work can I try other apps in the store or similar they won't work?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
i will still look at screencast soon. iirc, there has been an ongoing issue in los where it wouldn't work for any device - unless I am remembering this wrong. but i also know that we are still missing some blobs (I looked into this before). will hopefully get it to work soon(tm).
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hsheemi:
Thanks again u r very helpful and fast in responding to us i hope one day we see our device get official builds on the lineage website
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hsheemi:
Can I flash other tweaks like lkt , nfs , zram or it's unsafe?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
Not sure what those tweaks do. I suppose nfs is a kernel module, it may or may not work. for zram, we enabled z3fold from stock. iirc, this is set in kernel command line. but again, you can try, but it would be good if you also know how to remove the tweaks again (manually if necessary) if any of them stop the ROM from booting.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] other90:
I have a dumb question, is it possible to flash this rom without flashing gapps, use it for some time and if that's not possible use android without gapps, flash gapps then without any problems?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] up2dateneurosis:
[MENTION=4063475]derf elot[/MENTION]

I have send you the requiered log files for fixing the problem with the freezed apps on wake up. Check your pm's.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] 7hr08ik:
Hey,

Finally updated to RC3.1

All backups restored. Apps seem to be running fine.

Even able to run FDE.AI through Magisk.....so far

No random reboots, all good
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
From what I know, gapps have to be flashed with the ROM (unless this has changed recently, but I don't know). if you ate running a ROM with gapps installed though, it should be fine to flash newer versions over it, if that's ever needed.

got them, thanks. I'll have a look. I am also preparing a fresh kernel merge again (this time split into little commits). once that is done I'll make a test build. if it's fine on my side, I would like to upload it for you to test. we have included a lot of things in the hunt for the random reboot bug which might in fact cause this issue.

great to hear, enjoy :)

on a more general note: for those of you using NFC, is it working fine? I can only test reading a few boring things (like my public transport ticket), but don't have an actual use case for it - including writing.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hsheemi:
I used FDE.AI for a while but i noticed battery drain ,do u have that or not? I prefer using lkt to choose between battery saver, balanced, performance, turbo
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] nev4eh8959:
Hi,

I'm using stock ROM, my device is G8342 and I'm using the twrp in this post. I wonder if it's possible to mount USB drives in twrp? I tried to mount but it doesn't work. Is it just me?

Thank you so much !!
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
mount as in otg? haven't tried, I can check.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] 7hr08ik:
FDE takes a day or 2 to figure stuff out. I found it a better option in the long run, better than LKT for me anyway.

FDE claims to alter its tweaks depending on your usage o the longer you use it the better.

Not used it on LineageOS before yesterday, as any kernel tweaks caused random reboots. But they seem fixed now. So trying FDE again
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hsheemi:
Does "vibrate on answer" in call settings work for anyone? it doesn't work for me
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
I sent you a PM with a link to a test build. I'd appreciate if you could check whether the issue is still present here as well.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] up2dateneurosis:
I will check it tomorrow and reply than. Testing should not take long. Is a dirty flash fine for this?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
yup, just treat it as if it was any other update. thanks
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] nev4eh8959:
Yes exactly, thank you !
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] up2dateneurosis:
The test build did not fixed the freezing of apps. But I had 3 random freezes of the whole device with restarts in the 4 hours of use so far. So the latest release worked till now better for me than the test build. Need logs?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] derf elot:
Yes, logs would be great.

now i am even more puzzled, because the commit that fixed the reboots is in this build. I also flashed it on my lilac and haven't had reboots yet (though I only used to get them every 3 days or so on average). Not really sure whats going on right now. thanks.