Micronet-Ltd / ATS_A9

ATS - Telematics Service (SmarTab 8, SmartCam)
Other
0 stars 0 forks source link

"Sending non-protected broadcast" from ATS #12

Closed skrstyen-mm closed 4 years ago

skrstyen-mm commented 5 years ago

Happens when ATS was turned into a system app with sharedUserId system in manifest on OS 00.2.6.0.

Repeatedly happens when the broadcast is sent: 2019-10-22 16:03:39.141 3797-4527/system_process E/ActivityManager: Sending non-protected broadcast com.micronet.dsc.ats.io.inputData from system 8835:com.micronet.dsc.ats.tab8:io/1000 pkg com.micronet.dsc.ats.tab8 java.lang.Throwable at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:21373) at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:21884) at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:22119) at android.app.IActivityManager$Stub.onTransact$broadcastIntent$(IActivityManager.java:10175) at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:167) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3320) at android.os.Binder.execTransact(Binder.java:731)

skrstyen-mm commented 5 years ago

Tried adding to the manifest file. Android Studio says that "protected-broadcast" is an invalid element. Makes no difference on the error in the Logcat. Potential way to fix is to add those broadcasts in the OS list of protected broadcasts. Not the best way to go about this. Hopefully a better way to fix this.

skrstyen-mm commented 4 years ago

Non issue by changing ATS to not be a system app.