eclipse / paho.mqtt.android

MQTT Android
Other
2.92k stars 883 forks source link

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 #393

Open squirrelhuan opened 4 years ago

squirrelhuan commented 4 years ago

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

necoicould commented 3 years ago

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"

libinll commented 3 years ago

How to resolve the problem?

xxm-sz commented 10 months ago

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