Giter VIP home page Giter VIP logo

appopsx's Introduction

AppOpsX

Get it on Google Play

主要是解决防止国内流氓应用在Android6.0上不给权限就不让用的问题,e.g. 几个外卖应用。
也可以不root通过adb shell appops set [--user <USER_ID>] <PACKAGE> <OP> <MODE> 忽略授予的权限。

支持ADB模式,可以在开发者选项中打开[网络ADB调试]功能或者使用电脑adb tcpip 5555 后使用。

AppOpsX 现在没有调用appops命令的方式去设置,用的是以root权限启用jar后开放LocalSocks通讯的方式去代理修改权限, 理论上多条执行的时候要比调用命令快,在应用内使用感觉会比较明显,当然底层和appops命令实现一致。

用法:

cd opsxlib
make all
cd ../app
gradle assembleDebug

将会启动一个LocalServerSocket,供client调用。 前端连接到LocalSocks 后即可发送命令去类似代理执行一样执行IAppOpsService中的方法。

所有的设置关闭权限使用了MODE_IGNORED,不要使用MODE_ERRORED,否则会导致应用设置->应用->配置应用->应用权限崩溃。

只测试了Android 6.0和7.0上可正常使用,其他版本如有问题请提issue。

appopsx's People

Contributors

8enet avatar

Watchers

 avatar

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.