Files
build/tools/aconfig/aflags/Android.bp
Ted Bauer a98448f4e7 aflags: only permit enable/disable with root access.
Bug: 324436145
Test: adb unroot && adb shell aflags enable com.android.window.flags.sync_window_config_update_flag # Fails
Test: adb root && adb shell aflags enable com.android.window.flags.sync_window_config_update_flag # Succeeds
Change-Id: I88db174b51462199a234eeb3b6fb70c4da538700
2024-03-07 17:55:27 +00:00

31 lines
557 B
Plaintext

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
rust_defaults {
name: "aflags.defaults",
edition: "2021",
clippy_lints: "android",
lints: "android",
srcs: ["src/main.rs"],
rustlibs: [
"libaconfig_protos",
"libanyhow",
"libclap",
"libnix",
"libprotobuf",
"libregex",
],
}
rust_binary {
name: "aflags",
defaults: ["aflags.defaults"],
}
rust_test_host {
name: "aflags.test",
defaults: ["aflags.defaults"],
test_suites: ["general-tests"],
}