yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] awlddawg:
You can use Aurora or the Yalp Store to get apps from the Google Play Store. You don't necessarily need microG to run those apps but for apps that have hard dependency on Google Services (e.g. Youtube, most bank apps, etc.), you will need microG to trick those apps into thinking that your phone has Google Services. Without microG, they will either just crash, or you get a message that they need Google Services to run then they just stop, or a message saying that you won't be able to use all features. (Facebook, perhaps unsurprisingly, can run without Google Services or microG.)

Using Aurora or Yalp, you can log into the Play Store using your own Google account or one provided by the app. Accessing your Google account using apps like Aurora and Yalp is apparently a violation of the Google user agreement so be careful when doing that. The good thing with it though is that you can access your paid apps.

Google Services is very convenient but I'm learning to live without it. I use microG as I still have some apps that need Google Services but I'm slowly finding alternatives and getting rid of them.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] duckysmokton:
Hello, I've tried a fresh install of the RC2, so far everything seems to work OK, except the notification LED for SMS : it simply never light up. I've tried to install QKSMS, no success ever. I've installed Light Manager 2 to configure the LED, the test in this application is OK, but when a SMS arrives it just vibrate and never bring up the LED. I suspect that I may have missed a permission somewhere, but I can't find where. Any clues ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
This is an issue in los, which was recently fixed an will be in rc3 (it will be enabled automatically again).

To fix it manually for now, got to settings -> App & notifications -> All Apps --> Show system (top right menu). Then select the "Messaging" app, select "Notifications" and click on "Messages" (the name, not the check mark to the right). In there you can activate the LED blink. It's a bit convoluted and also took me a while to find at first - I didn't realize there was a whole new menu behind "Messages" :P (probably because the vertical bar between "Messages" and the checkbox is very hard to see in dark mode).

edit: This is the fix btw https://github.com/LineageOS/androi...mmit/1c27722cfa0e9d032187392f618afb847d064624
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] duckysmokton:
Thanks for the tip, alas it still doesn't work for me. Well, I'll wait for RC3...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] CherAlban:
It seems like the update somehow changed my APN settings. I set it back to the matching settings and now my battery life is much better again.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] systemdev:
It's tricky

Also getting started here, but with development experience. Living Google free is possible with LOS, but as said above, not without compromises.

I can confirm the instructions in post #334 work, (even excluding both opengapps AND microG). But the instructions contain a wipe of the data + system partitions, so all things Sony (from an application & API perspective) from the stock firmware will also be gone. Of course the XZ1C LineageOS build needs "low level & hardware interface" Sony bits because the LOS XZ1C build is a 'port' of LOS to the XZ1C (simplified discussion). But any Sony specific APIs for applications will be gone.

So even if you include a Google 'replacement', things like the very cool 3D Creator app (BTW: updated via the Google Play Store) will NOT be available. This is because the com.sony.device shared object (S0) is wiped, so the google play store will not even recognize the XZ1C as a device capable of supporting the 3D Creator app.

The XZ1C has neat / differential features that are Sony specific (e.g. 3D Creator). It would be great if those could be available on LOS. But the reality of their dependency on the Google Play store remains. So even if the Sony APIs can be somehow preserved through an LOS install, Sony app updates need the store. Unless there is a way to side load the Sony device specific SOs and Apps?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] _Fetus_:
Sorry again.

Sorry for potentially another stupid question, but has anyone had any problems with the ROM zip failing to flash? I'm using Modpunk's TWRP, it comes up with:

E:String resource 'zip_compatible_err' not found.

Using default value.

Zip Treble compatibility error!

Invalid zip file format!

Error installing zip file '/sdcard1/lineage-16.0-20190708-UNOFFICIAL-RC2-lilac.zip'

Have tried a few suggestions I've found online for similar sounding errors, but I haven't found anything exactly the same, or anything that works.

Cheers,

Fetus.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Killerkip:
that's always been the case with custom ROMs afaik, you always sacrifice some features.

However on LOS we do have access to the stock Sony camera so we're not missing any relevant features that I can think of at the moment imho. You could try sideloading the apps as some are available on APKMirror (https://www.apkmirror.com/apk/sony-mobile-communications/3d-creator/3d-creator-2-0-a-0-38-release/) and if that doesn't work I guess they could be modded by someone who has the skills because there are modded version of the Sony music app and keyboard that work on all devices but that's probably a lot of work and not worth the hassle in the long run.

Keep in mind that the instructions that I posted do NOT contain instructions about backing up the TA partition or unlocking the bootloader as that does not specifically have anything to do with LOS and there are threads with information regarding those.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
Does this ROM support a physical TV out (external display) functionality?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Killerkip:
My phone stopped responding and rebooted as well a few mins ago, I hope the logs you posted have the answer.

EDIT: I was connecting a bluetooth headset at the time when it happened so maybe that's a factor as well? I did use the headset without issues before though.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
This should be fixed in rc3. haven't had a reboot in over a week (usually I would get them every 3-5 days).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Killerkip:
I'm guessing this in the changelog to RC3 is (part of) the fix: Fixed perf service and power HAL?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
No, the post is not updated yet. It was a separate issue in the kernel (an upstream CAF commit for the graphics support layer caused issues with our Adreno blobs, randomly causing timeouts at wakeup leading to kernel panics).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] beggar23:
There is hope![emoji3]
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] oppenbot:
Is there any way to mount Windows network shares (CIFS/samba) transparently such that any app (file browsers, music players and so on) may access it? I know there are apps like ES File Explorer and Solid Explorer but they don't provide system-wide access.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
I'm a little confused about the DRM backup part. I read on a guide (https://www.**********.com/backup-ta-partition-xperia-devices/) that all you need is TA Backup tool which automatically backs it up with a script, but the link given by the other poster (https://xdaforums.com/xperia-xz1-compact/development/devonly-exploits-temp-root-to-backup-t3795510) on XDA shows a very big/long post with many additional steps. Which one do I need for DRM backup? Note that I am a newbie and my XZ1c is completely original still (no root, bootloader locked etc).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] systemdev:
FWIW I've used the .zip (exploit files and instructions) in this post successfully:

https://xdaforums.com/showpost.php?p=78255334&postcount=382

My XZ1C was "out of the box" stock so I didn't need to downgrade firmware :) , and I also had drivers directly from Sony and elsewhere (which seem to be the same as the .zipped instructions).

Good Luck!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] auz_mo:
The gps problems continue...

[MENTION=4297219]modpunk[/MENTION]

I'm curious if you ever had any luck figuring out what might be the issue with my location services?

Am I the only one that is experiencing this?

Is it possibly because i don't have any of the google apps, or even microG on my phone?

As always, thanks for all your hard work.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] nussbaum:
I almost always get a gps fix in a few seconds. XZ1c, latest firmware, LOS 16RC2, No Gapps, Gps-only/High Precision location mode, SatStat, OsmAnd.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] modpunk:
No, idea yet ...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
Can someone check if this rom has Ambient (always on) Display? Also, does it support TV out from the USB C port?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
Thanks for that. Seems that whole guide not only does DRM backup but also flashes the necessary firmware, unlocks bootloader, and roots it. After doing that, I can proceed and backup Nandroid then install LOS using TWRP, right? Or is there anything else that has to be done after that guide before installing LOS?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] T_Tank:
Here is a logcat when I was trying to connect to a Microsoft wireless display adapter

It try to connect then the phone would soft reboot.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] systemdev:
Guides

The guide also includes the DRM RESTORE, which can be accomplished with the same firmware by re-establishing "temp root" (a more accurate description than 'root'). I suggest restoring the DRM at that point so it will just be there in the future. Just don't ever flash a persist*.sin (AFAIK). You can verify the DRM was successfully restored using tests from the guide document.

BTW: I don't know of a way to check the DRM key viability after LOS is installed... Anyone know of a way to test that???

After that you can proceed with the instructions in post #334:

https://xdaforums.com/showpost.php?p=80000613&postcount=334

to successfully get LOS up and running. Again, installing a GApps replacement is optional :)

I've been working with "out of the box" hardware so backup of apps/data hasn't been a concern, so I'm not the best person to answer that question.

After much experimentation I decided to exclude a GApps replacement altogether. Although I'm still "experimenting" with ways to get that super cool 3D Creator app back on the phone, but for now I have other higher priorities to accomplish first. I have enough of what I need (from F-Droid, and bits included with the LOS install) to get started . I'm finding F-Droid to be very reasonable BTW - mainly because I NEVER really wanted to use the Google Play Store (I'd rather just write what I need than go down that dark alley:)

FWIW, the DuckDuckGo Privacy browser is published on F-Droid. That's a BIG endorsement IMHO.

Let me know how things go.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
back in 15.1 I was looking into including that 3d creator app. in the end I didn't try any further as it would make the ROM grow by another 100mb or so (iirc). so not sure it's worth it. maybe it could be handled via an add-on.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
I got same error, solution was to delete compatibility.zip within the rom zip file.

---------- Post added at 04:27 PM ---------- Previous post was at 04:23 PM ----------

Thank you for the help. I just followed those instructions and flashed them (LOS+Nandoroid patcher+microG), but now when rebooting it goes past SONY logo and back to TWRP everytime instead of LOS. Doesn't matter whether it's to System or Recovery or Bootloader, it just goes to TWRP. What to do now?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] nussbaum:
"Format /data" in TWRP Wipe.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
Thank you so so much!

EDIT: Alright I've been using the rom for a few hours and am really liking it! However, one feature I really want seems to be disabled for some reason: Ambient Display. Can the dev enable this feature in the next RC3 update?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] doeternietoe:
First of all, thanks for the massive effort updating and maintaining this ROM must be.

I come from LineageOS 15.1 and I've been trying to get the Seafile app working in RC3 of LineageOS 16. It won't let me choose internal storage to as a location for cache and even with SD-card as location for cache it complains about lack of storage. There is plenty of storage and Seafile has the correct permissions. I run the ExSDCard Access Enabler module in Magisk (to be able to store maps offline) and disabling or enabling this module doesn't help. Anybody have any idea?

Edit: gracious me, I've found it! Had a good look at my backups from the old ROM and noticed that data from Seafile was stored in a folder directly located in the root of the internal storage. I reinstalled Seafile, copied the folder structure by hand and now it works like a charm... Still no idea why Seafile could not create the necessaries by itself, but it seems to be a fix anyways.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] nussbaum:
Just made a test account on seafile to check (https://de.seafile.com/trial) and used the seafile app from fdroid store, getting the same results.

This a logcat of the error:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] nussbaum:
Next try
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] nussbaum:
As a possible workaround you could try to reinstall the seafile app without your sd card, perhaps it just uses the largest free storage it finds then.

/edit

Checked the source, it does indeed.

https://github.com/haiwen/seadroid/...om/seafile/seadroid2/data/StorageManager.java
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] DerSteppo:
Regarding Ambient Display (or maybe?) : my phone occasionally wakes the screen for no obvious reason. Sometimes, there is a message that I did not ready yet, although the display did not wake at the time the message arrived (tone and LED work fine). And then it just wakes for no reason, no message, no reminder, just showing me the lock screen. What does my phone want to tell me? :confused:

Another bug that I have is, that reminders do not seem to work correctly. I have an app that, as sad as it sounds, occasionally should remind me to drink water :D Sometimes it works, but today for example it did not. I opened the app just now and closed it immediately, after one minute the reminder popped up.

I use a few of the Runtastic apps, like push-up, run, sit-up. Reminders never worked, if i remember correctly. So yeah, I am a thirsty fatty now, thanks! :laugh:

Anyone with similar experiences?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
I played with a Nokia (also on Pie) and changed it so that Ambient Display is always on, and it certainly behaved weird like you say, occasionally waking up for no reason. But I also have another phone on Pie where it works perfectly (you just wave the sensor (selfie cam I think?)) and it wakes up, and automatically goes away after a set period of time.

But wait, how were you able to have Ambient Display? I installed this rom on my XZ1c today and that feature seems to be completely missing on mine.

On a side note, I downloaded HERE WeGo (maps) but it doesn't work, saying that no SD card is inserted. Seems this issue was mentioend in this thread back in May. Is there no solution?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] systemdev:
3D Creator add-on effort

Can you outline the process to create a proper add-on (package?) for 3D Creator? I'd like to accomplish that in a way that can be shared here. I'm an experienced developer with "low level" native code (C/C++, asm, driver, iOS, macOS, UNIX) but I'm just getting started on Android/Linux. Although I completed a hUGE NDK C/C++ project ten years ago. I was the "C/C++ resource" for an iOS / Android cross-platform app project, but I wasn't responsible for the Android app.

LineageOS is THE reason I'm here. Please point me to any good prerequisite reference material you can recommend. I really hope I can make a contribution here, so thanks in advance for any help you can offer.

Regards!

---------- Post added at 03:33 AM ---------- Previous post was at 03:14 AM ----------

Check out post #334:

https://xdaforums.com/showpost.php?p=80000613&postcount=334

It contains specific instructions for wipe/format of the proper partitions, which some (including me :o) may have missed. I also excluded both openGapps and microG with success.

Also, I set BOTH Location->Battery SavingMode, and Location->Scanning to OFF. This forces location to be obtained via GPS only. Doing this eliminates any Wi-Fi or cellular irregularity.

BTW, I also used US_Customized ..A.10.80 stock to start.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
i haven't done this in years, but you should be able to get inspiration from the lineage official flashable addons, like su or weather provider (https://download.lineageos.org/extras).

I can check out which files are needed to get the app working this weekend. then you can try to make an add-on with them. I am just unsure as to whether the app would have to be signed using the dev keys of the rom. ( [MENTION=4297219]modpunk[/MENTION] do you know?)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] DerSteppo:
This, I don't know to be honest. :confused: It thought I saw a setting once... can't find it now. I guess a clean install sooner or later will fix this the old fashion way.

Looking forward to RC3! :good:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] doeternietoe:
Looking at the code I think your suggestion is certainly worth trying.

Found another workaround myself. If you just create the folder structure itself on the right storage location before installing Seafile, it will pick that up.

In my case I created this structure:

Internal storage

-- Seafile

---- cache

---- temp

---- emailusedforseafileaccount@provider.tld (seafiledomain.tld)

(well actually I copied the folder from my previous install, but I don't think that's absolutely necessary)

It actually uses a bit of code meant for backwards compatibility, just above the bit of code that chooses the largest storage location as a default.

Btw:

My problem is solved, but that doesn't change the fact that this still is a bug. Seafile is still not able to write to the SD-card (which I don't want it to, but that may not be true for everybody).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] nussbaum:
As i couldn't find such problems mentioned in the issue tracker of Seafiles' app, it may truely be a fault of LOS16, perhaps someone with more insight (than me) could check the mentioned code...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
Curious... Yeah let's hope RC3 has those fixes! I'm gonna mention the dev so he's aware of the ambient display issue. [MENTION=4297219]modpunk[/MENTION]

Also I have noticed, the speakers are very quiet? Even on full volume it's low... Is this related to LOS somehow? I only just bought this phone for LOS so have no idea of it's normally this low. I went to AudioFX and created a custom set with all bars increased to max, but when I play media the volume is loud for a split second and immediately drops to low volume. It's as if the system is limiting the volume output. In fact in this custom equalizer set, the volume of about 50% and 100% is exactly the same, it doesn't increase above 50.

EDIT: another thing I noticed, the Night Light feature, the intensity is really low. Even at max, the screen still looks more blue than it does red.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] modpunk:
They need to use the Storage Access Framework, see https://developer.android.com/guide/topics/providers/document-provider.html
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
How does one get Snapchat to work (log in properly)? I understand the app does a SafetyNet test which obviously fails with this custom rom, so what step should be taken to bypass or make it pass the test? FYI I have microG installed but not GApps.

Also I want to root mine now and downloaded addonsu zip but now the device is encrypted and so can't flash it on TWRP. How can I decrypt it back?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] doeternietoe:
Yes, and I hope they do in future. Still, it is a fact that their app worked without a hitch on both stock and LineageOS 15.1. Besides, OsmAnd also refuses to use the external SD-card.

Anyways, on the whole I'm _very_ pleased with this ROM. The vast majority of things work beautifully. Wouldn't want to go back to a Sony ROM if you paid me to.

If anybody, like me, wants to go Google-less with this ROM, this is my setup for that:

- Flashed Magisk in TWRP for root and the ability to use modules

- Flashed microG in TWRP (Is used the zip-file found in this thread)

- This also adds a modded version of the Google Play Store, which I immediately removed (use any of the methods to remove system apps with root)

- Use Magisk to install the unofficial Xposed for Android Pie (use modules Riru - Core, Riru - EdXposed and install the apk for EdXposed installer / manager) -- see here

- Install FageGapps in Xposed

- Install one or more UnifiedNLP location backends from F-droid. I use a combination of Déjà Vu, Mozilla Location Service and Radiocells.

- Configure location backend(s) and address lookup backend(s) in microG Settings

- Voila, Android without Google! All my apps behave as they would if I had Google Play Services. No irritating messages or anything.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] immelman3:
I dont want to go too much OT but Xposed it's not the best choice securitywise, so if you want to just go NOGAPPS on this rom (without root and without magisk modules) you may wanna consider to use nanodroid patcher to patch system and then just install microg installer, either ale5000's one or directly the nanodroid one.

PM me if I wasn't clear enough.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Mara-X:
Here's what I did: Clean flashed .45 with newflasher, flashed newest TWRP, Wiped Dalvik/ART, system, cache and data. (Didn't format data) Flashed Lineage, gapps and magisk and rebooted. Works flawlessly for me.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
LOS 16.0 with microG

I just updated from LOS 15.1 to this rom. I flashed the mentioned firmware and twrp for pie. After that I booted to twrp and noticed that my files on internal storage weren't readable anymore (only files with strange characters). Since I decided to do a clean flash it wasn't a big problem for me (although I would like to know what has causing this).

When I flashed following files:

1) LOS 16

2) magisk 19 (reboot)

3) nanodroid patcher (reboot)

4) nanodroid microG package (reboot)

This way I could install microG successfully. Reboots were needed, otherwise I got a bootloop. I'm using microG to get GCM/FCM notifications and it's working flawlessly.

Since microG development seems to be active again when looking at their github repo I hope that there's a chance for microG builds/support in future.

I already encountered something strange: The display has a bluish cast, especially visible on white/grey backgrounds. Did something maybe changed with pie or must my eyes be the problem?

I'll now start testing the rom and will report back if I'll encounter any bugs besides the mentioned ones.

Thanks for your great work [MENTION=4297219]modpunk[/MENTION] and [MENTION=4063475]derf elot[/MENTION]!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] stebler:
It happened to me too, I fixed it by setting "Display mode" in "LiveDisplay" to "Day" and back again to "Automatic".