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
f2ca0429
Commit
f2ca0429
authored
Jan 24, 2021
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix script for handling .apex files
parent
1060dd29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
util_functions.sh
scripts/util_functions.sh
+3
-2
No files found.
scripts/util_functions.sh
View file @
f2ca0429
...
@@ -313,9 +313,10 @@ mount_apex() {
...
@@ -313,9 +313,10 @@ mount_apex() {
if
[
-f
$APEX
]
;
then
if
[
-f
$APEX
]
;
then
# APEX APKs, extract and loop mount
# APEX APKs, extract and loop mount
unzip
-qo
$APEX
apex_payload.img
-d
/apex
unzip
-qo
$APEX
apex_payload.img
-d
/apex
DEST
=
/apex/
$(
unzip
-qp
$APEX
apex_manifest.pb | strings |
head
-n
1
)
DEST
=
$(
unzip
-qp
$APEX
apex_manifest.pb | strings |
head
-n
1
)
[
-z
$DEST
]
&&
DEST
=
/apex/
$(
unzip
-qp
$APEX
apex_manifest.json |
sed
-n
$PATTERN
)
[
-z
$DEST
]
&&
DEST
=
$(
unzip
-qp
$APEX
apex_manifest.json |
sed
-n
$PATTERN
)
[
-z
$DEST
]
&&
continue
[
-z
$DEST
]
&&
continue
DEST
=
/apex/
$DEST
mkdir
-p
$DEST
mkdir
-p
$DEST
loop_setup /apex/apex_payload.img
loop_setup /apex/apex_payload.img
if
[
!
-z
$LOOPDEV
]
;
then
if
[
!
-z
$LOOPDEV
]
;
then
...
...
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