mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-12 07:53:36 +00:00
Clean database more thoroughly
This commit is contained in:
parent
6764a98409
commit
92ed0ae51b
@ -9,7 +9,7 @@ db_clean() {
|
|||||||
local DIR="/sbin/.core/db-${USERID}"
|
local DIR="/sbin/.core/db-${USERID}"
|
||||||
umount -l /data/user*/*/*/databases/su.db $DIR $DIR/*
|
umount -l /data/user*/*/*/databases/su.db $DIR $DIR/*
|
||||||
rm -rf $DIR
|
rm -rf $DIR
|
||||||
[ "$USERID" = "*" ] && rm -f /data/adb/magisk.db
|
[ "$USERID" = "*" ] && rm -fv /data/adb/magisk.db*
|
||||||
}
|
}
|
||||||
|
|
||||||
db_init() {
|
db_init() {
|
||||||
@ -30,7 +30,7 @@ db_setup() {
|
|||||||
mkdir -p $DIR
|
mkdir -p $DIR
|
||||||
touch $DIR/magisk.db
|
touch $DIR/magisk.db
|
||||||
mount -o bind /data/adb/magisk.db $DIR/magisk.db
|
mount -o bind /data/adb/magisk.db $DIR/magisk.db
|
||||||
rm -f /data/adb/magisk.db-journal
|
rm -f /data/adb/magisk.db-*
|
||||||
chcon u:object_r:magisk_file:s0 $DIR $DIR/*
|
chcon u:object_r:magisk_file:s0 $DIR $DIR/*
|
||||||
chmod 700 $DIR
|
chmod 700 $DIR
|
||||||
chown $USER.$USER $DIR
|
chown $USER.$USER $DIR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user