Coder Social home page Coder Social logo

Comments (3)

sean-kenny avatar sean-kenny commented on July 29, 2024

Yes. We have some tests that verify permission flows, for those tests ideally they could opt out of automated permission grants..

As an aside, it would also be nice to clear permissions between tests (not sure if that's being done or not)

from fork.

fpezzato avatar fpezzato commented on July 29, 2024

This is something I wanted to add since a long time!

  1. In general l am keen to keep the automatically granted permissions on every test (unless opted out with autoGrantPermissions=false). Only when a test is explicitly annotated with one or more permissions to revoke than fork should revoke them for that single test.

  2. What I am not sure about is how to annotate a test to indicate which permission(s) should be revoked before running it.
    An idea could be to hijack the android support annotation RequiresPermission (https://developer.android.com/reference/android/support/annotation/RequiresPermission.html):
    Pro:
    That's a well established annotation, there is no need to add a new one in Fork (that would require the client application to import a new annotation...)
    Cons:
    the semantic of the annotation would be used "inverted" (that could be misleading). So for example a test annotated with @RequiresPermission(allOf = {Manifest.permission.RECORD_AUDIO, Manifest.permission.CAMERA}) would be executed without such permissions granted.

What do you guys think?


@sean-kenny :

(not sure if that's being done or not)

So far there is no fine tuning or revoking of any permissions: we just auto-grant all permissions when installing the apk.

from fork.

fpezzato avatar fpezzato commented on July 29, 2024

PR : #124

from fork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.