USB连接默认更改为传输文件

commit 3984753ab195cacfd3a6ba11b8fb28b54fd12faf
Author: ozh ouzaihuan@szjawest.cn
Date: Fri Jun 28 14:17:40 2019 +0800

Revert "将USB连接默认更改为传输文件,这个问题在7.1上更改起来非常麻烦"

This reverts commit e9c3203b08e32f6859855d33477648674b0e16e1.

diff --git a/build/tools/post_process_props.py b/build/tools/post_process_props.py
index dca963a…9dcaadf 100755
— a/build/tools/post_process_props.py
+++ b/build/tools/post_process_props.py
@@ -39,16 +39,15 @@ def mangle_default_prop(prop):
val = prop.get(“persist.sys.usb.config”)
if “adb” not in val:
if val == “”:

  •    val = "mtp"
    
  •    val = "adb"
     else:
    
  •    val = val
    
  •    val = val + ",adb"
     prop.put("persist.sys.usb.config", val)
    

    UsbDeviceManager expects a value here. If it doesn’t get it, it will

    default to “adb”. That might not the right policy there, but it’s better

    to be explicit.

    if not prop.get(“persist.sys.usb.config”):
  • prop.put(“persist.sys.usb.config”, “mtp”);
  • prop.put(“persist.sys.usb.config”, “none”);

def validate(prop):
“”"Validate the properties.
diff --git a/device/rockchip/common/device.mk b/device/rockchip/common/device.mk
index f44d24d…5ab80ab 100755
— a/device/rockchip/common/device.mk
+++ b/device/rockchip/common/device.mk
@@ -375,7 +375,7 @@ PRODUCT_TAGS += dalvik.gc.type-precise
ifeq ($(strip $(BUILD_WITH_UMS)),true)
PRODUCT_PROPERTY_OVERRIDES +=
ro.factory.hasUMS=true \

  • persist.sys.usb.config=mpt
  • persist.sys.usb.config=mass_storage,adb

PRODUCT_COPY_FILES +=
( L O C A L P A T H ) / i n i t . r o c k c h i p . h a s U M S . t r u e . r c : r o o t / i n i t . (LOCAL_PATH)/init.rockchip.hasUMS.true.rc:root/init. (LOCALP

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

android framework

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值