zoukankan      html  css  js  c++  java
  • Android 怎样开启与关闭adb 的认证机制(google adb secure) (adb RSA 指纹认证)

    前言
             欢迎大家我分享和推荐好用的代码段~~
    声明
             欢迎转载,但请保留文章原始出处:
             CSDN
    http://www.csdn.net
             雨季o莫忧离:http://blog.csdn.net/luckkof

    正文

     

    [Description]
    怎样开启与关闭adb 的认证机制(google adb secure)
    [Keyword]
    adb secure , ro.adb.secure , adb RSA 指纹认证
    [Solution]
    MTK 版本号默认关闭adb 的地址认证机制,假设贵司须要开启,能够改动alps/build/core/main.mk
    ifeq (true,$(strip $(enable_target_debugging)))
      # Target is more debuggable and adbd is on by default
      ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=1
      ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1 ==> 假设想在ENG Load新增此功能,加这行
      # Include the debugging/testing OTA keys in this build.
      INCLUDE_TEST_OTA_KEYS := true
    else # !enable_target_debugging
      # Target is less debuggable and adbd is off by default
      ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=0
      ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1 ==> 假设想在USER Load新增此功能,加这行
    endif # !enable_target_debugging
     
    而ro.adb.secure 这个system property 对于adbd 的控制点在alps/system/core/adb/adb.c 中的
    property_get("ro.adb.secure", value, "0");
    auth_enabled = !strcmp(value, "1");
    if (auth_enabled)
        adb_auth_init();
  • 相关阅读:
    OAuth2.0的四种授权模式
    Jedis整合单机、Sentinel和Cluster模式
    Redis Cluste部署
    Web-动态页面
    Web开发-Servlet&HTTP&Request
    Ajax&Json
    Web开发之Tomcat&Servlet
    PagedListCore的使用
    自己写一个依赖注入容器Container
    在core2.0中实现按程序集注入依赖
  • 原文地址:https://www.cnblogs.com/mqxnongmin/p/10483806.html
Copyright © 2011-2022 走看看