yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] MSe1969:
Hello @115ek, correct, this would only make sense for the microG builds.

@android666 Thanks for the interesting contribution, I will definitely have a look and do some testing.

In fact, as this is a Stub, which requires to download the official AA app, which will then "update" the stub, it could be an interesting feature.

Will get back on that, but no promises
[Xperia Z1 Compact Android Development] multiwirth:
It seems like latest 17.1 build breaks magisk just like 18.1 😅
[Xperia Z1 Compact Android Development] MSe1969:
Interim status:

I have tested it on my primary device (One plus 7T Pro): Updating the stub with AA from Aurora works, AA is visible in the respective config screens, but it won't connect with the car!

Reading through the linked issue reveals, that the work was done for an Android 11 AOSP based system (Graphene OS), so might be some adaptations necessary, either because of Android 10, because of LineageOS or because of some of my hardening measures. When I find more time and the right mood, I'll have a closer look.

In general however, I am wondering, whether this all really leads into the right direction. I admit, that I did not so far really look, what exactly AA is. I e.g. have wrongly assumed, that you could stream any app to the car display.

However, it seems that an app needs to be explicitly developed/foreseen for AA and also somehow "certified" by G*. Hence AA primarily focuses on all the proprietary Google bloat (Maps, YT-app, ... - at least the "Hey Google" spyware is spoofed, so you don't have to deal with that cr*) and the known extra-nosy (but popular) apps (Spotify, WA, ...). It does not really seem to support all the good FOSS alternatives (OSM, NewPipe, ...), which I e.g. would like to see on my car display.

So at least for me, AA does not provide a true added value compared to the default options of the car's entertainment system (that point of view varies individually, of course)...
[Xperia Z1 Compact Android Development] android666:
yes, G certified apps can use AA (like Sygic navigation), but there are several tools helping adjust environment:

GitHub - shmykelsa/AA-Tweaker: Tool to apply patches to Google Play Services that will enable some extra functionality on Android Auto

Tool to apply patches to Google Play Services that will enable some extra functionality on Android Auto - shmykelsa/AA-Tweaker

github.com

GitHub - agentdr8/saax: Sensible Android Auto:Xposed

Sensible Android Auto:Xposed. Contribute to agentdr8/saax development by creating an account on GitHub.

github.com

https://xdaforums.com/t/app-root-android-auto-3rd-party-app-enabler.3853009/

here I found some hint for 17.1 (18.1): link (they are using some stub, even if gapps)
[Xperia Z1 Compact Android Development] MSe1969:
New builds with June 2021 ASB patches available

Hi all,

new builds are available and soon offered as OTA updates via the updater app.

A. Standard LineageOS 17.1 build

https://sourceforge.net/projects/lin17/files/amami/LineageOS_17_signed/lineage-17.1-20210614-UNOFFICIAL-signed-amami.zip/download

Security String 2021-06-05

A few kernel patches

B. Pre-installed microG build variant with additional security patches

https://sourceforge.net/projects/lin17/files/amami/LineageOS_17_signed/lineage-17.1-20210612-UNOFFICIAL-microG-signed-amami.zip/download

Security String 2021-06-05

Bromite System Webview and Browser updated to 91.0.4472.102

Upstreamed microG (0.2.19211515-9)

A few kernel patches

@115ek - please update OP/Changelog

Regards, M.
[Xperia Z1 Compact Android Development] lm089:
apparently the clean install back in May (post #424) has helped: this was the first update in months that ran without any hassles. Many thanks once again to everyone involved!
[Xperia Z1 Compact Android Development] MSe1969:
New builds with July 2021 ASB patches available

Hi all,

new builds are available and already offered as OTA updates via the updater app.

A. Standard LineageOS 17.1 build

https://sourceforge.net/projects/lin17/files/amami/LineageOS_17_signed/lineage-17.1-20210710-UNOFFICIAL-signed-amami.zip/download

Security String 2021-07-05

System Webview updated to 91.0.4472.101

Kernel: Many sec. patches applied (taken from Divest-OS, thanks to @SkewedZeppelin)

B. Pre-installed microG build variant with additional security patches

https://sourceforge.net/projects/lin17/files/amami/LineageOS_17_signed/lineage-17.1-20210710-UNOFFICIAL-microG-signed-amami.zip/download

Security String 2021-07-05

Bromite System Webview and Browser updated to 91.0.4472.146

Kernel: Many sec. patches applied (taken from Divest-OS, thanks to @SkewedZeppelin)

microG 0.2.21.212158-2

AuroraStore 4.0.7

@115ek - please update OP/Changelog

Regards, M.
[Xperia Z1 Compact Android Development] SkewedZeppelin:
Awesome to see my CVE patcher used more!

You might want to give it another run, I did a huge addition for 3.4 recently from @haggertk's 3.4 backports.

You might also put the patches on an another branch, as patch output can change/improve overtime and it'll be easier to maintain that way.
[Xperia Z1 Compact Android Development] MSe1969:
I did already apply before Kevin's 3.4 backports from his LineageOS Samsung msm8974 branch and for the recent patching action with this ROM's Sony msm8974 kernel, I used the patches listed in here as this is also a msm8974 kernel in your 17.1 directory.

Do you recommend to me to look further?

And by the way, whilst I have the opportunity to communicate with you:

As I prefer to truly apply the commits to my/our kernel forks, I have noticed, that few of your patches do not contain commit messages. For some of them, I found them and applied accordingly, but at least for that one I did not manage to find it.

Do you have the commit message(s) handy?

And if not - would you like me to make a pull request for those patches, where I was able to identify the originating upstream commit?
[Xperia Z1 Compact Android Development] SkewedZeppelin:
> I used the patches listed in here

The program is intended to be used to check which patches apply.

> I have noticed, that few of your patches do not contain commit messages.

Many of them are plain diffs due to various reasons, eg. Gerrit only gives base64'ed plain diff

I'm happy to accept patches that replace diffs with matching patches.

> but at least for that one

That is https://lkml.org/lkml/2017/10/2/352

--

In case it isn't clear, patches are added to this file first https://raw.githubusercontent.com/Divested-Mobile/Kernel_Patches/master/Kernel_CVE_Patch_List.txt

then downloaded with the program https://github.com/Divested-Mobile/CVE_Checker

and also checked using the program

you can use https://github.com/Divested-Mobile/CVE_Checker/blob/master/mk_dir_from_list.sh to convert the program output to a directory of the patches

you can download prebuilts of the program here https://gitlab.com/divested-mobile/cve_checker/-/jobs/artifacts/master/browse?job=build

furthermore a large amount of the patches in the list are extracted using this tool https://gitlab.com/cip-project/cip-kernel/cip-kernel-sec, you can add any kernel you want to the script config and extract matching patches from any given repository, and propagate that back into the final patch list

edit: here is example output https://github.com/SkewedZeppelin/android_kernel_sony_msm8974/commits/fixup it contains an additional ~60 patches
[Xperia Z1 Compact Android Development] tanel545:
Just installed it yesterday, everything is great. This ROM has LDAC support if anyone's wondering. Even Stock doesn't support LDAC. Thanks again.
[Xperia Z1 Compact Android Development] MSe1969:
LineageOS 18.1 "microG Variant" Testbuild

Hi all,

for the 2nd build variant ("microG build"), a test build on LineageOS 18.1 is available here:

https://sourceforge.net/projects/lin18/files/amami/LineageOS_18_signed/lineage-18.1-20210801-UNOFFICIAL-microG-signed-amami.zip/download

It has the same features, as described in the OP for this 17.1 build variant, with the following additions:

- AuroraDroid app replaces F-Droid app to access F-Droid repositories

- Option to only use fingerprint unlock for apps and not for the device

- Optional timeout for Bluetooth and WLAN connections

- Some more hardening features ported from GrapheneOS

@115ek and I plan to switch completely to LineageOS 18.1 for both build variants (variant A is already available for LineageOS 18.1, as you for sure know). Right now, this is still a test build, this means we truly appreciate any feedback (especially, if things don't work as expected). And there definitely will be an update with ASB patches for August for both 17.1 build variants.

Installation instructions:

Make a backup in TWRP

If your device is

not

encrypted

, it is up to you whether you want to do a clean or dirty flash

Do or don't do a factory reset and flash the test build

If your device is

encrypted

, encryption is not compatible!

It will be necessary to format the /data partition.

If you need to format the /data partition, make sure to before:

- Backup the 'Internal memory' of your device

- Watch out for your TWRP backup files and copy them, if needed, to your local PC

Format /data, reboot into TWRP and flash the above test build build and boot into an empty system (don't restore anything,yet)

Encrypt the device now - it'll take not very long until the device reboots - wait for the reboot to finish

Restore now the Internal Memory and reboot to TWRP

if you want to "dirty-flash", restore the nandroid backup now and afterwards, still in TWRP,

Flash the above test build again

Feedback appreciated - Thanks & regards, M.
[Xperia Z1 Compact Android Development] MSe1969:
New builds with August 2021 ASB patches available

Hi all,

new builds are available and will soon be offered as OTA updates via the updater app.

A. Standard LineageOS 17.1 build

https://sourceforge.net/projects/lin17/files/amami/LineageOS_17_signed/lineage-17.1-20210807-UNOFFICIAL-signed-amami.zip/download

Security String 2021-08-05

System Webview updated to 91.0.4472.164

B. Pre-installed microG build variant with additional security patches

https://sourceforge.net/projects/lin17/files/amami/LineageOS_17_signed/lineage-17.1-20210807-UNOFFICIAL-microG-signed-amami.zip/download

Security String 2021-08-05

Bromite System Webview and Browser updated to 92.0.4515.134

F-Droid updated to 1.13

Fix in WiFi randomization

@115ek - please update OP/Changelog

Regards, M.
[Xperia Z1 Compact Android Development] 7alvoo:
I read that there have been several improvements to the kernel this year, which is very important, but after the update, my experience was that the system became slower. I put the january kernel back and the agility came back.

So if someone else is experiencing this, it has slowed down and can't take advantage of the improvements made in the sound, then all you have to do is put back the previous kernel and have a fresh system that is faster.

Thanks!
[Xperia Z1 Compact Android Development] android666:
"So if someone else is experiencing this,.."

i'm not sure if my issue is related: if battery performance set to middle gps sync takes (seldom neverending, not even show at least one detected satelit) long time, when set to max performance it's faar quicker (very good).

...but i'm happy for existence of 17.1
[Xperia Z1 Compact Android Development] Badran12:
Will I still be able to connect a ps3 controller with this rom?
[Xperia Z1 Compact Android Development] android666:
I guess, you are the only one who use ps3. you may backup recent, test new one and let us know. if it does not work, you may still return to archived backup
[Xperia Z1 Compact Android Development] MSe1969:
As the Z1c isn't my "daily driver", I usually do not put big load on it, so my own observations aren't probably the best judgement, however - I personally do not have that impression.

In fact, the kernel is being updated with patches in (almost) every monthly release. I have only mentioned it explicitly for the July release, as there have been many patches. Can you somehow point to a specific release, where in your opinion/experience this has started? Is January the result of your analysis (i.e. you went back to July, June, ... until January and only then it was better? - or why January?)
[Xperia Z1 Compact Android Development] MSe1969:
New builds with September 2021 ASB patches available

Hi all,

new builds are available and are already offered as OTA updates via the updater app.

A. Standard LineageOS 17.1 build

https://sourceforge.net/projects/lin17/files/amami/LineageOS_17_signed/lineage-17.1-20210912-UNOFFICIAL-signed-amami.zip/download

Security String 2021-09-05

Kernel: Further sec. patches applied (Divest-OS)

B. Pre-installed microG build variant with additional security patches

https://sourceforge.net/projects/lin17/files/amami/LineageOS_17_signed/lineage-17.1-20210912-UNOFFICIAL-microG-signed-amami.zip/download

Security String 2021-09-05

Kernel: Further sec. patches applied (Divest-OS)

microG 0.2.22.212658-2

@115ek - please update OP/Changelog

Regards, M.
[Xperia Z1 Compact Android Development] MSe1969:
LineageOS 18.1 test build for 2nd build variant

Hi all, I haven't received any feedback so far to the 18.1 test build for the "microG" variant.

Sourceforge indicates 90 downloads, this means, there definitely seems to be interest for it.

Does "no feedback" mean it is ready to use ?
[Xperia Z1 Compact Android Development] 7alvoo:
Yes analysis result, I restored (only kernel) versions 21.06, 21.05, 21.01 and 21.01 gives the smoothest performance.
[Xperia Z1 Compact Android Development] MSe1969:
Thanks for your feedback. I would like to get deeper on this, so I need your support here:

Kernel updates have been provided in 2021 in the builds for: January, February, June, July and September.

I assume you have looked into the commit history of this ROM's kernel and saw, that the kernel of the May build corresponds in fact to the February kernel, that is why you have tried the January kernel after the May kernel;

is that correct?

In other words, the performance decrease you indicate seems to be caused by the series of commits applied an February 6th.

Can you confirm this conclusion?

Assuming #1 is correct - these are all network fixes - nothing with sound. But you also mentioned "can't take advantage of the improvements made in the sound", so I am struggling right now to 'map' this to the February 6th commits...

Is there a specific way to

easily

reproduce this (e.g. using a specific app or by other means)?
[Xperia Z1 Compact Android Development] 7alvoo:
The really significant performance drop from 21.07 everything before is significantly faster.

I also tested 2020 kernels and 21.01 brought a significant performance improvement.

Performance drop is detected when there is a significant delay in menu browsing with 'Power save mode' or 'Efficiency' mode (Performance profile)

I just upgraded to 21.09 and its performance is very good, the system has a small beauty flaw rootbeer - dangerous props red indication.

Very kind, I ask you not to consume too much power after all the kernel is interchangeable so after all it is possible to decide between better performance or more features. Even this condition is amazing, much better than the factory system ever which I thank you for.
[Xperia Z1 Compact Android Development] MSe1969:
Thanks for your feedback, glad that the latest kernel update has improved the situation.

In regards to the "rootbeer" link, there are two feedbacks to be given:

The ro.debuggable and ro.secure properties behave as follows, I have pasted the source code inline comments from the place, wAhere this has the real effect (repository system/core, program adb/daemon/main.cpp):

static bool should_drop_privileges() {
// The properties that affect `adb root` and `adb unroot` are ro.secure and
// ro.debuggable. In this context the names don't make the expected behavior
// particularly obvious.
//
// ro.debuggable:
// Allowed to become root, but not necessarily the default. Set to 1 on
// eng and userdebug builds.
//
// ro.secure:
// Drop privileges by default. Set to 1 on userdebug and user builds.

In LineageOS, ro.debuggable and ro.secure are by default set to 1. This principally allows adb root, but by default, usb debugging and especially root debugging are switched off.

I consider this necessary.

The "Banking app" topic is a philosophical discussion and will never lead to any real overall satisfactory solution:

On the one-hand side, there seem to be some regulatory circumstances forcing the app manufacturers to check for root. On the other hand, the way, how banking apps deal with the root detection vary significantly. This concerns the

root detection methods

from very simple ("OK, we have included the minimum requirements, now leave us alone with that ****") until the maximum possible ("If there is a Custom ROM present, the device must have been modified. We don't care any further and stop here"). Further, this concerns the

reaction on root detection

. I have observed roughly three patterns:

a. The app refuses to launch at all

b. The app allows to be used in a read-only mode and simply refuses to issue payments

c. The app simply issues a warning to be confirmed and continues to work normally

This also depends on the 2FA mechanism used. Apps relying on an external 2FA (SMS, Chip TAN reader, ...) seem to be more tolerant, whilst apps dealing with the 2FA themselves (like some extra authenticator apps or "all-in-one" solutions, which is in my opinion insecure by design, but that's another topic) seem to be more rigid.

You can't hide the fact of being a Custom ROM and I would never use a banking app actively for payments on a mobile device (My bank's app behaves like "b." above, which is fine for me, I would never use a banking app on my mobile to actively issue a money transfer!)
[Xperia Z1 Compact Android Development] MSe1969:
New 18.1 build for microG variant

Info: A new test build, which in fact is considered "ready to go" for 18.1 (microG variant) has been created:

https://sourceforge.net/projects/lin18/files/amami/LineageOS_18_signed/lineage-18.1-20210922-UNOFFICIAL-microG-signed-amami.zip/download

We plan to provide the last 17.1 builds in October and then switch to 18.1
[Xperia Z1 Compact Android Development] 2faraway2:
@MSe1969: Thanks for still providing the microG builds :-)

Unfortunately I don't have enough spare time to test it in the next 3 weeks, since I'm totally happy with the 17.1 microG build ;-)

But I'd bet that the z1c community is big enough to give you lots of qualified feedbacks ...
[Xperia Z1 Compact Android Development] MSe1969:
New builds available with October '21 ASB patches - FINAL

Hi all,

new builds with the Octrober '21 ASB patches are available and also offered already via the Updater app:

A. Standard LineageOS 17.1 build

https://sourceforge.net/projects/lin17/files/amami/LineageOS_17_signed/lineage-17.1-20211012-UNOFFICIAL-signed-amami.zip/download

Security String 2021-10-05

System Webview on 94.0.4606.71

B. Pre-installed microG build variant with additional security patches

https://sourceforge.net/projects/lin17/files/amami/LineageOS_17_signed/lineage-17.1-20211011-UNOFFICIAL-microG-signed-amami.zip/download

Security String 2021-10-05

Bromite System Webview and Browser updated to 93.0.4577.83

@115ek - please update OP/Changelog

Please note:

Looks like these will be the

final 17.1 builds in this thread

.

Therefore, please update to 18.1 at your own convenience - instructions have been posted here

The variant A is already since long offered in the LineageOS 18.1 amami thread and we will now also regularly offer the variant B there (some test builds have already been published). Latest tomorrow, new builds with the October 2021 ASB patches will be published there.

Regards, M.
[Xperia Z1 Compact Android Development] MSe1969:
EOL

Hi all, as no comment / reaction to the final builds has been posted, I assume that all is fine with those builds.

Instructions and recommendations to upgrade have been provided. So time to declare officially the EOL of this thread. Thanks for your interest and see you in our 18.1 successor thread.
[Xperia Z1 Compact Android Development] 115ek:
I won't support anything like magisk/exposed, etc...

This is a gapps related problem. A "clean" lineage doesn't show this dialogues. Maybe check if other persons have problems with gapps , too (device independent). Or try an older version of gapps.

Which gapps you're using? Can you please do a clean flash with gapps and provide some logs afterwards?
[Xperia Z1 Compact Android Development] ashtar_sheran:
Hi, nice to see the Z1 compact rocking with new Android versions, great job! I have a question regarding the battery life - is it noticeably better or worse compared to stock Sony roms?
[Xperia Z1 Compact Android Development] Kikuha:
The microphone cannot be used, the live display does not work. I could not install the viper4android, Dolby atmos, edxposed module because when I installed it, it did not restart to the main screen. I am not good at English, sorry but it hangs in flash boot mode, it must be because after installing and restarting the computer, the indicator light flashes normally but then turns dark blue and hang always there. The system default music application that system fails, I click find the song title, it restarts the application, could not find. there's more ! Animation when opening the lock screen, when I open up, the background shrinks from the screen and returns to normal. hope you fix the error in an upcoming update. thanks !
[Xperia Z1 Compact Android Development] lm089:
Can't seriously compare to the last Sony stock, too long ago that I abandoned those. I only can compare to the latest versions of 115ek's LOS16 ROMs: those were much better in regards to battery life as this one here. I left the phone lying on my desk just switched on but never woken up by me for 18 hours, it shows 99% of deep sleep now, and in that time battery went down by 26%. I hardly have any apps installed, not even set up email or any messenger that would try to pull data in the background, but I didn't do any power tuning either.

With LOS 16 I never had that; there hourly battery consumption was constantly way below 1%.

And: my battery is now more than 5 years old, not showing signs of giving up soon, but it's of course not as it was back in 2015

But as always when it comes to battery comparisons: ymmv.
[Xperia Z1 Compact Android Development] 115ek:
new build

15.03.2020

fixed livedisplay

fixed OTA update URL

Please note that unfortunately the new build won't arrive on your devices automatically. (I made a stupid mistake with the updater URL)

To get the new version there are 2 ways now:

Download and install manually

change /system/build.prop and use the OTA updater- the following steps are needed:

enable android debugging and rooted debugging

adb root

adb shell

mount -o rw,remount /

modify /system/build.prop and change

https://raw.githubusercontent.com/115ek/OTA/lineage-17.1/amami.json

to

lineage.updater.uri=https://raw.githubusercontent.com/115ek/OTA/lineage-17.1/amami.json

reboot

search for new update

done :)
[Xperia Z1 Compact Android Development] 115ek:
If you had read the OP you'd know that I don't support anything related to magisk/exposed.

Apart from that, just for clarification: I'm doing this in my free time as a hobby. I thought sharing sharing my builds with the world is a good idea. But what annoys me are people who only complain without any useful information.

If the build is too buggy for you -> don't use it and stay with stock rom.

So please either share your problems WITH logs provided or leave it. Thanks :)

In my experience the 17.1 builds have got better battery life than the 16.0 ones. But I don't use gapps. And it's my build, so I'm not the right person for objective statements :laugh: