RikkaApps / Shizuku

Using system APIs directly with adb/root privileges from normal apps through a Java process started with app_process.
Apache License 2.0
11.22k stars 647 forks source link

This is a new one for me... #418

Open CamsShaft opened 9 months ago

CamsShaft commented 9 months ago

Please report bugs of Shizuku itself.

Requirements:

Change "[ ]" to "[x]" if it meets the requirements.

Reports not meet the requirements will be immediately closed.

Information:

Describe the bug: I've been running shizuku for quite some time and even on Android 14 it's pretty easy and straightforward in how it works and instructions on how to use it. This here is my issue and have never seen it: On Android 14+, app_process cannot load writable dex. Attempting to remove the write permission... CANNOT LINK EXECUTABLE "/system/bin/app_process": cannot locate symbol "EVP_MD_CTX_init" referenced by "/system/lib64/libsqlite.so"... I can usually, with the help of Google etc..., fix it myself but this doesn't come up anywhere that I could find. It's the first time I've tried it on neoterm so maybe it's not compatible and I looked over that bit?? Not rooted because google is google. Using a Samsung S22 snapdragon.

Additional context: I'll see if I can get anywhere with this and hopefully come back and close this sooner than later... if anyone else has seen this and feels like throwing their two cents into the mix you're more than welcome to help confuse this guy (only about 7 months in so pretty new). Thanks a lot!

lisinho commented 7 months ago

Look, I'm a layman. I started with Shizuku Friday, 25. So bear with me.

Android +14 SAF has been limited to System, in development, so its usage and access has become convoluted. Anyone, please correct if I'm wrong.

I've came across this same error, so here is my 2c, I'll give you an step-by-step because, for advanced Android users(developers and coders) it is pretty straightforward, but for people like me, feels like 1337 hacking.

  1. Install Shizuku
  2. Open Shizuku
  3. Developer>Wireless Debug>Pair
  4. Start Shizuku
  5. Install Termux
  6. Use Shizuku via Terminal
  7. Export files
  8. Follow file tutorial regarding editing the file to make it work with terminal app
  9. Start Termux
  10. Setup termux to handle storage: pkg apt update termux-setup-storage
  11. Go to Termux permissions and turn files permissions off/on(don't ask, just do it)
  12. Navigate to exported files folder via terminal commands like "cd" and "ls"
  13. Run "sh rish" command
  14. Get the error "writable dex"
  15. Now the caveat and how I've managed to break through the error after extensible digging over several threads

The Shizuku developer posted somewhere(internet) that this error can be circumvented by copying the Shizuku exported files to the terminal app(termux) private directory(another whole chapter in this saga), since data/obb(private directory) access is not automatically granted. I used FV File Explorer(Termux wiki recommendation) to access data/com.termux and moved exported files to it.

  1. Go back to Termux
  2. If you type "ls", now you can see storage and rish
  3. Run sh rish

Voilà. Look I know there might be simpler and more efficient ways to do the same, but this is what I have managed to do with the knowledge I have gathered so far in two days. I'm proud since I never used Shizuku or termux, ever. Hope it helps.

CamsShaft commented 7 months ago

@lisinho I appreciate the effort and thought you put into this reply, unfortunately this solution is useless to me as I can run rish and termux blindfolded, hands behind my back, in my father's pajamas, uphill bothways etc... you get the picture :p neoterm is specifically the terminal I'm looking for which is kinda similar but for reasons unknown to me (could be the programming itself), it can not run rish easily or at all like other terminals. I'm sure someone could use this guide anyways so this shouldn't be considered a total write-off. Thanks again, maybe I'll give it another shot and see if I can figure it out this time.

lisinho commented 7 months ago

Thanks for being so kind. Yes I wrote it off with this exact intention, I have seen several people struggling.

BTW, would you recommend any documentation or a guide for me to get through it like a normal person? 😂