Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on android 10 - system-as-root devices, here's the log #95

Open
being-yash-t opened this issue May 26, 2020 · 4 comments
Open

Fails on android 10 - system-as-root devices, here's the log #95

being-yash-t opened this issue May 26, 2020 · 4 comments

Comments

@being-yash-t
Copy link

My device Redmi note 6 pro - tulip
Rom - Paranoid Android (caf)
Using magisk root

Failes to install

[12:42:56] ### BEGIN INSTALL
[12:42:56] Remounting /system to rw ... mount: can't find /system in /proc/mounts
[12:42:56] fail
[12:42:56] Copying busybox to /system/xbin ... cp: can't create '/system/xbin/busybox': Read-only file system
[12:42:56] fail
[12:42:56] Changing permissions for busybox ... chown: /system/xbin/busybox: No such file or directory
[12:42:56] chmod: /system/xbin/busybox: No such file or directory
[12:42:56] fail
[12:42:56] Copying ssl_helper to /system/xbin ... cp: can't create '/system/xbin/ssl_helper': Read-only file system
[12:42:56] fail
[12:42:56] Changing permissions for ssl_helper ... chown: /system/xbin/ssl_helper: No such file or directory
[12:42:56] chmod: /system/xbin/ssl_helper: No such file or directory
[12:42:56] fail
[12:42:57] Removing old applets ... done
[12:42:57] Installing new applets ... /system/bin/sh: /data/user/0/ru.meefik.busybox/files/scripts/install.sh[86]: /system/xbin/busybox: inaccessible or not found
[12:42:57] fail
[12:42:57] Installing addon.d script ... /system/bin/sh: /data/user/0/ru.meefik.busybox/files/scripts/install.sh[102]: can't create /system/addon.d/busybox-install-dir: Read-only file system
[12:42:57] chmod: /system/addon.d/busybox-install-dir: No such file or directory
[12:42:57] cp: can't create '/system/addon.d/99-busybox.sh': Read-only file system
[12:42:57] chown: /system/addon.d/99-busybox.sh: No such file or directory
[12:42:57] chmod: /system/addon.d/99-busybox.sh: No such file or directory
[12:42:57] fail
[12:42:57] ### END
@Damjan94
Copy link

Mine didn't get passed Remounting /system to rw ... mount: can't find /system in /proc/mounts

Anyway,
On my hero2lte running ice cold project(android 10) I managed to install bysybox by cloning this project, replacing this busybox mount -o rw,remount /system line in install.sh with
busybox mount -o rw,remount /dev/block/platform/155a0000.ufs/by-name/SYSTEM /
I compiled the app and ran it from android studio, installation worked.

I examined the /proc/mounts for the SYSTEM location.
hope this helps

@being-yash-t
Copy link
Author

being-yash-t commented May 28, 2020

Mine didn't get passed Remounting /system to rw ... mount: can't find /system in /proc/mounts

Anyway,
On my hero2lte running ice cold project(android 10) I managed to install bysybox by cloning this project, replacing this busybox mount -o rw,remount /system line in install.sh with
busybox mount -o rw,remount /dev/block/platform/155a0000.ufs/by-name/SYSTEM /
I compiled the app and ran it from android studio, installation worked.

I examined the /proc/mounts for the SYSTEM location.
hope this helps

That helped, thanks. I will leave this issue open as I think this should be implemented inside the app

@plsfixbusyboxforlatestandroid
Copy link

plsfixbusyboxforlatestandroid commented Jun 30, 2021

Hello, I just wanted to confirm that this fix works perfectly on Android 11 (Lineage 18.1 (2021-06-15)). Thanks to Damjan94 for whatever magic they did to fix this, and spending the time to share it.

I used AEE(APK Eplorer & Editor v.14 from F-Droid) by sunilpaulmathew to recompile the app(BusyBox 1.31.1 from F-Droid) with changes to install.sh, It works perfectly.

Quick lazy misspelled guide for whoever happens to have the same issue and does not want to deal with android studio:
open AEE (https://github.com/apk-editor/APK-Explorer-Editor)
search for BusyBox then click on it
open assets/all/scripts
then click on the 6 dots to the right of install.sh and export.
find where it was exported (by default its "AEE/ru.meefik.busybox")
edit install.sh with Damjan94's changes:

replace busybox mount -o rw,remount /system line in install.sh with
busybox mount -o rw,remount /dev/block/platform/155a0000.ufs/by-name/SYSTEM /

save the file then go back to BusyBox click the 6 dots then click replace.
navigate to the above path and click on the install.sh file you modified.
click the hammer, click save, then click "APK's" and click on BusyBox and then install.

I have no idea why Damjan94's fix works but if possible please or add an option to edit install.sh or autodetect the android version and swap to the modified script.

@superbonaci
Copy link

Use LineageOS with Magisk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants