commit | 4201a5ddbcbc16f482e2a9355c628aa57f1fff19 | [log] [tgz] |
---|---|---|
author | hongzhu wang <wanghongzhu@hisense.com> | Sat Oct 09 04:42:09 2021 +0000 |
committer | hongzhu wang <wanghongzhu@hisense.com> | Sat Oct 09 05:04:03 2021 +0000 |
tree | 829d5139d33753f96957ac2124bbf61a3be2a7a4 | |
parent | bbed69281062cc31e8d9fafbbdaee33620cfb3dc [diff] |
Fix: crash when running am.jar without parameters Issure: When no args to run am.jar,mAm is not initialized before use process will crash in NRE Solution: Initialize mAm in constructor Bug: 202471754 Test: manual Running follow sh on the device displays help messages correctly base=/system export CLASSPATH=$base/framework/am.jar exec app_process $base/bin com.android.commands.am.Am Change-Id: I088f4f5b4072d350c217655a291658d0bfd506e9