[Android Q&A, Help & Troubleshooting] dickdickerson:
Hey guys,

last week I disabled some Apps on my rooted OnePlus 5. Today in the morning, I needed to reboot the phone and then it happened. The phone hangs in a boot-loop. While booting, the red cycling OnePlus logo appears. After that I see very short the keys to type my code for the SIM card. Then, again the red cycling OnePlus logo.

Ok, ****... whats happens?

I think I disabled some wrong app. But which? I booted into the TWRP Recovery, start adb shell and have a look.

My thought was to enable all Apps with "pm" (PackageManager), but it isn't working in the TWRP Recovery Terminal:

CANNOT LINK EXECUTABLE "app_process": cannot locate symbol "_ZN7android14IPCThreadState11setBlockUidEib" referenced by "/system/lib64/libandroid_runtime.so"...
Aborted

I searched for some options to enable or disable an app. But I found only this from user arana1: https://xdaforums.com/showpost.php?p=46287590&postcount=15

I also found a Java exception in /data/system/dropbox. There are many boot failure files:

/data/system/dropbox # ls -al
..
..
-rw------- 1 system system 1843 Dec 6 18:16 system_server_wtf@2017-12-06-19_16_09_077.txt
-rw------- 1 system system 1843 Dec 6 18:16 system_server_wtf@2017-12-06-19_16_19_819.txt
-rw------- 1 system system 1843 Dec 6 18:16 system_server_wtf@2017-12-06-19_16_30_883.txt
-rw------- 1 system system 1843 Dec 6 18:16 system_server_wtf@2017-12-06-19_16_41_800.txt
-rw------- 1 system system 1843 Dec 6 18:16 system_server_wtf@2017-12-06-19_16_52_650.txt
-rw------- 1 system system 1843 Dec 6 18:17 system_server_wtf@2017-12-06-19_17_03_520.txt

The content of the files are:

Process: system_server
Subject: SystemServer
Build: OnePlus/OnePlus5/OnePlus5:7.1.1/NMF26X/10171617:user/release-keys

android.util.Log$TerribleFailure: BOOT FAILURE Notifying Location Service running
at android.util.Log.wtf(Log.java:295)
at android.util.Slog.wtf(Slog.java:116)
at com.android.server.SystemServer.reportWtf(SystemServer.java:374)
at com.android.server.SystemServer.-wrap0(SystemServer.java)
at com.android.server.SystemServer$2.run(SystemServer.java:1524)
at com.android.server.am.ActivityManagerService.systemReady(ActivityManagerService.java:14993)
at com.android.server.SystemServer.startOtherServices(SystemServer.java:1446)
at com.android.server.SystemServer.run(SystemServer.java:353)
at com.android.server.SystemServer.main(SystemServer.java:238)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.IllegalStateException: Unable to find a fused location provider that is in the system partition with version 0 and signed with the platform certificate. Such a package is
needed to provide a default fused location provider in the event that no other fused location provider has been installed or is currently available. For example, coreOnly boot mode when decry
pting the data partition. The fallback must also be marked coreApp="true" in the manifest
at com.android.server.LocationManagerService.ensureFallbackFusedProviderPresentLocked(LocationManagerService.java:572)
at com.android.server.LocationManagerService.loadProvidersLocked(LocationManagerService.java:620)
at com.android.server.LocationManagerService.systemRunning(LocationManagerService.java:358)
at com.android.server.SystemServer$2.run(SystemServer.java:1522)
... 7 more

There you can see that android? can't find a "fused location provider". I'm to 90% sure that I disabled this app.

I found this, but I don't know how to use this or where it writes something:

https://developer.android.com/refer...ionEnabledSetting(java.lang.String, int, int)

Do you guys know how to enable a app in the /data partition without the package manager "pm"? Maybe editing some files?