cswl / tsu

Gain root shell on Termux.
ISC License
646 stars 155 forks source link

Tsu doesnt find su on kitsune mask 27.0 (Magisk delta) #105

Closed gixousiyq closed 7 months ago

gixousiyq commented 9 months ago

Kitsune mask (magisk delta) changed its su path from /system/bin to /apex/com.android.runtime/bin which breaked tsu

gixousiyq commented 9 months ago

A quick fix or workaround for this right now is to pull sudo from /data/data/com.termux/files/usr/bin/sudo and using any text editor to edit the line 281 or the function SU_BINARY_SEARCH=("system/xbin/su" "/system/bin/su") To SU_BINARY_SEARCH=("/debug_ramdisk/su" "/system/bin/su") And then save the file Then replace the one in .../files/usr/bin/sudo using anyway you want, for me i used dd (Ik theres better ways but whatever) Use this command to do it dd if=/path/to/the/edited/sudo/file of=/data/data/com.termux/files/usr/bin/sudo And you are ready to go! Hope this helps anyone

gixousiyq commented 7 months ago

Magisk delta reverted this Also dont use this bullshit method in the future