Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual install on Android Car Navi (Android 10 prerooted, no TWRP, no init.d, but SELinux permissive) #6

Open
tar5678 opened this issue Oct 18, 2022 · 0 comments

Comments

@tar5678
Copy link

tar5678 commented Oct 18, 2022

Hello and thanks for your great project!
I want to install edxposed on my car navi running Android 10 with built in root access (supersu, or very similar tool, not magisk).
Unfortunately there is no easy way to install magisk on this unit, nor TWRP.
So I cannot install edxposed through magisk nor through TWRP with zip files from your project.

I carefully read this thread: ElderDrivers/EdXposed#532
and install script from zip from this project and realized, that install process is pretty easy, so tried to do it manually from running system.
As a result - system boots ok, but edxposed manager (4.6.2) tells that "framework is not (properly) installed" and shows red status.

Here is what I exactly did:

  1. In terminal entered su command, and then getenforce - it reported "permissive". So I realized that SELinux is already in permissive state and probably I don't need init.d support in ROM (am I correct?)

  2. Downloaded this zip: https://github.com/LuigiVampa92/System_EdXposed_install/releases/download/v0.4.6.2/zip_system_edxposed_v0462_arm64_permissive.zip

  3. remounted system partition with rw option, renamed libmemtrack.so in /system/lib and /system/lib64 to libmemtrack_real.so

  4. copied following files from zip to corresponding folders in /system:
    system\framework\edconfig.jar
    system\framework\eddalvikdx.jar
    system\framework\eddexmaker.jar
    system\framework\edxp.jar
    system\lib\libmemtrack.so
    system\lib64\libmemtrack.so
    system\lib\libriru_edxp.so
    system\lib64\libriru_edxp.so
    system\lib\libwhale.edxp.so
    system\lib64\libwhale.edxp.so
    system\bin\zygote_restart

  5. checked ownership for all copied files - it was all root:root, so I didn't need to change anything

  6. set chmod 700 to zygote_restart, 644 to all copied libs (including renamed libmemtrack_real.so) and jars.

  7. i DIDN'T copy /bin/espf because I think permissive version of your installer script does not use it (correct?) and i DIDN'T copy 07slf script to init.d, because there is no such folder in etc in my ROM, but I think I do not need it, cause my ROM is already in "permissive" state (correct?).

  8. reboot successfull with no bootloops etc, but nothing changed, edxposed manager shows red status ("framework is not (properly) installed"). I checked that after reboot all copied files remained in place where they should be.

  9. also tried to check selinux contexts for copied\renamed files with ls -Z command. Files bin/zygote_restart and jars in framework folder showed correct context "u:object_r:system_file:s0", so I didn't need to change them. But copied libs in lib and lib64 folders (including renamed libmemtrack_real.so) showed "u:object_r:system_lib_file:s0" as all other libs in these folders. I tried to change them to "u:object_r:system_file:s0" with chcon command, but after reboot I realised it didn't help.

  10. I also tried to create /system/etc/init/riru.rc as mentioned in this thread: [Question] Is it possible to make EdXposed work without Magisk? ElderDrivers/EdXposed#532
    to start zygote_restart service, but it also didn't help (of cource I set ownership and permissions same way as other files in init folder).

  11. Also tried to check Riru status - Riru apk tells that riru is not installed or version below 21.

  12. i DIDN't edit props file to add dalvik.vm.dex2oat-filter and dalvik.vm.dex2oat-flags flags, as I have read it is not needed in Issues section of this project (correct?).

Any ideas? Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant