paho.mqtt.android icon indicating copy to clipboard operation
paho.mqtt.android copied to clipboard

Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1357 android.content.ContextWrapper.startService:613 org.eclipse.paho.android.service.MqttAndroidClient.connect:414

Open squirrelhuan opened this issue 5 years ago • 3 comments

  • [ ] Bug exists 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.0'
  • [ ] Bug exists 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'

Android API Version Bug Seen on: compileSdkVersion 28

Description of Bug:

android:sharedUserId="android.uid.system"

Console Log output (if available):

Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1357 android.content.ContextWrapper.startService:613 org.eclipse.paho.android.service.MqttAndroidClient.connect:414

squirrelhuan avatar Jan 12 '20 11:01 squirrelhuan

I have the same issue when i try to run client as system service in android:

"2021-01-17 17:32:54.235 2671-4056/system_process W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1649 org.eclipse.paho.android.service.MqttAndroidClient.connect:425 com.android.server.MqttClientService.init:196 android.app.IMqttClientServiceManager$Stub.onTransact:124 android.os.Binder.execTransactInternal:1021 2021-01-17 17:32:54.235 2671-4056/system_process W/ActivityManager: Unable to start service Intent { cmp=android/org.eclipse.paho.android.service.MqttService } U=0: not found"

necoicould avatar Jan 17 '21 16:01 necoicould

How to resolve the problem?

libinll avatar Jun 15 '21 06:06 libinll

add <service android:name="org.eclipse.paho.android.service.MqttService"/> on your AndroidManifest.xml,it can slove it!

xxm-sz avatar Nov 14 '23 07:11 xxm-sz