锐单电子商城 , 一站式电子元器件采购平台!
  • 电话:400-990-0325

FloatWindowPermission 手机Android浮动窗权限适配

时间:2022-09-19 01:30:00 g520三极管

FloatWindowPermission

this repository is aimed to adapt android float window permission in most of phone models and how to request it at runtime

its result is as follows :

625332134c6f4d4600884b99daebf603.png

if you want to see more,click here

from now on,the models below android M that have been adapted are :

xiaomi:v5,v6,v7,v8

huawei:partial

meizu:partial

360:partial

others:phones like samsung,sony or other model can directly show the float window, so there is no need to adapt,but if you find one that can not,contact me via my email(zhao_zepeng@hotmail.com) or leave a message on my blog i mentioned above,thanks

more details about the models that have been adapted(thanks ruanqin0706 for help):

6.0/6.0

most models are OK with this way of adaption except meizu:

机型

版本

详细信息

适配完成

具体表现

魅族 PRO6

6.0

型号:PRO6;版本:6.0;分辨率:1920*1080

检测权限结果是错误的,微信可以正常缩小放大,我们的检测是未打开了跳转到打开权限页面

魅族 U20

6.0

型号:U20;版本:6.0;分辨率:1920*1080

检测权限结果有误,微信可正常缩小放大,而我方检测为未开启权限,为跳转至开启权限页

conclusion:

汇总结果

Android6.0 以上型号覆盖:58款,其中:

三星:10款正常

华为:21款正常

小米:5款,均正常

魅族:2,异常(1。检测权限未打开,点击 Android 6.0 以上跳转,不能跳转,但可以选择魅族手机设置,设置后,打开悬挂窗口缩小正常;2。在魅族,及时设置悬挂窗口关闭,微信可以正常缩小,但我们检测到的悬挂窗口是否与实际系统设置相匹配。

其他:20款正常

until now(2016-11-21), this problem has been solved, we have made a special treatment to the ROM above 6.0 include 6.0 in meizu mobiles.

huawei

here is the test result for huawei mobiles:

机型

版本

适配完成

具体表现

默认设置

华为荣耀x2

5.0

跳转到通知中心页面,而不是悬挂窗口管理处

默认关闭

华为畅玩4x(电信版)

4.4.4

可以优化

跳转到通知中心的标签页面,用户需要切换标签页面(通知中心和悬挂窗口是两个不同的标签页)

默认关闭

华为 p8 lite

4.4.4

可以优化

跳转到通知中心的标签页面,用户需要切换标签页面(通知中心和悬挂窗口是两个不同的标签页)

默认关闭

华为荣耀 6 移动版

4.4.2

可以优化

跳转到通知中心的标签页面,用户需要切换标签页面(通知中心和悬挂窗口是两个不同的标签页)

默认关闭

华为荣耀 3c 电信版

4.3

跳转至通知中心,但默认是开启悬浮窗的

默认关闭

华为 G520

4.1.2

点击华为跳转设置页面按钮,闪回

默认开启

conclusion:

汇总结果

与型号数量完全兼容

二次兼容机型数量

测试机型总数

兼容成功率

华为6.0以下型号覆盖:18款,其中:

5.0.1以上:默认打开11款,跳转设置页面正确;5.0:1,处理异常

(未打开悬挂窗的默认权限,点击跳转到通知栏,设置非悬挂窗的入口)

4.4.4、4.4.2:3,处理可接受

(默认情况下,未打开悬限,点击跳转到通知中心的通知栏标签页,可手动切换到悬挂窗标签页设置)

4.3:1,处理可接受

(默认打开,但点击华为跳转设置页面,跳转到通知中心,无悬挂窗口设置)

4.2.2:1,默认开启,正常处理

4.1.2:1处理缺陷

(默认打开,但如果直接点击华为跳转按钮,闪回)

12

5

18

94.44%

waiting for adapted...

xiaomi

most of xiaomi mobiles are adapted very well except some paticular models:

机型

版本

适配完成

具体表现

小米 MI 4S

5.1.1

点击小米手机授权页面跳转按钮,无悬浮窗口权限

小米 红米NOTE 1S

4.4.4

未执行

悬浮窗未修改成功打开,真机平台不支持(权限不同于以前的系统)

小米 红米1(联通版)

4.2.2

未执行

未安装成功

here is the conclusion:

汇总结果

与型号数量完全兼容

二次兼容机型数量

测试机型总数

兼容成功率

小米6.以下型号覆盖:10款,其中:

5.1.1 小米 MI 4S:一款,兼容失败

(默认未打开,点击小米手机授权按钮,无跳转)

其他:9款都成功了

9

0

10

90%

samsung

almost 100% of the samsung mobiles are adapted very well and here is the conclusion of samsung:

汇总结果

与型号数量完全兼容

二次兼容机型数量

测试机型总数

兼容成功率

三星6.0以下型号覆盖:28款,全部检测处理成功

(悬浮窗权限默认打开)

28

0

28

100%

oppo&&vivo##

only test a small part of the mobiles and here is the result:

机型

版本

适配完成

是否默认打开

OPPO R7sm

5.1.1

默认开启

OPPO R7 Plus

5.0

默认开启

OPPO R7 Plus(全网通)

5.1.1

默认开启

OPPO A37m

5.1

未执行

默认情况下未打开,无法设置打开(平台真机限制修改权限)

OPPO A59m

5.1.1

默认开启

conclusion:

汇总结果

抽查3款,2个系统版本,均兼容,100%

others##

we random pick some other models like HTC and Sony and here is the result:

机型

是否正常

蓝魔 R3

HTC A9

摩托罗拉 Nexus 6

VIVO V3Max A

金立 M5

HTC One E8

努比亚 Z11 Max

Sony Xperia Z3+ Dual

酷派 大神Note3

三星 GALAXY J3 Pro(双4G)

三星 Note 5

中兴 威武3

中兴 Axon Mini

conclusion:

汇总结果

随机抽查看13款,全部测试正常,100%

锐单商城拥有海量元器件数据手册IC替代型号,打造电子元器件IC百科大全!

相关文章