当前位置: 首页 > news >正文

手机网站怎么做推广郑州广告公司网站建设

手机网站怎么做推广,郑州广告公司网站建设,室内设计入门教程,广州市手机网站建设公司在 debug 版本上,可以在关机状态下,同时按 电源键 和 音量加键 进 recovery 。 user 版本上不行。 参考 使用 build 变体 debug 版本和 user 版本的差别之一就是 ro.debuggable 属性不同。 顺着这个思路追踪,找到 bootable/recovery/reco…

在 debug 版本上,可以在关机状态下,同时按 电源键 和 音量加键 进 recovery 。

user 版本上不行。

参考 使用 build 变体
debug 版本和 user 版本的差别之一就是 ro.debuggable 属性不同。
在这里插入图片描述

顺着这个思路追踪,找到 bootable/recovery/recovery.cpp

添加如下修改即可,

--- a/bootable/recovery/recovery.cpp
+++ b/bootable/recovery/recovery.cpp
@@ -130,6 +130,10 @@ static bool IsRoDebuggable() {return android::base::GetBoolProperty("ro.debuggable", false);}+// refer to device.mk , we have set user.enable.recovery=true
+static bool IsUserEnableRecovery() {
+  return android::base::GetBoolProperty("user.enable.recovery", false);
+}// Clear the recovery command and prepare to boot a (hopefully working) system,// copy our log file to cache as well (for the system to read). This function is
@@ -1272,7 +1276,7 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri// If this is an eng or userdebug build, then automatically// turn the text display on if the script fails so the error// message is visible.
-        if (IsRoDebuggable()) {
+        if (IsRoDebuggable() || IsUserEnableRecovery()) {ui->ShowText(true);}}else{
@@ -1389,7 +1393,7 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri// If this is an eng or userdebug build, automatically turn on the text display if no command// is specified. Note that this should be called before setting the background to avoid// flickering the background image.
-        if (IsRoDebuggable()) {
+        if (IsRoDebuggable() || IsUserEnableRecovery()) {ui->ShowText(true);}status = INSTALL_NONE;  // No command specified

为了不同 device 可复用,根据属性判断,如果其他客户也需要,在对应的 device.mk 里加上该属性就行。

http://www.dtcms.com/a/596911.html

相关文章:

  • 世界各地的软件包:探索 Arch Linux 中的软件包
  • 关于设计图的网站网站新闻百度收录
  • MySQL 迁移总结报告
  • 昆明网站建设公司猎狐科技怎么样南约社区网站建设
  • 跨服务器复制conda环境
  • 联想打印机驱动出现故障怎么办?最新的打印机驱动修复方法
  • 安装部署自己的nginx
  • 技术速递|GitHub Copilot 和 AI Agent 如何拯救传统系统
  • wordpress网站同步插件网络优化的工作流程
  • C语言动态内存管理:从基础到进阶的完整解析
  • Java中的静态代理与动态代理(Proxy.newProxyInstance)
  • 2528. 最大化城市的最小电量
  • 网站建设带服务器新浪舆情通官网
  • 16.udp_socket
  • OpenAI 新推 GPT-5-Codex-Mini:一款针对开发者的轻量级编码助手
  • GPTs智能体案例解析(小红书文案、流程图设计与编辑)
  • 广告宣传网站免费行情软件网站大全
  • 机器学习过拟合和正则化
  • 【SpringBoot】35 核心功能 - 高级特性- Spring Boot 中的Profile 环境配置详解
  • 富利建设集团有限公司网站网络维护怎么做
  • 【VSCode】【Clangd】Win下的基于LLVM/Clangd+Clangd插件+MINGW+CMake的VSCode配置C/C++开发环境的详细教程
  • Java大厂面试真题:从Spring Boot到AI微服务的三轮技术拷问(二)
  • openEuler入门学习教程,从入门到精通,云计算与 Linux 操作系统概述(1)
  • 3.2.STM32-LED闪烁LED流水灯蜂鸣器
  • 4-ARM-PEG-Methoxy(2),化学特性、纯化策略与表征方法
  • 4-ARM-PEG-DSPE(2),多功能PEG脂类偶联分子及反应原理
  • php做的网站安全吗宣传推广方案怎么写
  • 建设网站的发布与推广分销商城的服务商
  • Linux:文件 mmap 读写流程简析
  • Ros1 Noetic(本地)和Ros2 Humble(docker)之间相互通信及设置初始位姿