Remove product_is_iot. am: 917bb01c6b am: 8f163dd2b0

am: 59640ab7f8

Change-Id: I627bf82a5c321da89ca5b6d4f1f49804f18c0881
gugelfrei
Elliott Hughes 5 years ago committed by android-build-merger
commit b535c8d620

@ -45,12 +45,6 @@ cc_library {
"-Werror", "-Werror",
], ],
product_variables: {
product_is_iot: {
cflags: ["-DTARGET_ANDROID_THINGS"],
},
},
include_dirs: [ include_dirs: [
// For android_mallopt definitions. // For android_mallopt definitions.
"bionic/libc/private" "bionic/libc/private"

@ -176,18 +176,7 @@ bool modifyDefaultAudioEffectsAllowed() {
// IMPORTANT: Use PermissionCache - not a runtime permission and may not change. // IMPORTANT: Use PermissionCache - not a runtime permission and may not change.
bool ok = PermissionCache::checkCallingPermission(sModifyDefaultAudioEffectsAllowed); bool ok = PermissionCache::checkCallingPermission(sModifyDefaultAudioEffectsAllowed);
#ifdef TARGET_ANDROID_THINGS
if (!ok) {
// Use a secondary permission on Android Things to allow a more lenient level of protection.
static const String16 sModifyDefaultAudioEffectsAndroidThingsAllowed(
"com.google.android.things.permission.MODIFY_DEFAULT_AUDIO_EFFECTS");
ok = PermissionCache::checkCallingPermission(
sModifyDefaultAudioEffectsAndroidThingsAllowed);
}
if (!ok) ALOGE("com.google.android.things.permission.MODIFY_DEFAULT_AUDIO_EFFECTS");
#else
if (!ok) ALOGE("android.permission.MODIFY_DEFAULT_AUDIO_EFFECTS"); if (!ok) ALOGE("android.permission.MODIFY_DEFAULT_AUDIO_EFFECTS");
#endif
return ok; return ok;
} }

Loading…
Cancel
Save