The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)
Adaptations/libhybris/FxtecPro1
From Mer Wiki
< Adaptations | libhybris(Difference between revisions)
(Created page with "Keep sfos on A slot. '''Installing image''' There is no TWRP available so it's csdmplicated. I tried to build image manually but it had corrupted ext4 (for whatever reason). ...") |
(→Development bugs:) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | Keep sfos on A slot. | + | '''Keep sfos on A slot.''' |
+ | |||
+ | == Installing image == | ||
− | |||
There is no TWRP available so it's csdmplicated. I tried to build image manually but it had corrupted ext4 (for whatever reason). You can install stock on B slot and install sfos from stock (not tested). | There is no TWRP available so it's csdmplicated. I tried to build image manually but it had corrupted ext4 (for whatever reason). You can install stock on B slot and install sfos from stock (not tested). | ||
Line 8: | Line 9: | ||
- using fastboot format userdata | - using fastboot format userdata | ||
- fastboot format:ext4 userdata | - fastboot format:ext4 userdata | ||
+ | - fastboot set-active a (formatting userdata will change slot most likely) | ||
- flash kernel | - flash kernel | ||
- it will boot to ramdisk then: | - it will boot to ramdisk then: | ||
Line 15: | Line 17: | ||
- Do as this script does (literally copy paste lines) [https://github.com/mer-hybris/hybris-boot/blob/master/updater-unpack.sh updater-unpack.sh] | - Do as this script does (literally copy paste lines) [https://github.com/mer-hybris/hybris-boot/blob/master/updater-unpack.sh updater-unpack.sh] | ||
- after unpacking reboot and it should be fine | - after unpacking reboot and it should be fine | ||
+ | |||
+ | |||
+ | |||
+ | == Development bugs: == | ||
+ | |||
+ | |||
+ | - PEERSEC is not available which causes droid-hal-init to crash | ||
+ | |||
+ | - CANNOT LINK EXECUTABLE … is not accessible for the namespace [https://github.com/mer-hybris/android_bionic/blob/droid-src-sony-aosp-8.1.0_r52_20190206/linker/linker.cpp#L1264 here] | ||
+ | Fixed by simply changing linked if (waiting for proper fix) | ||
+ | |||
+ | - test_egl_configs works. test_hwc2 doesn't: | ||
+ | |||
+ | ==12102== Invalid read of size 1 | ||
+ | ==12102== at 0x53EC858: __fsetlocking (in /usr/libexec/droid-hybris/system/lib/libc.so) | ||
+ | |||
+ | well, that's interesting, means we have unhooked file function somewhere | ||
+ | |||
+ | __fsetlocking usage came from external/selinux/libselinux/src/init.c (statically linked to libpdx_default_transport.so), which we will neutralize anyway | ||
+ | |||
+ | |||
+ | - To have a speedy build without whole vendorimage, modify hybris-boot/Android.mk | ||
+ | near the bottom, remove vendorimage from HYBRIS_COMMON_ANDROID8_TARGETS | ||
+ | add to HYBRIS_TARGETS (arm64) fstab.qcom qca_cld3_wlan.ko ueventd.qcom.rc |
Latest revision as of 20:48, 28 June 2019
Keep sfos on A slot.
[edit] Installing image
There is no TWRP available so it's csdmplicated. I tried to build image manually but it had corrupted ext4 (for whatever reason). You can install stock on B slot and install sfos from stock (not tested).
Instructions:
- put .tar.bz2 file onto SDCARD - using fastboot format userdata - fastboot format:ext4 userdata - fastboot set-active a (formatting userdata will change slot most likely) - flash kernel - it will boot to ramdisk then: - mkdir /sdcard - mount /dev/mmcblk0p1 /sdcard - cp /sdcard/sfos.tar.bz2 /data/sailfishos-rootfs.tar.bz2 - Do as this script does (literally copy paste lines) updater-unpack.sh - after unpacking reboot and it should be fine
[edit] Development bugs:
- PEERSEC is not available which causes droid-hal-init to crash
- CANNOT LINK EXECUTABLE … is not accessible for the namespace here Fixed by simply changing linked if (waiting for proper fix)
- test_egl_configs works. test_hwc2 doesn't:
==12102== Invalid read of size 1 ==12102== at 0x53EC858: __fsetlocking (in /usr/libexec/droid-hybris/system/lib/libc.so)
well, that's interesting, means we have unhooked file function somewhere
__fsetlocking usage came from external/selinux/libselinux/src/init.c (statically linked to libpdx_default_transport.so), which we will neutralize anyway
- To have a speedy build without whole vendorimage, modify hybris-boot/Android.mk
near the bottom, remove vendorimage from HYBRIS_COMMON_ANDROID8_TARGETS add to HYBRIS_TARGETS (arm64) fstab.qcom qca_cld3_wlan.ko ueventd.qcom.rc