SystemAppMover icon indicating copy to clipboard operation
SystemAppMover copied to clipboard

Doesn't work on Lineage OS 14.1 (Android 7.1.1)

Open CarbonFixer opened this issue 8 years ago • 18 comments

When trying to move an app, there is an error: "could not remount /system" logcat: 01-05 21:35:55.982 23781 23781 W .systemappmover: type=1400 audit(0.0:149): avc: denied { read } for name="RootToolsMounts" dev="dm-0" ino=654083 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 (sorry - accidentally clicked enter on the original report with only the title)

CarbonFixer avatar Jan 05 '17 19:01 CarbonFixer

I just assume these system app moving apps will never work right. Wish it would just be removed from f-droid.

jawz101 avatar Apr 05 '17 04:04 jawz101

The problem is RootTools library (https://github.com/Stericson/RootTools/blob/master/src/main/java/com/stericson/RootTools/internal/Remounter.java#L119) generates this command:

mount -o remount,rw /system

While the newest lineageOS needs this command:

mount -o rw,remount /system

I hope someone fill fix this since the problem is located

derlaft avatar Apr 19 '17 12:04 derlaft

Any alternative for LOS 14?

IvanTurgenev avatar Apr 28 '17 21:04 IvanTurgenev

I am not sure if it works, but try OpenAPK

derlaft avatar Apr 28 '17 21:04 derlaft

OpenApk doesnt have that function could be possibly easily implemented

IvanTurgenev avatar May 15 '17 17:05 IvanTurgenev

Manually remounting /system rw before running the app isn't working either :(

xatr0z avatar May 20 '17 09:05 xatr0z

There is a manual method it works but its a pain in the ass

IvanTurgenev avatar May 27 '17 18:05 IvanTurgenev

Yalp Store (available on f-droid) does it.

whtv avatar Jun 25 '17 11:06 whtv

Yalp works alright. Some apps seem to disappear after moving them from system.

Since RootTools hasn't been changed, I suggest making a patch that doesn't try to mount/remount system if it is already mounted as RW. I might try to do it myself, but not sure it's within my capabilities.

AntumDeluge avatar Apr 30 '19 05:04 AntumDeluge

@derlaft Have you also tried on Android Q ? For some reason it fails to convert apps to be system apps on my case. Can you please share your solutions for converting to system app and back to user app? Please?

AndroidDeveloperLB avatar Aug 09 '19 12:08 AndroidDeveloperLB

@IvanTurgenev

There is a manual method it works but its a pain in the ass

What is the method exactly?

timaschew avatar Aug 12 '19 19:08 timaschew

@timaschew I'm guessing that @IvanTurgenev is referring to manually moving the apk packages to the system directory with a file manager or via command line.

AntumDeluge avatar Aug 12 '19 21:08 AntumDeluge

@AntumDeluge Did you succeed doing it? Have you also tried on Q ?

AndroidDeveloperLB avatar Aug 12 '19 21:08 AndroidDeveloperLB

@AndroidDeveloperLB Succeeded at creating the patch? No, I haven't even tried it yet. Have had other things I'm working on at the moment.

AntumDeluge avatar Aug 12 '19 23:08 AntumDeluge

@AntumDeluge No. I mean if you succeeded doing it manually. Also, if you know how to convert an app to be a system app and back even on Android Q.

AndroidDeveloperLB avatar Aug 13 '19 05:08 AndroidDeveloperLB

All you have to do is move the directory that contains your .apk to the /system/app or the /system/priv-app directory, then restart your device. So, for example, let's say I have an app on my device. Its .apk is located in /data/app/com.foo.bar. So in a terminal with root permissions I would just do the following:

# mv /data/app/com.foo.app /system/app

Then I would restart my device. I believe it can be done in an adb shell as well.

If your file manager supports getting root permissions (Amaze is one), you can just move it with that.

One small caveat to making your apps system apps is that updates are not installed to the /system directory automatically. It's still considered a system app, it's just that the update .apk is stored in the /data/app directory (or wherever the standard installation directory for your device is). So, if you don't want the update .apk taking up extra space on your device, you have to move it again, replacing the old .apk.

I don't know anything about Android Q though.

AntumDeluge avatar Aug 13 '19 06:08 AntumDeluge