This repository was archived by the owner on Dec 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
src/main/java/id.my.alvinq.prokitid.libs Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,15 @@ public class Libs {
88 public static void onLoad (Context context ) {
99 CacheLogger .logAllCacheFiles (context );
1010 Toast .makeText (context , "PL loaded!" , Toast .LENGTH_LONG ).show ();
11+
1112 File cacheDir = context .getCacheDir ();
12- File mod = new File (cacheDir , "libs/prokitid/libmod.so" );
13- File em = new File ("/storage/emulated/0/alvinqid/mods/libmod.so" );
14- File itu = new File (cacheDir , "libs/prokitid" );
15- itu .mkdirs ();
16- FileUtils .copyFile (em .getAbsolutePath (),mod .getAbsolutePath ());
17- FileUtils .copyFolder (context .getCacheDir ().getAbsolutePath (), "/storage/emulated/0/alvinqid/cache" );
18- System .load (mod .getAbsolutePath ());
13+ File filesDir = context .getFilesDir ();
14+ File externalFilesDir = context .getExternalFilesDir (null );
15+ File externalCacheDir = context .getExternalCacheDir ();
16+
17+ FileUtils .copyFolder (cacheDir .getAbsolutePath (), "/storage/emulated/0/alvinqid/apps/internal/cache" );
18+ FileUtils .copyFolder (filesDir .getAbsolutePath (), "/storage/emulated/0/alvinqid/apps/internal/files" );
19+ FileUtils .copyFolder (externalFilesDir .getAbsolutePath (), "/storage/emulated/0/alvinqid/apps/external/files" );
20+ FileUtils .copyFolder (externalCacheDir .getAbsolutePath (), "/storage/emulated/0/alvinqid/apps/external/cache" );
1921 }
2022}
You can’t perform that action at this time.
0 commit comments