Magisk-Modules-Repo / terminal_systemizer

terminal_systemizer
317 stars 78 forks source link

Android-Q (10) sys apps in priv-app keep crashing #11

Open Blightbuster opened 4 years ago

Blightbuster commented 4 years ago

Im trying to make GPS JoyStick a sys app to use some core features but when its moved to priv-app it crashes. Moving it to system wont make it a sys app (according to the app) but in return doesnt crash it. Im running Magisk 19.4, Magisk Manager 7.3.4 and Terminal Systemizer 17.2.2 on my Pixel XL (Android-Q).

ciriousjoker commented 4 years ago

Same here.

For me it doesn't crash when setting as a system/app, but inside the app the system app option is greyed out. When I set it as system/priv-app, the app doesn't start.

logcat says it's missing some permission. Perhaps some chmod issue? I can't change anything there since it's mounted read only.

EDIT 1: Link2SD correctly detects the apk location at system/app and system/priv-app.

EDIT 2: While making the app a system app, it says: df: Unknown option m (see "df --help")

The option does indeed not exist on my device (checked using adb shell)

EDIT 3: The df error went away after flashing the Kali Nethunter module (which includes busybox), but the app still crashes.

EDIT 4: No change after I tried setting chmod to 777 in the shell script (i'm getting desperate here...)

ciriousjoker commented 4 years ago

@Blightbuster I think I fixed it (at least for me).

This is not an issue with terminal_systemizer. According to logcat, the app crashes because of a missing permission (as written above), but it's not chmod or anything. GPS Joystick uses a library called java-realm and after reading this, this and this (most important one), the issue was fixed by executing

setenforce 0

The SELinux toggle inside systemize for some reason didn't work for me.

EDIT: The solution above worked, but has to be repeated after each reboot and even then, after pressing the start button, the overlay crashes because of some missing "reportLocation" method. The solution was to not use a systemized GPS Joystick and instead use it as normal and patch the system with SmaliPatcher instead.

Alvaro-Nunes commented 4 years ago

Any solution? I am facing this problem realme 6 pro android q

Alvaro-Nunes commented 4 years ago

Estou tentando fazer do GPS JoyStick um aplicativo de sistema para usar alguns recursos básicos, mas quando ele muda para o aplicativo privado ele trava. Movê-lo para o sistema não o tornará um aplicativo sys (de acordo com o aplicativo), mas em troca não o trava. Estou executando Magisk 19.4, Magisk Manager 7.3.4 e Terminal Systemizer 17.2.2 no meu Pixel XL (Android-Q).

Any solution? I am facing this problem realme 6 pro android q

Gato-verde commented 3 years ago

Same problem, xiaomi miA1 with LinageOS 17.1 (Android 10)

chends888 commented 3 years ago

I used SmaliPatcher as well, works even better than systemizing GPS Joystick, cause it doesn't rubberbands (teleports back and forth)