xref: /aosp_15_r20/frameworks/base/cmds/incident_helper/README.md (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1*d57664e9SAndroid Build Coastguard Worker# incident_helper
2*d57664e9SAndroid Build Coastguard Worker
3*d57664e9SAndroid Build Coastguard WorkerIt is an executable used to help parsing text format data to protobuf.
4*d57664e9SAndroid Build Coastguard Worker
5*d57664e9SAndroid Build Coastguard Worker## How to build, deploy, unit test
6*d57664e9SAndroid Build Coastguard Worker
7*d57664e9SAndroid Build Coastguard WorkerFor the first time, build the test and create an empty directly on device:
8*d57664e9SAndroid Build Coastguard Worker
9*d57664e9SAndroid Build Coastguard Worker```
10*d57664e9SAndroid Build Coastguard Workerroot$ make -j incident_helper_test && adb shell mkdir /data/nativetest64/incident_helper_test
11*d57664e9SAndroid Build Coastguard Worker```
12*d57664e9SAndroid Build Coastguard Worker
13*d57664e9SAndroid Build Coastguard WorkerRun the test on a device
14*d57664e9SAndroid Build Coastguard Worker
15*d57664e9SAndroid Build Coastguard Worker```
16*d57664e9SAndroid Build Coastguard Workerroot$ mmm -j frameworks/base/cmds/incident_helper && \
17*d57664e9SAndroid Build Coastguard Workeradb push $OUT/data/nativetest64/incident_helper_test/* /data/nativetest64/incident_helper_test/ && \
18*d57664e9SAndroid Build Coastguard Workeradb shell /data/nativetest64/incident_helper_test/incident_helper_test 2>/dev/null
19*d57664e9SAndroid Build Coastguard Worker```
20*d57664e9SAndroid Build Coastguard Worker## How to adapt proto changes
21*d57664e9SAndroid Build Coastguard Worker
22*d57664e9SAndroid Build Coastguard WorkerIf add a new proto file, add it in Android.bp under frameworks/base/ and make incident helper
23*d57664e9SAndroid Build Coastguard Worker
24*d57664e9SAndroid Build Coastguard Worker```
25*d57664e9SAndroid Build Coastguard Workerroot$ make -j48 incident_helper
26*d57664e9SAndroid Build Coastguard Worker```
27