Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[DEV] Android app compatibility in Sailfish OS for ported devices

$
0
0
To install Sailfish OS you flash it over a CM or AOSP base. So a whole android rom is there unused when you're using Sailfish. So I thought why not make use of it, since Sailfish isn't using the android services like zygote, media, netd, or surfaceflinger they are disabled by default in init.rc, by re-enabling them and turning off Sailfish's Wayland Compositor and turning on Surfaceflinger I was able to boot into CM (for my device the Nexus 5, it's CM11) without input. Today I've finally managed to get input working by changing the usergroup of /dev/input/eventX from video to input. But although I'm able to navigate Android, and use the stock browser it's still quite unstable. Here is a logcat dump of the first few times I've booted into CM from Sailfish now that input is working, and I have no idea how to fix those errors.

If I connect to WiFi from Sailfish and then boot into CM then the Stock browser can use the internet connection and browse websites (although WiFi is off on Android), same goes for mobile data. But If I flash gapps and then try to login to my google account, Android doesn't see the internet connection and tries to make me connect again, at which point Surfaceflinger crashes and doesn't restart.

I made a basic guide of how to get to the same stage, if you would like to test it out once Sailfish is installed. So we can progress with the project.
Instructions of how to get to boot into CM from Sailfish OS

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>