Grant User Credential Permission to an app programtaically via another Device Owner App
up vote
1
down vote
favorite
One of my apps requires the use of a User Credential, already installed into the android store.
If I try to access the certificates via using the KeyChain class, I obtain an exception:
android.security.KeyChainException:IllegalStateException: uid doesn't
have permission to access the requested alias
I want to avoid the user from having to manually "select" the user credential prompt.
Instead, I have a separate app, already set as a "device owner" to configure all of this.
Is there some API using the device owner app, where I can grant permission to the app trying to access the installed user credential?
android security android-permissions credentials device-owner
add a comment |
up vote
1
down vote
favorite
One of my apps requires the use of a User Credential, already installed into the android store.
If I try to access the certificates via using the KeyChain class, I obtain an exception:
android.security.KeyChainException:IllegalStateException: uid doesn't
have permission to access the requested alias
I want to avoid the user from having to manually "select" the user credential prompt.
Instead, I have a separate app, already set as a "device owner" to configure all of this.
Is there some API using the device owner app, where I can grant permission to the app trying to access the installed user credential?
android security android-permissions credentials device-owner
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
One of my apps requires the use of a User Credential, already installed into the android store.
If I try to access the certificates via using the KeyChain class, I obtain an exception:
android.security.KeyChainException:IllegalStateException: uid doesn't
have permission to access the requested alias
I want to avoid the user from having to manually "select" the user credential prompt.
Instead, I have a separate app, already set as a "device owner" to configure all of this.
Is there some API using the device owner app, where I can grant permission to the app trying to access the installed user credential?
android security android-permissions credentials device-owner
One of my apps requires the use of a User Credential, already installed into the android store.
If I try to access the certificates via using the KeyChain class, I obtain an exception:
android.security.KeyChainException:IllegalStateException: uid doesn't
have permission to access the requested alias
I want to avoid the user from having to manually "select" the user credential prompt.
Instead, I have a separate app, already set as a "device owner" to configure all of this.
Is there some API using the device owner app, where I can grant permission to the app trying to access the installed user credential?
android security android-permissions credentials device-owner
android security android-permissions credentials device-owner
edited Nov 19 at 21:57
asked Nov 16 at 5:05
patrickE
61
61
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53331753%2fgrant-user-credential-permission-to-an-app-programtaically-via-another-device-ow%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown