[Xperia Z1 Compact General] derf elot:
Hello,

sorry for the lack of recent builds, but life, family and work have gotten between me and spending more serious time on this.

I have uploaded the latest build I could find on my machine. You can download it here: https://www.androidfilehost.com/?fid=817550096634743122

I should have had a later one, but that must have gotten lost in my rage :) I got too annoyed about the battery life and some other things right now though. Charging the phone every other day or so even though wifi is off and phone is on airplane mode is too much :)

The little time I have had, I spent on making a new CM12.1 build containing the latest security fixes. That's quite a hassle as well, since neither Google nor LOS seem to be updating their LP sources anymore. But now I have 10+ days without charging again (wifi off & airplane mode).

I might try another 14.1 build again when the new blobs have settled in for a bit.

Hi,

no, I am not working on official LOS support. From my understanding, a few others might be though.

Yes, unfortunately the manifest on SonyLOS has changed quite a few times, without keeping the history. Here's the manifest which I used to successfully build it last time (see build above). Keep in mind that I just changed my amami repo name to "device_sony_amami_los14.1" since I am currently making updates for cm12.1. :

<?xml version="1.0" encoding="UTF-8"?>
<!--Please do not manually edit this file-->
<manifest>
<!-- This xml is project for make sony targets work with AOSP hardware -->

<!-- Remove some CM stuff -->
<remove-project name="LineageOS/android_hardware_qcom_audio" />
<remove-project name="LineageOS/android_hardware_qcom_display" />
<remove-project name="LineageOS/android_hardware_qcom_fm" />
<remove-project name="LineageOS/android_hardware_qcom_media" />
<remove-project name="LineageOS/android_packages_apps_FMRadio" />

<project name="sonyxperiadev/packages-apps-FMRadio" path="packages/apps/FMRadio" remote="github" revision="master" />

<!-- common -->
<project name="SonyLOS/android_device_sony_common-aosp" path="device/sony/common-aosp" remote="github" revision="cm-14.1" />

<!-- rhine -->
<project name="SuperLamic/android_device_sony_rhine-common" path="device/sony/rhine-common" remote="github" revision="cm-14.1" />
<project name="derfelot/android_device_sony_amami" path="device/sony/amami" remote="github" revision="cm-14.1" />

<!-- shinano -->
<project name="SonyLOS/android_device_sony_shinano-common" path="device/sony/shinano-common" remote="github" revision="cm-14.1" />
<project name="derfelot/android_device_sony_aries" path="device/sony/aries" remote="github" revision="cm-14.1" />

<!-- sony sepolicy -->
<project name="sonyxperiadev/device-sony-sepolicy" path="device/sony/sepolicy" remote="github" revision="n-mr0" />

<!-- kernel 3.10 -->
<project name="sonyxperiadev/kernel" path="kernel/sony/msm" remote="github" revision="aosp/LA.BR.1.3.3_rb2.14" />

<!-- qcom hardware -->
<project name="SonyLOS/android_hardware_qcom_audio" path="hardware/qcom/audio/default" remote="github" revision="cm-14.1" />
<project name="SonyLOS/android_hardware_qcom_display" path="hardware/qcom/display" remote="github" revision="cm-14.1" />
<project name="SonyLOS/android_hardware_qcom_media" path="hardware/qcom/media" remote="github" revision="cm-14.1" />
<project name="sonyxperiadev/vendor-qcom-opensource-fm" path="hardware/qcom/fm" remote="github" revision="master" />

<!-- sony hardware -->
<project name="SonyLOS/android_hardware_sony_camera" path="hardware/sony/camera" remote="github" revision="cm-14.1" />
<project name="LineageOS/android_hardware_sony_thermanager" path="hardware/sony/thermanager" remote="github" revision="cm-14.1" />
<project name="LineageOS/android_hardware_sony_timekeep" path="hardware/sony/timekeep" remote="github" revision="cm-14.1" />
<project name="LineageOS/android_hardware_sony_macaddrsetup" path="hardware/sony/macaddrsetup" remote="github" revision="cm-14.1" />
<project name="sonyxperiadev/device-sony-common-init" path="hardware/sony/init" remote="github" revision="master" />
<project name="sonyxperiadev/vendor-qcom-opensource-dataservices" path="hardware/sony/dataservices" remote="github" revision="master" />

<!-- vendor -->
<project name="SonyAosp/vendor_nxp" path="vendor/nxp" remote="github" revision="android-7.0" />
<project name="SonyAosp/vendor_qcom" path="vendor/qcom" remote="github" revision="android-7.0" />
<project name="SonyAosp/vendor_sony" path="vendor/sony" remote="github" revision="android-7.0" />
<project name="SonyAosp/vendor_qcom_firmware" path="vendor/qcom/firmware" remote="github" revision="android-7.0" />

</manifest>

