mirror of
https://github.com/meowstercatel/r1-apk-patcher.git
synced 2024-12-22 23:25:20 -06:00
deleting a folder didnt work apparently
This commit is contained in:
parent
57d965a534
commit
ffad62d935
1 changed files with 8 additions and 8 deletions
16
index.js
16
index.js
|
@ -100,27 +100,27 @@ const onKeyDown = [
|
|||
decomp();
|
||||
|
||||
modifyFunc(
|
||||
`.\\${base}\\smali\\classes\\tech\\rabbit\\r1launcher\\RLApp.smali`,
|
||||
`./${base}/smali/classes/tech/rabbit/r1launcher/RLApp.smali`,
|
||||
getOSVersion
|
||||
);
|
||||
|
||||
modifyFunc(
|
||||
`.\\${base}\\smali\\classes\\tech\\rabbit\\r1launcher\\settings\\utils\\SystemControllerUtil.smali`,
|
||||
`./${base}/smali/classes/tech/rabbit/r1launcher/settings/utils/SystemControllerUtil.smali`,
|
||||
getImei
|
||||
);
|
||||
|
||||
modifyFunc(`.\\${base}\\smali\\classes\\AppConfig.smali`, getDeviceId);
|
||||
modifyFunc(`./${base}/smali/classes/AppConfig.smali`, getDeviceId);
|
||||
|
||||
modifyFunc(
|
||||
`.\\${base}\\smali\\classes\\tech\\rabbit\\r1launcher\\rabbit\\KeyEventHandler.smali`,
|
||||
`./${base}/smali/classes/tech/rabbit/r1launcher/rabbit/KeyEventHandler.smali`,
|
||||
onKeyUp
|
||||
);
|
||||
modifyFunc(
|
||||
`.\\${base}\\smali\\classes\\tech\\rabbit\\r1launcher\\rabbit\\KeyEventHandler.smali`,
|
||||
`./${base}/smali/classes/tech/rabbit/r1launcher/rabbit/KeyEventHandler.smali`,
|
||||
onKeyDown
|
||||
);
|
||||
|
||||
replaceLib(".\\libbase.so", "libbase.so");
|
||||
replaceLib("./libbase.so", "libbase.so");
|
||||
|
||||
build();
|
||||
|
||||
|
@ -129,7 +129,7 @@ fs.renameSync(
|
|||
`${decompName}_Patched.apk`
|
||||
);
|
||||
|
||||
fs.rmdirSync(`.\\${base}`);
|
||||
fs.rmdirSync(`./${base}`, { recursive: true, force: true });
|
||||
fs.rmSync(`${base}_out.apk`);
|
||||
|
||||
if (uploadToLitterBox) {
|
||||
|
@ -229,7 +229,7 @@ function modifyFunc(path, modifyWith) {
|
|||
function replaceLib(newLibLocation, oldLib) {
|
||||
fs.copyFileSync(
|
||||
newLibLocation,
|
||||
`.\\${base}\\root\\lib\\arm64-v8a\\${oldLib}`
|
||||
`./${base}/root/lib/arm64-v8a/${oldLib}`
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue