GithubHelp home page GithubHelp logo

chenguandong / android-uctoast Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liaohuqiu/android-uctoast

0.0 2.0 0.0 545 KB

Demonstrate how UC browser display a system overlay view in any platform above API level 9.

Java 100.00%

android-uctoast's Introduction

Android Gems

UC 浏览器复制,无需权限提示悬浮窗实现

ABOUT ME / 关注我: Github | twitter | 微博

更多的关于本项目,以及悬浮窗权限细节以及总结,请看:


睡不着起不来的万先生Android无需权限显示悬浮窗, 兼谈逆向分析app 文中提到,typeWindowManager.LayoutParams.TYPE_TOASTWindowManager.LayoutParam 无需权限,即可让 View 显示。

本项目模拟实现该功能,即:开机自动启动的 Service 监听剪切板。复制之后,在屏幕顶部显示一个悬浮窗,显示剪贴板内容。点击悬浮窗,跳转到 Activity 页面显示。

兼容到 API level 9。

包含以下几个小功能点:

  1. 监控剪切板

  2. WindowManager 的使用

  3. Service 的使用

  4. 悬浮窗处理:

    1. 黑色半透明背景
    2. 触摸背景关闭
    3. 点击内容跳转
    4. 处理返回键关闭
  5. 开机自动启动 Service

  6. WakeLock 启动 Service


android-uctoast's People

Contributors

liaohuqiu avatar bihe0832 avatar

Watchers

James Cloos avatar 陈冠东 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.