You can of course remove the shinano stuff if you don't want to build for Z3/Z3C. I am using [MENTION=4311238]SuperLamic[/MENTION] 's repo for rhine since he has a fix in it for mobile data when you don't have LTE. It's better, but still not working stable for me. I have LTE, so for me it doesn't matter, but it also didn't help much with battery life as hoped.

Personally, I switched back to only using the xperiadev sepolicy, by changing the device/common-aosp/CommonConfig.mk from

# SELinux
include device/qcom/sepolicy/sepolicy.mk
-include device/sony/sepolicy/sepolicy.mk

to

# SELinux
include device/sony/sepolicy/sepolicy.mk

Btw, I have also successfully built TWRP from within the LOS14.1 sources. Just check out the cm-14.1-twrp branch of amami on my git. It should also support decryption. To build TWRP, you can use this manifest:

<?xml version="1.0" encoding="UTF-8"?>
<!--Please do not manually edit this file-->
<manifest>
<!-- This xml is project for make sony targets work with AOSP hardware -->
<!-- CM stuff -->

<remove-project name="LineageOS/android_bootable_recovery" />
<remove-project name="LineageOS/android_hardware_qcom_audio" />
<remove-project name="LineageOS/android_hardware_qcom_display" />
<remove-project name="LineageOS/android_hardware_qcom_fm" />
<remove-project name="LineageOS/android_hardware_qcom_media" />
<remove-project name="LineageOS/android_packages_apps_FMRadio" />

<project name="derfelot/android_bootable_recovery" path="bootable/recovery" remote="github" revision="android-7.1" />
<project name="sonyxperiadev/packages-apps-FMRadio" path="packages/apps/FMRadio" remote="github" revision="master" />

<!-- common -->
<project name="SonyLOS/android_device_sony_common-aosp" path="device/sony/common-aosp" remote="github" revision="cm-14.1" />

<!-- rhine -->
<project name="SuperLamic/android_device_sony_rhine-common" path="device/sony/rhine-common" remote="github" revision="cm-14.1" />
<project name="derfelot/android_device_sony_amami" path="device/sony/amami" remote="github" revision="cm-14.1-twrp" />

<!-- shinano -->
<project name="SonyLOS/android_device_sony_shinano-common" path="device/sony/shinano-common" remote="github" revision="cm-14.1" />
<project name="derfelot/android_device_sony_aries" path="device/sony/aries" remote="github" revision="cm-14.1-twrp" />

<!-- sony sepolicy -->
<project name="sonyxperiadev/device-sony-sepolicy" path="device/sony/sepolicy" remote="github" revision="n-mr0" />

<!-- kernel 3.10 -->
<project name="sonyxperiadev/kernel" path="kernel/sony/msm" remote="github" revision="aosp/LA.BR.1.3.3_rb2.14" />

<!-- qcom hardware -->
<project name="SonyLOS/android_hardware_qcom_audio" path="hardware/qcom/audio/default" remote="github" revision="cm-14.1" />
<project name="SonyLOS/android_hardware_qcom_display" path="hardware/qcom/display" remote="github" revision="cm-14.1" />
<project name="sonyxperiadev/vendor-qcom-opensource-fm" path="hardware/qcom/fm" remote="github" revision="master" />
<project name="SonyLOS/android_hardware_qcom_media" path="hardware/qcom/media" remote="github" revision="cm-14.1" />

<!-- sony hardware -->
<project name="SonyLOS/android_hardware_sony_camera" path="hardware/sony/camera" remote="github" revision="cm-14.1" />
<project name="sonyxperiadev/thermanager" path="hardware/sony/thermanager" remote="github" revision="master" />
<project name="sonyxperiadev/timekeep" path="hardware/sony/timekeep" remote="github" revision="master" />
<project name="sonyxperiadev/macaddrsetup" path="hardware/sony/macaddrsetup" remote="github" revision="master" />
<project name="sonyxperiadev/device-sony-common-init" path="hardware/sony/init" remote="github" revision="master" />
<project name="sonyxperiadev/vendor-qcom-opensource-dataservices" path="hardware/sony/dataservices" remote="github" revision="master" />

<!-- vendor -->
<project name="SonyAosp/vendor_nxp" path="vendor/nxp" remote="github" revision="android-7.0" />
<project name="SonyAosp/vendor_qcom" path="vendor/qcom" remote="github" revision="android-7.0" />
<project name="SonyAosp/vendor_sony" path="vendor/sony" remote="github" revision="android-7.0" />
<project name="SonyAosp/vendor_qcom_firmware" path="vendor/qcom/firmware" remote="github" revision="android-7.0" />

<project name="omnirom/android_external_busybox" path="external/busybox" remote="github" revision="android-7.1" />

</manifest>

I think TWRP has been patched to work out of the box without busybox now. You could try to remove the busybox at the end and directly grab the sources from omnirom instead of my git.

Then the following should build a TWRP:

source build/envsetup.sh
lunch lineage_amami-eng
make clean && make -j5 recoveryimage

Good luck! And please share your results :)