当前位置:网站首页>ADB ~ 隐藏或禁用状态栏和虚拟按键
ADB ~ 隐藏或禁用状态栏和虚拟按键
2022-07-27 18:48:00 【南柯好萌】
- 安卓的settings共有三个表:
global:所有的偏好设置对系统的所有用户公开,第三方APP只能读,无写权限;
system:包含各种各样的用户偏好系统设置;
secure:安全性的用户偏好系统设置,第三方APP只能读,无写权限
settings
Settings provider (settings) commands:
help
Print this help text.
get [--user <USER_ID> | current] NAMESPACE KEY
Retrieve the current value of KEY.
put [--user <USER_ID> | current] NAMESPACE KEY VALUE [TAG] [default]
Change the contents of KEY to VALUE.
TAG to associate with the setting.
{
default} to set as the default, case-insensitive only for global/secure namespace
delete [--user <USER_ID> | current] NAMESPACE KEY
Delete the entry for KEY.
reset [--user <USER_ID> | current] NAMESPACE {
PACKAGE_NAME | RESET_MODE}
Reset the global/secure table for a package with mode.
RESET_MODE is one of {
untrusted_defaults, untrusted_clear, trusted_defaults}, case-insensitive
list [--user <USER_ID> | current] NAMESPACE
Print all defined keys.
NAMESPACE is one of {
system, secure, global}, case-insensitive
- 全屏沉浸:
adb shell settings put global policy_control immersive.full=*
- 沉浸状态栏:
adb shell settings put global policy_control immersive.status=*
- 沉浸导航栏:
adb shell settings put global policy_control immersive.navigation=*
- 单独控制哪些app不沉浸,例如以下代码设置TIM不沉浸,其他程序沉浸:
adb shell settings put global policy_control immersive.full=apps,-com.tencent.tim,
- 如果想恢复到正常模式,运行下面的代码:
adb shell settings put global policy_control null
- 若要将导航栏完全隐藏(上划不会唤出):
adb shell wm overscan 0,0,0,-210 //如果无效 可以修改数字大小 或者方向
四个数字分别表示 左、上、右、下距边缘的距离(根据需求调整)
- 恢复
adb shell wm overscan 0,0,0,0
边栏推荐
- Mysql 数据恢复流程 基于binlog redolog undolog
- Read Plato & nbsp; Eplato of farm and the reasons for its high premium
- Understanding network model overview of network model
- Leetcode-136-a number that appears only once
- Sscanf caused the address to be out of bounds
- Summary of common methods and attributes of arrays and strings in JS
- 成分句法分析综述(第二版)
- AIRIOT答疑第6期|如何使用二次开发引擎?
- 智能网联跑出中国「加速度」,26.15%搭载率背后的市场洗牌
- Verilog HDL中的reg型变量的理解
猜你喜欢

Five celebrities' worries about AI

AIRIOT答疑第6期|如何使用二次开发引擎?

Smart Internet ran out of China's "acceleration", and the market reshuffle behind the 26.15% carrying rate

The application of building cloud rendering is expanding, and more and more industries are in urgent need of visualization services

数字引领 规划先行 聚焦智慧规划信息平台建设及应用项目探索实践

新来CTO 强烈禁止使用Calendar...,那用啥?

MapGIS三维管线建模,唤醒城市地下管线脉搏

Hexagon_ V65_ Programmers_ Reference_ Manual(6)

数字化工厂系统有什么现实优势

PHP code audit 5 - XSS vulnerability
随机推荐
R language uses power.for 2p function performs utility analysis (efficiency analysis, power analysis), calculates the utility value given the proportions of two samples and the sample size
Win11用户名和密码备份方法
Get the method registered in the delegate
Rust variable characteristics
一文读懂Plato&nbsp;Farm的ePLATO,以及其高溢价缘由
What are the practical advantages of digital factory system
Custom learning rate
Knowledge management system promotes the development of enterprise informatization
The application of building cloud rendering is expanding, and more and more industries are in urgent need of visualization services
How to solve the problem when the Microsoft account login of the computer keeps turning around
MapGIS三维场景渲染技术与应用
Win11小组件提示加载此内容时出现错误怎么解决?
LabVIEW learning note 5: you cannot return to the original state after pressing the button
飞信卒于2022:中国移动一手好牌被打烂,5亿用户成“僵尸”
Differences among native objects, built-in objects, and host objects
What is the value of digital factory management system
智能网联跑出中国「加速度」,26.15%搭载率背后的市场洗牌
PG 之 Free Space Map & Visibility Map
JS closure knowledge
建筑云渲染的应用正在扩大,越来越多的行业急需可视化服务