PrincessLeiha
PrincessLeiha

Reputation: 3174

errors in android.permission.INJECT_EVENTS

I have designed 2 applications,

1) Which is a service and is running in the background.

2) Which runs in the foreground, which just has an EditText. now, i want to insert some values into EditText using the service. In logs i found, the error not allowed to start intent without permissions .INJECT_EVENTS

I have put the permissions in the manifest file of both the apps, it's still giving me a problem.

Upvotes: 1

Views: 660

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006984

That is because ordinary Android SDK applications cannot hold the INJECT_EVENTS permission. That can only be held by applications signed by the same signing key as was used to sign the firmware.

Moreover, this is a really strange way to have two applications communicate. Android has a wide range of IPC options -- please use one. Or, do not make them be two separate applications.

Upvotes: 1

Related Questions