Skip to content

fish4terrisa-MSDSM/lindroid_module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lindroid module

This is a module (attempt to) make lindroid support stock ROMs and other ROMs, without the need to build a whole rom. This module currently is only focused on Android apphwc side, you'll have to follow lindroid's instructions to install the lxc part and libhybris(probably you'll also need to build your patched bionic libc and some other libs ) Currently only tested on Android 14 device, with KernelSU. Magisk may also be supported.(not tested)


WARNING: DO NOT FLASH the zip file in release directly, read the following instuctions first

Instructions

Before using this module, follow the instructions from Lindroid to prepare your kernel for lxc, then either you need to use the libhybri To use this module, you'll have to:

  1. Find out your ROM's tag. Usually you can find it inside /system/build.prop, as the value of ro.system.build.id.
  2. Fetch the aosp source matching that tag It's for api compatibility. Usually aosp source is just fine.
  3. Apply the lindroid and hybris patches
  4. Build LindroidUI Follow the aosp build instructions to init your build environment. Run mm LindroidUI to build the LindroidUI apk and libraries.
  5. Get the result apks and libs. Usually the path of the results need are:
out/target/product/generic_arm64/system/system_ext/app/LindroidUI
out/target/product/generic_arm64/system/system_ext/lib64/libjni_lindroidui.so
out/target/product/generic_arm64/system/system_ext/lib64/vendor.lindroid.composer-ndk.so
  1. Download the release zip
  2. Replace the files inside it with the ones you built.
  3. Flash the module and reboot.

Currently you'll have to set selinux to premissive before lanuch LindroidUI. In the future hopefully we can use sepolicy instead.

Depends on your android version, there's a bug in android framework that may cause soft reboot. You can choose to:

  • Disable systemd-udevd. See the example at here .
  • Install Xposed framework and the Xposed module uUeventPatch
  • Patch the services.jar of your ROM, using apktool or other decompile/recompile tools. Modify the smali code according to this patch.

Todo

  • Use sepolicy instead of setting selinux to premissive.
  • Split the lxc part from the display part so that users can choose to handle the lxc by themselves
  • Patch the services.jar in the install process.
  • Find a way to apply this patch

Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published