Tried this evening. Only one hour, but rom seems very stable, cam is dark and sometimes shut down. Mobile data is not working. Cm file manager don't "see" the root permissions to open external sd Some little fixes and could be a great CM rom. Thanks a lot derf elotHi there,
I made a CM14.1 build for amami for you to try, based on the sources of sonyxperiadev, SonyCM and SonyAosp. So a big thank you is in order to everyone involved in these projects. I only modified the sonyxperiadev amami sources to work with this build, set SELinux to enforced and removed the Gello browser from the build (there are more updated derivatives on the Play Store anyway).
I have run it for a little bit, and noticed the following bugs so far:
- deepsleep not working when wifi is on (I think)
- camera sometimes force closes, sometimes works (known memory leak bug I think, cam is work in progress)
- lots of CM stuff is not there yet, including themes (remember, CM14.1 is a work in progress)
- ?
To install it, you most likely need real recovery with TWRP3. It includes the new Sony init, so reboot to recovery from ROM works. I'm currently using it with latest OpenGapps and SuperSU, which both seem to work fine as well.
The Z1C is currently my secondary phone, but once it becomes more stable and feature-rich and once Xposed is available for 7.1 (fingers crossed), I will probably also build for the Z3C. Unless we get to see some official CM love again of course.
Sources:
sonyxperiadev: https://github.com/sonyxperiadev
SonyCM: https://github.com/SonyCM
SonyAosp: https://github.com/sonyaosp
Mine (for amami): https://github.com/derfelot/android_device_sony_amami
Download: https://www.androidfilehost.com/?fid=457095661767120697
Cheers![]()
hey, from were do you get the binary blobs?Hi there,
sonyxperiadev: https://github.com/sonyxperiadev
SonyCM: https://github.com/SonyCM
SonyAosp: https://github.com/sonyaosp
Mine (for amami): https://github.com/derfelot/android_device_sony_amami
Download: https://www.androidfilehost.com/?fid=457095661767120697
Cheers![]()
I will try to tinker with it a bit more this weekend if I have the time. Also, I would like to wait for new Sony blobs first to see if (and how) cam will improve.Awsome!, open a new thread. It will be very useful, for development![]()
Cam will get better soon hopefully (see above). As for mobile data, I wasn't able to check, since the Z1C is my secondary phone and it only has a prepaid sim without any credit right nowTried this evening. Only one hour, but rom seems very stable, cam is dark and sometimes shut down. Mobile data is not working. Cm file manager don't "see" the root permissions to open external sd Some little fixes and could be a great CM rom. Thanks a lot derf elot![]()
Check the manifest on the SonyCM github. It uses the up-to-date blobs from SonyAosp. Which is good, because this way they are always updated.hey, from were do you get the binary blobs?
Since the repo from muppet is really outdatet.
https://github.com/TheMuppets/proprietary_vendor_sony
When I try to encrypt the phone from the settings menu, it simply soft reboots. This is shown in the log (I did not dig deeper yet):Has anyone tried encryption yet by any chance? If I get around to it this weekend, I also want to make a new twrp that can decrypt, built from within these sources.
12-11 15:58:15.808 8467 9207 D CryptdConnector: SND -> {12 cryptfs enablecrypto inplace default}
12-11 15:58:15.811 8467 8710 D CryptdConnector: RCV <- {200 12 0}
12-11 15:58:15.812 314 11947 E Cryptfs : Bad magic for real block device /dev/block/bootdevice/by-name/userdata
12-11 15:58:15.813 314 11947 E Cryptfs : Orig filesystem overlaps crypto footer region. Cannot encrypt in place.
/data auto /dev/block/platform/msm_sdcc.1/by-name/userdata flags=length=-16384
Thanks, it seems when formatting an encrypted /data in a TWRP that does not support decrypting it, the partition gets too big (even with the length flag in fstab). I think this was the problem, I could reproduce this behaviour and it can be fixed by resizing the partition (e.g., like so https://dustri.org/b/cyanogen-reboot-without-encrypting-the-phone.html).Hi,
thanks for testing. I just tested on mine and it works. My guess is, that you need to format once with a "proper" TWRP contining the right fstab lines for data:
The length flag is important here I think, otherwise there won't be room for the crypto footer. My previous TWRP build, compiled from within the CM12.1 sources, seems to work for that. But I am currently making a new TWRP built from the CM14.1 sources. It builds fine, just have to add the required things for decryption (quite a few things).Code:/data auto /dev/block/platform/msm_sdcc.1/by-name/userdata flags=length=-16384
Also made an updated build, now running on 7.1.1. Will upload it later if I have the time.
Cheers
what would I need to edit so that the camera button acts as a power button?Have you tried editing /system/usr/keylayout/Generic.kl ?
Encryption is still a bit of a mystery to me sometimes. Been trying to get decryption working in TWRP with my latest CM build, but it's not even asking for a password/pin anymore right now (even though I have set all the TW flags that were enough to get it to work in LP and MM). I will try some more at a later time.Thanks, it seems when formatting an encrypted /data in a TWRP that does not support decrypting it, the partition gets too big (even with the length flag in fstab). I think this was the problem, I could reproduce this behaviour and it can be fixed by resizing the partition (e.g., like so https://dustri.org/b/cyanogen-reboot-without-encrypting-the-phone.html).
With your sources, I can build CM 14.1 for amami, this is really nice. However, I am not sure how to include TWRP. Would you mind sharing your repo manifest?
Best regards
<?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="CyanogenMod/android_bootable_recovery" />
<remove-project name="CyanogenMod/android_hardware_qcom_audio" />
<remove-project name="CyanogenMod/android_hardware_qcom_display" />
<remove-project name="CyanogenMod/android_hardware_qcom_fm" />
<remove-project name="CyanogenMod/android_hardware_qcom_media" />
<remove-project name="CyanogenMod/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="derfelot/android_device_sony_common" path="device/sony/common" remote="github" revision="cm-14.1" />
<!-- rhine -->
<project name="SonyCM/android_device_sony_rhine" path="device/sony/rhine" remote="github" revision="cm-14.1" />
<project name="derfelot/android_device_sony_amami" path="device/sony/amami" 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="SonyCM/android_hardware_qcom_audio" path="hardware/qcom/audio/default" remote="github" revision="cm-14.1" />
<project name="SonyCM/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="SonyCM/android_hardware_qcom_media" path="hardware/qcom/media" remote="github" revision="cm-14.1" />
<!-- sony hardware -->
<project name="derfelot/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" />
</manifest>
<project name="omnirom/android_external_busybox" path="external/busybox" remote="github" revision="android-7.1" />
You could try to comment out the the key that says "key xxx POWER" and replace the CAMERA in "key xxx CAMERA" to POWER. It might work, not sure though.what would I need to edit so that the camera button acts as a power button?
there were 2 lines labeled as POWER and I commented them both, changed the CAMERA line to POWER, and restarted the prone.You could try to comment out the the key that says "key xxx POWER" and replace the CAMERA in "key xxx CAMERA" to POWER. It might work, not sure though.
Tested.Encryption is still a bit of a mystery to me sometimes. Been trying to get decryption working in TWRP with my latest CM build, but it's not even asking for a password/pin anymore right now (even though I have set all the TW flags that were enough to get it to work in LP and MM). I will try some more at a later time.
Here's my manifest to build TWRP:
You will also need a busybox, I got the one from omniromCode:<?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="CyanogenMod/android_bootable_recovery" /> <remove-project name="CyanogenMod/android_hardware_qcom_audio" /> <remove-project name="CyanogenMod/android_hardware_qcom_display" /> <remove-project name="CyanogenMod/android_hardware_qcom_fm" /> <remove-project name="CyanogenMod/android_hardware_qcom_media" /> <remove-project name="CyanogenMod/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="derfelot/android_device_sony_common" path="device/sony/common" remote="github" revision="cm-14.1" /> <!-- rhine --> <project name="SonyCM/android_device_sony_rhine" path="device/sony/rhine" remote="github" revision="cm-14.1" /> <project name="derfelot/android_device_sony_amami" path="device/sony/amami" 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="SonyCM/android_hardware_qcom_audio" path="hardware/qcom/audio/default" remote="github" revision="cm-14.1" /> <project name="SonyCM/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="SonyCM/android_hardware_qcom_media" path="hardware/qcom/media" remote="github" revision="cm-14.1" /> <!-- sony hardware --> <project name="derfelot/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" /> </manifest>
I have forked some SonyCM stuff to merge updates from sonyxperiadev. Also, the android_bootable_recovery from omnirom needed a little tweak.Code:<project name="omnirom/android_external_busybox" path="external/busybox" remote="github" revision="android-7.1" />
You could try to comment out the the key that says "key xxx POWER" and replace the CAMERA in "key xxx CAMERA" to POWER. It might work, not sure though.
I have uploaded a new CM14.1 build, now based on Android 7.1.1. Some upstream changes from sonyxperiadev are in there too. You can grab it here:
https://www.androidfilehost.com/?fid=673368273298916137
Concerning the sleep, it seems the CPU stays awake all the time. Even in flight mode 'dumpsys batterystats' shows that the CPU is constantly running. The wakelocks are only taken for short amounts of time and therefore seem fine. I will try to find out more about this some time this week.I have run it for a little bit, and noticed the following bugs so far:
- deepsleep not working when wifi is on (I think)
- camera sometimes force closes, sometimes works (known memory leak bug I think, cam is work in progress)
- lots of CM stuff is not there yet, including themes (remember, CM14.1 is a work in progress)
- ?
This one works, thanks for the helpDo you have the /system/usr/keylayout/gpio-keys.kl ? I'm on my Z3C right now, but changing the FOCUS to POWER in there worked after a reboot on here.
Concerning the sleep, it seems the CPU stays awake all the time. Even in flight mode 'dumpsys batterystats' shows that the CPU is constantly running. The wakelocks are only taken for short amounts of time and therefore seem fine. I will try to find out more about this some time this week.
Edit: It was the Android OS itself, more precisely msm_dwc3 that seems to have gotten stuck taking a wakelock after USB charging or debugging. After a reboot, deep sleep is working fine again...
Regards
does it support F2FS?I have uploaded a new CM14.1 build, now based on Android 7.1.1. Some upstream changes from sonyxperiadev are in there too. You can grab it here:
https://www.androidfilehost.com/?fid=673368273298916137