bp.purchase breaks on some phones





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I had a working android app that was working fine and I had tested In App purchases V3 and it was Ok in external Samsung phone. It was ready to publish and all of the sudden it broke with the following error at this line:



bp.purchase(MainActivity.this, "android.test.purchased");


the error is the following:



01-03 21:43:07.492 805-1531/? E/DatabaseUtils: Writing exception to parcel
java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:15168)
at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2492)
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:688)
at android.content.ContentProvider$Transport.call(ContentProvider.java:325)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:275)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)
01-03 21:43:07.492 805-1531/? W/ActivityManager: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
01-03 21:43:07.552 4095-4326/? I/Finsky: [333] com.google.android.finsky.billing.iab.an.b(45): com.example.ashamsa.iaptest: Account from first account - [1-W58wCwpHIMWNDOrKtUcDzJ-_k]
01-03 21:43:07.572 1330-1330/? W/ChimeraUtils: Non Chimera context
01-03 21:43:07.592 1330-1347/? E/Auth: [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: <ELLIDED:-1755391382>, App: com.android.vending, Service: androidmarket
mrn: Long live credential not available.
at gzz.c(:com.google.android.gms@14799002@14.7.99 (000304-223214910):18)
at gzz.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):11)
at gzz.b(:com.google.android.gms@14799002@14.7.99 (000304-223214910))
at gyk.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):22)
at inl.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):7)
at inl.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):153)
at iml.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):2)
at imj.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):15)
at imj.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):6)
at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):33)
at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):81)
at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):254)
at dsq.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):5)
at utz.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):5)
at csb.onTransact(:com.google.android.gms@14799002@14.7.99 (000304-223214910):4)
at android.os.Binder.transact(Binder.java:361)
at dui.onTransact(:com.google.android.gms@14799002@14.7.99 (000304-223214910):3)
at android.os.Binder.transact(Binder.java:361)
at com.google.android.gms.internal.o$a$a.a(Unknown Source)
at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
at com.google.android.gsf.loginservice.GoogleLoginService$AccountAuthenticatorImpl.getAuthToken(GoogleLoginService.java:302)
at android.accounts.AbstractAccountAuthenticator$Transport.getAuthToken(AbstractAccountAuthenticator.java:196)
at android.accounts.IAccountAuthenticator$Stub.onTransact(IAccountAuthenticator.java:113)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)


it took me more than couple of hours that I guessed something might be wrong with the phone, so I changed the external phone and it works like before with no issue whatsoever.
So I am puzzled what can be changed in my testing phone that has caused the above mentioned error.
I built a very simple app to test in app purchase and again this basic app works in one and crashes on the other. I should mention that both phones were working absolutely fine before this happened out of the blue,



I appreciate if someone can shed some light on this,
Thanks,










share|improve this question























  • stackoverflow.com/questions/45845912/…

    – MarsAtomic
    Jan 4 at 5:31











  • thanks, I don't have userID in my app but this link directed me to the bellow answer, where I guessed it that should have something to do with the user.

    – Nabat Farsi
    Jan 5 at 6:36


















0















I had a working android app that was working fine and I had tested In App purchases V3 and it was Ok in external Samsung phone. It was ready to publish and all of the sudden it broke with the following error at this line:



bp.purchase(MainActivity.this, "android.test.purchased");


the error is the following:



01-03 21:43:07.492 805-1531/? E/DatabaseUtils: Writing exception to parcel
java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:15168)
at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2492)
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:688)
at android.content.ContentProvider$Transport.call(ContentProvider.java:325)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:275)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)
01-03 21:43:07.492 805-1531/? W/ActivityManager: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
01-03 21:43:07.552 4095-4326/? I/Finsky: [333] com.google.android.finsky.billing.iab.an.b(45): com.example.ashamsa.iaptest: Account from first account - [1-W58wCwpHIMWNDOrKtUcDzJ-_k]
01-03 21:43:07.572 1330-1330/? W/ChimeraUtils: Non Chimera context
01-03 21:43:07.592 1330-1347/? E/Auth: [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: <ELLIDED:-1755391382>, App: com.android.vending, Service: androidmarket
mrn: Long live credential not available.
at gzz.c(:com.google.android.gms@14799002@14.7.99 (000304-223214910):18)
at gzz.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):11)
at gzz.b(:com.google.android.gms@14799002@14.7.99 (000304-223214910))
at gyk.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):22)
at inl.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):7)
at inl.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):153)
at iml.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):2)
at imj.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):15)
at imj.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):6)
at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):33)
at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):81)
at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):254)
at dsq.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):5)
at utz.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):5)
at csb.onTransact(:com.google.android.gms@14799002@14.7.99 (000304-223214910):4)
at android.os.Binder.transact(Binder.java:361)
at dui.onTransact(:com.google.android.gms@14799002@14.7.99 (000304-223214910):3)
at android.os.Binder.transact(Binder.java:361)
at com.google.android.gms.internal.o$a$a.a(Unknown Source)
at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
at com.google.android.gsf.loginservice.GoogleLoginService$AccountAuthenticatorImpl.getAuthToken(GoogleLoginService.java:302)
at android.accounts.AbstractAccountAuthenticator$Transport.getAuthToken(AbstractAccountAuthenticator.java:196)
at android.accounts.IAccountAuthenticator$Stub.onTransact(IAccountAuthenticator.java:113)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)


it took me more than couple of hours that I guessed something might be wrong with the phone, so I changed the external phone and it works like before with no issue whatsoever.
So I am puzzled what can be changed in my testing phone that has caused the above mentioned error.
I built a very simple app to test in app purchase and again this basic app works in one and crashes on the other. I should mention that both phones were working absolutely fine before this happened out of the blue,



I appreciate if someone can shed some light on this,
Thanks,










share|improve this question























  • stackoverflow.com/questions/45845912/…

    – MarsAtomic
    Jan 4 at 5:31











  • thanks, I don't have userID in my app but this link directed me to the bellow answer, where I guessed it that should have something to do with the user.

    – Nabat Farsi
    Jan 5 at 6:36














0












0








0








I had a working android app that was working fine and I had tested In App purchases V3 and it was Ok in external Samsung phone. It was ready to publish and all of the sudden it broke with the following error at this line:



bp.purchase(MainActivity.this, "android.test.purchased");


the error is the following:



01-03 21:43:07.492 805-1531/? E/DatabaseUtils: Writing exception to parcel
java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:15168)
at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2492)
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:688)
at android.content.ContentProvider$Transport.call(ContentProvider.java:325)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:275)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)
01-03 21:43:07.492 805-1531/? W/ActivityManager: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
01-03 21:43:07.552 4095-4326/? I/Finsky: [333] com.google.android.finsky.billing.iab.an.b(45): com.example.ashamsa.iaptest: Account from first account - [1-W58wCwpHIMWNDOrKtUcDzJ-_k]
01-03 21:43:07.572 1330-1330/? W/ChimeraUtils: Non Chimera context
01-03 21:43:07.592 1330-1347/? E/Auth: [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: <ELLIDED:-1755391382>, App: com.android.vending, Service: androidmarket
mrn: Long live credential not available.
at gzz.c(:com.google.android.gms@14799002@14.7.99 (000304-223214910):18)
at gzz.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):11)
at gzz.b(:com.google.android.gms@14799002@14.7.99 (000304-223214910))
at gyk.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):22)
at inl.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):7)
at inl.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):153)
at iml.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):2)
at imj.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):15)
at imj.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):6)
at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):33)
at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):81)
at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):254)
at dsq.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):5)
at utz.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):5)
at csb.onTransact(:com.google.android.gms@14799002@14.7.99 (000304-223214910):4)
at android.os.Binder.transact(Binder.java:361)
at dui.onTransact(:com.google.android.gms@14799002@14.7.99 (000304-223214910):3)
at android.os.Binder.transact(Binder.java:361)
at com.google.android.gms.internal.o$a$a.a(Unknown Source)
at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
at com.google.android.gsf.loginservice.GoogleLoginService$AccountAuthenticatorImpl.getAuthToken(GoogleLoginService.java:302)
at android.accounts.AbstractAccountAuthenticator$Transport.getAuthToken(AbstractAccountAuthenticator.java:196)
at android.accounts.IAccountAuthenticator$Stub.onTransact(IAccountAuthenticator.java:113)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)


it took me more than couple of hours that I guessed something might be wrong with the phone, so I changed the external phone and it works like before with no issue whatsoever.
So I am puzzled what can be changed in my testing phone that has caused the above mentioned error.
I built a very simple app to test in app purchase and again this basic app works in one and crashes on the other. I should mention that both phones were working absolutely fine before this happened out of the blue,



I appreciate if someone can shed some light on this,
Thanks,










share|improve this question














I had a working android app that was working fine and I had tested In App purchases V3 and it was Ok in external Samsung phone. It was ready to publish and all of the sudden it broke with the following error at this line:



bp.purchase(MainActivity.this, "android.test.purchased");


the error is the following:



