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
ec31bb9a
Commit
ec31bb9a
authored
Jan 24, 2021
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename scripts
parent
8618cc38
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
6 deletions
+7
-6
fullApp.run.xml
.run/fullApp.run.xml
+2
-1
build.gradle.kts
app/build.gradle.kts
+1
-1
manager.sh
app/src/main/res/raw/manager.sh
+1
-1
build.py
build.py
+1
-1
uninstaller.sh
scripts/uninstaller.sh
+0
-0
update_binary.sh
scripts/update_binary.sh
+2
-2
No files found.
.run/fullApp.run.xml
View file @
ec31bb9a
...
...
@@ -7,7 +7,6 @@
<option
name=
"ARTIFACT_NAME"
value=
""
/>
<option
name=
"PM_INSTALL_OPTIONS"
value=
""
/>
<option
name=
"ALL_USERS"
value=
"false"
/>
<option
name=
"ALWAYS_INSTALL_WITH_PM"
value=
"false"
/>
<option
name=
"DYNAMIC_FEATURES_DISABLED_LIST"
value=
""
/>
<option
name=
"ACTIVITY_EXTRA_FLAGS"
value=
""
/>
<option
name=
"MODE"
value=
"default_activity"
/>
...
...
@@ -16,6 +15,8 @@
<option
name=
"SKIP_NOOP_APK_INSTALLATIONS"
value=
"true"
/>
<option
name=
"FORCE_STOP_RUNNING_APP"
value=
"true"
/>
<option
name=
"TARGET_SELECTION_MODE"
value=
"SHOW_DIALOG"
/>
<option
name=
"SELECTED_CLOUD_MATRIX_CONFIGURATION_ID"
value=
"-1"
/>
<option
name=
"SELECTED_CLOUD_MATRIX_PROJECT_ID"
value=
""
/>
<option
name=
"DEBUGGER_TYPE"
value=
"Java"
/>
<Auto>
<option
name=
"USE_JAVA_AWARE_DEBUGGER"
value=
"false"
/>
...
...
app/build.gradle.kts
View file @
ec31bb9a
...
...
@@ -114,7 +114,7 @@ val syncAssets by tasks.registering(Sync::class) {
inputs
.
property
(
"versionCode"
,
Config
.
versionCode
)
into
(
"src/main/assets"
)
from
(
rootProject
.
file
(
"scripts"
))
{
include
(
"util_functions.sh"
,
"boot_patch.sh"
,
"
magisk_
uninstaller.sh"
,
"addon.d.sh"
)
include
(
"util_functions.sh"
,
"boot_patch.sh"
,
"uninstaller.sh"
,
"addon.d.sh"
)
}
into
(
"chromeos"
)
{
from
(
rootProject
.
file
(
"tools/futility"
))
...
...
app/src/main/res/raw/manager.sh
View file @
ec31bb9a
...
...
@@ -65,7 +65,7 @@ run_uninstaller() {
rm
-rf
/dev/tmp
mkdir
-p
/dev/tmp/install
unzip
-o
"
$1
"
"assets/*"
"lib/*"
-d
/dev/tmp/install
INSTALLER
=
/dev/tmp/install sh /dev/tmp/install/assets/
magisk_
uninstaller.sh dummy 1
"
$1
"
INSTALLER
=
/dev/tmp/install sh /dev/tmp/install/assets/uninstaller.sh dummy 1
"
$1
"
}
restore_imgs
()
{
...
...
build.py
View file @
ec31bb9a
...
...
@@ -399,7 +399,7 @@ def zip_uninstaller(args):
zip_with_msg
(
zipf
,
source
,
target
)
# updater-script
source
=
op
.
join
(
'scripts'
,
'
magisk_
uninstaller.sh'
)
source
=
op
.
join
(
'scripts'
,
'uninstaller.sh'
)
target
=
op
.
join
(
'META-INF'
,
'com'
,
'google'
,
'android'
,
'updater-script'
)
zip_with_msg
(
zipf
,
source
,
target
)
...
...
scripts/
magisk_
uninstaller.sh
→
scripts/uninstaller.sh
View file @
ec31bb9a
File moved
scripts/update_binary.sh
View file @
ec31bb9a
...
...
@@ -15,8 +15,8 @@ export INSTALLER=$TMPDIR/install
$BBBIN
mkdir
-p
$INSTALLER
$BBBIN
unzip
-o
"
$3
"
"assets/*"
"lib/*"
"META-INF/com/google/*"
-x
"lib/*/libbusybox.so"
-d
$INSTALLER
>
&2
export
ASH_STANDALONE
=
1
if
[
"
${
3
:-
15
}
"
=
"uninstaller.zip"
]
;
then
exec
$BBBIN
sh
"
$INSTALLER
/assets/
magisk_
uninstaller.sh"
"
$@
"
if
echo
"
$3
"
|
$BBBIN
grep
-q
"uninstall"
;
then
exec
$BBBIN
sh
"
$INSTALLER
/assets/uninstaller.sh"
"
$@
"
else
exec
$BBBIN
sh
"
$INSTALLER
/META-INF/com/google/android/updater-script"
"
$@
"
fi
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