mirror of
https://github.com/meowstercatel/r1-apk-patcher.git
synced 2024-12-23 07:35:18 -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();
|
decomp();
|
||||||
|
|
||||||
modifyFunc(
|
modifyFunc(
|
||||||
`.\\${base}\\smali\\classes\\tech\\rabbit\\r1launcher\\RLApp.smali`,
|
`./${base}/smali/classes/tech/rabbit/r1launcher/RLApp.smali`,
|
||||||
getOSVersion
|
getOSVersion
|
||||||
);
|
);
|
||||||
|
|
||||||
modifyFunc(
|
modifyFunc(
|
||||||
`.\\${base}\\smali\\classes\\tech\\rabbit\\r1launcher\\settings\\utils\\SystemControllerUtil.smali`,
|
`./${base}/smali/classes/tech/rabbit/r1launcher/settings/utils/SystemControllerUtil.smali`,
|
||||||
getImei
|
getImei
|
||||||
);
|
);
|
||||||
|
|
||||||
modifyFunc(`.\\${base}\\smali\\classes\\AppConfig.smali`, getDeviceId);
|
modifyFunc(`./${base}/smali/classes/AppConfig.smali`, getDeviceId);
|
||||||
|
|
||||||
modifyFunc(
|
modifyFunc(
|
||||||
`.\\${base}\\smali\\classes\\tech\\rabbit\\r1launcher\\rabbit\\KeyEventHandler.smali`,
|
`./${base}/smali/classes/tech/rabbit/r1launcher/rabbit/KeyEventHandler.smali`,
|
||||||
onKeyUp
|
onKeyUp
|
||||||
);
|
);
|
||||||
modifyFunc(
|
modifyFunc(
|
||||||
`.\\${base}\\smali\\classes\\tech\\rabbit\\r1launcher\\rabbit\\KeyEventHandler.smali`,
|
`./${base}/smali/classes/tech/rabbit/r1launcher/rabbit/KeyEventHandler.smali`,
|
||||||
onKeyDown
|
onKeyDown
|
||||||
);
|
);
|
||||||
|
|
||||||
replaceLib(".\\libbase.so", "libbase.so");
|
replaceLib("./libbase.so", "libbase.so");
|
||||||
|
|
||||||
build();
|
build();
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ fs.renameSync(
|
||||||
`${decompName}_Patched.apk`
|
`${decompName}_Patched.apk`
|
||||||
);
|
);
|
||||||
|
|
||||||
fs.rmdirSync(`.\\${base}`);
|
fs.rmdirSync(`./${base}`, { recursive: true, force: true });
|
||||||
fs.rmSync(`${base}_out.apk`);
|
fs.rmSync(`${base}_out.apk`);
|
||||||
|
|
||||||
if (uploadToLitterBox) {
|
if (uploadToLitterBox) {
|
||||||
|
@ -229,7 +229,7 @@ function modifyFunc(path, modifyWith) {
|
||||||
function replaceLib(newLibLocation, oldLib) {
|
function replaceLib(newLibLocation, oldLib) {
|
||||||
fs.copyFileSync(
|
fs.copyFileSync(
|
||||||
newLibLocation,
|
newLibLocation,
|
||||||
`.\\${base}\\root\\lib\\arm64-v8a\\${oldLib}`
|
`./${base}/root/lib/arm64-v8a/${oldLib}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue