X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/7276d4a4f1827373ba538b27e7316152f8ae98cb..b712e30f23f84a36f585208bf1894200a6c87e54:/Command.cpp diff --git a/Command.cpp b/Command.cpp index 1e8b395..c40af80 100644 --- a/Command.cpp +++ b/Command.cpp @@ -197,8 +197,10 @@ int doList(Bundle* bundle) if (&res == NULL) { printf("\nNo resource table found.\n"); } else { +#ifndef HAVE_ANDROID_OS printf("\nResource table:\n"); res.print(false); +#endif } Asset* manifestAsset = assets.openNonAsset("AndroidManifest.xml", @@ -388,8 +390,9 @@ int doDump(Bundle* bundle) } if (strcmp("resources", option) == 0) { +#ifndef HAVE_ANDROID_OS res.print(bundle->getValues()); - +#endif } else if (strcmp("xmltree", option) == 0) { if (bundle->getFileSpecCount() < 3) { fprintf(stderr, "ERROR: no dump xmltree resource file specified\n"); @@ -1000,7 +1003,7 @@ int doDump(Bundle* bundle) } // Bluetooth-related compatibility logic - if (!specBluetoothFeature && hasBluetoothPermission) { + if (!specBluetoothFeature && hasBluetoothPermission && (targetSdk > 4)) { // if app takes a Bluetooth permission but does not request the Bluetooth // feature, we infer that it meant to printf("uses-feature:'android.hardware.bluetooth'\n");