GithubHelp home page GithubHelp logo

android-uninstall-feedback's Introduction

uninstallFeedback

卸载APK,跳转到反馈页面。

原理:在c层fork一个进程,监听data/data/包名/lib目录。

注:在华为机型上,如果在java端中直接fork这个c进程,且java端退出调用了system.exit方法,则会出现黑屏崩溃问题。

所以,把这个native调用放在remote service中。在需要监听的项目中,启动一个远程服务,这个远程服务只做一个任务:调用c层代码来fork监听进程。

在C层写了一个Kill方法,在JAVA层调用,可以用来结束C层的监听进程,实现原理:将fork出来的监听进程的pid存在data/data/包名/files/中的uninstall文件中,

当需要结束C层监听进程的时候,读取该文件,获取到pid值,再调用linux中的kill函数结束进程。

####2015-03-05新增 #####1.增加防止误操作处理 #####2.监听文件由"data/data/包名/lib目录"改为"data/data/data/包名/uninstall/observedFile"文件

android-uninstall-feedback's People

Contributors

wpstan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

yuro dave43tn

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.