incident Отчет об инцидентах Тип файла: команда usage: incident OPTIONS [SECTION...] Takes an incident report. OPTIONS Комментарии Как собрать, развернуть, модульное тестирование Соберите тест и создайте пустой файл прямо на устройстве: root$ make -j Incidentd_test && оболочка adb mkdir /data/nativetest/incidentd_test Запустите тест на устройстве вручную root$ ммм -j frameworks/base/cmds/incidentd && \ adb push $OUT/data/nativetest/incidentd_test/* /data/nativetest/ && \ оболочка adb /data/nativetest/incidentd_test 2>/dev/null Запустите тест через AndroidTest.xml. root$ atest Incidentd_test Используйте формат clang для стилизации файла. clang-format -style=файл -i console:/ # incident -l available sections: id: 1, name: header id: 2, name: metadata id: 1000, name: system_properties id: 1002, name: kernel_version id: 1100, name: event_log_tag_map id: 1101, name: main_logs id: 1102, name: radio_logs id: 1103, name: events_logs id: 1104, name: system_logs id: 1105, name: crash_logs id: 1106, name: stats_logs id: 1107, name: security_logs id: 1108, name: kernel_logs id: 1109, name: last_main_logs id: 1110, name: last_radio_logs id: 1111, name: last_events_logs id: 1112, name: last_system_logs id: 1113, name: last_crash_logs id: 1114, name: last_stats_logs id: 1115, name: last_security_logs id: 1116, name: persisted_logs id: 1200, name: native_traces id: 1201, name: hal_traces id: 1202, name: java_traces id: 2000, name: procrank id: 2001, name: page_type_info id: 2002, name: kernel_wake_sources id: 2003, name: cpu_info id: 2004, name: cpu_freq id: 2005, name: processes_and_threads id: 2006, name: battery_type id: 2007, name: last_kmsg id: 3000, name: fingerprint id: 3001, name: netstats id: 3002, name: settings id: 3003, name: appwidget id: 3004, name: notification id: 3005, name: batterystats id: 3006, name: battery id: 3007, name: diskstats id: 3008, name: package id: 3009, name: power id: 3010, name: print id: 3011, name: procstats id: 3012, name: activities id: 3013, name: broadcasts id: 3014, name: amservices id: 3015, name: amprocesses id: 3016, name: alarm id: 3017, name: window id: 3018, name: meminfo id: 3019, name: graphicsstats id: 3020, name: jobscheduler id: 3021, name: usb id: 3022, name: battery_history id: 3023, name: stats_data id: 3024, name: role id: 3025, name: restricted_images id: 3026, name: system_trace id: 3027, name: dropbox_data_app_crash id: 3028, name: dropbox_data_app_anr id: 3029, name: dropbox_data_app_native_crash id: 3030, name: dropbox_data_app_strictmode id: 3031, name: dropbox_data_app_wtf id: 3032, name: dropbox_system_app_crash id: 3033, name: dropbox_system_app_anr id: 3034, name: dropbox_system_app_native_crash id: 3035, name: dropbox_system_app_strictmode id: 3036, name: dropbox_system_app_wtf id: 3037, name: dropbox_system_server_crash id: 3038, name: dropbox_system_server_anr id: 3039, name: dropbox_system_server_native_crash id: 3040, name: dropbox_system_server_lowmem id: 3041, name: dropbox_system_server_strictmode id: 3042, name: dropbox_system_server_watchdog id: 3043, name: dropbox_system_server_wtf id: 3044, name: dropbox_system_recovery_log id: 3045, name: dropbox_system_tombstone id: 3046, name: dropbox_subsystem_restart id: 3047, name: process_cpu_usage id: 3049, name: ip_connectivity_metrics id: 3050, name: bluetooth_manager id: 3051, name: context_hub id: 3052, name: nfc_service id: 3053, name: sensor_service id: 3054, name: powerstats_meter id: 3055, name: powerstats_model id: 3056, name: powerstats_residency id: 4000, name: textdump_wifi id: 4001, name: textdump_bluetooth console:/ # |