├── .clang-format ├── .clang-format-2 ├── .clang-format-4 ├── .gitignore ├── Android.bp ├── Android.mk ├── CleanSpec.mk ├── MODULE_LICENSE_APACHE2 ├── NOTICE ├── OWNERS ├── PREUPLOAD.cfg ├── adb ├── .clang-format ├── Android.bp ├── Android.mk ├── MODULE_LICENSE_APACHE2 ├── NOTICE ├── OVERVIEW.TXT ├── OWNERS ├── SERVICES.TXT ├── SYNC.TXT ├── adb.bash ├── adb.cpp ├── adb.h ├── adb_auth.h ├── adb_integration_test_adb.xml ├── adb_io.cpp ├── adb_io.h ├── adb_io_test.cpp ├── adb_listeners.cpp ├── adb_listeners.h ├── adb_listeners_test.cpp ├── adb_mdns.h ├── adb_trace.cpp ├── adb_trace.h ├── adb_unique_fd.cpp ├── adb_unique_fd.h ├── adb_utils.cpp ├── adb_utils.h ├── adb_utils_test.cpp ├── benchmark_device.py ├── bugreport_test.cpp ├── client │ ├── adb_client.cpp │ ├── adb_client.h │ ├── auth.cpp │ ├── bugreport.cpp │ ├── bugreport.h │ ├── commandline.cpp │ ├── commandline.h │ ├── console.cpp │ ├── file_sync_client.cpp │ ├── file_sync_client.h │ ├── line_printer.cpp │ ├── line_printer.h │ ├── main.cpp │ ├── transport_mdns.cpp │ ├── usb_dispatch.cpp │ ├── usb_libusb.cpp │ ├── usb_linux.cpp │ ├── usb_osx.cpp │ └── usb_windows.cpp ├── daemon │ ├── auth.cpp │ ├── file_sync_service.cpp │ ├── file_sync_service.h │ ├── framebuffer_service.cpp │ ├── framebuffer_service.h │ ├── include │ │ └── adbd │ │ │ └── usb.h │ ├── jdwp_service.cpp │ ├── main.cpp │ ├── mdns.cpp │ ├── mdns.h │ ├── remount_service.cpp │ ├── remount_service.h │ ├── services.cpp │ ├── set_verity_enable_state_service.cpp │ ├── set_verity_enable_state_service.h │ ├── shell_service.cpp │ ├── shell_service.h │ ├── shell_service_test.cpp │ └── usb.cpp ├── fdevent.cpp ├── fdevent.h ├── fdevent_test.cpp ├── fdevent_test.h ├── file_sync_protocol.h ├── protocol.txt ├── security_log_tags.h ├── services.cpp ├── services.h ├── shell_protocol.h ├── shell_service_protocol.cpp ├── shell_service_protocol_test.cpp ├── socket.h ├── socket_spec.cpp ├── socket_spec.h ├── socket_spec_test.cpp ├── socket_test.cpp ├── sockets.cpp ├── sockets.dia ├── sysdeps.h ├── sysdeps │ ├── chrono.h │ ├── errno.cpp │ ├── errno.h │ ├── memory.h │ ├── network.h │ ├── posix │ │ └── network.cpp │ ├── stat.h │ ├── stat_test.cpp │ ├── uio.h │ └── win32 │ │ ├── errno.cpp │ │ ├── errno_test.cpp │ │ └── stat.cpp ├── sysdeps_test.cpp ├── sysdeps_unix.cpp ├── sysdeps_win32.cpp ├── sysdeps_win32_test.cpp ├── test_adb.py ├── test_device.py ├── trace.sh ├── transport.cpp ├── transport.h ├── transport_benchmark.cpp ├── transport_fd.cpp ├── transport_local.cpp ├── transport_test.cpp ├── transport_usb.cpp ├── types.h ├── types_test.cpp └── usb.h ├── adf ├── Android.bp ├── OWNERS ├── libadf │ ├── Android.bp │ ├── adf.cpp │ ├── include │ │ ├── adf │ │ │ └── adf.h │ │ └── video │ │ │ └── adf.h │ ├── original-kernel-headers │ │ └── video │ │ │ └── adf.h │ └── tests │ │ ├── Android.bp │ │ └── adf_test.cpp └── libadfhwc │ ├── Android.bp │ ├── adfhwc.cpp │ └── include │ └── adfhwc │ └── adfhwc.h ├── base ├── .clang-format ├── Android.bp ├── CPPLINT.cfg ├── OWNERS ├── chrono_utils.cpp ├── chrono_utils_test.cpp ├── endian_test.cpp ├── errors_test.cpp ├── errors_unix.cpp ├── errors_windows.cpp ├── file.cpp ├── file_test.cpp ├── include │ └── android-base │ │ ├── chrono_utils.h │ │ ├── endian.h │ │ ├── errors.h │ │ ├── file.h │ │ ├── logging.h │ │ ├── macros.h │ │ ├── memory.h │ │ ├── parsedouble.h │ │ ├── parseint.h │ │ ├── parsenetaddress.h │ │ ├── properties.h │ │ ├── quick_exit.h │ │ ├── scopeguard.h │ │ ├── stringprintf.h │ │ ├── strings.h │ │ ├── test_utils.h │ │ ├── thread_annotations.h │ │ ├── threads.h │ │ ├── unique_fd.h │ │ └── utf8.h ├── logging.cpp ├── logging_test.cpp ├── macros_test.cpp ├── parsedouble_test.cpp ├── parseint_test.cpp ├── parsenetaddress.cpp ├── parsenetaddress_test.cpp ├── properties.cpp ├── properties_test.cpp ├── quick_exit.cpp ├── quick_exit_test.cpp ├── scopeguard_test.cpp ├── stringprintf.cpp ├── stringprintf_test.cpp ├── strings.cpp ├── strings_test.cpp ├── test_main.cpp ├── test_utils.cpp ├── test_utils_test.cpp ├── threads.cpp ├── utf8.cpp └── utf8_test.cpp ├── bootstat ├── .clang-format ├── Android.bp ├── AndroidTest.xml ├── OWNERS ├── README.md ├── boot_event_record_store.cpp ├── boot_event_record_store.h ├── boot_event_record_store_test.cpp ├── boot_reason_test.sh ├── bootstat-debug.rc ├── bootstat.cpp ├── bootstat.rc └── testrunner.cpp ├── cpio ├── Android.mk └── mkbootfs.c ├── debuggerd ├── .clang-format ├── Android.bp ├── Android.mk ├── MODULE_LICENSE_APACHE2 ├── OWNERS ├── client │ ├── debuggerd_client.cpp │ └── debuggerd_client_test.cpp ├── common │ └── include │ │ └── dump_type.h ├── crash_dump.cpp ├── crasher │ ├── Android.bp │ ├── arm │ │ └── crashglue.S │ ├── arm64 │ │ └── crashglue.S │ ├── crasher.cpp │ ├── mips │ │ └── crashglue.S │ ├── mips64 │ │ └── crashglue.S │ ├── x86 │ │ └── crashglue.S │ └── x86_64 │ │ └── crashglue.S ├── debuggerd.cpp ├── debuggerd_benchmark.cpp ├── debuggerd_test.cpp ├── handler │ ├── debuggerd_fallback.cpp │ ├── debuggerd_fallback_nop.cpp │ └── debuggerd_handler.cpp ├── include │ └── debuggerd │ │ ├── client.h │ │ └── handler.h ├── libdebuggerd │ ├── backtrace.cpp │ ├── elf_utils.cpp │ ├── include │ │ └── libdebuggerd │ │ │ ├── backtrace.h │ │ │ ├── elf_utils.h │ │ │ ├── open_files_list.h │ │ │ ├── tombstone.h │ │ │ ├── types.h │ │ │ └── utility.h │ ├── open_files_list.cpp │ ├── test │ │ ├── BacktraceMock.h │ │ ├── dump_memory_test.cpp │ │ ├── elf_fake.cpp │ │ ├── elf_fake.h │ │ ├── host_signal_fixup.h │ │ ├── log_fake.cpp │ │ ├── log_fake.h │ │ ├── open_files_list_test.cpp │ │ ├── sys │ │ │ └── system_properties.h │ │ └── tombstone_test.cpp │ ├── tombstone.cpp │ └── utility.cpp ├── protocol.h ├── seccomp_policy │ ├── crash_dump.arm.policy │ ├── crash_dump.arm64.policy │ ├── crash_dump.policy.def │ ├── crash_dump.x86.policy │ ├── crash_dump.x86_64.policy │ └── generate.sh ├── tombstoned │ ├── include │ │ └── tombstoned │ │ │ └── tombstoned.h │ ├── intercept_manager.cpp │ ├── intercept_manager.h │ ├── tombstoned.cpp │ ├── tombstoned.rc │ └── tombstoned_client.cpp ├── util.cpp └── util.h ├── demangle ├── .clang-format ├── Android.bp ├── Android.mk ├── DemangleTest.cpp ├── Demangler.cpp ├── Demangler.h ├── OWNERS ├── demangle.cpp ├── demangle_fuzzer.cpp └── include │ └── demangle.h ├── diagnose_usb ├── Android.bp ├── OWNERS ├── diagnose_usb.cpp └── include │ └── diagnose_usb.h ├── fastboot ├── .clang-format ├── Android.bp ├── Android.mk ├── OWNERS ├── README.md ├── bootimg_utils.cpp ├── bootimg_utils.h ├── constants.h ├── device │ ├── commands.cpp │ ├── commands.h │ ├── fastboot_device.cpp │ ├── fastboot_device.h │ ├── flashing.cpp │ ├── flashing.h │ ├── main.cpp │ ├── usb_client.cpp │ ├── usb_client.h │ ├── utility.cpp │ ├── utility.h │ ├── variables.cpp │ └── variables.h ├── engine.cpp ├── engine.h ├── fastboot.bash ├── fastboot.cpp ├── fastboot_driver.cpp ├── fastboot_driver.h ├── fastboot_test.cpp ├── fs.cpp ├── fs.h ├── main.cpp ├── socket.cpp ├── socket.h ├── socket_mock.cpp ├── socket_mock.h ├── socket_test.cpp ├── tcp.cpp ├── tcp.h ├── tcp_test.cpp ├── transport.h ├── udp.cpp ├── udp.h ├── udp_test.cpp ├── usb.h ├── usb_linux.cpp ├── usb_osx.cpp ├── usb_windows.cpp ├── util.cpp └── util.h ├── fs_mgr ├── .clang-format ├── Android.bp ├── OWNERS ├── fs_mgr.cpp ├── fs_mgr_avb.cpp ├── fs_mgr_avb_ops.cpp ├── fs_mgr_boot_config.cpp ├── fs_mgr_dm_linear.cpp ├── fs_mgr_format.cpp ├── fs_mgr_fstab.cpp ├── fs_mgr_overlayfs.cpp ├── fs_mgr_priv.h ├── fs_mgr_priv_avb_ops.h ├── fs_mgr_priv_boot_config.h ├── fs_mgr_priv_sha.h ├── fs_mgr_slotselect.cpp ├── fs_mgr_verity.cpp ├── include │ ├── fs_mgr.h │ ├── fs_mgr_avb.h │ ├── fs_mgr_dm_linear.h │ └── fs_mgr_overlayfs.h ├── include_fstab │ └── fstab │ │ └── fstab.h ├── libdm │ ├── Android.bp │ ├── dm.cpp │ ├── dm_table.cpp │ ├── dm_target.cpp │ ├── dm_test.cpp │ ├── include │ │ └── libdm │ │ │ ├── dm.h │ │ │ ├── dm_table.h │ │ │ ├── dm_target.h │ │ │ └── loop_control.h │ ├── loop_control.cpp │ ├── loop_control_test.cpp │ ├── test_util.cpp │ └── test_util.h ├── liblp │ ├── Android.bp │ ├── builder.cpp │ ├── builder_test.cpp │ ├── images.cpp │ ├── images.h │ ├── include │ │ └── liblp │ │ │ ├── builder.h │ │ │ ├── liblp.h │ │ │ └── metadata_format.h │ ├── io_test.cpp │ ├── reader.cpp │ ├── reader.h │ ├── utility.cpp │ ├── utility.h │ ├── utility_test.cpp │ ├── writer.cpp │ └── writer.h ├── tests │ ├── Android.bp │ └── fs_mgr_test.cpp └── tools │ ├── Android.bp │ └── dmctl.cpp ├── gatekeeperd ├── Android.mk ├── IGateKeeperService.cpp ├── IGateKeeperService.h ├── OWNERS ├── SoftGateKeeper.h ├── SoftGateKeeperDevice.cpp ├── SoftGateKeeperDevice.h ├── gatekeeperd.cpp ├── gatekeeperd.rc └── tests │ ├── Android.mk │ └── gatekeeper_test.cpp ├── healthd ├── Android.bp ├── Android.mk ├── AnimationParser.cpp ├── AnimationParser.h ├── BatteryMonitor.cpp ├── HealthServiceDefault.cpp ├── HealthServiceHealthd.cpp ├── OWNERS ├── android.hardware.health@2.0-service.rc ├── animation.h ├── charger.cpp ├── charger_test.cpp ├── healthd.rc ├── healthd_draw.cpp ├── healthd_draw.h ├── healthd_mode_charger.cpp ├── images │ ├── battery_fail.png │ └── battery_scale.png ├── include │ └── healthd │ │ ├── BatteryMonitor.h │ │ └── healthd.h ├── manifest_healthd.xml └── tests │ ├── Android.mk │ └── AnimationParser_test.cpp ├── include ├── android │ └── log.h ├── backtrace ├── cutils ├── log ├── private │ ├── android_filesystem_capability.h │ ├── android_filesystem_config.h │ ├── android_logger.h │ ├── canned_fs_config.h │ └── fs_config.h ├── system ├── sysutils └── utils ├── init ├── .clang-format ├── Android.bp ├── Android.mk ├── MODULE_LICENSE_APACHE2 ├── NOTICE ├── OWNERS ├── README.md ├── action.cpp ├── action.h ├── action_manager.cpp ├── action_manager.h ├── action_parser.cpp ├── action_parser.h ├── bootchart.cpp ├── bootchart.h ├── builtin_arguments.h ├── builtins.cpp ├── builtins.h ├── capabilities.cpp ├── capabilities.h ├── compare-bootcharts.py ├── descriptors.cpp ├── descriptors.h ├── devices.cpp ├── devices.h ├── devices_test.cpp ├── epoll.cpp ├── epoll.h ├── firmware_handler.cpp ├── firmware_handler.h ├── first_stage_mount.cpp ├── first_stage_mount.h ├── grab-bootchart.sh ├── host_import_parser.cpp ├── host_import_parser.h ├── host_init_stubs.cpp ├── host_init_stubs.h ├── host_init_verifier.cpp ├── import_parser.cpp ├── import_parser.h ├── init.cpp ├── init.h ├── init_first_stage.cpp ├── init_test.cpp ├── keychords.cpp ├── keychords.h ├── keychords_test.cpp ├── keyword_map.h ├── main.cpp ├── modalias_handler.cpp ├── modalias_handler.h ├── parser.cpp ├── parser.h ├── parser │ ├── tokenizer.cpp │ ├── tokenizer.h │ └── tokenizer_test.cpp ├── perfboot.py ├── persistent_properties.cpp ├── persistent_properties.h ├── persistent_properties.proto ├── persistent_properties_test.cpp ├── property_service.cpp ├── property_service.h ├── property_service_test.cpp ├── property_type.cpp ├── property_type.h ├── property_type_test.cpp ├── reboot.cpp ├── reboot.h ├── reboot_utils.cpp ├── reboot_utils.h ├── result.h ├── result_test.cpp ├── rlimit_parser.cpp ├── rlimit_parser.h ├── rlimit_parser_test.cpp ├── security.cpp ├── security.h ├── selinux.cpp ├── selinux.h ├── service.cpp ├── service.h ├── service_test.cpp ├── sigchld_handler.cpp ├── sigchld_handler.h ├── stable_properties.h ├── subcontext.cpp ├── subcontext.h ├── subcontext.proto ├── subcontext_benchmark.cpp ├── subcontext_test.cpp ├── test_function_map.h ├── test_service │ ├── Android.bp │ ├── README.md │ ├── test_service.cpp │ └── test_service.rc ├── tokenizer.cpp ├── tokenizer.h ├── tokenizer_test.cpp ├── uevent.h ├── uevent_handler.h ├── uevent_listener.cpp ├── uevent_listener.h ├── ueventd.cpp ├── ueventd.h ├── ueventd_parser.cpp ├── ueventd_parser.h ├── ueventd_parser_test.cpp ├── ueventd_test.cpp ├── util.cpp ├── util.h └── util_test.cpp ├── libappfuse ├── Android.bp ├── AndroidTest.xml ├── EpollController.cc ├── FuseAppLoop.cc ├── FuseBridgeLoop.cc ├── FuseBuffer.cc ├── OWNERS ├── include │ └── libappfuse │ │ ├── EpollController.h │ │ ├── FuseAppLoop.h │ │ ├── FuseBridgeLoop.h │ │ └── FuseBuffer.h └── tests │ ├── FuseAppLoopTest.cc │ ├── FuseBridgeLoopTest.cc │ └── FuseBufferTest.cc ├── libasyncio ├── Android.bp ├── AsyncIO.cpp └── include │ └── asyncio │ └── AsyncIO.h ├── libbacktrace ├── .clang-format ├── Android.bp ├── Backtrace.cpp ├── BacktraceAsyncSafeLog.h ├── BacktraceCurrent.cpp ├── BacktraceCurrent.h ├── BacktraceLog.h ├── BacktraceMap.cpp ├── BacktracePtrace.cpp ├── BacktracePtrace.h ├── GetPss.cpp ├── GetPss.h ├── OWNERS ├── ThreadEntry.cpp ├── ThreadEntry.h ├── UnwindMap.cpp ├── UnwindMap.h ├── UnwindStack.cpp ├── UnwindStack.h ├── UnwindStackMap.cpp ├── UnwindStackMap.h ├── backtrace_benchmarks.cpp ├── backtrace_offline_test.cpp ├── backtrace_read_benchmarks.cpp ├── backtrace_test.cpp ├── backtrace_testlib.cpp ├── backtrace_testlib.h ├── include │ └── backtrace │ │ ├── Backtrace.h │ │ ├── BacktraceMap.h │ │ └── backtrace_constants.h └── testdata │ ├── arm │ ├── libGLESv2_adreno.so │ ├── libandroid_runtime.so │ ├── libart.so │ ├── libbacktrace_test_arm_exidx.so │ ├── libbacktrace_test_debug_frame.so │ ├── libbacktrace_test_gnu_debugdata.so │ ├── offline_testdata │ ├── offline_testdata_for_libGLESv2_adreno │ ├── offline_testdata_for_libandroid_runtime │ └── offline_testdata_for_libart │ ├── arm64 │ ├── eglSubDriverAndroid.so │ ├── libbacktrace_test_eh_frame.so │ ├── libskia.so │ ├── offline_testdata │ ├── offline_testdata_for_eglSubDriverAndroid │ └── offline_testdata_for_libskia │ ├── x86 │ ├── libbacktrace_test_debug_frame.so │ ├── libbacktrace_test_gnu_debugdata.so │ └── offline_testdata │ └── x86_64 │ ├── libbacktrace_test_eh_frame.so │ └── offline_testdata ├── libbinderwrapper ├── Android.bp ├── binder_test_base.cc ├── binder_wrapper.cc ├── include │ └── binderwrapper │ │ ├── binder_test_base.h │ │ ├── binder_wrapper.h │ │ └── stub_binder_wrapper.h ├── real_binder_wrapper.cc ├── real_binder_wrapper.h └── stub_binder_wrapper.cc ├── libcrypto_utils ├── Android.bp ├── android_pubkey.c ├── include │ └── crypto_utils │ │ └── android_pubkey.h └── tests │ ├── Android.mk │ └── android_pubkey_test.cpp ├── libcutils ├── Android.bp ├── MODULE_LICENSE_APACHE2 ├── NOTICE ├── OWNERS ├── android_get_control_env.h ├── android_get_control_file.cpp ├── android_reboot.cpp ├── arch-arm │ └── memset32.S ├── arch-arm64 │ └── android_memset.S ├── arch-mips │ └── android_memset.c ├── arch-x86 │ ├── android_memset16.S │ ├── android_memset32.S │ └── cache.h ├── arch-x86_64 │ ├── android_memset16.S │ ├── android_memset32.S │ └── cache.h ├── ashmem-dev.cpp ├── ashmem-host.cpp ├── canned_fs_config.cpp ├── config_utils.cpp ├── fs.cpp ├── fs_config.cpp ├── hashmap.cpp ├── include │ ├── cutils │ │ ├── android_filesystem_config.h │ │ ├── android_get_control_file.h │ │ ├── android_reboot.h │ │ ├── ashmem.h │ │ ├── atomic.h │ │ ├── bitops.h │ │ ├── compiler.h │ │ ├── config_utils.h │ │ ├── fs.h │ │ ├── hashmap.h │ │ ├── iosched_policy.h │ │ ├── jstring.h │ │ ├── klog.h │ │ ├── list.h │ │ ├── log.h │ │ ├── memory.h │ │ ├── misc.h │ │ ├── multiuser.h │ │ ├── native_handle.h │ │ ├── partition_utils.h │ │ ├── properties.h │ │ ├── qtaguid.h │ │ ├── record_stream.h │ │ ├── sched_policy.h │ │ ├── sockets.h │ │ ├── str_parms.h │ │ ├── threads.h │ │ ├── trace.h │ │ └── uevent.h │ └── private │ │ ├── android_filesystem_capability.h │ │ ├── android_filesystem_config.h │ │ ├── canned_fs_config.h │ │ └── fs_config.h ├── include_vndk │ └── cutils │ │ ├── android_filesystem_config.h │ │ ├── android_get_control_file.h │ │ ├── android_reboot.h │ │ ├── ashmem.h │ │ ├── atomic.h │ │ ├── bitops.h │ │ ├── compiler.h │ │ ├── config_utils.h │ │ ├── fs.h │ │ ├── hashmap.h │ │ ├── iosched_policy.h │ │ ├── jstring.h │ │ ├── klog.h │ │ ├── list.h │ │ ├── log.h │ │ ├── memory.h │ │ ├── misc.h │ │ ├── multiuser.h │ │ ├── native_handle.h │ │ ├── partition_utils.h │ │ ├── properties.h │ │ ├── qtaguid.h │ │ ├── record_stream.h │ │ ├── sched_policy.h │ │ ├── sockets.h │ │ ├── str_parms.h │ │ ├── threads.h │ │ ├── trace.h │ │ └── uevent.h ├── iosched_policy.cpp ├── klog.cpp ├── load_file.cpp ├── multiuser.cpp ├── native_handle.cpp ├── partition_utils.cpp ├── properties.cpp ├── qtaguid.cpp ├── record_stream.cpp ├── sched_policy.cpp ├── socket_inaddr_any_server_unix.cpp ├── socket_inaddr_any_server_windows.cpp ├── socket_local_client_unix.cpp ├── socket_local_server_unix.cpp ├── socket_local_unix.h ├── socket_network_client_unix.cpp ├── socket_network_client_windows.cpp ├── sockets.cpp ├── sockets_unix.cpp ├── sockets_windows.cpp ├── str_parms.cpp ├── strdup16to8.cpp ├── strdup8to16.cpp ├── strlcpy.c ├── tests │ ├── Android.bp │ ├── AndroidTest.xml │ ├── AshmemTest.cpp │ ├── MemsetTest.cpp │ ├── PropertiesTest.cpp │ ├── android_get_control_file_test.cpp │ ├── android_get_control_socket_test.cpp │ ├── fs_config.cpp │ ├── multiuser_test.cpp │ ├── sched_policy_test.cpp │ ├── sockets_test.cpp │ ├── test_str_parms.cpp │ └── trace-dev_test.cpp ├── threads.cpp ├── trace-container.cpp ├── trace-dev.cpp ├── trace-dev.inc ├── trace-host.cpp └── uevent.cpp ├── libdiskconfig ├── Android.bp ├── config_mbr.c ├── diskconfig.c ├── diskutils.c ├── dump_diskconfig.c ├── include │ └── diskconfig │ │ └── diskconfig.h └── write_lst.c ├── libgrallocusage ├── Android.bp ├── GrallocUsageConversion.cpp ├── MODULE_LICENSE_APACHE2 ├── NOTICE └── include │ └── grallocusage │ └── GrallocUsageConversion.h ├── libion ├── Android.bp ├── include │ └── ion │ │ └── ion.h ├── ion.c ├── ion_4.12.h ├── ion_test.c ├── kernel-headers │ └── linux │ │ ├── ion.h │ │ └── ion_test.h ├── original-kernel-headers │ └── linux │ │ ├── ion.h │ │ └── ion_test.h └── tests │ ├── Android.bp │ ├── allocate_test.cpp │ ├── device_test.cpp │ ├── exit_test.cpp │ ├── formerly_valid_handle_test.cpp │ ├── invalid_values_test.cpp │ ├── ion_test_fixture.cpp │ ├── ion_test_fixture.h │ └── map_test.cpp ├── libkeyutils ├── .clang-format ├── Android.bp ├── include │ └── keyutils.h ├── keyutils.cpp └── keyutils_test.cpp ├── liblog ├── .clang-format ├── Android.bp ├── Android.mk ├── NOTICE ├── OWNERS ├── README ├── config_read.c ├── config_read.h ├── config_write.c ├── config_write.h ├── event.logtags ├── event_tag_map.cpp ├── fake_log_device.c ├── fake_log_device.h ├── fake_writer.c ├── include │ ├── android │ │ └── log.h │ ├── log │ │ ├── event_tag_map.h │ │ ├── log.h │ │ ├── log_event_list.h │ │ ├── log_id.h │ │ ├── log_main.h │ │ ├── log_properties.h │ │ ├── log_radio.h │ │ ├── log_read.h │ │ ├── log_safetynet.h │ │ ├── log_system.h │ │ ├── log_time.h │ │ ├── log_transport.h │ │ ├── logd.h │ │ ├── logger.h │ │ ├── logprint.h │ │ └── uio.h │ └── private │ │ └── android_logger.h ├── include_vndk │ ├── android │ └── log │ │ ├── log.h │ │ ├── log_event_list.h │ │ ├── log_id.h │ │ ├── log_main.h │ │ ├── log_properties.h │ │ ├── log_radio.h │ │ ├── log_read.h │ │ ├── log_safetynet.h │ │ ├── log_system.h │ │ └── log_time.h ├── liblog.map.txt ├── local_logger.c ├── log_event_list.c ├── log_event_write.c ├── log_portability.h ├── log_ratelimit.cpp ├── log_time.cpp ├── logd_reader.c ├── logd_reader.h ├── logd_writer.c ├── logger.h ├── logger_lock.c ├── logger_name.c ├── logger_read.c ├── logger_write.c ├── logprint.c ├── pmsg_reader.c ├── pmsg_writer.c ├── properties.c ├── stderr_write.c ├── tests │ ├── Android.mk │ ├── AndroidTest.xml │ ├── libc_test.cpp │ ├── liblog_benchmark.cpp │ ├── liblog_test.cpp │ ├── liblog_test_default.cpp │ ├── liblog_test_local.cpp │ ├── liblog_test_stderr.cpp │ ├── liblog_test_stderr_local.cpp │ ├── log_id_test.cpp │ ├── log_radio_test.cpp │ ├── log_read_test.cpp │ ├── log_system_test.cpp │ ├── log_time_test.cpp │ └── log_wrap_test.cpp └── uio.c ├── libmemtrack ├── Android.bp ├── OWNERS ├── include │ └── memtrack │ │ └── memtrack.h ├── memtrack.cpp └── memtrack_test.c ├── libmemunreachable ├── .clang-format ├── Allocator.cpp ├── Allocator.h ├── Android.bp ├── Binder.cpp ├── Binder.h ├── HeapWalker.cpp ├── HeapWalker.h ├── Leak.h ├── LeakFolding.cpp ├── LeakFolding.h ├── LeakPipe.cpp ├── LeakPipe.h ├── LinkedList.h ├── MemUnreachable.cpp ├── OWNERS ├── ProcessMappings.cpp ├── ProcessMappings.h ├── PtracerThread.cpp ├── PtracerThread.h ├── README.md ├── ScopedAlarm.h ├── ScopedDisableMalloc.h ├── ScopedPipe.h ├── ScopedSignalHandler.h ├── Semaphore.h ├── Tarjan.h ├── ThreadCapture.cpp ├── ThreadCapture.h ├── anon_vma_naming.h ├── bionic.h ├── include │ └── memunreachable │ │ └── memunreachable.h ├── log.h └── tests │ ├── Allocator_test.cpp │ ├── AndroidTest.xml │ ├── Binder_test.cpp │ ├── DisableMalloc_test.cpp │ ├── HeapWalker_test.cpp │ ├── HostMallocStub.cpp │ ├── LeakFolding_test.cpp │ ├── MemUnreachable_test.cpp │ └── ThreadCapture_test.cpp ├── libmetricslogger ├── Android.bp ├── OWNERS ├── include │ └── metricslogger │ │ └── metrics_logger.h ├── metrics_logger.cpp └── metrics_logger_test.cpp ├── libnativebridge ├── .clang-format ├── Android.bp ├── Android.mk ├── OWNERS ├── include │ └── nativebridge │ │ └── native_bridge.h ├── native_bridge.cc └── tests │ ├── Android.bp │ ├── Android.mk │ ├── CodeCacheCreate_test.cpp │ ├── CodeCacheExists_test.cpp │ ├── CodeCacheStatFail_test.cpp │ ├── CompleteFlow_test.cpp │ ├── DummyNativeBridge.cpp │ ├── DummyNativeBridge2.cpp │ ├── DummyNativeBridge3.cpp │ ├── InvalidCharsNativeBridge_test.cpp │ ├── NativeBridge2Signal_test.cpp │ ├── NativeBridge3CreateNamespace_test.cpp │ ├── NativeBridge3GetError_test.cpp │ ├── NativeBridge3InitAnonymousNamespace_test.cpp │ ├── NativeBridge3IsPathSupported_test.cpp │ ├── NativeBridge3LoadLibraryExt_test.cpp │ ├── NativeBridge3UnloadLibrary_test.cpp │ ├── NativeBridgeTest.h │ ├── NativeBridgeVersion_test.cpp │ ├── NeedsNativeBridge_test.cpp │ ├── PreInitializeNativeBridgeFail1_test.cpp │ ├── PreInitializeNativeBridgeFail2_test.cpp │ ├── PreInitializeNativeBridge_test.cpp │ ├── ReSetupNativeBridge_test.cpp │ ├── UnavailableNativeBridge_test.cpp │ └── ValidNameNativeBridge_test.cpp ├── libnativeloader ├── .clang-format ├── Android.bp ├── OWNERS ├── include │ └── nativeloader │ │ ├── dlext_namespaces.h │ │ └── native_loader.h ├── native_loader.cpp └── test │ ├── Android.bp │ ├── Android.mk │ ├── public.libraries-oem1.txt │ ├── public.libraries-oem2.txt │ ├── public.libraries-product1.txt │ ├── runtest.sh │ ├── src │ └── android │ │ └── test │ │ └── app │ │ └── TestActivity.java │ ├── system │ └── AndroidManifest.xml │ ├── test.cpp │ └── vendor │ └── AndroidManifest.xml ├── libnetutils ├── Android.bp ├── NOTICE ├── OWNERS ├── dhcpclient.c ├── dhcpmsg.c ├── dhcpmsg.h ├── dhcptool.c ├── ifc_utils.c ├── include │ └── netutils │ │ └── ifc.h ├── packet.c └── packet.h ├── libpackagelistparser ├── Android.bp ├── include │ └── packagelistparser │ │ └── packagelistparser.h └── packagelistparser.c ├── libpixelflinger ├── Android.mk ├── MODULE_LICENSE_APACHE2 ├── NOTICE ├── arch-arm64 │ ├── col32cb16blend.S │ └── t32cb16blend.S ├── arch-mips │ ├── col32cb16blend.S │ └── t32cb16blend.S ├── arch-mips64 │ ├── col32cb16blend.S │ └── t32cb16blend.S ├── buffer.cpp ├── buffer.h ├── clear.cpp ├── clear.h ├── codeflinger │ ├── ARMAssembler.cpp │ ├── ARMAssembler.h │ ├── ARMAssemblerInterface.cpp │ ├── ARMAssemblerInterface.h │ ├── ARMAssemblerProxy.cpp │ ├── ARMAssemblerProxy.h │ ├── Arm64Assembler.cpp │ ├── Arm64Assembler.h │ ├── Arm64Disassembler.cpp │ ├── Arm64Disassembler.h │ ├── CodeCache.cpp │ ├── CodeCache.h │ ├── GGLAssembler.cpp │ ├── GGLAssembler.h │ ├── MIPS64Assembler.cpp │ ├── MIPS64Assembler.h │ ├── MIPSAssembler.cpp │ ├── MIPSAssembler.h │ ├── armreg.h │ ├── blending.cpp │ ├── disassem.c │ ├── disassem.h │ ├── load_store.cpp │ ├── mips64_disassem.c │ ├── mips64_disassem.h │ ├── mips_disassem.c │ ├── mips_disassem.h │ ├── mips_opcode.h │ ├── texturing.cpp │ └── tinyutils │ │ └── smartpointer.h ├── col32cb16blend.S ├── col32cb16blend_neon.S ├── fixed.cpp ├── format.cpp ├── include │ ├── pixelflinger │ │ ├── format.h │ │ └── pixelflinger.h │ └── private │ │ └── pixelflinger │ │ ├── ggl_context.h │ │ └── ggl_fixed.h ├── picker.cpp ├── picker.h ├── pixelflinger.cpp ├── raster.cpp ├── raster.h ├── scanline.cpp ├── scanline.h ├── t32cb16blend.S ├── tests │ ├── Android.mk │ ├── arch-arm64 │ │ ├── Android.mk │ │ ├── assembler │ │ │ ├── Android.mk │ │ │ ├── arm64_assembler_test.cpp │ │ │ └── asm_test_jacket.S │ │ ├── col32cb16blend │ │ │ ├── Android.mk │ │ │ └── col32cb16blend_test.c │ │ ├── disassembler │ │ │ ├── Android.mk │ │ │ └── arm64_diassembler_test.cpp │ │ └── t32cb16blend │ │ │ ├── Android.mk │ │ │ └── t32cb16blend_test.c │ ├── arch-mips │ │ ├── Android.mk │ │ ├── col32cb16blend │ │ │ ├── Android.mk │ │ │ └── col32cb16blend_test.c │ │ └── t32cb16blend │ │ │ ├── Android.mk │ │ │ └── t32cb16blend_test.c │ ├── arch-mips64 │ │ ├── Android.mk │ │ ├── assembler │ │ │ ├── Android.mk │ │ │ ├── asm_mips_test_jacket.S │ │ │ └── mips64_assembler_test.cpp │ │ ├── col32cb16blend │ │ │ ├── Android.mk │ │ │ └── col32cb16blend_test.c │ │ └── disassembler │ │ │ ├── Android.mk │ │ │ └── mips64_disassembler_test.cpp │ ├── codegen │ │ ├── Android.mk │ │ └── codegen.cpp │ └── gglmul │ │ ├── Android.mk │ │ └── gglmul_test.cpp ├── trap.cpp └── trap.h ├── libprocessgroup ├── Android.bp ├── include │ └── processgroup │ │ └── processgroup.h └── processgroup.cpp ├── libprocinfo ├── .clang-format ├── Android.bp ├── OWNERS ├── include │ └── procinfo │ │ ├── process.h │ │ └── process_map.h ├── process.cpp ├── process_map_benchmark.cpp ├── process_map_test.cpp ├── process_test.cpp └── testdata │ └── maps ├── libqtaguid ├── Android.bp ├── include │ └── qtaguid │ │ └── qtaguid.h └── qtaguid.c ├── libsparse ├── .clang-format ├── Android.bp ├── Android.mk ├── OWNERS ├── append2simg.cpp ├── backed_block.cpp ├── backed_block.h ├── defs.h ├── img2simg.cpp ├── include │ └── sparse │ │ └── sparse.h ├── output_file.cpp ├── output_file.h ├── simg2img.cpp ├── simg2simg.cpp ├── simg_dump.py ├── sparse.cpp ├── sparse_crc32.cpp ├── sparse_crc32.h ├── sparse_defs.h ├── sparse_err.cpp ├── sparse_file.h ├── sparse_format.h └── sparse_read.cpp ├── libstats ├── Android.bp ├── OWNERS ├── include │ └── stats_event_list.h ├── stats_event_list.c ├── statsd_writer.c └── statsd_writer.h ├── libsuspend ├── Android.bp ├── autosuspend.c ├── autosuspend_ops.h ├── autosuspend_wakeup_count.cpp └── include │ └── suspend │ └── autosuspend.h ├── libsync ├── Android.bp ├── NOTICE ├── OWNERS ├── include │ ├── android │ │ └── sync.h │ ├── ndk │ │ └── sync.h │ └── sync │ │ └── sync.h ├── libsync.map.txt ├── sw_sync.h ├── sync.c └── tests │ └── sync_test.cpp ├── libsystem ├── Android.bp ├── OWNERS └── include │ └── system │ ├── camera.h │ ├── graphics-base-v1.0.h │ ├── graphics-base-v1.1.h │ ├── graphics-base.h │ ├── graphics-sw.h │ ├── graphics.h │ ├── radio.h │ └── thread_defs.h ├── libsysutils ├── Android.bp ├── EventLogTags.logtags ├── include │ └── sysutils │ │ ├── FrameworkCommand.h │ │ ├── FrameworkListener.h │ │ ├── List.h │ │ ├── NetlinkEvent.h │ │ ├── NetlinkListener.h │ │ ├── OWNERS │ │ ├── ServiceManager.h │ │ ├── SocketClient.h │ │ ├── SocketClientCommand.h │ │ └── SocketListener.h └── src │ ├── FrameworkCommand.cpp │ ├── FrameworkListener.cpp │ ├── NetlinkEvent.cpp │ ├── NetlinkListener.cpp │ ├── OWNERS │ ├── ServiceManager.cpp │ ├── SocketClient.cpp │ └── SocketListener.cpp ├── libunwindstack ├── .clang-format ├── Android.bp ├── ArmExidx.cpp ├── ArmExidx.h ├── AsmGetRegsMips.S ├── AsmGetRegsMips64.S ├── AsmGetRegsX86.S ├── AsmGetRegsX86_64.S ├── Check.h ├── DexFile.cpp ├── DexFile.h ├── DexFiles.cpp ├── DwarfCfa.cpp ├── DwarfCfa.h ├── DwarfDebugFrame.h ├── DwarfEhFrame.h ├── DwarfEhFrameWithHdr.cpp ├── DwarfEhFrameWithHdr.h ├── DwarfEncoding.h ├── DwarfMemory.cpp ├── DwarfOp.cpp ├── DwarfOp.h ├── DwarfSection.cpp ├── Elf.cpp ├── ElfInterface.cpp ├── ElfInterfaceArm.cpp ├── ElfInterfaceArm.h ├── JitDebug.cpp ├── LocalUnwinder.cpp ├── Log.cpp ├── MapInfo.cpp ├── Maps.cpp ├── Memory.cpp ├── OWNERS ├── Regs.cpp ├── RegsArm.cpp ├── RegsArm64.cpp ├── RegsInfo.h ├── RegsMips.cpp ├── RegsMips64.cpp ├── RegsX86.cpp ├── RegsX86_64.cpp ├── Symbols.cpp ├── Symbols.h ├── Unwinder.cpp ├── include │ └── unwindstack │ │ ├── DexFiles.h │ │ ├── DwarfError.h │ │ ├── DwarfLocation.h │ │ ├── DwarfMemory.h │ │ ├── DwarfSection.h │ │ ├── DwarfStructs.h │ │ ├── Elf.h │ │ ├── ElfInterface.h │ │ ├── Error.h │ │ ├── JitDebug.h │ │ ├── LocalUnwinder.h │ │ ├── Log.h │ │ ├── MachineArm.h │ │ ├── MachineArm64.h │ │ ├── MachineMips.h │ │ ├── MachineMips64.h │ │ ├── MachineX86.h │ │ ├── MachineX86_64.h │ │ ├── MapInfo.h │ │ ├── Maps.h │ │ ├── Memory.h │ │ ├── Regs.h │ │ ├── RegsArm.h │ │ ├── RegsArm64.h │ │ ├── RegsGetLocal.h │ │ ├── RegsMips.h │ │ ├── RegsMips64.h │ │ ├── RegsX86.h │ │ ├── RegsX86_64.h │ │ ├── UcontextArm.h │ │ ├── UcontextArm64.h │ │ ├── UcontextMips.h │ │ ├── UcontextMips64.h │ │ ├── UcontextX86.h │ │ ├── UcontextX86_64.h │ │ ├── Unwinder.h │ │ ├── UserArm.h │ │ ├── UserArm64.h │ │ ├── UserMips.h │ │ ├── UserMips64.h │ │ ├── UserX86.h │ │ └── UserX86_64.h ├── tests │ ├── ArmExidxDecodeTest.cpp │ ├── ArmExidxExtractTest.cpp │ ├── DexFileData.h │ ├── DexFileTest.cpp │ ├── DexFilesTest.cpp │ ├── DwarfCfaLogTest.cpp │ ├── DwarfCfaTest.cpp │ ├── DwarfDebugFrameTest.cpp │ ├── DwarfEhFrameTest.cpp │ ├── DwarfEhFrameWithHdrTest.cpp │ ├── DwarfMemoryTest.cpp │ ├── DwarfOpLogTest.cpp │ ├── DwarfOpTest.cpp │ ├── DwarfSectionImplTest.cpp │ ├── DwarfSectionTest.cpp │ ├── ElfCacheTest.cpp │ ├── ElfFake.cpp │ ├── ElfFake.h │ ├── ElfInterfaceArmTest.cpp │ ├── ElfInterfaceTest.cpp │ ├── ElfTest.cpp │ ├── ElfTestUtils.cpp │ ├── ElfTestUtils.h │ ├── GenGnuDebugdata.cpp │ ├── JitDebugTest.cpp │ ├── LocalUnwinderTest.cpp │ ├── LogFake.cpp │ ├── LogFake.h │ ├── MapInfoCreateMemoryTest.cpp │ ├── MapInfoGetElfTest.cpp │ ├── MapInfoGetLoadBiasTest.cpp │ ├── MapsTest.cpp │ ├── MemoryBufferTest.cpp │ ├── MemoryFake.cpp │ ├── MemoryFake.h │ ├── MemoryFileTest.cpp │ ├── MemoryLocalTest.cpp │ ├── MemoryOfflineBufferTest.cpp │ ├── MemoryOfflineTest.cpp │ ├── MemoryRangeTest.cpp │ ├── MemoryRemoteTest.cpp │ ├── MemoryTest.cpp │ ├── RegsFake.h │ ├── RegsInfoTest.cpp │ ├── RegsIterateTest.cpp │ ├── RegsStepIfSignalHandlerTest.cpp │ ├── RegsTest.cpp │ ├── SymbolsTest.cpp │ ├── TestLocal.cpp │ ├── TestUtils.h │ ├── UnwindOfflineTest.cpp │ ├── UnwindTest.cpp │ ├── UnwinderTest.cpp │ └── files │ │ ├── elf32.xz │ │ ├── elf64.xz │ │ └── offline │ │ ├── art_quick_osr_stub_arm │ │ ├── descriptor.data │ │ ├── entry0.data │ │ ├── entry1.data │ │ ├── jit0.data │ │ ├── jit1.data │ │ ├── libart.so │ │ ├── libc.so │ │ ├── maps.txt │ │ ├── regs.txt │ │ └── stack.data │ │ ├── bad_eh_frame_hdr_arm64 │ │ ├── libc.so │ │ ├── maps.txt │ │ ├── regs.txt │ │ ├── stack.data │ │ └── waiter64 │ │ ├── debug_frame_first_x86 │ │ ├── libc.so │ │ ├── maps.txt │ │ ├── regs.txt │ │ ├── stack.data │ │ └── waiter │ │ ├── debug_frame_load_bias_arm │ │ ├── libbinder.so │ │ ├── libc.so │ │ ├── maps.txt │ │ ├── mediaserver │ │ ├── regs.txt │ │ └── stack.data │ │ ├── eh_frame_hdr_begin_x86_64 │ │ ├── libc.so │ │ ├── maps.txt │ │ ├── regs.txt │ │ ├── stack.data │ │ └── unwind_test64 │ │ ├── gnu_debugdata_arm │ │ ├── libandroid_runtime.so │ │ ├── maps.txt │ │ ├── regs.txt │ │ └── stack.data │ │ ├── jit_debug_arm │ │ ├── 137-cfi.odex │ │ ├── dalvikvm32 │ │ ├── descriptor.data │ │ ├── descriptor1.data │ │ ├── entry0.data │ │ ├── entry1.data │ │ ├── entry2.data │ │ ├── entry3.data │ │ ├── entry4.data │ │ ├── entry5.data │ │ ├── entry6.data │ │ ├── jit0.data │ │ ├── jit1.data │ │ ├── jit2.data │ │ ├── jit3.data │ │ ├── jit4.data │ │ ├── jit5.data │ │ ├── jit6.data │ │ ├── libart.so │ │ ├── libartd.so │ │ ├── libarttestd.so │ │ ├── libc.so │ │ ├── maps.txt │ │ ├── regs.txt │ │ └── stack.data │ │ ├── jit_debug_x86 │ │ ├── 137-cfi.odex │ │ ├── dalvikvm32 │ │ ├── descriptor.data │ │ ├── entry0.data │ │ ├── entry1.data │ │ ├── entry2.data │ │ ├── entry3.data │ │ ├── entry4.data │ │ ├── entry5.data │ │ ├── entry6.data │ │ ├── jit0.data │ │ ├── jit1.data │ │ ├── jit2.data │ │ ├── jit3.data │ │ ├── jit4.data │ │ ├── jit5.data │ │ ├── jit6.data │ │ ├── libartd.so │ │ ├── libarttestd.so │ │ ├── libc.so │ │ ├── maps.txt │ │ ├── regs.txt │ │ └── stack.data │ │ ├── jit_map_arm │ │ ├── jit_map0.so │ │ ├── jit_map1.so │ │ ├── libart.so │ │ ├── libc.so │ │ ├── maps.txt │ │ ├── regs.txt │ │ └── stack.data │ │ ├── offset_arm │ │ ├── libc.so │ │ ├── libunwindstack_test │ │ ├── maps.txt │ │ ├── regs.txt │ │ ├── stack0.data │ │ └── stack1.data │ │ ├── straddle_arm │ │ ├── libbase.so │ │ ├── libc.so │ │ ├── maps.txt │ │ ├── regs.txt │ │ └── stack.data │ │ └── straddle_arm64 │ │ ├── libunwindstack_test │ │ ├── maps.txt │ │ ├── regs.txt │ │ └── stack.data └── tools │ ├── unwind.cpp │ ├── unwind_for_offline.cpp │ ├── unwind_info.cpp │ ├── unwind_reg_info.cpp │ └── unwind_symbols.cpp ├── libusbhost ├── Android.bp ├── include │ └── usbhost │ │ └── usbhost.h └── usbhost.c ├── libutils ├── Android.bp ├── CallStack.cpp ├── CleanSpec.mk ├── FileMap.cpp ├── JenkinsHash.cpp ├── Looper.cpp ├── MODULE_LICENSE_APACHE2 ├── NOTICE ├── NativeHandle.cpp ├── OWNERS ├── Printer.cpp ├── ProcessCallStack.cpp ├── PropertyMap.cpp ├── README ├── RefBase.cpp ├── SharedBuffer.cpp ├── SharedBuffer.h ├── SharedBufferTest.cpp ├── StopWatch.cpp ├── String16.cpp ├── String8.cpp ├── StrongPointer.cpp ├── SystemClock.cpp ├── Threads.cpp ├── Timers.cpp ├── Tokenizer.cpp ├── Trace.cpp ├── Unicode.cpp ├── VectorImpl.cpp ├── include │ └── utils │ │ ├── AndroidThreads.h │ │ ├── Atomic.h │ │ ├── BitSet.h │ │ ├── ByteOrder.h │ │ ├── CallStack.h │ │ ├── Compat.h │ │ ├── Condition.h │ │ ├── Debug.h │ │ ├── Endian.h │ │ ├── Errors.h │ │ ├── FastStrcmp.h │ │ ├── FileMap.h │ │ ├── Flattenable.h │ │ ├── Functor.h │ │ ├── JenkinsHash.h │ │ ├── KeyedVector.h │ │ ├── LightRefBase.h │ │ ├── List.h │ │ ├── Log.h │ │ ├── Looper.h │ │ ├── LruCache.h │ │ ├── Mutex.h │ │ ├── NativeHandle.h │ │ ├── Printer.h │ │ ├── ProcessCallStack.h │ │ ├── PropertyMap.h │ │ ├── RWLock.h │ │ ├── RefBase.h │ │ ├── Singleton.h │ │ ├── SortedVector.h │ │ ├── StopWatch.h │ │ ├── String16.h │ │ ├── String8.h │ │ ├── StrongPointer.h │ │ ├── SystemClock.h │ │ ├── Thread.h │ │ ├── ThreadDefs.h │ │ ├── Timers.h │ │ ├── Tokenizer.h │ │ ├── Trace.h │ │ ├── TypeHelpers.h │ │ ├── Unicode.h │ │ ├── Vector.h │ │ ├── VectorImpl.h │ │ ├── misc.h │ │ └── threads.h ├── misc.cpp └── tests │ ├── Android.bp │ ├── BitSet_test.cpp │ ├── Looper_test.cpp │ ├── LruCache_test.cpp │ ├── Mutex_test.cpp │ ├── README.txt │ ├── RefBase_test.cpp │ ├── Singleton_test.cpp │ ├── Singleton_test.h │ ├── Singleton_test1.cpp │ ├── Singleton_test2.cpp │ ├── String8_test.cpp │ ├── StrongPointer_test.cpp │ ├── SystemClock_test.cpp │ ├── TestHelpers.h │ ├── Unicode_test.cpp │ └── Vector_test.cpp ├── libvndksupport ├── Android.bp ├── OWNERS ├── include │ └── vndksupport │ │ └── linker.h ├── libvndksupport.map.txt ├── linker.c └── tests │ ├── Android.bp │ └── linker_test.cpp ├── libziparchive ├── .clang-format ├── Android.bp ├── OWNERS ├── entry_name_utils-inl.h ├── entry_name_utils_test.cc ├── include │ └── ziparchive │ │ ├── zip_archive.h │ │ ├── zip_archive_stream_entry.h │ │ └── zip_writer.h ├── testdata │ ├── bad_crc.zip │ ├── bad_filename.zip │ ├── crash.apk │ ├── declaredlength.zip │ ├── dummy-update.zip │ ├── large.zip │ └── valid.zip ├── unzip.cpp ├── zip_archive.cc ├── zip_archive_benchmark.cpp ├── zip_archive_common.h ├── zip_archive_private.h ├── zip_archive_stream_entry.cc ├── zip_archive_test.cc ├── zip_writer.cc └── zip_writer_test.cc ├── llkd ├── Android.bp ├── OWNERS ├── README.md ├── include │ └── llkd.h ├── libllkd.cpp ├── llkd.cpp ├── llkd.rc └── tests │ ├── Android.bp │ └── llkd_test.cpp ├── lmkd ├── Android.bp ├── OWNERS ├── README.md ├── event.logtags ├── include │ ├── liblmkd_utils.h │ └── lmkd.h ├── liblmkd_utils.c ├── lmkd.c ├── lmkd.rc ├── statslog.c ├── statslog.h └── tests │ ├── Android.bp │ └── lmkd_test.cpp ├── logcat ├── Android.bp ├── Android.mk ├── MODULE_LICENSE_APACHE2 ├── NOTICE ├── OWNERS ├── event.logtags ├── logcat.cpp ├── logcat.h ├── logcat_main.cpp ├── logcatd.rc ├── logcatd_main.cpp ├── logpersist └── tests │ ├── Android.mk │ ├── logcat_benchmark.cpp │ ├── logcat_test.cpp │ └── logcatd_test.cpp ├── logd ├── .clang-format ├── Android.bp ├── Android.mk ├── CommandListener.cpp ├── CommandListener.h ├── FlushCommand.cpp ├── FlushCommand.h ├── LogAudit.cpp ├── LogAudit.h ├── LogBuffer.cpp ├── LogBuffer.h ├── LogBufferElement.cpp ├── LogBufferElement.h ├── LogBufferInterface.cpp ├── LogBufferInterface.h ├── LogCommand.cpp ├── LogCommand.h ├── LogKlog.cpp ├── LogKlog.h ├── LogListener.cpp ├── LogListener.h ├── LogReader.cpp ├── LogReader.h ├── LogStatistics.cpp ├── LogStatistics.h ├── LogTags.cpp ├── LogTags.h ├── LogTimes.cpp ├── LogTimes.h ├── LogUtils.h ├── LogWhiteBlackList.cpp ├── LogWhiteBlackList.h ├── OWNERS ├── README.auditd ├── README.property ├── event.logtags ├── libaudit.c ├── libaudit.h ├── logd.rc ├── logtagd.rc ├── main.cpp └── tests │ ├── Android.mk │ ├── AndroidTest.xml │ └── logd_test.cpp ├── logwrapper ├── Android.bp ├── NOTICE ├── OWNERS ├── android_fork_execvp_ext_benchmark.cpp ├── include │ └── logwrap │ │ └── logwrap.h ├── logwrap.c └── logwrapper.c ├── mkbootimg ├── Android.bp ├── Android.mk ├── OWNERS ├── include │ ├── abi_check │ │ └── mkbootimg_abi_check.h │ └── bootimg │ │ └── bootimg.h ├── mkbootimg ├── mkbootimg_dummy.cpp └── unpack_bootimg ├── platform_tools_tool_version.mk ├── property_service ├── .clang-format ├── Android.bp ├── OWNERS ├── libpropertyinfoparser │ ├── Android.bp │ ├── include │ │ └── property_info_parser │ │ │ └── property_info_parser.h │ └── property_info_parser.cpp ├── libpropertyinfoserializer │ ├── Android.bp │ ├── include │ │ └── property_info_serializer │ │ │ └── property_info_serializer.h │ ├── property_info_file.cpp │ ├── property_info_serializer.cpp │ ├── property_info_serializer_test.cpp │ ├── space_tokenizer.h │ ├── trie_builder.cpp │ ├── trie_builder.h │ ├── trie_builder_test.cpp │ ├── trie_node_arena.h │ ├── trie_serializer.cpp │ └── trie_serializer.h └── property_info_checker │ ├── Android.bp │ └── property_info_checker.cpp ├── qemu_pipe ├── Android.bp ├── OWNERS ├── include │ └── qemu_pipe.h └── qemu_pipe.cpp ├── reboot ├── Android.bp └── reboot.c ├── rootdir ├── Android.mk ├── OWNERS ├── asan.options ├── asan_extract.rc ├── asan_extract.sh ├── etc │ ├── hosts │ ├── ld.config.legacy.txt │ ├── ld.config.recovery.txt │ ├── ld.config.txt │ ├── ld.config.vndk_lite.txt │ ├── public.libraries.android.txt │ ├── public.libraries.iot.txt │ └── public.libraries.wear.txt ├── init-debug.rc ├── init.environ.rc.in ├── init.rc ├── init.usb.configfs.rc ├── init.usb.rc ├── init.zygote32.rc ├── init.zygote32_64.rc ├── init.zygote64.rc ├── init.zygote64_32.rc ├── ueventd.rc └── update_and_install_ld_config.mk ├── run-as ├── Android.bp ├── NOTICE └── run-as.cpp ├── sdcard ├── Android.bp ├── OWNERS └── sdcard.cpp ├── shell_and_utilities ├── Android.bp ├── OWNERS └── README.md ├── storaged ├── Android.bp ├── EventLogTags.logtags ├── OWNERS ├── README.properties ├── binder │ └── android │ │ └── os │ │ ├── IStoraged.aidl │ │ └── storaged │ │ ├── IStoragedPrivate.aidl │ │ └── UidInfo.aidl ├── include │ ├── storaged.h │ ├── storaged_diskstats.h │ ├── storaged_info.h │ ├── storaged_service.h │ ├── storaged_uid_monitor.h │ ├── storaged_utils.h │ └── uid_info.h ├── main.cpp ├── storaged.cpp ├── storaged.proto ├── storaged.rc ├── storaged_diskstats.cpp ├── storaged_info.cpp ├── storaged_service.cpp ├── storaged_uid_monitor.cpp ├── storaged_utils.cpp ├── tests │ └── storaged_test.cpp ├── tools │ └── ranker.py └── uid_info.cpp ├── toolbox ├── Android.bp ├── MODULE_LICENSE_APACHE2 ├── NOTICE ├── OWNERS ├── generate-input.h-labels.py ├── getevent.c ├── getprop.cpp ├── r.c ├── toolbox.c ├── tools.h └── upstream-netbsd │ └── usr.bin │ └── grep │ ├── fastgrep.c │ ├── file.c │ ├── grep.c │ ├── grep.h │ ├── queue.c │ └── util.c ├── trusty ├── Android.bp ├── OWNERS ├── gatekeeper │ ├── Android.bp │ ├── gatekeeper_ipc.h │ ├── module.cpp │ ├── trusty_gatekeeper.cpp │ ├── trusty_gatekeeper.h │ ├── trusty_gatekeeper_ipc.c │ └── trusty_gatekeeper_ipc.h ├── keymaster │ ├── 3.0 │ │ ├── TrustyKeymaster3Device.cpp │ │ ├── android.hardware.keymaster@3.0-service.trusty.rc │ │ └── service.cpp │ ├── Android.bp │ ├── TrustyKeymaster.cpp │ ├── include │ │ └── trusty_keymaster │ │ │ ├── TrustyKeymaster.h │ │ │ ├── TrustyKeymaster3Device.h │ │ │ ├── ipc │ │ │ ├── keymaster_ipc.h │ │ │ └── trusty_keymaster_ipc.h │ │ │ └── legacy │ │ │ └── trusty_keymaster_device.h │ ├── ipc │ │ └── trusty_keymaster_ipc.cpp │ └── legacy │ │ ├── Makefile │ │ ├── module.cpp │ │ ├── trusty_keymaster_device.cpp │ │ ├── trusty_keymaster_device_test.cpp │ │ └── trusty_keymaster_main.cpp ├── libtrusty │ ├── Android.bp │ ├── include │ │ └── trusty │ │ │ └── tipc.h │ ├── tipc-test │ │ ├── Android.bp │ │ └── tipc_test.c │ ├── tipc_ioctl.h │ └── trusty.c ├── storage │ ├── interface │ │ ├── Android.bp │ │ └── include │ │ │ └── trusty │ │ │ └── interface │ │ │ └── storage.h │ ├── lib │ │ ├── Android.bp │ │ ├── include │ │ │ └── trusty │ │ │ │ └── lib │ │ │ │ └── storage.h │ │ └── storage.c │ ├── proxy │ │ ├── Android.bp │ │ ├── ipc.c │ │ ├── ipc.h │ │ ├── log.h │ │ ├── proxy.c │ │ ├── rpmb.c │ │ ├── rpmb.h │ │ ├── storage.c │ │ └── storage.h │ └── tests │ │ ├── Android.bp │ │ └── main.cpp ├── trusty-base.mk └── trusty-storage.mk ├── usbd ├── Android.bp ├── usbd.cpp └── usbd.rc └── watchdogd ├── Android.bp └── watchdogd.cpp /.clang-format: -------------------------------------------------------------------------------- 1 | .clang-format-4 -------------------------------------------------------------------------------- /.clang-format-2: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Google 2 | AllowShortFunctionsOnASingleLine: Inline 3 | ColumnLimit: 100 4 | CommentPragmas: NOLINT:.* 5 | DerivePointerAlignment: false 6 | IndentWidth: 2 7 | PointerAlignment: Left 8 | TabWidth: 2 9 | UseTab: Never 10 | -------------------------------------------------------------------------------- /.clang-format-4: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Google 2 | AccessModifierOffset: -2 3 | AllowShortFunctionsOnASingleLine: Inline 4 | ColumnLimit: 100 5 | CommentPragmas: NOLINT:.* 6 | DerivePointerAlignment: false 7 | IndentWidth: 4 8 | ContinuationIndentWidth: 8 9 | PointerAlignment: Left 10 | TabWidth: 4 11 | UseTab: Never 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.pyc 3 | -------------------------------------------------------------------------------- /Android.bp: -------------------------------------------------------------------------------- 1 | filegroup { 2 | name: "android_filesystem_config_header", 3 | srcs: ["include/private/android_filesystem_config.h"], 4 | } 5 | 6 | subdirs = ["*"] 7 | -------------------------------------------------------------------------------- /Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2008 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | LOCAL_PATH := $(my-dir) 17 | 18 | include $(call first-makefiles-under,$(LOCAL_PATH)) 19 | -------------------------------------------------------------------------------- /MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /OWNERS: -------------------------------------------------------------------------------- 1 | enh@google.com 2 | -------------------------------------------------------------------------------- /PREUPLOAD.cfg: -------------------------------------------------------------------------------- 1 | [Builtin Hooks] 2 | clang_format = true 3 | 4 | [Builtin Hooks Options] 5 | clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp 6 | -------------------------------------------------------------------------------- /adb/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-4 -------------------------------------------------------------------------------- /adb/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | # Archive adb, adb.exe. 4 | $(call dist-for-goals,dist_files sdk win_sdk,$(HOST_OUT_EXECUTABLES)/adb) 5 | 6 | ifdef HOST_CROSS_OS 7 | $(call dist-for-goals,dist_files sdk win_sdk,$(ALL_MODULES.host_cross_adb.BUILT)) 8 | endif 9 | -------------------------------------------------------------------------------- /adb/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/adb/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /adb/OWNERS: -------------------------------------------------------------------------------- 1 | jmgao@google.com 2 | yabinc@google.com 3 | -------------------------------------------------------------------------------- /adb/adb_mdns.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _ADB_MDNS_H_ 18 | #define _ADB_MDNS_H_ 19 | 20 | const char* kADBServiceType = "_adb._tcp"; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /adb/adb_unique_fd.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include "adb_unique_fd.h" 18 | 19 | #include 20 | #include 21 | 22 | #include "sysdeps.h" 23 | 24 | #if defined(_WIN32) 25 | void AdbCloser::Close(int fd) { 26 | adb_close(fd); 27 | } 28 | #endif 29 | -------------------------------------------------------------------------------- /adb/daemon/file_sync_service.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #pragma once 18 | 19 | #include "adb_unique_fd.h" 20 | 21 | void file_sync_service(unique_fd fd); 22 | -------------------------------------------------------------------------------- /adb/daemon/framebuffer_service.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #pragma once 18 | 19 | #include "adb_unique_fd.h" 20 | 21 | void framebuffer_service(unique_fd fd); 22 | -------------------------------------------------------------------------------- /adb/daemon/mdns.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _DAEMON_MDNS_H_ 18 | #define _DAEMON_MDNS_H_ 19 | 20 | void setup_mdns(int port); 21 | 22 | #endif // _DAEMON_MDNS_H_ 23 | -------------------------------------------------------------------------------- /adb/daemon/remount_service.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #pragma once 18 | 19 | #include 20 | 21 | #include "adb_unique_fd.h" 22 | 23 | bool make_block_device_writable(const std::string&); 24 | void remount_service(unique_fd, const std::string&); 25 | -------------------------------------------------------------------------------- /adb/daemon/set_verity_enable_state_service.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #pragma once 18 | 19 | #include "adb_unique_fd.h" 20 | 21 | void set_verity_enabled_state_service(unique_fd fd, bool enable); 22 | -------------------------------------------------------------------------------- /adb/services.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef SERVICES_H_ 18 | #define SERVICES_H_ 19 | 20 | #include "adb_unique_fd.h" 21 | 22 | constexpr char kShellServiceArgRaw[] = "raw"; 23 | constexpr char kShellServiceArgPty[] = "pty"; 24 | constexpr char kShellServiceArgShellProtocol[] = "v2"; 25 | 26 | unique_fd create_service_thread(const char* service_name, std::function func); 27 | #endif // SERVICES_H_ 28 | -------------------------------------------------------------------------------- /adb/sockets.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/adb/sockets.dia -------------------------------------------------------------------------------- /adb/sysdeps/network.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | /* 4 | * Copyright (C) 2017 The Android Open Source Project 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include 20 | 21 | int network_loopback_client(int port, int type, std::string* error); 22 | int network_loopback_server(int port, int type, std::string* error); 23 | -------------------------------------------------------------------------------- /adb/trace.sh: -------------------------------------------------------------------------------- 1 | set -e 2 | 3 | if ! [ -e $ANDROID_BUILD_TOP/external/chromium-trace/systrace.py ]; then 4 | echo "error: can't find systrace.py at \$ANDROID_BUILD_TOP/external/chromium-trace/systrace.py" 5 | exit 1 6 | fi 7 | 8 | adb shell "sleep 1; atrace -b 65536 --async_start adb sched power freq idle disk mmc load" 9 | adb shell killall adbd 10 | adb wait-for-device 11 | echo "press enter to finish..." 12 | read 13 | TRACE_TEMP=`mktemp /tmp/trace.XXXXXX` 14 | echo Saving trace to ${TRACE_TEMP}, html file to ${TRACE_TEMP}.html 15 | adb shell atrace --async_stop -z > ${TRACE_TEMP} 16 | $ANDROID_BUILD_TOP/external/chromium-trace/systrace.py --from-file=${TRACE_TEMP} -o ${TRACE_TEMP}.html 17 | chrome ${TRACE_TEMP}.html 18 | -------------------------------------------------------------------------------- /adf/Android.bp: -------------------------------------------------------------------------------- 1 | subdirs = ["*"] 2 | -------------------------------------------------------------------------------- /adf/OWNERS: -------------------------------------------------------------------------------- 1 | ghackmann@google.com 2 | marissaw@google.com 3 | -------------------------------------------------------------------------------- /adf/libadf/Android.bp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2013 The Android Open Source Project 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | cc_library { 16 | name: "libadf", 17 | recovery_available: true, 18 | vendor_available: true, 19 | vndk: { 20 | enabled: true, 21 | }, 22 | srcs: ["adf.cpp"], 23 | cflags: ["-Werror"], 24 | local_include_dirs: ["include"], 25 | export_include_dirs: ["include"], 26 | } 27 | 28 | subdirs = ["tests"] 29 | -------------------------------------------------------------------------------- /adf/libadf/tests/Android.bp: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2013 The Android Open Source Project 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // 16 | 17 | cc_test { 18 | name: "adf-unit-tests", 19 | srcs: ["adf_test.cpp"], 20 | shared_libs: ["libsync"], 21 | static_libs: ["libadf"], 22 | cflags: ["-Werror"], 23 | } 24 | -------------------------------------------------------------------------------- /adf/libadfhwc/Android.bp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2013 The Android Open Source Project 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | cc_library_static { 16 | name: "libadfhwc", 17 | srcs: ["adfhwc.cpp"], 18 | static_libs: [ 19 | "libadf", 20 | "liblog", 21 | "libutils", 22 | ], 23 | cflags: [ 24 | "-DLOG_TAG=\"adfhwc\"", 25 | "-Werror", 26 | ], 27 | local_include_dirs: ["include"], 28 | export_include_dirs: ["include"], 29 | } 30 | -------------------------------------------------------------------------------- /base/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-2 -------------------------------------------------------------------------------- /base/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | set noparent 2 | filter=-build/header_guard,-build/include,-build/c++11,-whitespace/operators 3 | -------------------------------------------------------------------------------- /base/OWNERS: -------------------------------------------------------------------------------- 1 | enh@google.com 2 | jmgao@google.com 3 | tomcherry@google.com 4 | -------------------------------------------------------------------------------- /base/errors_unix.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include "android-base/errors.h" 18 | 19 | #include 20 | 21 | namespace android { 22 | namespace base { 23 | 24 | std::string SystemErrorCodeToString(int error_code) { 25 | return strerror(error_code); 26 | } 27 | 28 | } // namespace base 29 | } // namespace android 30 | -------------------------------------------------------------------------------- /base/include/android-base/threads.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #pragma once 18 | 19 | #include 20 | 21 | namespace android { 22 | namespace base { 23 | uint64_t GetThreadId(); 24 | } 25 | } // namespace android 26 | 27 | #if defined(__GLIBC__) 28 | // bionic has this Linux-specifix call, but glibc doesn't. 29 | extern "C" int tgkill(int tgid, int tid, int sig); 30 | #endif 31 | -------------------------------------------------------------------------------- /base/macros_test.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include "android-base/macros.h" 18 | 19 | #include 20 | 21 | #include 22 | 23 | TEST(macros, SIZEOF_MEMBER_macro) { 24 | struct S { 25 | int32_t i32; 26 | double d; 27 | }; 28 | ASSERT_EQ(4U, SIZEOF_MEMBER(S, i32)); 29 | ASSERT_EQ(8U, SIZEOF_MEMBER(S, d)); 30 | } 31 | -------------------------------------------------------------------------------- /base/test_main.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | 19 | #include "android-base/logging.h" 20 | 21 | int main(int argc, char** argv) { 22 | ::testing::InitGoogleTest(&argc, argv); 23 | android::base::InitLogging(argv, android::base::StderrLogger); 24 | return RUN_ALL_TESTS(); 25 | } 26 | -------------------------------------------------------------------------------- /bootstat/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-2 -------------------------------------------------------------------------------- /bootstat/OWNERS: -------------------------------------------------------------------------------- 1 | jhawkins@google.com 2 | -------------------------------------------------------------------------------- /bootstat/bootstat-debug.rc: -------------------------------------------------------------------------------- 1 | # This file is the userdebug LOCAL_INIT_RC file for the bootstat command. 2 | 3 | # FOR TESTING 4 | # For devices w/o bootloader boot reason reported, mirror test boot reason 5 | # to bootloader boot reason to allow test to inject reasons 6 | on property:persist.test.boot.reason=* 7 | setprop ro.boot.bootreason ${persist.test.boot.reason} 8 | -------------------------------------------------------------------------------- /bootstat/testrunner.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | #include 19 | 20 | int main(int argc, char** argv) { 21 | ::testing::InitGoogleTest(&argc, argv); 22 | android::base::InitLogging(argv, android::base::StderrLogger); 23 | return RUN_ALL_TESTS(); 24 | } 25 | -------------------------------------------------------------------------------- /cpio/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2005 The Android Open Source Project 2 | 3 | LOCAL_PATH:= $(call my-dir) 4 | include $(CLEAR_VARS) 5 | 6 | LOCAL_SRC_FILES := \ 7 | mkbootfs.c 8 | 9 | LOCAL_MODULE := mkbootfs 10 | 11 | LOCAL_CFLAGS := -Werror 12 | 13 | LOCAL_SHARED_LIBRARIES := libcutils 14 | 15 | include $(BUILD_HOST_EXECUTABLE) 16 | 17 | $(call dist-for-goals,dist_files,$(LOCAL_BUILT_MODULE)) 18 | -------------------------------------------------------------------------------- /debuggerd/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-2 -------------------------------------------------------------------------------- /debuggerd/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | LOCAL_MODULE := crash_dump.policy 5 | LOCAL_MODULE_CLASS := ETC 6 | LOCAL_MULTILIB := both 7 | 8 | ifeq ($(TARGET_ARCH), $(filter $(TARGET_ARCH), arm arm64)) 9 | LOCAL_MODULE_STEM_32 := crash_dump.arm.policy 10 | LOCAL_MODULE_STEM_64 := crash_dump.arm64.policy 11 | endif 12 | 13 | ifeq ($(TARGET_ARCH), $(filter $(TARGET_ARCH), x86 x86_64)) 14 | LOCAL_MODULE_STEM_32 := crash_dump.x86.policy 15 | LOCAL_MODULE_STEM_64 := crash_dump.x86_64.policy 16 | endif 17 | 18 | LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/seccomp_policy 19 | LOCAL_SRC_FILES_arm := seccomp_policy/crash_dump.arm.policy 20 | LOCAL_SRC_FILES_arm64 := seccomp_policy/crash_dump.arm64.policy 21 | LOCAL_SRC_FILES_x86 := seccomp_policy/crash_dump.x86.policy 22 | LOCAL_SRC_FILES_x86_64 := seccomp_policy/crash_dump.x86_64.policy 23 | LOCAL_MODULE_TARGET_ARCH := arm arm64 x86 x86_64 24 | include $(BUILD_PREBUILT) 25 | -------------------------------------------------------------------------------- /debuggerd/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/debuggerd/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /debuggerd/OWNERS: -------------------------------------------------------------------------------- 1 | cferris@google.com 2 | jmgao@google.com 3 | -------------------------------------------------------------------------------- /debuggerd/crasher/x86/crashglue.S: -------------------------------------------------------------------------------- 1 | .globl crash1 2 | .globl crashnostack 3 | 4 | crash1: 5 | movl $0xa5a50000, %eax 6 | movl $0xa5a50001, %ebx 7 | movl $0xa5a50002, %ecx 8 | 9 | movl $0, %edx 10 | jmp *%edx 11 | 12 | 13 | crashnostack: 14 | movl $0, %ebp 15 | jmp *%ebp 16 | -------------------------------------------------------------------------------- /debuggerd/crasher/x86_64/crashglue.S: -------------------------------------------------------------------------------- 1 | .globl crash1 2 | .globl crashnostack 3 | 4 | crash1: 5 | movl $0xa5a50000, %eax 6 | movl $0xa5a50001, %ebx 7 | movl $0xa5a50002, %ecx 8 | 9 | movl $0, %edx 10 | jmp *%rdx 11 | 12 | 13 | crashnostack: 14 | movl $0, %ebp 15 | jmp *%rbp 16 | -------------------------------------------------------------------------------- /debuggerd/libdebuggerd/include/libdebuggerd/elf_utils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _DEBUGGERD_ELF_UTILS_H 18 | #define _DEBUGGERD_ELF_UTILS_H 19 | 20 | #include 21 | #include 22 | 23 | namespace unwindstack { 24 | class Memory; 25 | } 26 | 27 | bool elf_get_build_id(unwindstack::Memory*, uintptr_t, std::string*); 28 | 29 | #endif // _DEBUGGERD_ELF_UTILS_H 30 | -------------------------------------------------------------------------------- /debuggerd/libdebuggerd/test/elf_fake.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _DEBUGGERD_TEST_ELF_FAKE_H 18 | #define _DEBUGGERD_TEST_ELF_FAKE_H 19 | 20 | #include 21 | 22 | void elf_set_fake_build_id(const std::string&); 23 | 24 | #endif // _DEBUGGERD_TEST_ELF_FAKE_H 25 | -------------------------------------------------------------------------------- /debuggerd/libdebuggerd/test/log_fake.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _DEBUGGERD_TEST_LOG_FAKE_H 18 | #define _DEBUGGERD_TEST_LOG_FAKE_H 19 | 20 | #include 21 | 22 | void resetLogs(); 23 | std::string getFakeLogBuf(); 24 | std::string getFakeLogPrint(); 25 | 26 | #endif // _DEBUGGERD_TEST_LOG_FAKE_H 27 | -------------------------------------------------------------------------------- /debuggerd/seccomp_policy/crash_dump.arm.policy: -------------------------------------------------------------------------------- 1 | read: 1 2 | write: 1 3 | exit: 1 4 | rt_sigreturn: 1 5 | sigreturn: 1 6 | exit_group: 1 7 | clock_gettime: 1 8 | gettimeofday: 1 9 | futex: 1 10 | getrandom: 1 11 | getpid: 1 12 | gettid: 1 13 | ppoll: 1 14 | pipe2: 1 15 | openat: 1 16 | dup: 1 17 | close: 1 18 | lseek: 1 19 | getdents64: 1 20 | faccessat: 1 21 | recvmsg: 1 22 | process_vm_readv: 1 23 | tgkill: 1 24 | rt_sigprocmask: 1 25 | rt_sigaction: 1 26 | rt_tgsigqueueinfo: 1 27 | prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == 0x53564d41 28 | madvise: 1 29 | mprotect: arg2 in 0x1|0x2 30 | munmap: 1 31 | getuid32: 1 32 | fstat64: 1 33 | mmap2: arg2 in 0x1|0x2 34 | geteuid32: 1 35 | getgid32: 1 36 | getegid32: 1 37 | getgroups32: 1 38 | -------------------------------------------------------------------------------- /debuggerd/seccomp_policy/crash_dump.arm64.policy: -------------------------------------------------------------------------------- 1 | read: 1 2 | write: 1 3 | exit: 1 4 | rt_sigreturn: 1 5 | exit_group: 1 6 | clock_gettime: 1 7 | gettimeofday: 1 8 | futex: 1 9 | getrandom: 1 10 | getpid: 1 11 | gettid: 1 12 | ppoll: 1 13 | pipe2: 1 14 | openat: 1 15 | dup: 1 16 | close: 1 17 | lseek: 1 18 | getdents64: 1 19 | faccessat: 1 20 | recvmsg: 1 21 | process_vm_readv: 1 22 | tgkill: 1 23 | rt_sigprocmask: 1 24 | rt_sigaction: 1 25 | rt_tgsigqueueinfo: 1 26 | prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == 0x53564d41 27 | madvise: 1 28 | mprotect: arg2 in 0x1|0x2 29 | munmap: 1 30 | getuid: 1 31 | fstat: 1 32 | mmap: arg2 in 0x1|0x2 33 | geteuid: 1 34 | getgid: 1 35 | getegid: 1 36 | getgroups: 1 37 | -------------------------------------------------------------------------------- /debuggerd/seccomp_policy/crash_dump.x86.policy: -------------------------------------------------------------------------------- 1 | read: 1 2 | write: 1 3 | exit: 1 4 | rt_sigreturn: 1 5 | sigreturn: 1 6 | exit_group: 1 7 | clock_gettime: 1 8 | gettimeofday: 1 9 | futex: 1 10 | getrandom: 1 11 | getpid: 1 12 | gettid: 1 13 | ppoll: 1 14 | pipe2: 1 15 | openat: 1 16 | dup: 1 17 | close: 1 18 | lseek: 1 19 | getdents64: 1 20 | faccessat: 1 21 | recvmsg: 1 22 | process_vm_readv: 1 23 | tgkill: 1 24 | rt_sigprocmask: 1 25 | rt_sigaction: 1 26 | rt_tgsigqueueinfo: 1 27 | prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == 0x53564d41 28 | madvise: 1 29 | mprotect: arg2 in 0x1|0x2 30 | munmap: 1 31 | getuid32: 1 32 | fstat64: 1 33 | mmap2: arg2 in 0x1|0x2 34 | geteuid32: 1 35 | getgid32: 1 36 | getegid32: 1 37 | getgroups32: 1 38 | -------------------------------------------------------------------------------- /debuggerd/seccomp_policy/crash_dump.x86_64.policy: -------------------------------------------------------------------------------- 1 | read: 1 2 | write: 1 3 | exit: 1 4 | rt_sigreturn: 1 5 | exit_group: 1 6 | clock_gettime: 1 7 | gettimeofday: 1 8 | futex: 1 9 | getrandom: 1 10 | getpid: 1 11 | gettid: 1 12 | ppoll: 1 13 | pipe2: 1 14 | openat: 1 15 | dup: 1 16 | close: 1 17 | lseek: 1 18 | getdents64: 1 19 | faccessat: 1 20 | recvmsg: 1 21 | process_vm_readv: 1 22 | tgkill: 1 23 | rt_sigprocmask: 1 24 | rt_sigaction: 1 25 | rt_tgsigqueueinfo: 1 26 | prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == 0x53564d41 27 | madvise: 1 28 | mprotect: arg2 in 0x1|0x2 29 | munmap: 1 30 | getuid: 1 31 | fstat: 1 32 | mmap: arg2 in 0x1|0x2 33 | geteuid: 1 34 | getgid: 1 35 | getegid: 1 36 | getgroups: 1 37 | -------------------------------------------------------------------------------- /debuggerd/seccomp_policy/generate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -ex 4 | 5 | cd "$(dirname "$0")" 6 | CPP='cpp -undef -E -P crash_dump.policy.def' 7 | $CPP -D__arm__ -o crash_dump.arm.policy 8 | $CPP -D__aarch64__ -D__LP64__ -o crash_dump.arm64.policy 9 | $CPP -D__i386__ -o crash_dump.x86.policy 10 | $CPP -D__x86_64__ -D__LP64__ -o crash_dump.x86_64.policy 11 | -------------------------------------------------------------------------------- /debuggerd/tombstoned/tombstoned.rc: -------------------------------------------------------------------------------- 1 | service tombstoned /system/bin/tombstoned 2 | user tombstoned 3 | group system 4 | 5 | # Don't start tombstoned until after the real /data is mounted. 6 | class late_start 7 | 8 | socket tombstoned_crash seqpacket 0666 system system 9 | socket tombstoned_intercept seqpacket 0666 system system 10 | socket tombstoned_java_trace seqpacket 0666 system system 11 | writepid /dev/cpuset/system-background/tasks 12 | -------------------------------------------------------------------------------- /demangle/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-2 -------------------------------------------------------------------------------- /demangle/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2017 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | LOCAL_PATH := $(call my-dir) 18 | 19 | include $(CLEAR_VARS) 20 | 21 | LOCAL_MODULE := demangle_fuzzer 22 | LOCAL_SRC_FILES := \ 23 | Demangler.cpp \ 24 | demangle_fuzzer.cpp \ 25 | 26 | LOCAL_CFLAGS := \ 27 | -Wall \ 28 | -Werror \ 29 | -Wextra \ 30 | 31 | include $(BUILD_FUZZ_TEST) 32 | -------------------------------------------------------------------------------- /demangle/OWNERS: -------------------------------------------------------------------------------- 1 | cferris@google.com 2 | -------------------------------------------------------------------------------- /demangle/include/demangle.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef __LIB_DEMANGLE_H_ 18 | #define __LIB_DEMANGLE_H_ 19 | 20 | #include 21 | 22 | // If the name cannot be demangled, the original name will be returned as 23 | // a std::string. If the name can be demangled, then the demangled name 24 | // will be returned as a std::string. 25 | std::string demangle(const char* name); 26 | 27 | #endif // __LIB_DEMANGLE_H_ 28 | -------------------------------------------------------------------------------- /diagnose_usb/Android.bp: -------------------------------------------------------------------------------- 1 | cc_library_static { 2 | name: "libdiagnose_usb", 3 | cflags: ["-Wall", "-Wextra", "-Werror"], 4 | host_supported: true, 5 | recovery_available: true, 6 | target: { 7 | windows: { 8 | enabled: true, 9 | }, 10 | }, 11 | srcs: ["diagnose_usb.cpp"], 12 | export_include_dirs: ["include"], 13 | static_libs: ["libbase"], 14 | } 15 | -------------------------------------------------------------------------------- /diagnose_usb/OWNERS: -------------------------------------------------------------------------------- 1 | jmgao@google.com 2 | yabinc@google.com 3 | -------------------------------------------------------------------------------- /fastboot/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-4 -------------------------------------------------------------------------------- /fastboot/OWNERS: -------------------------------------------------------------------------------- 1 | dpursell@google.com 2 | enh@google.com 3 | jmgao@google.com 4 | tomcherry@google.com 5 | -------------------------------------------------------------------------------- /fastboot/device/flashing.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #pragma once 18 | 19 | #include 20 | #include 21 | 22 | class FastbootDevice; 23 | 24 | int Flash(FastbootDevice* device, const std::string& partition_name); 25 | -------------------------------------------------------------------------------- /fastboot/device/main.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | 19 | #include "fastboot_device.h" 20 | 21 | int main(int /*argc*/, char* argv[]) { 22 | android::base::InitLogging(argv, &android::base::KernelLogger); 23 | 24 | while (true) { 25 | FastbootDevice device; 26 | device.ExecuteCommands(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /fastboot/fs.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | struct fs_generator; 7 | 8 | const struct fs_generator* fs_get_generator(const std::string& fs_type); 9 | int fs_generator_generate(const struct fs_generator* gen, const char* fileName, long long partSize, 10 | const std::string& initial_dir, unsigned eraseBlkSize = 0, unsigned logicalBlkSize = 0); 11 | -------------------------------------------------------------------------------- /fastboot/util.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | #include 7 | 8 | #include 9 | 10 | /* util stuff */ 11 | double now(); 12 | char* xstrdup(const char*); 13 | void set_verbose(); 14 | 15 | // These printf-like functions are implemented in terms of vsnprintf, so they 16 | // use the same attribute for compile-time format string checking. 17 | void die(const char* fmt, ...) __attribute__((__noreturn__)) 18 | __attribute__((__format__(__printf__, 1, 2))); 19 | void verbose(const char* fmt, ...) __attribute__((__format__(__printf__, 1, 2))); 20 | -------------------------------------------------------------------------------- /fs_mgr/.clang-format: -------------------------------------------------------------------------------- 1 | ../init/.clang-format -------------------------------------------------------------------------------- /fs_mgr/OWNERS: -------------------------------------------------------------------------------- 1 | bowgotsai@google.com 2 | tomcherry@google.com 3 | -------------------------------------------------------------------------------- /fs_mgr/include/fs_mgr_overlayfs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #pragma once 18 | 19 | #include 20 | 21 | bool fs_mgr_overlayfs_mount_all(); 22 | bool fs_mgr_overlayfs_setup(const char* backing = nullptr, const char* mount_point = nullptr, 23 | bool* change = nullptr); 24 | bool fs_mgr_overlayfs_teardown(const char* mount_point = nullptr, bool* change = nullptr); 25 | -------------------------------------------------------------------------------- /fs_mgr/tools/Android.bp: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2018 The Android Open Source Project 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // 16 | 17 | cc_binary { 18 | name: "dmctl", 19 | srcs: ["dmctl.cpp"], 20 | 21 | static_libs: [ 22 | "libfs_mgr", 23 | ], 24 | 25 | shared_libs: [ 26 | "libbase", 27 | "liblog", 28 | ], 29 | 30 | cflags: ["-Werror"], 31 | } 32 | -------------------------------------------------------------------------------- /gatekeeperd/OWNERS: -------------------------------------------------------------------------------- 1 | swillden@google.com 2 | jdanis@google.com 3 | -------------------------------------------------------------------------------- /gatekeeperd/gatekeeperd.rc: -------------------------------------------------------------------------------- 1 | service gatekeeperd /system/bin/gatekeeperd /data/misc/gatekeeper 2 | class late_start 3 | user system 4 | writepid /dev/cpuset/system-background/tasks 5 | -------------------------------------------------------------------------------- /healthd/OWNERS: -------------------------------------------------------------------------------- 1 | elsk@google.com 2 | toddpoynor@google.com 3 | -------------------------------------------------------------------------------- /healthd/android.hardware.health@2.0-service.rc: -------------------------------------------------------------------------------- 1 | service health-hal-2-0 /vendor/bin/hw/android.hardware.health@2.0-service 2 | class hal 3 | user system 4 | group system 5 | file /dev/kmsg w 6 | -------------------------------------------------------------------------------- /healthd/healthd.rc: -------------------------------------------------------------------------------- 1 | service healthd /system/bin/healthd 2 | class hal 3 | critical 4 | group root system wakelock 5 | -------------------------------------------------------------------------------- /healthd/images/battery_fail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/healthd/images/battery_fail.png -------------------------------------------------------------------------------- /healthd/images/battery_scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/healthd/images/battery_scale.png -------------------------------------------------------------------------------- /healthd/manifest_healthd.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | android.hardware.health 4 | hwbinder 5 | 2.0 6 | 7 | IHealth 8 | backup 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /healthd/tests/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2016 The Android Open Source Project 2 | 3 | LOCAL_PATH:= $(call my-dir) 4 | 5 | include $(CLEAR_VARS) 6 | 7 | LOCAL_SRC_FILES := \ 8 | AnimationParser_test.cpp \ 9 | 10 | LOCAL_MODULE := healthd_test 11 | LOCAL_MODULE_TAGS := tests 12 | 13 | LOCAL_STATIC_LIBRARIES := \ 14 | libhealthd_internal \ 15 | 16 | LOCAL_SHARED_LIBRARIES := \ 17 | liblog \ 18 | libbase \ 19 | libcutils \ 20 | 21 | include $(BUILD_NATIVE_TEST) 22 | -------------------------------------------------------------------------------- /include/android/log.h: -------------------------------------------------------------------------------- 1 | ../../liblog/include/android/log.h -------------------------------------------------------------------------------- /include/backtrace: -------------------------------------------------------------------------------- 1 | ../libbacktrace/include/backtrace -------------------------------------------------------------------------------- /include/cutils: -------------------------------------------------------------------------------- 1 | ../libcutils/include/cutils/ -------------------------------------------------------------------------------- /include/log: -------------------------------------------------------------------------------- 1 | ../liblog/include/log -------------------------------------------------------------------------------- /include/private/android_filesystem_capability.h: -------------------------------------------------------------------------------- 1 | ../../libcutils/include/private/android_filesystem_capability.h -------------------------------------------------------------------------------- /include/private/android_filesystem_config.h: -------------------------------------------------------------------------------- 1 | ../../libcutils/include/private/android_filesystem_config.h -------------------------------------------------------------------------------- /include/private/android_logger.h: -------------------------------------------------------------------------------- 1 | ../../liblog/include/private/android_logger.h -------------------------------------------------------------------------------- /include/private/canned_fs_config.h: -------------------------------------------------------------------------------- 1 | ../../libcutils/include/private/canned_fs_config.h -------------------------------------------------------------------------------- /include/private/fs_config.h: -------------------------------------------------------------------------------- 1 | // TODO(b/63135587) remove this file after the transitive dependency 2 | // from private/android_filesystem_config.h is resolved. All files that use 3 | // libcutils/include/private/fs_config.h should include the file directly, not 4 | // indirectly via private/android_filesystem_config.h. 5 | -------------------------------------------------------------------------------- /include/system: -------------------------------------------------------------------------------- 1 | ../libsystem/include/system/ -------------------------------------------------------------------------------- /include/sysutils: -------------------------------------------------------------------------------- 1 | ../libsysutils/include/sysutils/ -------------------------------------------------------------------------------- /include/utils: -------------------------------------------------------------------------------- 1 | ../libutils/include/utils/ -------------------------------------------------------------------------------- /init/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-4 -------------------------------------------------------------------------------- /init/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/init/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /init/OWNERS: -------------------------------------------------------------------------------- 1 | tomcherry@google.com 2 | -------------------------------------------------------------------------------- /init/first_stage_mount.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #pragma once 18 | 19 | namespace android { 20 | namespace init { 21 | 22 | bool DoFirstStageMount(); 23 | void SetInitAvbVersionInRecovery(); 24 | 25 | } // namespace init 26 | } // namespace android 27 | -------------------------------------------------------------------------------- /init/grab-bootchart.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # This script is used to retrieve a bootchart log generated by init. 4 | # All options are passed to adb, for better or for worse. 5 | # See the readme in this directory for more on bootcharting. 6 | 7 | TMPDIR=/tmp/android-bootchart 8 | rm -rf $TMPDIR 9 | mkdir -p $TMPDIR 10 | 11 | LOGROOT=/data/bootchart 12 | TARBALL=bootchart.tgz 13 | 14 | FILES="header proc_stat.log proc_ps.log proc_diskstats.log" 15 | 16 | for f in $FILES; do 17 | adb "${@}" pull $LOGROOT/$f $TMPDIR/$f 2>&1 > /dev/null 18 | done 19 | (cd $TMPDIR && tar -czf $TARBALL $FILES) 20 | bootchart ${TMPDIR}/${TARBALL} 21 | gnome-open ${TARBALL%.tgz}.png 22 | echo "Clean up ${TMPDIR}/ and ./${TARBALL%.tgz}.png when done" 23 | -------------------------------------------------------------------------------- /init/main.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include "init.h" 18 | 19 | int main(int argc, char** argv) { 20 | android::init::main(argc, argv); 21 | } 22 | -------------------------------------------------------------------------------- /init/persistent_properties.proto: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | syntax = "proto2"; 18 | option optimize_for = LITE_RUNTIME; 19 | 20 | message PersistentProperties { 21 | message PersistentPropertyRecord { 22 | optional string name = 1; 23 | optional string value = 2; 24 | } 25 | 26 | repeated PersistentPropertyRecord properties = 1; 27 | } 28 | -------------------------------------------------------------------------------- /init/property_type.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _INIT_PROPERTY_TYPE_H 18 | #define _INIT_PROPERTY_TYPE_H 19 | 20 | #include 21 | 22 | namespace android { 23 | namespace init { 24 | 25 | bool CheckType(const std::string& type_string, const std::string& value); 26 | 27 | } // namespace init 28 | } // namespace android 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /init/reboot.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _INIT_REBOOT_H 18 | #define _INIT_REBOOT_H 19 | 20 | #include 21 | 22 | namespace android { 23 | namespace init { 24 | 25 | // Parses and handles a setprop sys.powerctl message. 26 | bool HandlePowerctlMessage(const std::string& command); 27 | 28 | } // namespace init 29 | } // namespace android 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /init/sigchld_handler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _INIT_SIGCHLD_HANDLER_H_ 18 | #define _INIT_SIGCHLD_HANDLER_H_ 19 | 20 | namespace android { 21 | namespace init { 22 | 23 | void ReapAnyOutstandingChildren(); 24 | 25 | } // namespace init 26 | } // namespace android 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /init/test_service/Android.bp: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2017 The Android Open Source Project 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // 16 | 17 | cc_binary { 18 | name: "test_service", 19 | srcs: ["test_service.cpp"], 20 | cflags: [ 21 | "-Wall", 22 | "-Werror", 23 | ], 24 | shared_libs: ["libbase"], 25 | init_rc: ["test_service.rc"], 26 | } 27 | -------------------------------------------------------------------------------- /init/test_service/test_service.rc: -------------------------------------------------------------------------------- 1 | service test_service /system/bin/test_service CapAmb 0000000000003000 2 | class main 3 | user system 4 | group system 5 | capabilities NET_ADMIN NET_RAW 6 | disabled 7 | oneshot 8 | -------------------------------------------------------------------------------- /init/uevent_handler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #pragma once 18 | 19 | #include "uevent.h" 20 | 21 | namespace android { 22 | namespace init { 23 | 24 | class UeventHandler { 25 | public: 26 | virtual ~UeventHandler() = default; 27 | 28 | virtual void HandleUevent(const Uevent& uevent) = 0; 29 | 30 | virtual void ColdbootDone() {} 31 | }; 32 | 33 | } // namespace init 34 | } // namespace android 35 | -------------------------------------------------------------------------------- /init/ueventd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _INIT_UEVENTD_H_ 18 | #define _INIT_UEVENTD_H_ 19 | 20 | namespace android { 21 | namespace init { 22 | 23 | int ueventd_main(int argc, char** argv); 24 | 25 | } // namespace init 26 | } // namespace android 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /libappfuse/Android.bp: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Android Open Source Project 2 | 3 | cc_defaults { 4 | name: "libappfuse_defaults", 5 | local_include_dirs: ["include"], 6 | shared_libs: ["libbase"], 7 | cflags: [ 8 | "-Wall", 9 | "-Werror", 10 | ], 11 | } 12 | 13 | cc_library_shared { 14 | name: "libappfuse", 15 | defaults: ["libappfuse_defaults"], 16 | export_include_dirs: ["include"], 17 | srcs: [ 18 | "FuseAppLoop.cc", 19 | "FuseBuffer.cc", 20 | "FuseBridgeLoop.cc", 21 | "EpollController.cc", 22 | ], 23 | } 24 | 25 | cc_test { 26 | name: "libappfuse_test", 27 | test_suites: ["device-tests"], 28 | defaults: ["libappfuse_defaults"], 29 | shared_libs: ["libappfuse"], 30 | srcs: [ 31 | "tests/FuseAppLoopTest.cc", 32 | "tests/FuseBridgeLoopTest.cc", 33 | "tests/FuseBufferTest.cc", 34 | ], 35 | } 36 | -------------------------------------------------------------------------------- /libappfuse/OWNERS: -------------------------------------------------------------------------------- 1 | hirono@google.com 2 | -------------------------------------------------------------------------------- /libbacktrace/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-2 -------------------------------------------------------------------------------- /libbacktrace/GetPss.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _LIBBACKTRACE_GET_PSS_H 18 | #define _LIBBACKTRACE_GET_PSS_H 19 | 20 | size_t GetPssBytes(); 21 | 22 | #endif // _LIBBACKTRACE_GET_PSS_H 23 | -------------------------------------------------------------------------------- /libbacktrace/OWNERS: -------------------------------------------------------------------------------- 1 | cferris@google.com 2 | jmgao@google.com 3 | -------------------------------------------------------------------------------- /libbacktrace/testdata/arm/libGLESv2_adreno.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libbacktrace/testdata/arm/libGLESv2_adreno.so -------------------------------------------------------------------------------- /libbacktrace/testdata/arm/libandroid_runtime.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libbacktrace/testdata/arm/libandroid_runtime.so -------------------------------------------------------------------------------- /libbacktrace/testdata/arm/libart.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libbacktrace/testdata/arm/libart.so -------------------------------------------------------------------------------- /libbacktrace/testdata/arm/libbacktrace_test_arm_exidx.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libbacktrace/testdata/arm/libbacktrace_test_arm_exidx.so -------------------------------------------------------------------------------- /libbacktrace/testdata/arm/libbacktrace_test_debug_frame.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libbacktrace/testdata/arm/libbacktrace_test_debug_frame.so -------------------------------------------------------------------------------- /libbacktrace/testdata/arm/libbacktrace_test_gnu_debugdata.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libbacktrace/testdata/arm/libbacktrace_test_gnu_debugdata.so -------------------------------------------------------------------------------- /libbacktrace/testdata/arm/offline_testdata_for_libGLESv2_adreno: -------------------------------------------------------------------------------- 1 | pid: 7288 tid: 31656 2 | ucontext: 104 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f017cc00000000356241cc0000000000000000 3 | map: start: cc361000 end: cc758000 offset: 0 load_bias: 9000 flags: 5 name: /vendor/lib/egl/libGLESv2_adreno.so 4 | stack: start: cc17f234 end: cc17f258 size: 36 0000000000000000000000000000000000000000000000000000000000000000b36141cc 5 | function: start: be1f0 end: be304 name: EsxContext::Clear(unsigned int, unsigned int, unsigned int, EsxClearValues*) 6 | function: start: be058 end: be1f0 name: EsxContext::ClearBuffersForDebug() 7 | -------------------------------------------------------------------------------- /libbacktrace/testdata/arm/offline_testdata_for_libandroid_runtime: -------------------------------------------------------------------------------- 1 | pid: 7288 tid: 31656 2 | ucontext: 104 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003069fed80000000049dcf6f10000000000000000 3 | map: start: f1f10000 end: f2049000 offset: 0 load_bias: 10000 flags: 5 name: /system/lib/libandroid_runtime.so 4 | stack: start: d8fe6948 end: d8fe6958 size: 16 000000000000000000000000e7dcf6f1 5 | function: start: 6dbf9 end: 6dce5 name: android::AndroidRuntime::javaThreadShell 6 | function: start: 6dce5 end: 6dd79 name: android::AndroidRuntime::javaCreateThreadEtc 7 | -------------------------------------------------------------------------------- /libbacktrace/testdata/arm64/eglSubDriverAndroid.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libbacktrace/testdata/arm64/eglSubDriverAndroid.so -------------------------------------------------------------------------------- /libbacktrace/testdata/arm64/libbacktrace_test_eh_frame.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libbacktrace/testdata/arm64/libbacktrace_test_eh_frame.so -------------------------------------------------------------------------------- /libbacktrace/testdata/arm64/libskia.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libbacktrace/testdata/arm64/libskia.so -------------------------------------------------------------------------------- /libbacktrace/testdata/x86/libbacktrace_test_debug_frame.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libbacktrace/testdata/x86/libbacktrace_test_debug_frame.so -------------------------------------------------------------------------------- /libbacktrace/testdata/x86/libbacktrace_test_gnu_debugdata.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libbacktrace/testdata/x86/libbacktrace_test_gnu_debugdata.so -------------------------------------------------------------------------------- /libbacktrace/testdata/x86_64/libbacktrace_test_eh_frame.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libbacktrace/testdata/x86_64/libbacktrace_test_eh_frame.so -------------------------------------------------------------------------------- /libcrypto_utils/tests/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2016 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | LOCAL_PATH := $(call my-dir) 18 | 19 | include $(CLEAR_VARS) 20 | LOCAL_MODULE := libcrypto_utils_test 21 | LOCAL_SRC_FILES := android_pubkey_test.cpp 22 | LOCAL_CFLAGS := -Wall -Werror -Wextra 23 | LOCAL_SHARED_LIBRARIES := libcrypto_utils libcrypto 24 | include $(BUILD_HOST_NATIVE_TEST) 25 | -------------------------------------------------------------------------------- /libcutils/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libcutils/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /libcutils/OWNERS: -------------------------------------------------------------------------------- 1 | cferris@google.com 2 | enh@google.com 3 | jmgao@google.com 4 | tomcherry@google.com 5 | -------------------------------------------------------------------------------- /libcutils/arch-x86_64/cache.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /* Values are optimized for Silvermont */ 18 | #define SHARED_CACHE_SIZE (1024*1024) /* Silvermont L2 Cache */ 19 | #define DATA_CACHE_SIZE (24*1024) /* Silvermont L1 Data Cache */ 20 | 21 | #define SHARED_CACHE_SIZE_HALF (SHARED_CACHE_SIZE / 2) 22 | #define DATA_CACHE_SIZE_HALF (DATA_CACHE_SIZE / 2) 23 | -------------------------------------------------------------------------------- /libcutils/include/cutils/android_filesystem_config.h: -------------------------------------------------------------------------------- 1 | ../private/android_filesystem_config.h -------------------------------------------------------------------------------- /libcutils/include/cutils/ashmem.h: -------------------------------------------------------------------------------- 1 | /* cutils/ashmem.h 2 | ** 3 | ** Copyright 2008 The Android Open Source Project 4 | ** 5 | ** This file is dual licensed. It may be redistributed and/or modified 6 | ** under the terms of the Apache 2.0 License OR version 2 of the GNU 7 | ** General Public License. 8 | */ 9 | 10 | #ifndef _CUTILS_ASHMEM_H 11 | #define _CUTILS_ASHMEM_H 12 | 13 | #include 14 | 15 | #if defined(__BIONIC__) 16 | #include 17 | #endif 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | int ashmem_valid(int fd); 24 | int ashmem_create_region(const char *name, size_t size); 25 | int ashmem_set_prot_region(int fd, int prot); 26 | int ashmem_pin_region(int fd, size_t offset, size_t len); 27 | int ashmem_unpin_region(int fd, size_t offset, size_t len); 28 | int ashmem_get_size_region(int fd); 29 | 30 | #ifdef __cplusplus 31 | } 32 | #endif 33 | 34 | #endif /* _CUTILS_ASHMEM_H */ 35 | -------------------------------------------------------------------------------- /libcutils/include/cutils/log.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /libcutils/include/cutils/partition_utils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011, The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef __CUTILS_PARTITION_WIPED_H__ 18 | #define __CUTILS_PARTITION_WIPED_H__ 19 | 20 | #include 21 | 22 | __BEGIN_DECLS 23 | 24 | int partition_wiped(char *source); 25 | 26 | __END_DECLS 27 | 28 | #endif /* __CUTILS_PARTITION_WIPED_H__ */ 29 | -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/android_filesystem_config.h: -------------------------------------------------------------------------------- 1 | ../../include/private/android_filesystem_config.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/android_get_control_file.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/android_get_control_file.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/android_reboot.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/android_reboot.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/ashmem.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/ashmem.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/atomic.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/atomic.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/bitops.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/bitops.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/compiler.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/compiler.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/config_utils.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/config_utils.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/fs.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/fs.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/hashmap.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/hashmap.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/iosched_policy.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/iosched_policy.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/jstring.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/jstring.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/klog.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/klog.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/list.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/list.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/memory.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/memory.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/misc.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/misc.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/multiuser.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/multiuser.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/native_handle.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/native_handle.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/partition_utils.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/partition_utils.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/properties.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/properties.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/qtaguid.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/qtaguid.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/record_stream.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/record_stream.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/sched_policy.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/sched_policy.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/sockets.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/sockets.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/str_parms.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/str_parms.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/threads.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/threads.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/trace.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/trace.h -------------------------------------------------------------------------------- /libcutils/include_vndk/cutils/uevent.h: -------------------------------------------------------------------------------- 1 | ../../include/cutils/uevent.h -------------------------------------------------------------------------------- /libdiskconfig/Android.bp: -------------------------------------------------------------------------------- 1 | cc_library { 2 | name: "libdiskconfig", 3 | vendor_available: true, 4 | vndk: { 5 | enabled: true, 6 | }, 7 | srcs: [ 8 | "diskconfig.c", 9 | "diskutils.c", 10 | "write_lst.c", 11 | "config_mbr.c", 12 | ], 13 | 14 | shared_libs: [ 15 | "libcutils", 16 | "liblog", 17 | ], 18 | cflags: ["-Werror"], 19 | export_include_dirs: ["include"], 20 | local_include_dirs: ["include"], 21 | 22 | target: { 23 | darwin: { 24 | enabled: false, 25 | }, 26 | linux_glibc: { 27 | cflags: [ 28 | "-O2", 29 | "-g", 30 | "-W", 31 | "-Wall", 32 | "-D_LARGEFILE64_SOURCE", 33 | ], 34 | }, 35 | }, 36 | } 37 | -------------------------------------------------------------------------------- /libgrallocusage/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libgrallocusage/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /libion/Android.bp: -------------------------------------------------------------------------------- 1 | cc_library { 2 | name: "libion", 3 | vendor_available: true, 4 | vndk: { 5 | enabled: true, 6 | support_system_process: true, 7 | }, 8 | srcs: ["ion.c"], 9 | shared_libs: ["liblog"], 10 | local_include_dirs: [ 11 | "include", 12 | "kernel-headers", 13 | ], 14 | export_include_dirs: [ 15 | "include", 16 | "kernel-headers", 17 | ], 18 | cflags: ["-Werror"], 19 | } 20 | 21 | cc_binary { 22 | name: "iontest", 23 | srcs: ["ion_test.c"], 24 | static_libs: ["libion"], 25 | shared_libs: ["liblog"], 26 | cflags: ["-Werror"], 27 | } 28 | 29 | subdirs = ["tests"] 30 | -------------------------------------------------------------------------------- /libkeyutils/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-2 -------------------------------------------------------------------------------- /libkeyutils/Android.bp: -------------------------------------------------------------------------------- 1 | cc_library { 2 | name: "libkeyutils", 3 | cflags: ["-Werror"], 4 | defaults: ["linux_bionic_supported"], 5 | recovery_available: true, 6 | export_include_dirs: ["include/"], 7 | local_include_dirs: ["include/"], 8 | srcs: ["keyutils.cpp"], 9 | stl: "none", 10 | } 11 | 12 | cc_test { 13 | name: "libkeyutils-tests", 14 | cflags: ["-Werror"], 15 | shared_libs: ["libkeyutils"], 16 | srcs: ["keyutils_test.cpp"], 17 | test_suites: ["device-tests"], 18 | } 19 | -------------------------------------------------------------------------------- /liblog/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Google 2 | AllowShortFunctionsOnASingleLine: false 3 | 4 | CommentPragmas: NOLINT:.* 5 | DerivePointerAlignment: false 6 | PointerAlignment: Left 7 | PenaltyExcessCharacter: 32 8 | 9 | Cpp11BracedListStyle: false 10 | -------------------------------------------------------------------------------- /liblog/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(my-dir) 2 | 3 | include $(call first-makefiles-under,$(LOCAL_PATH)) 4 | -------------------------------------------------------------------------------- /liblog/OWNERS: -------------------------------------------------------------------------------- 1 | tomcherry@google.com 2 | -------------------------------------------------------------------------------- /liblog/include/log/log_properties.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** 3 | ** Copyright 2017, The Android Open Source Project 4 | ** 5 | ** This file is dual licensed. It may be redistributed and/or modified 6 | ** under the terms of the Apache 2.0 License OR version 2 of the GNU 7 | ** General Public License. 8 | */ 9 | 10 | #ifndef _LIBS_LOG_PROPERTIES_H 11 | #define _LIBS_LOG_PROPERTIES_H 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | #ifndef __ANDROID_USE_LIBLOG_IS_DEBUGGABLE_INTERFACE 18 | #ifndef __ANDROID_API__ 19 | #define __ANDROID_USE_LIBLOG_IS_DEBUGGABLE_INTERFACE 1 20 | #elif __ANDROID_API__ > 24 /* > Nougat */ 21 | #define __ANDROID_USE_LIBLOG_IS_DEBUGGABLE_INTERFACE 1 22 | #else 23 | #define __ANDROID_USE_LIBLOG_IS_DEBUGGABLE_INTERFACE 0 24 | #endif 25 | #endif 26 | 27 | #if __ANDROID_USE_LIBLOG_IS_DEBUGGABLE_INTERFACE 28 | int __android_log_is_debuggable(); 29 | #endif 30 | 31 | #ifdef __cplusplus 32 | } 33 | #endif 34 | 35 | #endif /* _LIBS_LOG_PROPERTIES_H */ 36 | -------------------------------------------------------------------------------- /liblog/include/log/logd.h: -------------------------------------------------------------------------------- 1 | #ifndef _LIBS_LOG_LOGD_H 2 | #define _LIBS_LOG_LOGD_H 3 | #include 4 | #warning "Deprecated: do not include log/logd.h, use log/log.h instead" 5 | #endif /*_LIBS_LOG_LOGD_H*/ 6 | -------------------------------------------------------------------------------- /liblog/include/log/logger.h: -------------------------------------------------------------------------------- 1 | #ifndef _LIBS_LOG_LOGGER_H 2 | #define _LIBS_LOG_LOGGER_H 3 | #include 4 | #warning "Deprecated: do not include log/logger.h, use log/log.h instead" 5 | #endif /*_LIBS_LOG_LOGGER_H*/ 6 | -------------------------------------------------------------------------------- /liblog/include_vndk/android: -------------------------------------------------------------------------------- 1 | ../include/android -------------------------------------------------------------------------------- /liblog/include_vndk/log/log.h: -------------------------------------------------------------------------------- 1 | /*Special log.h file for VNDK linking modules*/ 2 | 3 | #ifndef _LIBS_LOG_LOG_H 4 | #define _LIBS_LOG_LOG_H 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | /* 16 | * LOG_TAG is the local tag used for the following simplified 17 | * logging macros. You can change this preprocessor definition 18 | * before using the other macros to change the tag. 19 | */ 20 | 21 | #ifndef LOG_TAG 22 | #define LOG_TAG NULL 23 | #endif 24 | 25 | #endif /*_LIBS_LOG_LOG_H*/ 26 | -------------------------------------------------------------------------------- /liblog/include_vndk/log/log_id.h: -------------------------------------------------------------------------------- 1 | ../../include/log/log_id.h -------------------------------------------------------------------------------- /liblog/include_vndk/log/log_main.h: -------------------------------------------------------------------------------- 1 | ../../include/log/log_main.h -------------------------------------------------------------------------------- /liblog/include_vndk/log/log_properties.h: -------------------------------------------------------------------------------- 1 | ../../include/log/log_properties.h -------------------------------------------------------------------------------- /liblog/include_vndk/log/log_radio.h: -------------------------------------------------------------------------------- 1 | ../../include/log/log_radio.h -------------------------------------------------------------------------------- /liblog/include_vndk/log/log_read.h: -------------------------------------------------------------------------------- 1 | ../../include/log/log_read.h -------------------------------------------------------------------------------- /liblog/include_vndk/log/log_safetynet.h: -------------------------------------------------------------------------------- 1 | ../../include/log/log_safetynet.h -------------------------------------------------------------------------------- /liblog/include_vndk/log/log_system.h: -------------------------------------------------------------------------------- 1 | ../../include/log/log_system.h -------------------------------------------------------------------------------- /liblog/logd_reader.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _LIBLOG_LOGD_READER_H__ 18 | #define _LIBLOG_LOGD_READER_H__ 19 | 20 | #include 21 | 22 | #include "log_portability.h" 23 | 24 | __BEGIN_DECLS 25 | 26 | LIBLOG_HIDDEN ssize_t __send_log_msg(char* buf, size_t buf_size); 27 | 28 | __END_DECLS 29 | 30 | #endif /* _LIBLOG_LOGD_READER_H__ */ 31 | -------------------------------------------------------------------------------- /liblog/tests/liblog_test_default.cpp: -------------------------------------------------------------------------------- 1 | #ifdef __ANDROID__ 2 | #include 3 | #define TEST_LOGGER LOGGER_DEFAULT 4 | #endif 5 | #include "liblog_test.cpp" 6 | -------------------------------------------------------------------------------- /liblog/tests/liblog_test_local.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #define liblog liblog_local 3 | #define TEST_LOGGER LOGGER_LOCAL 4 | #include "liblog_test.cpp" 5 | -------------------------------------------------------------------------------- /liblog/tests/liblog_test_stderr.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #define liblog liblog_stderr 3 | #define TEST_LOGGER LOGGER_STDERR 4 | #define USING_LOGGER_STDERR 5 | #include "liblog_test.cpp" 6 | -------------------------------------------------------------------------------- /liblog/tests/liblog_test_stderr_local.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #define liblog liblog_stderr_local 3 | #define TEST_LOGGER (LOGGER_LOCAL | LOGGER_STDERR) 4 | #include "liblog_test.cpp" 5 | -------------------------------------------------------------------------------- /libmemtrack/Android.bp: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Android Open Source Project 2 | 3 | cc_library_shared { 4 | name: "libmemtrack", 5 | vendor_available: true, 6 | vndk: { 7 | enabled: true, 8 | }, 9 | srcs: ["memtrack.cpp"], 10 | export_include_dirs: ["include"], 11 | local_include_dirs: ["include"], 12 | include_dirs: ["hardware/libhardware/include"], 13 | shared_libs: [ 14 | "libhardware", 15 | "liblog", 16 | "libbase", 17 | "libhidlbase", 18 | "libhidltransport", 19 | "libhwbinder", 20 | "libutils", 21 | "android.hardware.memtrack@1.0", 22 | ], 23 | cflags: [ 24 | "-Wall", 25 | "-Werror", 26 | ], 27 | } 28 | 29 | cc_binary { 30 | name: "memtrack_test", 31 | srcs: ["memtrack_test.c"], 32 | shared_libs: [ 33 | "libmemtrack", 34 | "libpagemap", 35 | ], 36 | cflags: [ 37 | "-Wall", 38 | "-Werror", 39 | ], 40 | } 41 | -------------------------------------------------------------------------------- /libmemtrack/OWNERS: -------------------------------------------------------------------------------- 1 | ccross@google.com 2 | -------------------------------------------------------------------------------- /libmemunreachable/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-2 -------------------------------------------------------------------------------- /libmemunreachable/Binder.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef LIBMEMUNREACHABLE_BINDER_H_ 18 | #define LIBMEMUNREACHABLE_BINDER_H_ 19 | 20 | #include "Allocator.h" 21 | 22 | namespace android { 23 | 24 | bool BinderReferences(allocator::vector& refs); 25 | 26 | } // namespace android 27 | 28 | #endif // LIBMEMUNREACHABLE_BINDER_H_ 29 | -------------------------------------------------------------------------------- /libmemunreachable/OWNERS: -------------------------------------------------------------------------------- 1 | ccross@google.com 2 | cferris@google.com 3 | -------------------------------------------------------------------------------- /libmemunreachable/anon_vma_naming.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef LIBMEMUNREACHABLE_ANON_VMA_NAMING_H_ 18 | #define LIBMEMUNREACHABLE_ANON_VMA_NAMING_H_ 19 | 20 | #include 21 | 22 | #define PR_SET_VMA 0x53564d41 23 | #define PR_SET_VMA_ANON_NAME 0 24 | 25 | #endif // LIBMEMUNREACHABLE_ANON_VMA_NAMING_H_ 26 | -------------------------------------------------------------------------------- /libmemunreachable/tests/HostMallocStub.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include "bionic.h" 18 | 19 | void malloc_disable() {} 20 | 21 | void malloc_enable() {} 22 | -------------------------------------------------------------------------------- /libmetricslogger/OWNERS: -------------------------------------------------------------------------------- 1 | cwren@google.com 2 | jhawkins@google.com 3 | -------------------------------------------------------------------------------- /libnativebridge/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-2 -------------------------------------------------------------------------------- /libnativebridge/Android.bp: -------------------------------------------------------------------------------- 1 | cc_library_headers { 2 | name: "libnativebridge-dummy-headers", 3 | 4 | host_supported: true, 5 | export_include_dirs: ["include"], 6 | } 7 | 8 | cc_library { 9 | name: "libnativebridge", 10 | 11 | host_supported: true, 12 | srcs: ["native_bridge.cc"], 13 | shared_libs: [ 14 | "liblog", 15 | "libbase", 16 | ], 17 | 18 | export_include_dirs: ["include"], 19 | 20 | cflags: [ 21 | "-Werror", 22 | "-Wall", 23 | ], 24 | cppflags: [ 25 | "-fvisibility=protected", 26 | ], 27 | } 28 | 29 | subdirs = ["tests"] 30 | -------------------------------------------------------------------------------- /libnativebridge/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | include $(LOCAL_PATH)/tests/Android.mk 4 | -------------------------------------------------------------------------------- /libnativebridge/OWNERS: -------------------------------------------------------------------------------- 1 | dimitry@google.com 2 | -------------------------------------------------------------------------------- /libnativeloader/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-2 -------------------------------------------------------------------------------- /libnativeloader/Android.bp: -------------------------------------------------------------------------------- 1 | // Shared library for target 2 | // ======================================================== 3 | cc_library { 4 | name: "libnativeloader", 5 | host_supported: true, 6 | srcs: ["native_loader.cpp"], 7 | shared_libs: [ 8 | "libnativehelper", 9 | "liblog", 10 | "libcutils", 11 | "libnativebridge", 12 | "libbase", 13 | ], 14 | cflags: [ 15 | "-Werror", 16 | "-Wall", 17 | ], 18 | cppflags: [ 19 | "-fvisibility=hidden", 20 | ], 21 | export_include_dirs: ["include"], 22 | required: [ 23 | "llndk.libraries.txt", 24 | "vndksp.libraries.txt", 25 | ], 26 | } 27 | -------------------------------------------------------------------------------- /libnativeloader/OWNERS: -------------------------------------------------------------------------------- 1 | dimitry@google.com 2 | jiyong@google.com 3 | -------------------------------------------------------------------------------- /libnativeloader/test/public.libraries-oem1.txt: -------------------------------------------------------------------------------- 1 | libfoo.oem1.so 2 | libbar.oem1.so 3 | -------------------------------------------------------------------------------- /libnativeloader/test/public.libraries-oem2.txt: -------------------------------------------------------------------------------- 1 | libfoo.oem2.so 2 | libbar.oem2.so 3 | -------------------------------------------------------------------------------- /libnativeloader/test/public.libraries-product1.txt: -------------------------------------------------------------------------------- 1 | libfoo.product1.so 2 | libbar.product1.so 3 | -------------------------------------------------------------------------------- /libnativeloader/test/runtest.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | adb root 3 | adb remount 4 | adb sync 5 | adb shell stop 6 | adb shell start 7 | sleep 5 # wait until device reboots 8 | adb logcat -c; 9 | adb shell am start -n android.test.app.system/android.test.app.TestActivity 10 | adb shell am start -n android.test.app.vendor/android.test.app.TestActivity 11 | adb logcat | grep android.test.app 12 | -------------------------------------------------------------------------------- /libnativeloader/test/test.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #define LOG_TAG "oemlib" 17 | #include 18 | 19 | static __attribute__((constructor)) void test_lib_init() { 20 | LOG(DEBUG) << LIBNAME << " loaded"; 21 | } 22 | -------------------------------------------------------------------------------- /libnetutils/Android.bp: -------------------------------------------------------------------------------- 1 | cc_library_shared { 2 | name: "libnetutils", 3 | vendor_available: true, 4 | vndk: { 5 | enabled: true, 6 | }, 7 | 8 | srcs: [ 9 | "dhcpclient.c", 10 | "dhcpmsg.c", 11 | "ifc_utils.c", 12 | "packet.c", 13 | ], 14 | 15 | shared_libs: [ 16 | "libcutils", 17 | "liblog", 18 | ], 19 | 20 | cflags: ["-Werror"], 21 | 22 | export_include_dirs: ["include"], 23 | } 24 | 25 | cc_binary { 26 | name: "dhcpdbg", 27 | 28 | srcs: [ 29 | "dhcptool.c", 30 | ], 31 | 32 | shared_libs: [ 33 | "libnetutils", 34 | ], 35 | 36 | cflags: ["-Werror"], 37 | } 38 | -------------------------------------------------------------------------------- /libnetutils/OWNERS: -------------------------------------------------------------------------------- 1 | # TODO: should this be in system/netd? 2 | ek@google.com 3 | lorenzo@google.com 4 | -------------------------------------------------------------------------------- /libnetutils/packet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2008, The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _WIFI_PACKET_H_ 18 | #define _WIFI_PACKET_H_ 19 | 20 | int open_raw_socket(const char *ifname, uint8_t *hwaddr, int if_index); 21 | int send_packet(int s, int if_index, struct dhcp_msg *msg, int size, 22 | uint32_t saddr, uint32_t daddr, uint32_t sport, uint32_t dport); 23 | int receive_packet(int s, struct dhcp_msg *msg); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /libpackagelistparser/Android.bp: -------------------------------------------------------------------------------- 1 | cc_library { 2 | 3 | name: "libpackagelistparser", 4 | recovery_available: true, 5 | srcs: ["packagelistparser.c"], 6 | cflags: [ 7 | "-Wall", 8 | "-Werror", 9 | ], 10 | shared_libs: ["liblog"], 11 | local_include_dirs: ["include"], 12 | export_include_dirs: ["include"], 13 | 14 | sanitize: { 15 | misc_undefined: ["integer"], 16 | }, 17 | } 18 | -------------------------------------------------------------------------------- /libpixelflinger/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libpixelflinger/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /libpixelflinger/clear.h: -------------------------------------------------------------------------------- 1 | /* libs/pixelflinger/clear.h 2 | ** 3 | ** Copyright 2006, The Android Open Source Project 4 | ** 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); 6 | ** you may not use this file except in compliance with the License. 7 | ** You may obtain a copy of the License at 8 | ** 9 | ** http://www.apache.org/licenses/LICENSE-2.0 10 | ** 11 | ** Unless required by applicable law or agreed to in writing, software 12 | ** distributed under the License is distributed on an "AS IS" BASIS, 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ** See the License for the specific language governing permissions and 15 | ** limitations under the License. 16 | */ 17 | 18 | #ifndef ANDROID_GGL_CLEAR_H 19 | #define ANDROID_GGL_CLEAR_H 20 | 21 | #include 22 | #include 23 | 24 | namespace android { 25 | 26 | void ggl_init_clear(context_t* c); 27 | 28 | }; // namespace android 29 | 30 | #endif // ANDROID_GGL_CLEAR_H 31 | -------------------------------------------------------------------------------- /libpixelflinger/picker.h: -------------------------------------------------------------------------------- 1 | /* libs/pixelflinger/picker.h 2 | ** 3 | ** Copyright 2006, The Android Open Source Project 4 | ** 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); 6 | ** you may not use this file except in compliance with the License. 7 | ** You may obtain a copy of the License at 8 | ** 9 | ** http://www.apache.org/licenses/LICENSE-2.0 10 | ** 11 | ** Unless required by applicable law or agreed to in writing, software 12 | ** distributed under the License is distributed on an "AS IS" BASIS, 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ** See the License for the specific language governing permissions and 15 | ** limitations under the License. 16 | */ 17 | 18 | 19 | #ifndef ANDROID_PICKER_H 20 | #define ANDROID_PICKER_H 21 | 22 | #include 23 | 24 | namespace android { 25 | 26 | void ggl_init_picker(context_t* c); 27 | void ggl_pick(context_t* c); 28 | 29 | }; // namespace android 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /libpixelflinger/tests/Android.mk: -------------------------------------------------------------------------------- 1 | include $(all-subdir-makefiles) 2 | -------------------------------------------------------------------------------- /libpixelflinger/tests/arch-arm64/Android.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(TARGET_ARCH),arm64) 2 | include $(all-subdir-makefiles) 3 | endif 4 | -------------------------------------------------------------------------------- /libpixelflinger/tests/arch-arm64/assembler/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | arm64_assembler_test.cpp\ 6 | asm_test_jacket.S 7 | 8 | LOCAL_SHARED_LIBRARIES := \ 9 | libcutils \ 10 | libpixelflinger 11 | 12 | LOCAL_C_INCLUDES := \ 13 | $(LOCAL_PATH)/../../.. 14 | 15 | LOCAL_MODULE:= test-pixelflinger-arm64-assembler-test 16 | 17 | LOCAL_CFLAGS := -Wall -Werror 18 | 19 | LOCAL_MODULE_TAGS := tests 20 | 21 | LOCAL_MULTILIB := 64 22 | 23 | include $(BUILD_NATIVE_TEST) 24 | -------------------------------------------------------------------------------- /libpixelflinger/tests/arch-arm64/col32cb16blend/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | col32cb16blend_test.c \ 6 | ../../../arch-arm64/col32cb16blend.S 7 | 8 | LOCAL_SHARED_LIBRARIES := 9 | 10 | LOCAL_C_INCLUDES := 11 | 12 | LOCAL_MODULE:= test-pixelflinger-arm64-col32cb16blend 13 | 14 | LOCAL_CFLAGS := -Wall -Werror 15 | 16 | LOCAL_MODULE_TAGS := tests 17 | 18 | LOCAL_MULTILIB := 64 19 | 20 | include $(BUILD_NATIVE_TEST) 21 | -------------------------------------------------------------------------------- /libpixelflinger/tests/arch-arm64/disassembler/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | arm64_diassembler_test.cpp \ 6 | ../../../codeflinger/Arm64Disassembler.cpp 7 | 8 | LOCAL_SHARED_LIBRARIES := 9 | 10 | LOCAL_MODULE:= test-pixelflinger-arm64-disassembler-test 11 | 12 | LOCAL_CFLAGS := -Wall -Werror 13 | 14 | LOCAL_MODULE_TAGS := tests 15 | 16 | LOCAL_MULTILIB := 64 17 | 18 | include $(BUILD_NATIVE_TEST) 19 | -------------------------------------------------------------------------------- /libpixelflinger/tests/arch-arm64/t32cb16blend/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | t32cb16blend_test.c \ 6 | ../../../arch-arm64/t32cb16blend.S 7 | 8 | LOCAL_SHARED_LIBRARIES := 9 | 10 | LOCAL_C_INCLUDES := 11 | 12 | LOCAL_MODULE:= test-pixelflinger-arm64-t32cb16blend 13 | 14 | LOCAL_CFLAGS := -Wall -Werror 15 | 16 | LOCAL_MODULE_TAGS := tests 17 | 18 | LOCAL_MULTILIB := 64 19 | 20 | include $(BUILD_NATIVE_TEST) 21 | -------------------------------------------------------------------------------- /libpixelflinger/tests/arch-mips/Android.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(TARGET_ARCH),mips) 2 | include $(all-subdir-makefiles) 3 | endif 4 | ifeq ($(TARGET_ARCH),mipsel) 5 | include $(all-subdir-makefiles) 6 | endif 7 | -------------------------------------------------------------------------------- /libpixelflinger/tests/arch-mips/col32cb16blend/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | col32cb16blend_test.c \ 6 | ../../../arch-mips/col32cb16blend.S 7 | 8 | LOCAL_SHARED_LIBRARIES := 9 | 10 | LOCAL_C_INCLUDES := 11 | 12 | LOCAL_MODULE:= test-pixelflinger-mips-col32cb16blend 13 | 14 | LOCAL_MODULE_TAGS := tests 15 | 16 | LOCAL_MULTILIB := 32 17 | 18 | include $(BUILD_NATIVE_TEST) 19 | -------------------------------------------------------------------------------- /libpixelflinger/tests/arch-mips/t32cb16blend/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | t32cb16blend_test.c \ 6 | ../../../arch-mips/t32cb16blend.S 7 | 8 | LOCAL_SHARED_LIBRARIES := 9 | 10 | LOCAL_C_INCLUDES := 11 | 12 | LOCAL_MODULE:= test-pixelflinger-mips-t32cb16blend 13 | 14 | LOCAL_MODULE_TAGS := tests 15 | 16 | LOCAL_MULTILIB := 32 17 | 18 | include $(BUILD_NATIVE_TEST) 19 | -------------------------------------------------------------------------------- /libpixelflinger/tests/arch-mips64/Android.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(TARGET_ARCH),mips64) 2 | include $(all-subdir-makefiles) 3 | endif 4 | -------------------------------------------------------------------------------- /libpixelflinger/tests/arch-mips64/assembler/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | mips64_assembler_test.cpp\ 6 | asm_mips_test_jacket.S 7 | 8 | LOCAL_SHARED_LIBRARIES := \ 9 | libcutils \ 10 | libpixelflinger 11 | 12 | LOCAL_C_INCLUDES := \ 13 | $(LOCAL_PATH)/../../.. 14 | 15 | LOCAL_MODULE:= test-pixelflinger-mips64-assembler-test 16 | 17 | LOCAL_MODULE_TAGS := tests 18 | 19 | LOCAL_MULTILIB := 64 20 | 21 | include $(BUILD_NATIVE_TEST) 22 | -------------------------------------------------------------------------------- /libpixelflinger/tests/arch-mips64/col32cb16blend/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | col32cb16blend_test.c \ 6 | ../../../arch-mips64/col32cb16blend.S 7 | 8 | LOCAL_SHARED_LIBRARIES := 9 | 10 | LOCAL_C_INCLUDES := 11 | 12 | LOCAL_MODULE:= test-pixelflinger-mips64-col32cb16blend 13 | 14 | LOCAL_MODULE_TAGS := tests 15 | 16 | LOCAL_MULTILIB := 64 17 | 18 | include $(BUILD_NATIVE_TEST) 19 | -------------------------------------------------------------------------------- /libpixelflinger/tests/arch-mips64/disassembler/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | mips64_disassembler_test.cpp \ 6 | ../../../codeflinger/mips64_disassem.c 7 | 8 | LOCAL_SHARED_LIBRARIES := 9 | 10 | LOCAL_MODULE:= test-pixelflinger-mips64-disassembler-test 11 | 12 | LOCAL_MODULE_TAGS := tests 13 | 14 | LOCAL_MULTILIB := 64 15 | 16 | include $(BUILD_NATIVE_TEST) 17 | -------------------------------------------------------------------------------- /libpixelflinger/tests/codegen/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | codegen.cpp.arm 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libpixelflinger 10 | 11 | LOCAL_C_INCLUDES := \ 12 | $(LOCAL_PATH)/../.. 13 | 14 | LOCAL_MODULE:= test-opengl-codegen 15 | 16 | LOCAL_CFLAGS:= -Wall -Werror 17 | 18 | LOCAL_MODULE_TAGS := tests 19 | 20 | include $(BUILD_NATIVE_TEST) 21 | -------------------------------------------------------------------------------- /libpixelflinger/tests/gglmul/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | gglmul_test.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := 8 | 9 | LOCAL_C_INCLUDES := \ 10 | $(LOCAL_PATH)/../../include 11 | 12 | LOCAL_MODULE:= test-pixelflinger-gglmul 13 | 14 | LOCAL_CFLAGS:= -Wall -Werror 15 | 16 | LOCAL_MODULE_TAGS := tests 17 | 18 | include $(BUILD_NATIVE_TEST) 19 | -------------------------------------------------------------------------------- /libpixelflinger/trap.h: -------------------------------------------------------------------------------- 1 | /* libs/pixelflinger/trap.h 2 | ** 3 | ** Copyright 2006, The Android Open Source Project 4 | ** 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); 6 | ** you may not use this file except in compliance with the License. 7 | ** You may obtain a copy of the License at 8 | ** 9 | ** http://www.apache.org/licenses/LICENSE-2.0 10 | ** 11 | ** Unless required by applicable law or agreed to in writing, software 12 | ** distributed under the License is distributed on an "AS IS" BASIS, 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ** See the License for the specific language governing permissions and 15 | ** limitations under the License. 16 | */ 17 | 18 | 19 | #ifndef ANDROID_TRAP_H 20 | #define ANDROID_TRAP_H 21 | 22 | #include 23 | 24 | namespace android { 25 | 26 | void ggl_init_trap(context_t* c); 27 | void ggl_state_changed(context_t* c, int flags); 28 | 29 | }; // namespace android 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /libprocessgroup/Android.bp: -------------------------------------------------------------------------------- 1 | cc_library { 2 | srcs: ["processgroup.cpp"], 3 | name: "libprocessgroup", 4 | host_supported: true, 5 | recovery_available: true, 6 | shared_libs: ["libbase"], 7 | export_include_dirs: ["include"], 8 | cflags: [ 9 | "-Wall", 10 | "-Werror", 11 | ], 12 | } 13 | -------------------------------------------------------------------------------- /libprocinfo/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-2 -------------------------------------------------------------------------------- /libprocinfo/OWNERS: -------------------------------------------------------------------------------- 1 | jmgao@google.com 2 | -------------------------------------------------------------------------------- /libsparse/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-2 -------------------------------------------------------------------------------- /libsparse/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2010 The Android Open Source Project 2 | 3 | LOCAL_PATH:= $(call my-dir) 4 | 5 | include $(CLEAR_VARS) 6 | LOCAL_MODULE := simg_dump.py 7 | LOCAL_SRC_FILES := simg_dump.py 8 | LOCAL_MODULE_CLASS := EXECUTABLES 9 | LOCAL_IS_HOST_MODULE := true 10 | LOCAL_CFLAGS := -Werror 11 | include $(BUILD_PREBUILT) 12 | -------------------------------------------------------------------------------- /libsparse/OWNERS: -------------------------------------------------------------------------------- 1 | ccross@google.com 2 | -------------------------------------------------------------------------------- /libsparse/defs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _LIBSPARSE_DEFS_H_ 18 | 19 | #ifndef __unused 20 | #define __unused __attribute__((__unused__)) 21 | #endif 22 | 23 | #endif /* _LIBSPARSE_DEFS_H_ */ 24 | -------------------------------------------------------------------------------- /libsparse/sparse_crc32.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _LIBSPARSE_SPARSE_CRC32_H_ 18 | #define _LIBSPARSE_SPARSE_CRC32_H_ 19 | 20 | #include 21 | 22 | uint32_t sparse_crc32(uint32_t crc, const void* buf, size_t size); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /libstats/OWNERS: -------------------------------------------------------------------------------- 1 | bookatz@google.com 2 | joeo@google.com 3 | yaochen@google.com 4 | yanglu@google.com 5 | -------------------------------------------------------------------------------- /libsuspend/Android.bp: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Android Open Source Project 2 | 3 | cc_library { 4 | name: "libsuspend", 5 | srcs: [ 6 | "autosuspend.c", 7 | "autosuspend_wakeup_count.cpp", 8 | ], 9 | export_include_dirs: ["include"], 10 | local_include_dirs: ["include"], 11 | shared_libs: [ 12 | "libbase", 13 | "liblog", 14 | "libcutils", 15 | ], 16 | cflags: [ 17 | "-Werror", 18 | // "-DLOG_NDEBUG=0", 19 | ], 20 | } 21 | -------------------------------------------------------------------------------- /libsync/OWNERS: -------------------------------------------------------------------------------- 1 | ghackmann@google.com 2 | jessehall@google.com 3 | marissaw@google.com 4 | -------------------------------------------------------------------------------- /libsync/include/sync/sync.h: -------------------------------------------------------------------------------- 1 | ../android/sync.h -------------------------------------------------------------------------------- /libsync/libsync.map.txt: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2017 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | LIBSYNC { 18 | global: 19 | sync_merge; # introduced=26 20 | sync_file_info; # introduced=26 21 | sync_file_info_free; # introduced=26 22 | sync_wait; # vndk 23 | sync_fence_info; # vndk 24 | sync_pt_info; # vndk 25 | sync_fence_info_free; # vndk 26 | local: 27 | *; 28 | }; 29 | -------------------------------------------------------------------------------- /libsystem/Android.bp: -------------------------------------------------------------------------------- 1 | cc_library_headers { 2 | name: "libsystem_headers", 3 | vendor_available: true, 4 | recovery_available: true, 5 | host_supported: true, 6 | export_include_dirs: ["include"], 7 | 8 | target: { 9 | linux_bionic: { 10 | enabled: true, 11 | }, 12 | windows: { 13 | enabled: true, 14 | }, 15 | }, 16 | } 17 | -------------------------------------------------------------------------------- /libsystem/OWNERS: -------------------------------------------------------------------------------- 1 | jessehall@google.com 2 | olv@google.com 3 | -------------------------------------------------------------------------------- /libsystem/include/system/graphics-base.h: -------------------------------------------------------------------------------- 1 | #ifndef SYSTEM_CORE_GRAPHICS_BASE_H_ 2 | #define SYSTEM_CORE_GRAPHICS_BASE_H_ 3 | 4 | #include "graphics-base-v1.0.h" 5 | #include "graphics-base-v1.1.h" 6 | 7 | #endif // SYSTEM_CORE_GRAPHICS_BASE_H_ 8 | -------------------------------------------------------------------------------- /libsystem/include/system/graphics-sw.h: -------------------------------------------------------------------------------- 1 | #ifndef SYSTEM_CORE_GRAPHICS_SW_H_ 2 | #define SYSTEM_CORE_GRAPHICS_SW_H_ 3 | 4 | /* Software formats not in the HAL definitions. */ 5 | typedef enum { 6 | HAL_PIXEL_FORMAT_YCBCR_422_888 = 39, // 0x27 7 | HAL_PIXEL_FORMAT_YCBCR_444_888 = 40, // 0x28 8 | HAL_PIXEL_FORMAT_FLEX_RGB_888 = 41, // 0x29 9 | HAL_PIXEL_FORMAT_FLEX_RGBA_8888 = 42, // 0x2A 10 | } android_pixel_format_sw_t; 11 | 12 | /* for compatibility */ 13 | #define HAL_PIXEL_FORMAT_YCbCr_422_888 HAL_PIXEL_FORMAT_YCBCR_422_888 14 | #define HAL_PIXEL_FORMAT_YCbCr_444_888 HAL_PIXEL_FORMAT_YCBCR_444_888 15 | 16 | #endif // SYSTEM_CORE_GRAPHICS_SW_H_ 17 | -------------------------------------------------------------------------------- /libsysutils/Android.bp: -------------------------------------------------------------------------------- 1 | cc_library_shared { 2 | name: "libsysutils", 3 | vendor_available: true, 4 | vndk: { 5 | enabled: true, 6 | }, 7 | 8 | srcs: [ 9 | "src/SocketListener.cpp", 10 | "src/FrameworkListener.cpp", 11 | "src/NetlinkListener.cpp", 12 | "src/NetlinkEvent.cpp", 13 | "src/FrameworkCommand.cpp", 14 | "src/SocketClient.cpp", 15 | "src/ServiceManager.cpp", 16 | ], 17 | 18 | logtags: ["EventLogTags.logtags"], 19 | 20 | cflags: ["-Werror"], 21 | 22 | shared_libs: [ 23 | "libbase", 24 | "libcutils", 25 | "liblog", 26 | ], 27 | 28 | export_include_dirs: ["include"], 29 | } 30 | -------------------------------------------------------------------------------- /libsysutils/EventLogTags.logtags: -------------------------------------------------------------------------------- 1 | # See system/core/logcat/event.logtags for a description of the format of this file. 2 | 3 | # FrameworkListener dispatchCommand overflow 4 | 78001 exp_det_dispatchCommand_overflow 5 | 65537 exp_det_netlink_failure (uid|1) 6 | -------------------------------------------------------------------------------- /libsysutils/include/sysutils/OWNERS: -------------------------------------------------------------------------------- 1 | per-file Netlink* = ek@google.com 2 | per-file Netlink* = lorenzo@google.com 3 | -------------------------------------------------------------------------------- /libsysutils/include/sysutils/ServiceManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _SERVICE_MANAGER_H 18 | #define _SERVICE_MANAGER_H 19 | 20 | class ServiceManager { 21 | public: 22 | ServiceManager(); 23 | virtual ~ServiceManager() {} 24 | 25 | int start(const char *name); 26 | int stop(const char *name); 27 | bool isRunning(const char *name); 28 | }; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /libsysutils/include/sysutils/SocketClientCommand.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef _SOCKETCLIENTCOMMAND_H 17 | #define _SOCKETCLIENTCOMMAND_H 18 | 19 | #include 20 | 21 | class SocketClientCommand { 22 | public: 23 | virtual ~SocketClientCommand() { } 24 | virtual void runSocketCommand(SocketClient *client) = 0; 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /libsysutils/src/OWNERS: -------------------------------------------------------------------------------- 1 | per-file Netlink* = ek@google.com 2 | per-file Netlink* = lorenzo@google.com 3 | -------------------------------------------------------------------------------- /libunwindstack/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-2 -------------------------------------------------------------------------------- /libunwindstack/OWNERS: -------------------------------------------------------------------------------- 1 | cferris@google.com 2 | -------------------------------------------------------------------------------- /libunwindstack/include/unwindstack/Log.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _LIBUNWINDSTACK_LOG_H 18 | #define _LIBUNWINDSTACK_LOG_H 19 | 20 | #include 21 | 22 | namespace unwindstack { 23 | 24 | void log_to_stdout(bool enable); 25 | void log(uint8_t indent, const char* format, ...); 26 | 27 | } // namespace unwindstack 28 | 29 | #endif // _LIBUNWINDSTACK_LOG_H 30 | -------------------------------------------------------------------------------- /libunwindstack/tests/LogFake.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _LIBUNWINDSTACK_TESTS_LOG_FAKE_H 18 | #define _LIBUNWINDSTACK_TESTS_LOG_FAKE_H 19 | 20 | #include 21 | 22 | namespace unwindstack { 23 | 24 | void ResetLogs(); 25 | std::string GetFakeLogBuf(); 26 | std::string GetFakeLogPrint(); 27 | 28 | } // namespace unwindstack 29 | 30 | #endif // _LIBUNWINDSTACK_TESTS_LOG_FAKE_H 31 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/elf32.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/elf32.xz -------------------------------------------------------------------------------- /libunwindstack/tests/files/elf64.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/elf64.xz -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/art_quick_osr_stub_arm/descriptor.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/art_quick_osr_stub_arm/descriptor.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/art_quick_osr_stub_arm/entry0.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/art_quick_osr_stub_arm/entry0.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/art_quick_osr_stub_arm/entry1.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/art_quick_osr_stub_arm/entry1.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/art_quick_osr_stub_arm/jit0.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/art_quick_osr_stub_arm/jit0.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/art_quick_osr_stub_arm/jit1.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/art_quick_osr_stub_arm/jit1.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/art_quick_osr_stub_arm/libart.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/art_quick_osr_stub_arm/libart.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/art_quick_osr_stub_arm/libc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/art_quick_osr_stub_arm/libc.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/art_quick_osr_stub_arm/maps.txt: -------------------------------------------------------------------------------- 1 | d0250000-d2600000 r-xp 0 00:00 0 2 | e466e000-e4ae8000 r-xp 0 00:00 0 libart.so 3 | e7d91000-e7e31000 r-xp 0 00:00 0 libc.so 4 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/art_quick_osr_stub_arm/regs.txt: -------------------------------------------------------------------------------- 1 | r0: e814103c 2 | r1: 12dcf218 3 | r2: 1a90df75 4 | r3: ffffffbf 5 | r4: 0 6 | r5: 12dc0800 7 | r6: 12dcf218 8 | r7: 1a90df75 9 | r8: 0 10 | r9: dd23cc00 11 | r10: 1c 12 | r11: cd4ff16c 13 | ip: 0 14 | sp: cd4ff140 15 | lr: d025cdd7 16 | pc: d025c788 17 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/art_quick_osr_stub_arm/stack.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/art_quick_osr_stub_arm/stack.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/bad_eh_frame_hdr_arm64/libc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/bad_eh_frame_hdr_arm64/libc.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/bad_eh_frame_hdr_arm64/maps.txt: -------------------------------------------------------------------------------- 1 | 60a9fdf000-60a9fe0000 r-xp 0 00:00 0 waiter64 2 | 7542cc0000-7542d8e000 r-xp 0 00:00 0 libc.so 3 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/bad_eh_frame_hdr_arm64/regs.txt: -------------------------------------------------------------------------------- 1 | pc: 60a9fdf550 2 | sp: 7fdd141990 3 | lr: 60a9fdf56c 4 | x29: 7fdd1419a0 5 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/bad_eh_frame_hdr_arm64/stack.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/bad_eh_frame_hdr_arm64/stack.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/bad_eh_frame_hdr_arm64/waiter64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/bad_eh_frame_hdr_arm64/waiter64 -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/debug_frame_first_x86/libc.so: -------------------------------------------------------------------------------- 1 | ELF4 -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/debug_frame_first_x86/maps.txt: -------------------------------------------------------------------------------- 1 | 56598000-56599000 r-xp 0 00:00 0 waiter 2 | f7432000-f75e3000 r-xp 0 00:00 0 libc.so 3 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/debug_frame_first_x86/regs.txt: -------------------------------------------------------------------------------- 1 | eax: 1d88ef8c 2 | ebx: 56599fe8 3 | ecx: 3 4 | edx: ffcf9ea4 5 | ebp: ffcf9e48 6 | edi: f75e5000 7 | esi: 1 8 | esp: ffcf9e38 9 | eip: 56598685 10 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/debug_frame_first_x86/stack.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/debug_frame_first_x86/stack.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/debug_frame_first_x86/waiter: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/debug_frame_first_x86/waiter -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/debug_frame_load_bias_arm/libbinder.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/debug_frame_load_bias_arm/libbinder.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/debug_frame_load_bias_arm/libc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/debug_frame_load_bias_arm/libc.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/debug_frame_load_bias_arm/maps.txt: -------------------------------------------------------------------------------- 1 | 8d1c000-8d1f000 r-xp 0 00:00 0 mediaserver 2 | f0b91000-f0c2c000 r-xp 0 00:00 0 libc.so 3 | f1a41000-f1a97000 r-xp 0 00:00 0 libbinder.so 4 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/debug_frame_load_bias_arm/mediaserver: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/debug_frame_load_bias_arm/mediaserver -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/debug_frame_load_bias_arm/regs.txt: -------------------------------------------------------------------------------- 1 | r0: 3 2 | r1: c0306201 3 | r2: ffd4a658 4 | r3: 0 5 | r4: f0c36d8c 6 | r5: ffd4a658 7 | r6: f0168000 8 | r7: 36 9 | r8: ffd4a678 10 | r9: f016802c 11 | r10: ffd4a660 12 | r11: 0 13 | ip: 0 14 | sp: ffd4a638 15 | lr: f0bb2413 16 | pc: f0be238c 17 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/debug_frame_load_bias_arm/stack.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/debug_frame_load_bias_arm/stack.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/eh_frame_hdr_begin_x86_64/libc.so: -------------------------------------------------------------------------------- 1 | ELF>@ -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/eh_frame_hdr_begin_x86_64/maps.txt: -------------------------------------------------------------------------------- 1 | 561550b17000-561550b1a000 r-xp 0 00:00 0 unwind_test64 2 | 7f4de61f6000-7f4de638b000 r-xp 0 00:00 0 libc.so 3 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/eh_frame_hdr_begin_x86_64/regs.txt: -------------------------------------------------------------------------------- 1 | rax: 92134c6fbbdc12ff 2 | rbx: 0 3 | rcx: 92134c6fbbdc1200 4 | rdx: 92134c6fbbdc1200 5 | r8: 561552153034 6 | r12: 561550b17930 7 | r13: 7ffcc8597270 8 | rsi: 561552153034 9 | rbp: 7ffcc8596f30 10 | rsp: 7ffcc8596ce8 11 | rip: 561550b17a80 12 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/eh_frame_hdr_begin_x86_64/stack.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/eh_frame_hdr_begin_x86_64/stack.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/eh_frame_hdr_begin_x86_64/unwind_test64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/eh_frame_hdr_begin_x86_64/unwind_test64 -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/gnu_debugdata_arm/libandroid_runtime.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/gnu_debugdata_arm/libandroid_runtime.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/gnu_debugdata_arm/maps.txt: -------------------------------------------------------------------------------- 1 | f1f10000-f2049000 r-xp 00000000 00:00 0 libandroid_runtime.so 2 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/gnu_debugdata_arm/regs.txt: -------------------------------------------------------------------------------- 1 | pc: f1f6dc49 2 | sp: d8fe6930 3 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/gnu_debugdata_arm/stack.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/gnu_debugdata_arm/stack.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/137-cfi.odex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/137-cfi.odex -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/dalvikvm32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/dalvikvm32 -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/descriptor.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/descriptor.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/descriptor1.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/descriptor1.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/entry0.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/entry0.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/entry1.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/entry1.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/entry2.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/entry2.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/entry3.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/entry3.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/entry4.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/entry4.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/entry5.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/entry5.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/entry6.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/entry6.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/jit0.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/jit0.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/jit1.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/jit1.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/jit2.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/jit2.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/jit3.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/jit3.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/jit4.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/jit4.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/jit5.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/jit5.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/jit6.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/jit6.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/libart.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/libart.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/libartd.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/libartd.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/libarttestd.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/libarttestd.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/libc.so: -------------------------------------------------------------------------------- 1 | ELF(4 -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/maps.txt: -------------------------------------------------------------------------------- 1 | ab0d3000-ab0d8000 r-xp 0 00:00 0 dalvikvm32 2 | dfe4e000-dfe7b000 r-xp 0 00:00 0 libarttestd.so 3 | e0447000-e0448000 r-xp 2000 00:00 0 137-cfi.odex 4 | e2796000-e4796000 r-xp 0 00:00 0 anonymous:e2796000 5 | e648e000-e690f000 r-xp 00000000 00:00 0 libart.so 6 | ed306000-ed801000 r-xp 0 00:00 0 libartd.so 7 | eda88000-edb23000 r-xp 0 00:00 0 libc.so 8 | ede4e000-ede50000 r-xp 0 00:00 0 anonymous:ede4e000 9 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/regs.txt: -------------------------------------------------------------------------------- 1 | r0: dfe7c0f8 2 | r1: 0 3 | r2: 0 4 | r3: 40000000 5 | r4: e051ffb4 6 | r5: 0 7 | r6: e051ffc0 8 | r7: ede514e8 9 | r8: ff85d1a8 10 | r9: ed9210c0 11 | r10: 58 12 | r11: 0 13 | ip: edb26d04 14 | sp: ff85d180 15 | lr: edaff5af 16 | pc: dfe66a5e 17 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_arm/stack.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_arm/stack.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/137-cfi.odex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/137-cfi.odex -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/dalvikvm32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/dalvikvm32 -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/descriptor.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/descriptor.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/entry0.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/entry0.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/entry1.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/entry1.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/entry2.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/entry2.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/entry3.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/entry3.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/entry4.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/entry4.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/entry5.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/entry5.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/entry6.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/entry6.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/jit0.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/jit0.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/jit1.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/jit1.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/jit2.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/jit2.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/jit3.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/jit3.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/jit4.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/jit4.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/jit5.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/jit5.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/jit6.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/jit6.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/libartd.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/libartd.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/libarttestd.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/libarttestd.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/libc.so: -------------------------------------------------------------------------------- 1 | ELF4 -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/maps.txt: -------------------------------------------------------------------------------- 1 | 56573000-56577000 r-xp 0 00:00 0 dalvikvm32 2 | eb833000-eb8cc000 r-xp 0 00:00 0 libarttestd.so 3 | ec606000-ec607000 r-xp 2000 00:00 0 137-cfi.odex 4 | ee74c000-f074c000 r-xp 0 00:00 0 anonymous:ee74c000 5 | f6be1000-f732b000 r-xp 0 00:00 0 libartd.so 6 | f734b000-f74fc000 r-xp 0 00:00 0 libc.so 7 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/regs.txt: -------------------------------------------------------------------------------- 1 | eax: eb8cccd0 2 | ebx: eb8cccd0 3 | ecx: ff 4 | edx: ffeb2ca8 5 | ebp: ffeb5298 6 | edi: ffeb5c08 7 | esi: ffeb5c00 8 | esp: ffeb5280 9 | eip: eb89bfb8 10 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_debug_x86/stack.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_debug_x86/stack.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_map_arm/jit_map0.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_map_arm/jit_map0.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_map_arm/jit_map1.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_map_arm/jit_map1.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_map_arm/libart.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_map_arm/libart.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_map_arm/libc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_map_arm/libc.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_map_arm/maps.txt: -------------------------------------------------------------------------------- 1 | e466e000-e4ae8000 r-xp 0 00:00 0 libart.so 2 | e7d91000-e7e31000 r-xp 0 00:00 0 libc.so 3 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_map_arm/regs.txt: -------------------------------------------------------------------------------- 1 | r0: e814103c 2 | r1: 12dcf218 3 | r2: 1a90df75 4 | r3: ffffffbf 5 | r4: 0 6 | r5: 12dc0800 7 | r6: 12dcf218 8 | r7: 1a90df75 9 | r8: 0 10 | r9: dd23cc00 11 | r10: 1c 12 | r11: cd4ff16c 13 | ip: 0 14 | sp: cd4ff140 15 | lr: d025cdd7 16 | pc: d025c788 17 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/jit_map_arm/stack.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/jit_map_arm/stack.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/offset_arm/libc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/offset_arm/libc.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/offset_arm/libunwindstack_test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/offset_arm/libunwindstack_test -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/offset_arm/maps.txt: -------------------------------------------------------------------------------- 1 | 2b6c000-2e92000 r-xp 42000 00:00 0 libunwindstack_test 2 | f4135000-f41a9000 r-xp 25000 00:00 0 libc.so 3 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/offset_arm/regs.txt: -------------------------------------------------------------------------------- 1 | r0: 5 2 | r1: 5 3 | r2: 4 4 | r3: 1 5 | r4: 73804b6b 6 | r5: f3c9c000 7 | r6: 2ea09ac 8 | r7: 10624dd3 9 | r8: f41b5d8c 10 | r9: f3c9c000 11 | r10: 6f17 12 | r11: f3c94048 13 | ip: 2ea0807 14 | sp: f43d2ccc 15 | lr: 2e55fef 16 | pc: 2e55fa0 17 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/offset_arm/stack0.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/offset_arm/stack0.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/offset_arm/stack1.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/offset_arm/stack1.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/straddle_arm/libbase.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/straddle_arm/libbase.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/straddle_arm/libc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/straddle_arm/libc.so -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/straddle_arm/maps.txt: -------------------------------------------------------------------------------- 1 | f2d9a000-f2da7fff r-xp 00000000 00:00 0 libbase.so 2 | f3002000-f3005fff rw-p 00000000 00:00 0 [stack:25941] 3 | f31d0000-f326bfff r-xp 00000000 00:00 0 libc.so 4 | f3352000-f336bfff r-xp 00000000 00:00 0 /does/not/exist/libhidlbase.so 5 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/straddle_arm/regs.txt: -------------------------------------------------------------------------------- 1 | pc: f31ea9f8 2 | sp: e9c866f8 3 | lr: f31f179f 4 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/straddle_arm/stack.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/straddle_arm/stack.data -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/straddle_arm64/libunwindstack_test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/straddle_arm64/libunwindstack_test -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/straddle_arm64/maps.txt: -------------------------------------------------------------------------------- 1 | 00000064d05ab000-00000064d0a6cfff r-xp 00000000 00:00 0 libunwindstack_test 2 | 0000007fe0d64000-0000007fe0d84fff rw-p 00000000 00:00 0 [stack] 3 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/straddle_arm64/regs.txt: -------------------------------------------------------------------------------- 1 | pc: 00000064d09d4fd8 2 | sp: 0000007fe0d84040 3 | lr: 00000064d09d507c 4 | x29: 0000007fe0d84070 5 | -------------------------------------------------------------------------------- /libunwindstack/tests/files/offline/straddle_arm64/stack.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libunwindstack/tests/files/offline/straddle_arm64/stack.data -------------------------------------------------------------------------------- /libutils/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libutils/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /libutils/OWNERS: -------------------------------------------------------------------------------- 1 | smoreland@google.com 2 | -------------------------------------------------------------------------------- /libutils/StrongPointer.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #define LOG_TAG "sp" 18 | 19 | #include 20 | 21 | namespace android { 22 | 23 | void sp_report_race() { LOG_ALWAYS_FATAL("sp<> assignment detected data race"); } 24 | } 25 | -------------------------------------------------------------------------------- /libutils/Trace.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | #include 19 | 20 | static void traceInit() __attribute__((constructor)); 21 | 22 | static void traceInit() { 23 | ::android::add_sysprop_change_callback(atrace_update_tags, 0); 24 | } 25 | -------------------------------------------------------------------------------- /libutils/include/utils/Atomic.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2005 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef ANDROID_UTILS_ATOMIC_H 18 | #define ANDROID_UTILS_ATOMIC_H 19 | 20 | // DO NOT USE: Please instead use std::atomic 21 | 22 | #include 23 | 24 | #endif // ANDROID_UTILS_ATOMIC_H 25 | -------------------------------------------------------------------------------- /libutils/include/utils/Log.h: -------------------------------------------------------------------------------- 1 | // DO NOT INCLUDE ANYTHING NEW IN THIS FILE. 2 | 3 | // has replaced this file and all changes should go there instead. 4 | // This path remains strictly to include that header as there are thousands of 5 | // references to in the tree. 6 | 7 | #include 8 | -------------------------------------------------------------------------------- /libutils/include/utils/SystemClock.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef ANDROID_UTILS_SYSTEMCLOCK_H 18 | #define ANDROID_UTILS_SYSTEMCLOCK_H 19 | 20 | #include 21 | #include 22 | 23 | namespace android { 24 | 25 | int64_t uptimeMillis(); 26 | int64_t elapsedRealtime(); 27 | int64_t elapsedRealtimeNano(); 28 | 29 | } // namespace android 30 | 31 | #endif // ANDROID_UTILS_SYSTEMCLOCK_H 32 | 33 | -------------------------------------------------------------------------------- /libutils/tests/Mutex_test.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | 19 | #include 20 | 21 | static android::Mutex mLock; 22 | static int i GUARDED_BY(mLock); 23 | 24 | void modifyLockedVariable() REQUIRES(mLock) { 25 | i = 1; 26 | } 27 | 28 | TEST(Mutex, compile) { 29 | android::Mutex::Autolock _l(mLock); 30 | i = 0; 31 | modifyLockedVariable(); 32 | } -------------------------------------------------------------------------------- /libutils/tests/README.txt: -------------------------------------------------------------------------------- 1 | Run device tests: 2 | 3 | mma -j 4 | (after adb root; adb disable-verity; adb reboot) 5 | adb root 6 | adb remount 7 | adb sync 8 | adb shell /data/nativetest/libutils_tests/libutils_tests 9 | -------------------------------------------------------------------------------- /libvndksupport/Android.bp: -------------------------------------------------------------------------------- 1 | subdirs = ["tests"] 2 | 3 | cc_library { 4 | name: "libvndksupport", 5 | srcs: ["linker.c"], 6 | cflags: [ 7 | "-Wall", 8 | "-Werror", 9 | ], 10 | local_include_dirs: ["include/vndksupport"], 11 | export_include_dirs: ["include"], 12 | shared_libs: ["liblog"], 13 | } 14 | 15 | llndk_library { 16 | name: "libvndksupport", 17 | symbol_file: "libvndksupport.map.txt", 18 | export_include_dirs: ["include"], 19 | } 20 | -------------------------------------------------------------------------------- /libvndksupport/OWNERS: -------------------------------------------------------------------------------- 1 | jiyong@google.com 2 | smoreland@google.com 3 | -------------------------------------------------------------------------------- /libvndksupport/include/vndksupport/linker.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef VNDKSUPPORT_LINKER_H_ 17 | #define VNDKSUPPORT_LINKER_H_ 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | void* android_load_sphal_library(const char* name, int flag); 24 | 25 | int android_unload_sphal_library(void* handle); 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | 31 | #endif // VNDKSUPPORT_LINKER_H_ 32 | -------------------------------------------------------------------------------- /libvndksupport/libvndksupport.map.txt: -------------------------------------------------------------------------------- 1 | LIBVNDKSUPPORT { 2 | global: 3 | android_load_sphal_library; # vndk 4 | android_unload_sphal_library; # vndk 5 | local: 6 | *; 7 | }; 8 | -------------------------------------------------------------------------------- /libvndksupport/tests/Android.bp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2017 The Android Open Source Project 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | cc_test { 16 | name: "libvndksupport-tests", 17 | srcs: [ 18 | "linker_test.cpp", 19 | ], 20 | cflags: [ 21 | "-Wall", 22 | "-Werror", 23 | ], 24 | 25 | host_supported: false, 26 | shared_libs: [ 27 | "libvndksupport", 28 | "libbase", 29 | ], 30 | } 31 | -------------------------------------------------------------------------------- /libziparchive/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-2 -------------------------------------------------------------------------------- /libziparchive/OWNERS: -------------------------------------------------------------------------------- 1 | narayan@google.com 2 | -------------------------------------------------------------------------------- /libziparchive/testdata/bad_crc.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libziparchive/testdata/bad_crc.zip -------------------------------------------------------------------------------- /libziparchive/testdata/bad_filename.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libziparchive/testdata/bad_filename.zip -------------------------------------------------------------------------------- /libziparchive/testdata/crash.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libziparchive/testdata/crash.apk -------------------------------------------------------------------------------- /libziparchive/testdata/declaredlength.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libziparchive/testdata/declaredlength.zip -------------------------------------------------------------------------------- /libziparchive/testdata/dummy-update.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libziparchive/testdata/dummy-update.zip -------------------------------------------------------------------------------- /libziparchive/testdata/large.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libziparchive/testdata/large.zip -------------------------------------------------------------------------------- /libziparchive/testdata/valid.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/libziparchive/testdata/valid.zip -------------------------------------------------------------------------------- /llkd/Android.bp: -------------------------------------------------------------------------------- 1 | cc_library_headers { 2 | name: "llkd_headers", 3 | 4 | export_include_dirs: ["include"], 5 | } 6 | 7 | cc_library_static { 8 | name: "libllkd", 9 | 10 | srcs: [ 11 | "libllkd.cpp", 12 | ], 13 | 14 | shared_libs: [ 15 | "libbase", 16 | "libcutils", 17 | "liblog", 18 | ], 19 | 20 | export_include_dirs: ["include"], 21 | 22 | cflags: ["-Werror"], 23 | } 24 | 25 | cc_binary { 26 | name: "llkd", 27 | 28 | srcs: [ 29 | "llkd.cpp", 30 | ], 31 | shared_libs: [ 32 | "libbase", 33 | "libcutils", 34 | "liblog", 35 | ], 36 | static_libs: [ 37 | "libllkd", 38 | ], 39 | cflags: ["-Werror"], 40 | 41 | init_rc: ["llkd.rc"], 42 | } 43 | -------------------------------------------------------------------------------- /llkd/OWNERS: -------------------------------------------------------------------------------- 1 | salyzyn@google.com 2 | surenb@google.com 3 | -------------------------------------------------------------------------------- /lmkd/OWNERS: -------------------------------------------------------------------------------- 1 | surenb@google.com 2 | -------------------------------------------------------------------------------- /lmkd/lmkd.rc: -------------------------------------------------------------------------------- 1 | service lmkd /system/bin/lmkd 2 | class core 3 | user lmkd 4 | group lmkd system readproc 5 | capabilities DAC_OVERRIDE KILL IPC_LOCK SYS_NICE SYS_RESOURCE 6 | critical 7 | socket lmkd seqpacket 0660 system system 8 | writepid /dev/cpuset/system-background/tasks 9 | -------------------------------------------------------------------------------- /logcat/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2006-2014 The Android Open Source Project 2 | 3 | LOCAL_PATH := $(call my-dir) 4 | 5 | include $(call first-makefiles-under,$(LOCAL_PATH)) 6 | -------------------------------------------------------------------------------- /logcat/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/logcat/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /logcat/OWNERS: -------------------------------------------------------------------------------- 1 | tomcherry@google.com 2 | -------------------------------------------------------------------------------- /logcat/tests/logcatd_test.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #define logcat logcatd 18 | #define logcat_executable "logcatd" 19 | 20 | #include "logcat_test.cpp" 21 | -------------------------------------------------------------------------------- /logd/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Google 2 | AllowShortFunctionsOnASingleLine: false 3 | 4 | CommentPragmas: NOLINT:.* 5 | DerivePointerAlignment: false 6 | IndentWidth: 4 7 | PointerAlignment: Left 8 | TabWidth: 4 9 | PenaltyExcessCharacter: 32 10 | 11 | Cpp11BracedListStyle: false 12 | -------------------------------------------------------------------------------- /logd/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := logtagd.rc 6 | LOCAL_SRC_FILES := $(LOCAL_MODULE) 7 | LOCAL_MODULE_CLASS := ETC 8 | LOCAL_MODULE_TAGS := debug 9 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/init 10 | 11 | include $(BUILD_PREBUILT) 12 | 13 | include $(call first-makefiles-under,$(LOCAL_PATH)) 14 | -------------------------------------------------------------------------------- /logd/LogCommand.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012-2014 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _LOGD_COMMAND_H 18 | #define _LOGD_COMMAND_H 19 | 20 | #include 21 | #include 22 | 23 | class LogCommand : public FrameworkCommand { 24 | public: 25 | explicit LogCommand(const char* cmd); 26 | virtual ~LogCommand() { 27 | } 28 | }; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /logd/OWNERS: -------------------------------------------------------------------------------- 1 | cferris@google.com 2 | tomcherry@google.com 3 | -------------------------------------------------------------------------------- /logd/README.auditd: -------------------------------------------------------------------------------- 1 | Auditd Daemon 2 | 3 | The audit daemon is a simplified version of its desktop 4 | counterpart designed to gather the audit logs from the 5 | audit kernel subsystem. The audit subsystem of the kernel 6 | includes Linux Security Modules (LSM) messages as well. 7 | 8 | To enable the audit subsystem, you must add this to your 9 | kernel config: 10 | CONFIG_AUDIT=y 11 | 12 | To enable a LSM, you must consult that LSM's documentation, the 13 | example below is for SELinux: 14 | CONFIG_SECURITY_SELINUX=y 15 | 16 | This does not include possible dependencies that may need to be 17 | satisfied for that particular LSM. 18 | -------------------------------------------------------------------------------- /logd/logd.rc: -------------------------------------------------------------------------------- 1 | service logd /system/bin/logd 2 | socket logd stream 0666 logd logd 3 | socket logdr seqpacket 0666 logd logd 4 | socket logdw dgram+passcred 0222 logd logd 5 | file /proc/kmsg r 6 | file /dev/kmsg w 7 | user logd 8 | group logd system package_info readproc 9 | capabilities SYSLOG AUDIT_CONTROL SETGID 10 | writepid /dev/cpuset/system-background/tasks 11 | 12 | service logd-reinit /system/bin/logd --reinit 13 | oneshot 14 | disabled 15 | user logd 16 | group logd 17 | writepid /dev/cpuset/system-background/tasks 18 | 19 | on fs 20 | write /dev/event-log-tags "# content owned by logd 21 | " 22 | chown logd logd /dev/event-log-tags 23 | chmod 0644 /dev/event-log-tags 24 | -------------------------------------------------------------------------------- /logd/logtagd.rc: -------------------------------------------------------------------------------- 1 | # 2 | # logtagd event log tag service (debug only) 3 | # 4 | on post-fs-data 5 | mkdir /data/misc/logd 0700 logd log 6 | write /data/misc/logd/event-log-tags "" 7 | chown logd log /data/misc/logd/event-log-tags 8 | chmod 0600 /data/misc/logd/event-log-tags 9 | restorecon /data/misc/logd/event-log-tags 10 | -------------------------------------------------------------------------------- /logwrapper/OWNERS: -------------------------------------------------------------------------------- 1 | tomcherry@google.com 2 | -------------------------------------------------------------------------------- /mkbootimg/Android.bp: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Android Open Source Project 2 | 3 | cc_library_headers { 4 | name: "libmkbootimg_abi_headers", 5 | vendor_available: true, 6 | export_include_dirs: ["include"], 7 | } 8 | 9 | cc_library_headers { 10 | name: "bootimg_headers", 11 | vendor_available: true, 12 | recovery_available: true, 13 | export_include_dirs: ["include/bootimg"], 14 | host_supported: true, 15 | target: { 16 | windows: { 17 | enabled: true, 18 | }, 19 | }, 20 | } 21 | 22 | cc_library { 23 | name: "libmkbootimg_abi_check", 24 | vendor_available: true, 25 | vndk: { 26 | enabled: true, 27 | }, 28 | srcs: [ 29 | "mkbootimg_dummy.cpp", 30 | ], 31 | header_libs: ["libmkbootimg_abi_headers"], 32 | export_header_lib_headers: ["libmkbootimg_abi_headers"], 33 | } 34 | -------------------------------------------------------------------------------- /mkbootimg/Android.mk: -------------------------------------------------------------------------------- 1 | 2 | LOCAL_PATH:= $(call my-dir) 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_SRC_FILES := mkbootimg 6 | LOCAL_MODULE_CLASS := EXECUTABLES 7 | LOCAL_IS_HOST_MODULE := true 8 | 9 | LOCAL_MODULE := mkbootimg 10 | 11 | include $(BUILD_PREBUILT) 12 | 13 | include $(CLEAR_VARS) 14 | LOCAL_SRC_FILES := unpack_bootimg 15 | LOCAL_MODULE_CLASS := EXECUTABLES 16 | LOCAL_IS_HOST_MODULE := true 17 | 18 | LOCAL_MODULE := unpack_bootimg 19 | 20 | include $(BUILD_PREBUILT) 21 | -------------------------------------------------------------------------------- /mkbootimg/OWNERS: -------------------------------------------------------------------------------- 1 | hridya@google.com 2 | tbao@google.com 3 | -------------------------------------------------------------------------------- /mkbootimg/mkbootimg_dummy.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | 19 | void mkbootimg_dummy(boot_img_hdr* hdr) { 20 | // TODO: Hack to trigger abi checks, remove this. 21 | if (hdr) { 22 | hdr--; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /property_service/.clang-format: -------------------------------------------------------------------------------- 1 | ../.clang-format-2 -------------------------------------------------------------------------------- /property_service/Android.bp: -------------------------------------------------------------------------------- 1 | subdirs = ["*"] 2 | -------------------------------------------------------------------------------- /property_service/OWNERS: -------------------------------------------------------------------------------- 1 | tomcherry@google.com 2 | -------------------------------------------------------------------------------- /property_service/libpropertyinfoparser/Android.bp: -------------------------------------------------------------------------------- 1 | cc_library_static { 2 | name: "libpropertyinfoparser", 3 | host_supported: true, 4 | vendor_available: true, 5 | recovery_available: true, 6 | srcs: ["property_info_parser.cpp"], 7 | 8 | cpp_std: "experimental", 9 | cppflags: [ 10 | "-Wall", 11 | "-Wextra", 12 | "-Werror", 13 | ], 14 | stl: "none", 15 | export_include_dirs: ["include"], 16 | } 17 | -------------------------------------------------------------------------------- /property_service/property_info_checker/Android.bp: -------------------------------------------------------------------------------- 1 | cc_binary { 2 | name: "property_info_checker", 3 | host_supported: true, 4 | static_executable: true, 5 | cpp_std: "experimental", 6 | static_libs: [ 7 | "libpropertyinfoserializer", 8 | "libpropertyinfoparser", 9 | "libbase", 10 | "libsepol", 11 | ], 12 | srcs: ["property_info_checker.cpp"], 13 | } 14 | -------------------------------------------------------------------------------- /qemu_pipe/Android.bp: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Android Open Source Project 2 | 3 | cc_library_static { 4 | name: "libqemu_pipe", 5 | vendor_available: true, 6 | recovery_available: true, 7 | sanitize: { 8 | misc_undefined: ["integer"], 9 | }, 10 | srcs: ["qemu_pipe.cpp"], 11 | local_include_dirs: ["include"], 12 | static_libs: ["libbase"], 13 | export_include_dirs: ["include"], 14 | cflags: ["-Werror"], 15 | } 16 | -------------------------------------------------------------------------------- /qemu_pipe/OWNERS: -------------------------------------------------------------------------------- 1 | bohu@google.com 2 | -------------------------------------------------------------------------------- /reboot/Android.bp: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Android Open Source Project 2 | 3 | cc_binary { 4 | name: "reboot", 5 | srcs: ["reboot.c"], 6 | shared_libs: ["libcutils"], 7 | cflags: ["-Werror"], 8 | } 9 | -------------------------------------------------------------------------------- /rootdir/OWNERS: -------------------------------------------------------------------------------- 1 | jeffv@google.com 2 | jiyong@google.com 3 | smoreland@google.com 4 | tomcherry@google.com 5 | -------------------------------------------------------------------------------- /rootdir/asan.options: -------------------------------------------------------------------------------- 1 | allow_user_segv_handler=1 2 | detect_odr_violation=0 3 | alloc_dealloc_mismatch=0 4 | allocator_may_return_null=1 5 | detect_container_overflow=0 6 | abort_on_error=1 7 | include_if_exists=/system/asan.options.%b 8 | include_if_exists=/data/asan/system/asan.options.%b 9 | -------------------------------------------------------------------------------- /rootdir/asan_extract.rc: -------------------------------------------------------------------------------- 1 | # When /data is available, look for /system/asan.tar.gz and potentially extract. 2 | on post-fs-data 3 | exec - system system -- /system/bin/asan_extract 4 | -------------------------------------------------------------------------------- /rootdir/etc/hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 localhost 2 | ::1 ip6-localhost 3 | -------------------------------------------------------------------------------- /rootdir/etc/ld.config.recovery.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2018 The Android Open Source Project 2 | # 3 | # Bionic loader config file for recovery mode 4 | # 5 | 6 | dir.recovery = /system/bin 7 | 8 | [recovery] 9 | namespace.default.search.paths = /system/${LIB} 10 | -------------------------------------------------------------------------------- /rootdir/etc/public.libraries.android.txt: -------------------------------------------------------------------------------- 1 | # See https://android.googlesource.com/platform/ndk/+/master/docs/PlatformApis.md 2 | libandroid.so 3 | libaaudio.so 4 | libc.so 5 | libcamera2ndk.so 6 | libdl.so 7 | libEGL.so 8 | libGLESv1_CM.so 9 | libGLESv2.so 10 | libGLESv3.so 11 | libicui18n.so 12 | libicuuc.so 13 | libjnigraphics.so 14 | liblog.so 15 | libmediandk.so 16 | libm.so 17 | libnativewindow.so 18 | libneuralnetworks.so 19 | libOpenMAXAL.so 20 | libOpenSLES.so 21 | libRS.so 22 | libstdc++.so 23 | libsync.so 24 | libvulkan.so 25 | libwebviewchromium_plat_support.so 26 | libz.so 27 | -------------------------------------------------------------------------------- /rootdir/etc/public.libraries.iot.txt: -------------------------------------------------------------------------------- 1 | # See https://android.googlesource.com/platform/ndk/+/master/docs/PlatformApis.md 2 | libandroid.so 3 | libandroidthings.so 4 | libaaudio.so 5 | libc.so 6 | libcamera2ndk.so 7 | libdl.so 8 | libEGL.so 9 | libGLESv1_CM.so 10 | libGLESv2.so 11 | libGLESv3.so 12 | libicui18n.so 13 | libicuuc.so 14 | libjnigraphics.so 15 | liblog.so 16 | libmediandk.so 17 | libm.so 18 | libnativewindow.so 19 | libneuralnetworks.so 20 | libOpenMAXAL.so 21 | libOpenSLES.so 22 | libRS.so 23 | libstdc++.so 24 | libsync.so 25 | libvulkan.so 26 | libwebviewchromium_plat_support.so 27 | libz.so 28 | -------------------------------------------------------------------------------- /rootdir/etc/public.libraries.wear.txt: -------------------------------------------------------------------------------- 1 | # See https://android.googlesource.com/platform/ndk/+/master/docs/PlatformApis.md 2 | libandroid.so 3 | libaaudio.so 4 | libc.so 5 | libcamera2ndk.so 6 | libdl.so 7 | libEGL.so 8 | libGLESv1_CM.so 9 | libGLESv2.so 10 | libGLESv3.so 11 | libicui18n.so 12 | libicuuc.so 13 | libjnigraphics.so 14 | liblog.so 15 | libmediandk.so 16 | libm.so 17 | libnativewindow.so 18 | libneuralnetworks.so 19 | libOpenMAXAL.so 20 | libOpenSLES.so 21 | libRS.so 22 | libstdc++.so 23 | libsync.so 24 | libvulkan.so 25 | libz.so 26 | -------------------------------------------------------------------------------- /rootdir/init-debug.rc: -------------------------------------------------------------------------------- 1 | on property:persist.mmc.max_read_speed=* 2 | write /sys/block/mmcblk0/max_read_speed ${persist.mmc.max_read_speed} 3 | 4 | on property:persist.mmc.max_write_speed=* 5 | write /sys/block/mmcblk0/max_write_speed ${persist.mmc.max_write_speed} 6 | 7 | on property:persist.mmc.cache_size=* 8 | write /sys/block/mmcblk0/cache_size ${persist.mmc.cache_size} 9 | -------------------------------------------------------------------------------- /rootdir/init.environ.rc.in: -------------------------------------------------------------------------------- 1 | # set up the global environment 2 | on init 3 | export ANDROID_BOOTLOGO 1 4 | export ANDROID_ROOT /system 5 | export ANDROID_ASSETS /system/app 6 | export ANDROID_DATA /data 7 | export ANDROID_STORAGE /storage 8 | export EXTERNAL_STORAGE /sdcard 9 | export ASEC_MOUNTPOINT /mnt/asec 10 | export BOOTCLASSPATH %BOOTCLASSPATH% 11 | export SYSTEMSERVERCLASSPATH %SYSTEMSERVERCLASSPATH% 12 | %EXPORT_GLOBAL_ASAN_OPTIONS% 13 | %EXPORT_GLOBAL_GCOV_OPTIONS% 14 | -------------------------------------------------------------------------------- /rootdir/init.zygote32.rc: -------------------------------------------------------------------------------- 1 | service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server 2 | class main 3 | priority -20 4 | user root 5 | group root readproc reserved_disk 6 | socket zygote stream 660 root system 7 | onrestart write /sys/android_power/request_state wake 8 | onrestart write /sys/power/state on 9 | onrestart restart audioserver 10 | onrestart restart cameraserver 11 | onrestart restart media 12 | onrestart restart netd 13 | onrestart restart wificond 14 | writepid /dev/cpuset/foreground/tasks 15 | -------------------------------------------------------------------------------- /rootdir/init.zygote32_64.rc: -------------------------------------------------------------------------------- 1 | service zygote /system/bin/app_process32 -Xzygote /system/bin --zygote --start-system-server --socket-name=zygote 2 | class main 3 | priority -20 4 | user root 5 | group root readproc reserved_disk 6 | socket zygote stream 660 root system 7 | onrestart write /sys/android_power/request_state wake 8 | onrestart write /sys/power/state on 9 | onrestart restart audioserver 10 | onrestart restart cameraserver 11 | onrestart restart media 12 | onrestart restart netd 13 | onrestart restart wificond 14 | writepid /dev/cpuset/foreground/tasks 15 | 16 | service zygote_secondary /system/bin/app_process64 -Xzygote /system/bin --zygote --socket-name=zygote_secondary 17 | class main 18 | priority -20 19 | user root 20 | group root readproc reserved_disk 21 | socket zygote_secondary stream 660 root system 22 | onrestart restart zygote 23 | writepid /dev/cpuset/foreground/tasks 24 | -------------------------------------------------------------------------------- /rootdir/init.zygote64.rc: -------------------------------------------------------------------------------- 1 | service zygote /system/bin/app_process64 -Xzygote /system/bin --zygote --start-system-server 2 | class main 3 | priority -20 4 | user root 5 | group root readproc reserved_disk 6 | socket zygote stream 660 root system 7 | onrestart write /sys/android_power/request_state wake 8 | onrestart write /sys/power/state on 9 | onrestart restart audioserver 10 | onrestart restart cameraserver 11 | onrestart restart media 12 | onrestart restart netd 13 | onrestart restart wificond 14 | writepid /dev/cpuset/foreground/tasks 15 | -------------------------------------------------------------------------------- /rootdir/init.zygote64_32.rc: -------------------------------------------------------------------------------- 1 | service zygote /system/bin/app_process64 -Xzygote /system/bin --zygote --start-system-server --socket-name=zygote 2 | class main 3 | priority -20 4 | user root 5 | group root readproc reserved_disk 6 | socket zygote stream 660 root system 7 | onrestart write /sys/android_power/request_state wake 8 | onrestart write /sys/power/state on 9 | onrestart restart audioserver 10 | onrestart restart cameraserver 11 | onrestart restart media 12 | onrestart restart netd 13 | onrestart restart wificond 14 | writepid /dev/cpuset/foreground/tasks 15 | 16 | service zygote_secondary /system/bin/app_process32 -Xzygote /system/bin --zygote --socket-name=zygote_secondary --enable-lazy-preload 17 | class main 18 | priority -20 19 | user root 20 | group root readproc reserved_disk 21 | socket zygote_secondary stream 660 root system 22 | onrestart restart zygote 23 | writepid /dev/cpuset/foreground/tasks 24 | -------------------------------------------------------------------------------- /run-as/Android.bp: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2018 The Android Open Source Project 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // 16 | 17 | cc_binary { 18 | name: "run-as", 19 | srcs: [ 20 | "run-as.cpp", 21 | ], 22 | shared_libs: [ 23 | "libbase", 24 | "libselinux", 25 | "libpackagelistparser", 26 | "libminijail", 27 | ], 28 | } 29 | -------------------------------------------------------------------------------- /sdcard/Android.bp: -------------------------------------------------------------------------------- 1 | cc_binary { 2 | srcs: ["sdcard.cpp"], 3 | name: "sdcard", 4 | cflags: [ 5 | "-Wall", 6 | "-Wno-unused-parameter", 7 | "-Werror", 8 | ], 9 | shared_libs: [ 10 | "libbase", 11 | "libcutils", 12 | "libminijail", 13 | ], 14 | sanitize: { 15 | misc_undefined: ["integer"], 16 | }, 17 | } 18 | -------------------------------------------------------------------------------- /sdcard/OWNERS: -------------------------------------------------------------------------------- 1 | drosen@google.com 2 | -------------------------------------------------------------------------------- /shell_and_utilities/OWNERS: -------------------------------------------------------------------------------- 1 | enh@google.com 2 | -------------------------------------------------------------------------------- /storaged/OWNERS: -------------------------------------------------------------------------------- 1 | salyzyn@google.com 2 | dvander@google.com 3 | -------------------------------------------------------------------------------- /storaged/README.properties: -------------------------------------------------------------------------------- 1 | ro.storaged.event.interval # interval storaged scans for IO stats, in seconds 2 | ro.storaged.event.perf_check # check for time spent in event loop, in microseconds 3 | ro.storaged.disk_stats_pub # interval storaged publish disk stats, in seconds 4 | ro.storaged.uid_io.interval # interval storaged checks Per UID IO usage, in seconds 5 | ro.storaged.uid_io.threshold # Per UID IO usage limit, in bytes 6 | -------------------------------------------------------------------------------- /storaged/binder/android/os/IStoraged.aidl: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package android.os; 18 | 19 | /** {@hide} */ 20 | interface IStoraged { 21 | void onUserStarted(int userId); 22 | void onUserStopped(int userId); 23 | int getRecentPerf(); 24 | } -------------------------------------------------------------------------------- /storaged/binder/android/os/storaged/IStoragedPrivate.aidl: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package android.os.storaged; 18 | 19 | import android.os.storaged.UidInfo; 20 | 21 | /** {@hide} */ 22 | interface IStoragedPrivate { 23 | UidInfo[] dumpUids(); 24 | int[] dumpPerfHistory(); 25 | } -------------------------------------------------------------------------------- /storaged/binder/android/os/storaged/UidInfo.aidl: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package android.os.storaged; 18 | 19 | parcelable UidInfo cpp_header "include/uid_info.h"; 20 | -------------------------------------------------------------------------------- /storaged/storaged.rc: -------------------------------------------------------------------------------- 1 | service storaged /system/bin/storaged 2 | class main 3 | capabilities DAC_READ_SEARCH 4 | priority 10 5 | file /d/mmc0/mmc0:0001/ext_csd r 6 | writepid /dev/cpuset/system-background/tasks 7 | user root 8 | group package_info 9 | -------------------------------------------------------------------------------- /toolbox/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phhusson/platform_system_core/6a581b7b668c2ea201d351edfe13c9f2270d5418/toolbox/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /toolbox/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2017 The Android Open Source Project 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | 15 | ------------------------------------------------------------------- 16 | 17 | -------------------------------------------------------------------------------- /toolbox/OWNERS: -------------------------------------------------------------------------------- 1 | enh@google.com 2 | -------------------------------------------------------------------------------- /toolbox/tools.h: -------------------------------------------------------------------------------- 1 | TOOL(getevent) 2 | TOOL(getprop) 3 | TOOL(toolbox) 4 | -------------------------------------------------------------------------------- /trusty/Android.bp: -------------------------------------------------------------------------------- 1 | subdirs = [ 2 | "gatekeeper", 3 | "keymaster", 4 | "libtrusty", 5 | "storage/*", 6 | ] 7 | -------------------------------------------------------------------------------- /trusty/OWNERS: -------------------------------------------------------------------------------- 1 | arve@google.com 2 | dkrahn@google.com 3 | drewry@google.com 4 | gmar@google.com 5 | ncbray@google.com 6 | rpere@google.com 7 | swillden@google.com 8 | -------------------------------------------------------------------------------- /trusty/gatekeeper/trusty_gatekeeper_ipc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | __BEGIN_DECLS 18 | 19 | int trusty_gatekeeper_connect(); 20 | int trusty_gatekeeper_call(uint32_t cmd, void *in, uint32_t in_size, uint8_t *out, 21 | uint32_t *out_size); 22 | void trusty_gatekeeper_disconnect(); 23 | 24 | __END_DECLS 25 | -------------------------------------------------------------------------------- /trusty/keymaster/3.0/android.hardware.keymaster@3.0-service.trusty.rc: -------------------------------------------------------------------------------- 1 | service vendor.keymaster-3-0 /vendor/bin/hw/android.hardware.keymaster@3.0-service.trusty 2 | class early_hal 3 | user nobody 4 | group system drmrpc 5 | -------------------------------------------------------------------------------- /trusty/libtrusty/Android.bp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2015 The Android Open Source Project 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | subdirs = [ 16 | "tipc-test", 17 | ] 18 | 19 | cc_library { 20 | name: "libtrusty", 21 | vendor: true, 22 | 23 | srcs: ["trusty.c"], 24 | export_include_dirs: ["include"], 25 | cflags: [ 26 | "-Wall", 27 | "-Werror", 28 | ], 29 | 30 | shared_libs: ["liblog"], 31 | } 32 | -------------------------------------------------------------------------------- /trusty/libtrusty/include/trusty/tipc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _LIB_TIPC_H 18 | #define _LIB_TIPC_H 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | int tipc_connect(const char *dev_name, const char *srv_name); 25 | int tipc_close(int fd); 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /trusty/libtrusty/tipc-test/Android.bp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2015 The Android Open Source Project 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | cc_test { 16 | name: "tipc-test", 17 | vendor: true, 18 | 19 | srcs: ["tipc_test.c"], 20 | static_libs: [ 21 | "libtrusty", 22 | ], 23 | shared_libs: [ 24 | "libc", 25 | "liblog", 26 | ], 27 | gtest: false, 28 | cflags: [ 29 | "-Wall", 30 | "-Werror", 31 | ], 32 | } 33 | -------------------------------------------------------------------------------- /trusty/libtrusty/tipc_ioctl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _TIPC_IOCTL_H 18 | #define _TIPC_IOCTL_H 19 | 20 | #include 21 | #include 22 | 23 | #define TIPC_IOC_MAGIC 'r' 24 | #define TIPC_IOC_CONNECT _IOW(TIPC_IOC_MAGIC, 0x80, char *) 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /trusty/storage/interface/Android.bp: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2015 The Android Open-Source Project 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // 16 | 17 | cc_library_static { 18 | name: "libtrustystorageinterface", 19 | vendor: true, 20 | export_include_dirs: ["include"], 21 | } 22 | -------------------------------------------------------------------------------- /trusty/storage/proxy/ipc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #pragma once 17 | 18 | #include 19 | #include 20 | 21 | int ipc_connect(const char *device, const char *service_name); 22 | void ipc_disconnect(void); 23 | ssize_t ipc_get_msg(struct storage_msg *msg, void *req_buf, size_t req_buf_len); 24 | int ipc_respond(struct storage_msg *msg, void *out, size_t out_size); 25 | -------------------------------------------------------------------------------- /trusty/storage/proxy/log.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #define LOG_TAG "storageproxyd" 18 | 19 | #include 20 | 21 | -------------------------------------------------------------------------------- /trusty/storage/proxy/rpmb.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #pragma once 17 | 18 | #include 19 | #include 20 | 21 | int rpmb_open(const char *rpmb_devname); 22 | int rpmb_send(struct storage_msg *msg, const void *r, size_t req_len); 23 | void rpmb_close(void); 24 | -------------------------------------------------------------------------------- /trusty/trusty-base.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2016 The Android Open-Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # 18 | # This makefile should be included by devices that use Trusty TEE 19 | # to pull in the baseline set of Trusty specific modules. 20 | # 21 | 22 | PRODUCT_PACKAGES += \ 23 | android.hardware.keymaster@3.0-service.trusty \ 24 | gatekeeper.trusty 25 | 26 | PRODUCT_PROPERTY_OVERRIDES += \ 27 | ro.hardware.keystore=trusty \ 28 | ro.hardware.gatekeeper=trusty 29 | -------------------------------------------------------------------------------- /trusty/trusty-storage.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2015 The Android Open-Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | PRODUCT_PACKAGES += \ 18 | storageproxyd \ 19 | -------------------------------------------------------------------------------- /usbd/Android.bp: -------------------------------------------------------------------------------- 1 | cc_binary { 2 | name: "usbd", 3 | init_rc: ["usbd.rc"], 4 | srcs: ["usbd.cpp"], 5 | shared_libs: [ 6 | "libbase", 7 | "libhidlbase", 8 | "libhidltransport", 9 | "liblog", 10 | "libutils", 11 | "libhardware", 12 | "android.hardware.usb.gadget@1.0", 13 | "libcutils", 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /usbd/usbd.rc: -------------------------------------------------------------------------------- 1 | service usbd /system/bin/usbd 2 | class late_start 3 | oneshot 4 | user root 5 | group root usb system 6 | -------------------------------------------------------------------------------- /watchdogd/Android.bp: -------------------------------------------------------------------------------- 1 | cc_binary { 2 | name: "watchdogd", 3 | recovery_available: true, 4 | srcs: ["watchdogd.cpp"], 5 | cflags: [ 6 | "-Wall", 7 | "-Wextra", 8 | "-Werror", 9 | ], 10 | shared_libs: ["libbase"], 11 | sanitize: { 12 | misc_undefined: ["signed-integer-overflow"], 13 | }, 14 | } 15 | --------------------------------------------------------------------------------