RikkaApps / Sui

Modern super user interface implementation on Android.
GNU General Public License v3.0
2.39k stars 129 forks source link

post-install.example.sh location incorrect? #61

Open jersa opened 11 months ago

jersa commented 11 months ago

Hi,

I just wanted to point out that rather than being in /data/adb/sui/ as mentioned here, I found post-install.example.sh in /data/adb/modules/zygisk-sui/ instead.

Unless I'm just confused, that might confuse someone else. Thanks.

Katsklub2022 commented 10 months ago

Thanks for this.. , this was really helpful.

Unknown78 commented 10 months ago

@jersa @Katsklub2022

After you found it, how do you try out the shell? What is the variable value of RISH_DEX, RISH_LIB, and RISH_SCRIPT? Does all of three the same of /data/adb/modules/zygisk-sui/?

There's an example of adb and termux on the bottom, do I need to uncomment it?

How to load the script? I've already rename and put it on /data/adb/sui/post-install.sh, but still couldn't run rish on termux. It's the same after reboot.

I'm on Samsung Galaxy Note 4 SM-N910H with Custom ROM of REFINED_NOTE8_7.1_T2.zip + latest RisingNote4 and Custom Kernel of Helios_Kernel-V3.1-N910C.H-20200809.img and latest Magisk debug channel version 26105 with Zygisk enabled.

Here is the log of the installation:

- Copying zip to temp directory
- Installing sui-zygisk-v13.0.1-release.zip
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: module.prop
**************
 Zygisk - Sui 
 by Rikka 
**************
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: customize.sh
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: verify.sh
*******************
 Powered by Magisk 
*******************
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: util_functions.sh
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: util_functions.sh.sha256sum
- Extracting verify.sh
- Extracting util_functions.sh
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: module.prop
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: module.prop.sha256sum
- Verified util_functions.sh
- Magisk version: ee34f775 (26105)
- Installing Sui (Zygisk version)
- Android SDK version: 25
- Device platform: arm
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: post-fs-data.sh
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: post-fs-data.sh.sha256sum
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: uninstall.sh
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: uninstall.sh.sha256sum
- Extracting module files
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: sepolicy.rule
- Verified module.prop
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: sepolicy.rule.sha256sum
- Verified post-fs-data.sh
- Verified uninstall.sh
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: libsui.so
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: libsui.so.sha256sum
- Verified sepolicy.rule
- Verified lib/armeabi-v7a/libsui.so
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: libmain.so
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: libmain.so.sha256sum
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: librish.so
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: librish.so.sha256sum
- Verified lib/armeabi-v7a/libmain.so
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: libadbd_wrapper.so
- Verified lib/armeabi-v7a/librish.so
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: libadbd_wrapper.so.sha256sum
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: libadbd_preload.so
- Verified lib/armeabi-v7a/libadbd_wrapper.so
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: libadbd_preload.so.sha256sum
- Verified lib/armeabi-v7a/libadbd_preload.so
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: sui.dex
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: sui.dex.sha256sum
- Verified sui.dex
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: sui.apk
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: sui.apk.sha256sum
- Verified sui.apk
- Fetching information for SystemUI and Settings
somp_thread.c:114    [1692261387.054660]    TID 0xB6FBD548 - somp_thread_ctor()
env.c:593    [1692261387.054813]    TID 0xB6FBD548 - env_ctor()
- AppProcess: main
- SystemUI: uid=10064, processName=com.android.systemui
- Settings: uid=1000, processName=com.android.settings
- AppProcess: exit
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: rish
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: rish.sha256sum
- Extracting files for rish
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: post-install.example.sh
Archive:  /data/user/0/o.dmxr/cache/flash/install.zip
  inflating: post-install.example.sh.sha256sum
- Verified rish
- Verified post-install.example.sh
- Cannot find /data/adb/sui/post-install.sh
- Removing old files
- Installing custom sepolicy rules
- Done

I also dial *#*#784784#*#*, but nothing happened.

@RikkaW The lack of documentations are not very beginner friendly.