01-03 21:43:07.492 805-1531/? E/DatabaseUtils: Writing exception to parcel
java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:15168)
at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2492)
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:688)
at android.content.ContentProvider$Transport.call(ContentProvider.java:325)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:275)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)
01-03 21:43:07.492 805-1531/? W/ActivityManager: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
01-03 21:43:07.552 4095-4326/? I/Finsky: [333] com.google.android.finsky.billing.iab.an.b(45): com.example.ashamsa.iaptest: Account from first account - [1-W58wCwpHIMWNDOrKtUcDzJ-_k]
01-03 21:43:07.572 1330-1330/? W/ChimeraUtils: Non Chimera context
01-03 21:43:07.592 1330-1347/? E/Auth: [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: <ELLIDED:-1755391382>, App: com.android.vending, Service: androidmarket
mrn: Long live credential not available.
at gzz.c(:com.google.android.gms@14799002@14.7.99 (000304-223214910):18)
at gzz.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):11)
at gzz.b(:com.google.android.gms@14799002@14.7.99 (000304-223214910))
at gyk.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):22)
at inl.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):7)
at inl.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):153)
at iml.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):2)
at imj.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):15)
at imj.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):6)
at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):33)
at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):81)
at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):254)
at dsq.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):5)
at utz.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):5)
at csb.onTransact(:com.google.android.gms@14799002@14.7.99 (000304-223214910):4)
at android.os.Binder.transact(Binder.java:361)
at dui.onTransact(:com.google.android.gms@14799002@14.7.99 (000304-223214910):3)
at android.os.Binder.transact(Binder.java:361)
at com.google.android.gms.internal.o$a$a.a(Unknown Source)
at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
at com.google.android.gsf.loginservice.GoogleLoginService$AccountAuthenticatorImpl.getAuthToken(GoogleLoginService.java:302)
at android.accounts.AbstractAccountAuthenticator$Transport.getAuthToken(AbstractAccountAuthenticator.java:196)
at android.accounts.IAccountAuthenticator$Stub.onTransact(IAccountAuthenticator.java:113)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)


it took me more than couple of hours that I guessed something might be wrong with the phone, so I changed the external phone and it works like before with no issue whatsoever.
So I am puzzled what can be changed in my testing phone that has caused the above mentioned error.
I built a very simple app to test in app purchase and again this basic app works in one and crashes on the other. I should mention that both phones were working absolutely fine before this happened out of the blue,



I appreciate if someone can shed some light on this,
Thanks,







java android sdk






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 4 at 5:07









Nabat FarsiNabat Farsi

4617




4617













  • stackoverflow.com/questions/45845912/…

    – MarsAtomic
    Jan 4 at 5:31











  • thanks, I don't have userID in my app but this link directed me to the bellow answer, where I guessed it that should have something to do with the user.

    – Nabat Farsi
    Jan 5 at 6:36



















  • stackoverflow.com/questions/45845912/…

    – MarsAtomic
    Jan 4 at 5:31











  • thanks, I don't have userID in my app but this link directed me to the bellow answer, where I guessed it that should have something to do with the user.

    – Nabat Farsi
    Jan 5 at 6:36

















stackoverflow.com/questions/45845912/…

– MarsAtomic
Jan 4 at 5:31





stackoverflow.com/questions/45845912/…

– MarsAtomic
Jan 4 at 5:31













thanks, I don't have userID in my app but this link directed me to the bellow answer, where I guessed it that should have something to do with the user.

– Nabat Farsi
Jan 5 at 6:36





thanks, I don't have userID in my app but this link directed me to the bellow answer, where I guessed it that should have something to do with the user.

– Nabat Farsi
Jan 5 at 6:36












1 Answer
1






active

oldest

votes


















0














So here is what is happened, though I am not sure how the app should handle it.



In my phone>settings>accounts>google I had 3 registered accounts that two of the were out of sync. I removed them and it starts working now.






share|improve this answer
























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54033366%2fbp-purchase-breaks-on-some-phones%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    So here is what is happened, though I am not sure how the app should handle it.



    In my phone>settings>accounts>google I had 3 registered accounts that two of the were out of sync. I removed them and it starts working now.






    share|improve this answer




























      0














      So here is what is happened, though I am not sure how the app should handle it.



      In my phone>settings>accounts>google I had 3 registered accounts that two of the were out of sync. I removed them and it starts working now.






      share|improve this answer


























        0












        0








        0







        So here is what is happened, though I am not sure how the app should handle it.



        In my phone>settings>accounts>google I had 3 registered accounts that two of the were out of sync. I removed them and it starts working now.






        share|improve this answer













        So here is what is happened, though I am not sure how the app should handle it.



        In my phone>settings>accounts>google I had 3 registered accounts that two of the were out of sync. I removed them and it starts working now.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 5 at 6:06









        Nabat FarsiNabat Farsi

        4617




        4617
































            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54033366%2fbp-purchase-breaks-on-some-phones%23new-answer', 'question_page');
            }
            );

            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







            Popular posts from this blog

            Monofisismo

            Angular Downloading a file using contenturl with Basic Authentication

            Olmecas