Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
91b6d285
Commit
91b6d285
authored
Mar 22, 2020
by
osm0sis
Committed by
John Wu
Mar 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts: add nand/mtd support to uninstaller
parent
d7cd1b37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
magisk_uninstaller.sh
scripts/magisk_uninstaller.sh
+13
-4
No files found.
scripts/magisk_uninstaller.sh
View file @
91b6d285
...
...
@@ -67,6 +67,12 @@ cd $MAGISKBIN
CHROMEOS
=
false
ui_print
"- Unpacking boot image"
# Dump image for MTD/NAND character device boot partitions
if
[
-c
$BOOTIMAGE
]
;
then
nanddump
-f
boot.img
$BOOTIMAGE
BOOTNAND
=
$BOOTIMAGE
BOOTIMAGE
=
boot.img
fi
./magiskboot unpack
"
$BOOTIMAGE
"
case
$?
in
...
...
@@ -79,6 +85,9 @@ case $? in
;;
esac
# Restore the original boot partition path
[
"
$BOOTNAND
"
]
&&
BOOTIMAGE
=
$BOOTNAND
# Detect boot image state
ui_print
"- Checking ramdisk status"
if
[
-e
ramdisk.cpio
]
;
then
...
...
@@ -142,10 +151,10 @@ fi
cd
/
if
$BOOTMODE
;
then
ui_print
"********************************************
**
"
ui_print
"
* Magisk Manager will uninstall itself, and *
"
ui_print
"
* the device will reboot after a few seconds *
"
ui_print
"********************************************
**
"
ui_print
"********************************************"
ui_print
"
Magisk Manager will uninstall itself, and
"
ui_print
"
the device will reboot after a few seconds
"
ui_print
"********************************************"
(
sleep
8
;
/system/bin/reboot
)
&
else
rm
-rf
/data/user
*
/
*
/
*
magisk
*
/data/app/
*
magisk
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment