[Galaxy S III Original Android Development] curiousrom:
MTP Host as stopped - Crashing Bug Workaround Fix S3 LineageOS

I don't know why this MTP Host as stopped crashing bug when using the stock File manager or uninstalling an app on S3 i9300 or S2 i9100 running LineageOS 14.1 is not mentioned in the F.A.Q. of the post #1 of this thread as so many users have reported it here and bug report BUGBASH-254 "MTP host application has stopped working" created on 2017-03-11 remains unresolved @ the present.

So many new LineageOS for S3 users are perplexed by it & wasting time trying to fix it.

The MTP Host service is in use when connecting USB devices (USB hardware peripherals) to the i9300 via a OTG cable enabling the phone to be a USB host. Like connecting a USB stick, digital camera, etc to the S3. More info for geeks: USB Host | Android Developers and android.mtp | Android Developers

.

So while there is no known fix @ the present there is an easy workaround to stop those annoying MTP Host as stopped popup messages:

You can tap on Close app or Mute until device restarts but then the popup will come back after each reboot.

The reversible workaround that will survive reboots & LineageOS updates: Settings > Apps > 3 dots > Show system > MTP Host & tap Disable. Disregard the warning: If you disable this app, other apps may no longer function as intended and tap DISABLE APP.

There is no side effects whatsoever when connecting the S3 i9300 to a computer via USB cable using MTP transfer, PTP or ADB (Android Debug Bridge) or using any app with the MTP Host disabled.

Just enable MTP Host again if using an OTG cable to connect a USB device when needed.

***

For "fun" I enabled MTP Host then ran the free app Logcat Extreme or see it's XDA thread > + > Settings > Priority level > Errors then Clear Log & Record then opened the stock File browser to get the MTP Host as stopped error then back to Logcat Extreme > Pause & Save/Send and these are the errors recorded (Process: com.android.mtp):

02-18 14:04:28.700 1958 2010 E vold : Failed to readlink for /proc/1/ns/mnt

02-18 14:04:28.712 18165 18165 E AndroidRuntime: FATAL EXCEPTION: main

02-18 14:04:28.712 18165 18165 E AndroidRuntime: Process: com.android.mtp, PID: 18165

02-18 14:04:28.712 18165 18165 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider com.android.mtp.MtpDocumentsProvider: java.lang.IllegalStateException: command '10 appfuse mount 10010 18165 MtpDocumentsProvider' failed with '400 10 Command failed'

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.app.ActivityThread.installProvider(ActivityThread.java:5923)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.app.ActivityThread.installContentProviders(ActivityThread.java:5490)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5429)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.app.ActivityThread.-wrap2(ActivityThread.java)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1564)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:102)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:154)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6186)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

02-18 14:04:28.712 18165 18165 E AndroidRuntime: Caused by: java.lang.IllegalStateException: command '10 appfuse mount 10010 18165 MtpDocumentsProvider' failed with '400 10 Command failed'

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1692)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1637)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.os.storage.IMountService$Stub$Proxy.mountAppFuse(IMountService.java:1386)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.os.storage.StorageManager.mountAppFuse(StorageManager.java:1294)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at com.android.mtp.AppFuse.mount(AppFuse.java:69)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at com.android.mtp.MtpDocumentsProvider.onCreate(MtpDocumentsProvider.java:136)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.content.ContentProvider.attachInfo(ContentProvider.java:1751)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.content.ContentProvider.attachInfo(ContentProvider.java:1726)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.provider.DocumentsProvider.attachInfo(DocumentsProvider.java:177)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	at android.app.ActivityThread.installProvider(ActivityThread.java:5920)

02-18 14:04:28.712 18165 18165 E AndroidRuntime:	... 10 more

02-18 14:04:33.351 18125 18141 E ActivityThread: Failed to find provider info for com.android.mtp.documents

02-18 14:04:33.918 1958 2010 E vold : Failed to readlink for /proc/1/ns/mnt

02-18 14:04:33.922 18188 18188 E AndroidRuntime: FATAL EXCEPTION: main

02-18 14:04:33.922 18188 18188 E AndroidRuntime: Process: com.android.mtp, PID: 18188

02-18 14:04:33.922 18188 18188 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider com.android.mtp.MtpDocumentsProvider: java.lang.IllegalStateException: command '11 appfuse mount 10010 18188 MtpDocumentsProvider' failed with '400 11 Command failed'

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.app.ActivityThread.installProvider(ActivityThread.java:5923)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.app.ActivityThread.installContentProviders(ActivityThread.java:5490)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5429)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.app.ActivityThread.-wrap2(ActivityThread.java)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1564)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:102)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:154)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6186)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

02-18 14:04:33.922 18188 18188 E AndroidRuntime: Caused by: java.lang.IllegalStateException: command '11 appfuse mount 10010 18188 MtpDocumentsProvider' failed with '400 11 Command failed'

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1692)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1637)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.os.storage.IMountService$Stub$Proxy.mountAppFuse(IMountService.java:1386)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.os.storage.StorageManager.mountAppFuse(StorageManager.java:1294)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at com.android.mtp.AppFuse.mount(AppFuse.java:69)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at com.android.mtp.MtpDocumentsProvider.onCreate(MtpDocumentsProvider.java:136)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.content.ContentProvider.attachInfo(ContentProvider.java:1751)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.content.ContentProvider.attachInfo(ContentProvider.java:1726)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.provider.DocumentsProvider.attachInfo(DocumentsProvider.java:177)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	at android.app.ActivityThread.installProvider(ActivityThread.java:5920)

02-18 14:04:33.922 18188 18188 E AndroidRuntime:	... 10 more

*****

Camera Black Screen

Thanks :good: for reporting back about how you fixed your black screen camera problem as it may help other S3 users who had their phone repaired & rear camera replaced with a different model.

"I have just to test "WIFI crash and reboot" problem, can't change from DHCP to static IP..." - That's not normal. Check S3 Lineage Wifi Network Reconnecting Bug Workaround and see if it works for you & note that you need to actually be connected to a Wifi network to have that option enabled.

That is an other LOS 14.1 for S3 i9300 known bug workaround that should be added to the F.A.Q. of the post #1 Señor Lineage developer & OP [MENTION=5405215]forkbomb444[/MENTION] even if it applies to only a few S3 LineageOS 14.1 users and only for some Wi-Fi networks.

***