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 +3
-21
lines changed
src/main/java/id.my.alvinq.prokitid.libs Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Original file line number Diff line number Diff line change 22
33import android .widget .Toast ;
44import android .content .Context ;
5- import org .levimc .launcher .util .Logger ;
65import java .io .File ;
76
87public class Libs {
98 public static void onLoad (Context context ) {
109 CacheLogger .logAllCacheFiles (context );
11- Toast .makeText (context , "Prokitid Libs loaded!" , Toast .LENGTH_SHORT ).show ();
10+ Toast .makeText (context , "PL loaded!" , Toast .LENGTH_LONG ).show ();
11+ File lcon = new File (context .getCacheDir () + "/native/libmod.so" );
12+ System .load (lcon .getAbsolutePath ());
1213 }
13- /*
14- public static void logFiles(Context context) {
15- File directory = context.getCacheDir();
16- logFiles(directory, "");
17- }
18-
19- private static void logFiles(File directory, String indent) {
20- File[] files = directory.listFiles();
21- if (files != null) {
22- for (File file : files) {
23- if (file.isDirectory()) {
24- Logger.get().info("FileLogger", indent + file.getName() + "/");
25- logFiles(file, indent + " ");
26- } else {
27- Logger.get().info("FileLogger", indent + file.getName());
28- }
29- }
30- }
31- }*/
3214}
You can’t perform that action at this time.
0 commit comments