Halium / projectmanagement

144 stars 33 forks source link

[device-port] [aries] Sony Xperia Z3C #32

Open ghost opened 6 years ago

ghost commented 6 years ago

This port is broken. It worked a year ago. Can't build system image. Too many files are missing.

Progress:

https://wiki.merproject.org/wiki/Adaptations/libhybris/Install_SailfishOS_for_z3c https://wiki.postmarketos.org/wiki/Sony_Xperia_Z3C_(sony-aries)

lnjX commented 6 years ago

The part with the signapk.jar doesn't sound correct. Try to remove everything of Java / APKs from the makefiles (you can fork the repos and publish your changes).


Ok the signapk thing is a general problem, but better comment out the lines in the vendor makefile, so that the apks are not added to the systemimage (we don't need them).

And you can fork the kernel repo and change the defconfig there on a halium-7.1 branch :)

lnjX commented 6 years ago

Please try with my new manifest: https://github.com/Halium/halium-devices/blob/halium-7.1/manifests/sony_z3c.xml For me it works fine!

ghost commented 6 years ago

Thank you. I'll start over again with an empty build directory and report the results. If it works for you it should also work for me.

lnjX commented 6 years ago

I'm just curious, did you already have time to test it on the device?

lnjX commented 6 years ago

That bug is not related to the manifest, it's something in your halium checkout. 😐 I'm not really sure if that helps, but have you tried recloning?

ghost commented 6 years ago

Got another error when running the halium-install script. It's memory related. On my device I got 1G RAM free before but only 40M when it fails.

/file_contexts: line 588 error due to: Out of memory mmap: Out of memory

lnjX commented 6 years ago

You need at least 2GB free disk space on the data partition. You can also format the partition.

lnjX commented 6 years ago

Why should the recovery need more than 3GB RAM? - Even the uncompressed image is only 2GB ...

ghost commented 6 years ago

Wait. I monitored storage space, cpu load and RAM on the phone during script execution. Free RAM was 1GB before but only 40MB when the script failed. The /data partition had enough free space the whole time.

lnjX commented 6 years ago

Which script do you use? The official or the @JBBgameich's one?

ghost commented 6 years ago

First I tried the official one. Then JBB's AppImage but I got the same error with both of them.

lnjX commented 6 years ago

Strange ... Is there another recovery system for your device available? Or try pushing it on your los/android system (you'll need some changes to the scripts)?

lnjX commented 6 years ago

The out of memory error could be caused by this: https://github.com/Halium/halium-scripts/pull/5

Try installing using the modified version of the script.

ZeroPointEnergy commented 6 years ago

It seams the /recovery partition is not present/mounted in recovery mode on every device hence it probably writes to a ramdisk. I modified it to use /sdcard to make it work for the Samsung Galaxy S7 since that is the directory Lineage OS uses. But I have no idea if this is a mounted partition on all devices.

https://github.com/ZeroPointEnergy/halium-scripts/commit/12a2d5d52d13e88489b34282da0bfe7bc5741212

ghost commented 6 years ago

Thank you for the scripts. I tried both versions but got the same error on my phone. Then I installed another version of TWRP (3.0.2-1) and it worked. So it was a TWRP problem.

ghost commented 5 years ago

This port is broken. I get plenty of build errors with system image.