From 7b24108a6780948d0ece8096076d8b99298c4595 Mon Sep 17 00:00:00 2001 From: Firefly Date: Fri, 5 Jun 2015 09:49:22 -0400 Subject: [PATCH] [system/core] core: workaround to limited support bangcle free edition protection This workaround provides the limited support apps of which dex files are protected by bangcle free edition protection. NOTE: Must be merged together with following workaround: https://android.intel.com/#/c/394523/ https://android.intel.com/#/c/394524/ https://android.intel.com/#/c/394526/ Change-Id: I876330738cbe0f10819e8be961f61f8011258d4b Tracked-On: https://jira01.devtools.intel.com/browse/IMINAN-38665 Signed-off-by: Firefly --- system/core/toolbox/getprop.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/system/core/toolbox/getprop.c b/system/core/toolbox/getprop.c index dcc0ea0305..72780b7041 100644 --- a/system/core/toolbox/getprop.c +++ b/system/core/toolbox/getprop.c @@ -43,8 +43,16 @@ int getprop_main(int argc, char *argv[]) default_value = ""; } - property_get(argv[1], value, default_value); - printf("%s\n", value); + if (!strcmp(argv[1], "ro.product.cpu.abi.bn")) { + printf("armeabi-v7a\n"); + } else if (!strcmp(argv[1], "ro.product.cpu.abi2.bn")) { + printf("armeabi-v5a\n"); + } else if (!strcmp(argv[1], "ro.product.cpu.abilist.bn")) { + printf("armeabi-v7a,armeabi-v5a,armeabi\n"); + } else { + property_get(argv[1], value, default_value); + printf("%s\n", value); + } } return 0; }