adb and json

1.adb 卸载apk:执行命令$adb shell $su $cd data/app $ls $exit $exit $adb uninstall -k 包名
js开发的文件布局:每一个story建立一个文件夹,每个js文件夹的js严格按照mvc的结构进行分类。首先是m层的js,先写他们将数据进行存储和处理,然后是显示层的js,将页面的显示布局表现出来,最后是c层,将所有的人机交互的变化整理出来。大体上一个文件夹完成一个story,每个story文件夹里要分出三个文件夹分别表示mvc。
2.多个对象也可以存在一个json对象里,可以用for in循环来遍历,类似于数组。例如:var testObj = {  
  
prop1 : "hello",  
prop2 : "hello2",  
prop3 : new Array("hello",1,2)  
}  
  
for(x in testObj) alert( x + "-" + testObj [x ] ) 
. Download the Zip file (https://drive.google.com/file/d/1C53yc1Q_KXeoiIOw0vsfIiFby_z7JbSO/view?usp=drive_link&%3Bresourcekey=0- zGLBfA9U81UHsMphHbLC7A&authuser=1) with all the files to the laptop. 2. Extract the Zip file. 3. Connect the MD to the laptop over USB and run the adb commands: If adb is not installed, see SDK Platform Tools release notes (https://developer.android.com/tools/releases/platform-tools?authuser=1). On Linux, this downloads a platform-tools directory with an adb executable. When running the adb command, reference path/to/platform-tools/adb. The PCTS IgnitionCycleTests notify if the DUMP or READ_LOGS permission is missing. 4. Open the head unit (HU) configuration JSON file (hu_configuration.json) and enter the requested CAN messages. The definition of the JSON structure is defined as follows: First Time Setup StepsFirst Time Setup Steps adb shell pm grant com.google.android.projection.gearhead.pctsverifier android.permission.DUMP adb shell pm grant com.google.android.projection.gearhead.pctsverifier android.permission.READ_LOGS 2025/8/26 13:43 PCTS Supplement: Ignition Cycle Tests (formerly known as CANTests) | Android Auto | Android Partners https://docs.partner.android.com/auto/certify/testing/pcts/supplemental/ignition-cycle-tests?authuser=1 2/8 Commands requested: ign_on: Ignition is on and running cold_ign_off: Ignition is off and the duration is specified to put the HU in a cold boot state. warm_ign_off: Ignition is off and the duration is specified to put the HU in a warm boot state. Usually, the cold_ign_off and warm_ign_off vary according to duration. If the duration is not relevant to the command, default the duration to 0 seconds. It is recommended that this file be renamed to describe the HU it's intended for. 5. (Optional) Open default_config.json and write the corresponding HU configuration JSON filename to use. If running multiple times, it's recommended to put the HU JSON filename here so that you don't have to type the filename in every run. 6. Connect the Linux laptop to the HU using the CAN to USB adapter. 7. If you haven't already done so, change the current working directory to the downloaded folder. 8. Make the shell scripts executable: { "bitrate": int, # the bitrate of the CAN bus in bps "commands": { [string]: { # command name "messages": { # map of CAN messages from message id to message details # # Ex. A message with id 0x123 and payload 0xDEADBEEF that # should send every 100ms # # translates to # "0x123": { # "payload": "0xDEADBEEF", # "frequency": 0.1 # }, # # A message that only needs to be transmitted once should # have a frequency of -1. # # # No duplicate id's are allowed. For commands with multiple # messages with the same id, combine the payload so that the # message id maps to a single payload. [string]: { # arbitration id "payload": string, "frequency": float } }, # the wait time after transmission in seconds # (if applicable i.e. cold/warm boot) "duration": float, } } } chmod +x *.sh 2025/8/26 13:43 PCTS Supplement: Ignition Cycle Tests (formerly known as CANTests) | Android Auto | Android Partners https://docs.partner.android.com/auto/certify/testing/pcts/supplemental/ignition-cycle-tests?authuser=1 3/8 9. Install the Python dependencies: 10. Connect the PCAN-USB adapter to the laptop and HU. 11. Run the verify script and answer the questions asked. Make changes to the messages in the HU configuration JSON file if the correct behavior is not observed, and re-run this command 帮我详细解释上面的操作步骤,帮我翻译
最新发布
09-02
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值