Skip to content

Commit c17cf2c

Browse files
fix: resolve issue #18 (SecurityException when checking is Shizuku installed on devices with multiply accounts)
1 parent fe49334 commit c17cf2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • termux-shizuku-tools/data/data/com.termux/files/usr/libexec/shizuku

termux-shizuku-tools/data/data/com.termux/files/usr/libexec/shizuku/shizuku_lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SHK_CHECK_STR="shizuku_server_check"
1414
export SHK_LIB_DIR RISH_DEX_NAME RISH_DEX_PATH SHK_PKG SHK_SERVER_PROC_NAME
1515

1616
is_shk_installed() {
17-
if cmd package list packages | grep -q "package:$SHK_PKG"; then
17+
if cmd package list packages --user $(( $(id -u) / 100000 )) | grep -q "package:$SHK_PKG"; then
1818
echo "true"
1919
else
2020
echo "false"

0 commit comments

Comments
 (0)