Siarhei Vishniakou 46e7cc14ad Use unique_fd for uhid device
It is safer to use unique_fd because we don't have to worry about
closing it.

Bug: none
Test: atest NintendoSwitchProTest
Change-Id: I7bb0fb23ede65cf503f59a6e48cd708f0e99bba8
2019-12-10 13:47:03 -08:00

19 lines
295 B
Plaintext

cc_library_shared {
name: "libhidcommand_jni",
srcs: ["com_android_commands_hid_Device.cpp"],
shared_libs: [
"libandroid",
"libbase",
"liblog",
"libnativehelper",
],
cflags: [
"-Wall",
"-Wextra",
"-Werror",
],
}