Blogger Jateng

Howto disable/Enable app from filesystem (twrp)

I disabled some app at my old android device with “pm disable <app>” and searched for modified files in the last one minute:

Code:
# find /system -mmin -1

I found this file:

Code:
/data/system/users/0/package-restrictions.xml

Search for the app “com.android.location.fused” in the file and found this line:

Code:
<pkg name="com.android.location.fused" ceDataInode="2101300" enabled="3" enabledCaller="shell:0" />

Deleted the enabled and enabledCaller attribute:

Code:
<pkg name="com.android.location.fused" ceDataInode="2101300" />

Saved the file and successfully rebooted the phone

source

credit to dickdickerson