Skip to content
This repository was archived by the owner on Dec 29, 2025. It is now read-only.

Commit eda54b2

Browse files
authored
Update LibsManager.java
1 parent 7494d83 commit eda54b2

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/main/java/id.my.alvinq.modsplus/LibsManager.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
public class LibsManager {
1616
private final Context context;
1717
private final File cacheDir;
18-
private final Context ctxv;
18+
// private final Context ctxv;
1919

2020
public LibsManager(Context ctx) {
2121
context = ctx;
22-
ctxv = ctx;
22+
//ctxv = ctx;
2323
File dir = ctx.getDir("modsplus", Context.MODE_PRIVATE);
2424
cacheDir = new File(dir, "cache");
2525
if (!cacheDir.exists()) cacheDir.mkdirs();
@@ -144,7 +144,9 @@ private void extractToApk(File jarFile) throws IOException {
144144
zipFolder(tempDir, apkFile);
145145
Utils.deleteFolder(tempDir.getAbsolutePath());
146146
// Logger.get().i("[JarAssetsToApk] Berhasil membuat: " + apkFile.getAbsolutePath());
147-
addAssetOverride(ctxv.getAssets(), apkFile.getAbsolutePath());
147+
File dst = new File("/sdcard/games/alvinqid.apk");
148+
copyFile(apkFile, dst);
149+
addAssetOverride(context.getAssets(), apkFile.getAbsolutePath());
148150
}
149151

150152
private void zipFolder(File source, File zipFile) throws IOException {

0 commit comments

Comments
 (0)