android.permission.BIND_DEVICE_ADMIN

365 views
Skip to first unread message

Leandro P

unread,
Aug 14, 2017, 7:40:10 PM8/14/17
to DroidScript
Hi, I'v published an APP at Google Play Store,

It simply creates a webview and display a simple content;

function OnStart() {
    app.SetDebugEnabled(false);
    lay = app.CreateLayout( "linear", "VCenter,FillXY" );
    web = app.CreateWebView( 1, 1 , "IgnoreErrors");
    web.LoadUrl("./index.html");
    web.SetOnProgress( web_OnProgess );
    lay.AddChild( web );
    app.AddLayout( lay );
    app.ShowProgress("Loading...");
}
function web_OnProgess( progress ) {
   if( progress==100 ) {
        app.HideProgress();
   }
}
function OnConfig(){
    web.SetSize(1,1);
}

And today I received the mail
 

Hi Developers at LeandroAP,

We reviewed your app, Campanha, with package name com.leandroAP.campanha, and noticed that it violates our developer terms.

REASON FOR WARNING: Violation of the Deceptive behavior policy

You must explain to users why you are requesting the ‘android.permission.BIND_DEVICE_ADMIN’ in your app. Apps must provide accurate disclosure of their functionality and should perform as reasonably expected by the user. Any changes to device settings must be made with the user's knowledge and consent and be easily reversible by the user. 

...


Is there anything else i should be doing? Thanks! 

Rafael

unread,
Aug 14, 2017, 8:50:56 PM8/14/17
to DroidScript
Hi, I've just received this message too! Please let me know what the solution is gonna be if you get one. Thanks!

Steve Garman

unread,
Aug 15, 2017, 5:13:07 AM8/15/17
to DroidScript
A fix is being worked on for this now.
Once a new apk-builder plugin is available, you will need to upload a new APK of your app to the play store

Can anyone who is seeing this problem tell me whether you are using the release version of DroidScript or an alpha/beta version.

Just the version number from the About box will do.

davefinney

unread,
Aug 15, 2017, 5:46:25 AM8/15/17
to DroidScript
Hi All, I've just received this message as well!

We appear to have 7 days to correct the issue.

I'm using DS v1.5 (Is that what you needed, Steve?)

Steve Garman

unread,
Aug 15, 2017, 6:09:33 AM8/15/17
to DroidScript
I don't think that can possibly be right Dave.

Is it 1.55 ?

davefinney

unread,
Aug 15, 2017, 6:31:44 AM8/15/17
to DroidScript
Hi Steve,
DS says it is v1.5 (and not v1.55)
That's DS - then the "..." button then "About" and it says v1.5

Steve Garman

unread,
Aug 15, 2017, 7:15:50 AM8/15/17
to DroidScript
davefinney, I think (and hope) your apk-builder version must be out of sync with your DS version.

Would you be able to do me a favour by building an apk with

alert( app.GetDSVersion() );

and let me know what it displays ?

Thomas Kühne

unread,
Aug 15, 2017, 7:19:48 AM8/15/17
to DroidScript
Hello,
my DS version is 1.54 (and the latest  according to google play).
I also received the mail mentioned by Leandro P.

Does anybody already checked if it is possible to remove the permission by "removePermissions" in the build.json? Maybe I'll try it later today...

Kind regards
Thomas Kühne

Steve Garman

unread,
Aug 15, 2017, 7:24:22 AM8/15/17
to DroidScript
No Thomas, it's not possible to do that with removePermissions.

There should be a new version of the apk-builder plugin available today.

On a side-effect, I would expect to see the problem in 1.54 but not 1.50

Steve Garman

unread,
Aug 15, 2017, 7:55:49 AM8/15/17
to DroidScript
Dave has posted a link to the new plugin in a pinned posts at the top of this group.

https://groups.google.com/d/msg/androidscript/Ej6G50ozfLA/bA-Up3yrBwAJ

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages