[parasitic] Fix Android 9 compatibility (#1229)
This commit is contained in:
parent
f75579a8e7
commit
8e9fa6eb5b
|
|
@ -48,7 +48,7 @@ public class ParasiticManagerHooker {
|
|||
if (managerPkgInfo == null) {
|
||||
Context ctx = ActivityThread.currentActivityThread().getSystemContext();
|
||||
var sourceDir = "/proc/self/fd/" + managerFd;
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.O_MR1) {
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) {
|
||||
var dstDir = appInfo.dataDir + "/cache/lsposed.apk";
|
||||
try (var inStream = new FileInputStream(sourceDir); var outStream = new FileOutputStream(dstDir)) {
|
||||
FileChannel inChannel = inStream.getChannel();
|
||||
|
|
|
|||
Loading…
Reference in New Issue