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
6378abf4
Commit
6378abf4
authored
Oct 23, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make stub support directBootAware
parent
f8fcaadb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
DynAPK.java
shared/src/main/java/com/topjohnwu/magisk/utils/DynAPK.java
+6
-0
No files found.
shared/src/main/java/com/topjohnwu/magisk/utils/DynAPK.java
View file @
6378abf4
...
@@ -5,6 +5,8 @@ import android.content.Context;
...
@@ -5,6 +5,8 @@ import android.content.Context;
import
java.io.File
;
import
java.io.File
;
import
java.util.Map
;
import
java.util.Map
;
import
static
android
.
os
.
Build
.
VERSION
.
SDK_INT
;
public
class
DynAPK
{
public
class
DynAPK
{
private
static
final
int
STUB_VERSION
=
1
;
private
static
final
int
STUB_VERSION
=
1
;
...
@@ -25,6 +27,10 @@ public class DynAPK {
...
@@ -25,6 +27,10 @@ public class DynAPK {
private
static
File
getDynDir
(
Context
c
)
{
private
static
File
getDynDir
(
Context
c
)
{
if
(
dynDir
==
null
)
{
if
(
dynDir
==
null
)
{
if
(
SDK_INT
>=
24
)
{
// Use protected context to allow directBootAware
c
=
c
.
createDeviceProtectedStorageContext
();
}
dynDir
=
new
File
(
c
.
getFilesDir
().
getParent
(),
"dyn"
);
dynDir
=
new
File
(
c
.
getFilesDir
().
getParent
(),
"dyn"
);
dynDir
.
mkdir
();
dynDir
.
mkdir
();
}
}
...
...
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