diff options
Diffstat (limited to 'cmds')
| -rw-r--r-- | cmds/abx/Android.bp | 7 | ||||
| -rwxr-xr-x | cmds/abx/abx.sh (renamed from cmds/abx/abx) | 0 | ||||
| -rwxr-xr-x | cmds/abx/abx2xml.sh (renamed from cmds/abx/abx2xml) | 0 | ||||
| -rwxr-xr-x | cmds/abx/xml2abx.sh (renamed from cmds/abx/xml2abx) | 0 | ||||
| -rw-r--r-- | cmds/am/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/am/am.sh (renamed from cmds/am/am) | 0 | ||||
| -rw-r--r-- | cmds/app_process/app_main.cpp | 2 | ||||
| -rw-r--r-- | cmds/appops/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/appops/appops.sh (renamed from cmds/appops/appops) | 0 | ||||
| -rw-r--r-- | cmds/appwidget/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/appwidget/appwidget.sh (renamed from cmds/appwidget/appwidget) | 0 | ||||
| -rw-r--r-- | cmds/bmgr/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/bmgr/bmgr.sh (renamed from cmds/bmgr/bmgr) | 0 | ||||
| -rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 3 | ||||
| -rw-r--r-- | cmds/bu/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/bu/bu.sh (renamed from cmds/bu/bu) | 0 | ||||
| -rw-r--r-- | cmds/content/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/content/content.sh (renamed from cmds/content/content) | 0 | ||||
| -rw-r--r-- | cmds/device_config/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/device_config/device_config.sh (renamed from cmds/device_config/device_config) | 0 | ||||
| -rw-r--r-- | cmds/dpm/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/dpm/dpm.sh (renamed from cmds/dpm/dpm) | 0 | ||||
| -rw-r--r-- | cmds/hid/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/hid/hid.sh (renamed from cmds/hid/hid) | 0 | ||||
| -rw-r--r-- | cmds/idmap2/include/idmap2/SysTrace.h | 15 | ||||
| -rw-r--r-- | cmds/idmap2/libidmap2/CommandLineOptions.cpp | 1 | ||||
| -rw-r--r-- | cmds/idmap2/libidmap2/Idmap.cpp | 1 | ||||
| -rw-r--r-- | cmds/idmap2/libidmap2/SysTrace.cpp | 36 | ||||
| -rw-r--r-- | cmds/ime/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/ime/ime.sh (renamed from cmds/ime/ime) | 0 | ||||
| -rw-r--r-- | cmds/incidentd/src/IncidentService.cpp | 10 | ||||
| -rw-r--r-- | cmds/input/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/input/input.sh (renamed from cmds/input/input) | 0 | ||||
| -rw-r--r-- | cmds/locksettings/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/locksettings/locksettings.sh (renamed from cmds/locksettings/locksettings) | 0 | ||||
| -rw-r--r-- | cmds/pm/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/pm/pm.sh (renamed from cmds/pm/pm) | 0 | ||||
| -rw-r--r-- | cmds/requestsync/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/requestsync/requestsync.sh (renamed from cmds/requestsync/requestsync) | 0 | ||||
| -rw-r--r-- | cmds/screencap/OWNERS | 2 | ||||
| -rw-r--r-- | cmds/settings/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/settings/settings.sh (renamed from cmds/settings/settings) | 0 | ||||
| -rw-r--r-- | cmds/sm/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/sm/sm.sh (renamed from cmds/sm/sm) | 0 | ||||
| -rw-r--r-- | cmds/sm/src/com/android/commands/sm/Sm.java | 14 | ||||
| -rw-r--r-- | cmds/svc/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/svc/svc.sh (renamed from cmds/svc/svc) | 0 | ||||
| -rw-r--r-- | cmds/telecom/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/telecom/telecom.sh (renamed from cmds/telecom/telecom) | 0 | ||||
| -rw-r--r-- | cmds/uiautomator/cmds/uiautomator/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/uiautomator/cmds/uiautomator/uiautomator.sh (renamed from cmds/uiautomator/cmds/uiautomator/uiautomator) | 0 | ||||
| -rw-r--r-- | cmds/uinput/Android.bp | 7 | ||||
| -rwxr-xr-x | cmds/uinput/uinput.sh (renamed from cmds/uinput/uinput) | 0 | ||||
| -rw-r--r-- | cmds/vr/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/vr/vr.sh (renamed from cmds/vr/vr) | 0 | ||||
| -rw-r--r-- | cmds/wm/Android.bp | 2 | ||||
| -rwxr-xr-x | cmds/wm/wm.sh (renamed from cmds/wm/wm) | 0 |
57 files changed, 86 insertions, 54 deletions
diff --git a/cmds/abx/Android.bp b/cmds/abx/Android.bp index 50a0b75b3276..a832dea20673 100644 --- a/cmds/abx/Android.bp +++ b/cmds/abx/Android.bp @@ -1,4 +1,3 @@ - package { default_applicable_licenses: ["frameworks_base_cmds_abx_license"], } @@ -18,7 +17,7 @@ license { java_binary { name: "abx", - wrapper: "abx", + wrapper: "abx.sh", srcs: ["**/*.java"], required: [ "abx2xml", @@ -28,10 +27,10 @@ java_binary { sh_binary { name: "abx2xml", - src: "abx2xml", + src: "abx2xml.sh", } sh_binary { name: "xml2abx", - src: "xml2abx", + src: "xml2abx.sh", } diff --git a/cmds/abx/abx b/cmds/abx/abx.sh index 0a9362d64398..0a9362d64398 100755 --- a/cmds/abx/abx +++ b/cmds/abx/abx.sh diff --git a/cmds/abx/abx2xml b/cmds/abx/abx2xml.sh index 0a9362d64398..0a9362d64398 100755 --- a/cmds/abx/abx2xml +++ b/cmds/abx/abx2xml.sh diff --git a/cmds/abx/xml2abx b/cmds/abx/xml2abx.sh index 0a9362d64398..0a9362d64398 100755 --- a/cmds/abx/xml2abx +++ b/cmds/abx/xml2abx.sh diff --git a/cmds/am/Android.bp b/cmds/am/Android.bp index 7bb9675ede37..c6cc7c55dae3 100644 --- a/cmds/am/Android.bp +++ b/cmds/am/Android.bp @@ -30,7 +30,7 @@ cc_library_host_static { java_binary { name: "am", - wrapper: "am", + wrapper: "am.sh", srcs: [ "src/**/*.java", "proto/**/*.proto", diff --git a/cmds/am/am b/cmds/am/am.sh index 54c2d394be2c..54c2d394be2c 100755 --- a/cmds/am/am +++ b/cmds/am/am.sh diff --git a/cmds/app_process/app_main.cpp b/cmds/app_process/app_main.cpp index 12083b6fe20b..28db61f7d98a 100644 --- a/cmds/app_process/app_main.cpp +++ b/cmds/app_process/app_main.cpp @@ -334,7 +334,7 @@ int main(int argc, char* const argv[]) if (zygote) { runtime.start("com.android.internal.os.ZygoteInit", args, zygote); - } else if (className) { + } else if (!className.isEmpty()) { runtime.start("com.android.internal.os.RuntimeInit", args, zygote); } else { fprintf(stderr, "Error: no class name or --zygote supplied.\n"); diff --git a/cmds/appops/Android.bp b/cmds/appops/Android.bp index 80f8ec679247..538ae941548e 100644 --- a/cmds/appops/Android.bp +++ b/cmds/appops/Android.bp @@ -19,5 +19,5 @@ license { sh_binary { name: "appops", - src: "appops", + src: "appops.sh", } diff --git a/cmds/appops/appops b/cmds/appops/appops.sh index 5dc85aa0979c..5dc85aa0979c 100755 --- a/cmds/appops/appops +++ b/cmds/appops/appops.sh diff --git a/cmds/appwidget/Android.bp b/cmds/appwidget/Android.bp index 8049038de809..cd439e2753e9 100644 --- a/cmds/appwidget/Android.bp +++ b/cmds/appwidget/Android.bp @@ -19,6 +19,6 @@ license { java_binary { name: "appwidget", - wrapper: "appwidget", + wrapper: "appwidget.sh", srcs: ["**/*.java"], } diff --git a/cmds/appwidget/appwidget b/cmds/appwidget/appwidget.sh index cc70ca53d5dd..cc70ca53d5dd 100755 --- a/cmds/appwidget/appwidget +++ b/cmds/appwidget/appwidget.sh diff --git a/cmds/bmgr/Android.bp b/cmds/bmgr/Android.bp index 14beb5561dba..a85669a20e99 100644 --- a/cmds/bmgr/Android.bp +++ b/cmds/bmgr/Android.bp @@ -20,6 +20,6 @@ license { java_binary { name: "bmgr", - wrapper: "bmgr", + wrapper: "bmgr.sh", srcs: ["**/*.java"], } diff --git a/cmds/bmgr/bmgr b/cmds/bmgr/bmgr.sh index b068d10dcbcf..b068d10dcbcf 100755 --- a/cmds/bmgr/bmgr +++ b/cmds/bmgr/bmgr.sh diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 50c8e933d25f..33739f39aaa4 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -510,7 +510,8 @@ status_t BootAnimation::readyToRun() { resolution = limitSurfaceSize(resolution.width, resolution.height); // create the native surface sp<SurfaceControl> control = session()->createSurface(String8("BootAnimation"), - resolution.getWidth(), resolution.getHeight(), PIXEL_FORMAT_RGB_565); + resolution.getWidth(), resolution.getHeight(), PIXEL_FORMAT_RGB_565, + ISurfaceComposerClient::eOpaque); SurfaceComposerClient::Transaction t; diff --git a/cmds/bu/Android.bp b/cmds/bu/Android.bp index 5b4ec3197cdd..b61a7a6e6429 100644 --- a/cmds/bu/Android.bp +++ b/cmds/bu/Android.bp @@ -20,6 +20,6 @@ license { java_binary { name: "bu", - wrapper: "bu", + wrapper: "bu.sh", srcs: ["**/*.java"], } diff --git a/cmds/bu/bu b/cmds/bu/bu.sh index e50b53da4325..e50b53da4325 100755 --- a/cmds/bu/bu +++ b/cmds/bu/bu.sh diff --git a/cmds/content/Android.bp b/cmds/content/Android.bp index c70d01ec8f0b..0dd0f034e405 100644 --- a/cmds/content/Android.bp +++ b/cmds/content/Android.bp @@ -19,6 +19,6 @@ license { java_binary { name: "content", - wrapper: "content", + wrapper: "content.sh", srcs: ["**/*.java"], } diff --git a/cmds/content/content b/cmds/content/content.sh index 91f2dfb16ac9..91f2dfb16ac9 100755 --- a/cmds/content/content +++ b/cmds/content/content.sh diff --git a/cmds/device_config/Android.bp b/cmds/device_config/Android.bp index 69572d8690c4..83b2730c874f 100644 --- a/cmds/device_config/Android.bp +++ b/cmds/device_config/Android.bp @@ -14,5 +14,5 @@ package { sh_binary { name: "device_config", - src: "device_config", + src: "device_config.sh", } diff --git a/cmds/device_config/device_config b/cmds/device_config/device_config.sh index a949bd528263..a949bd528263 100755 --- a/cmds/device_config/device_config +++ b/cmds/device_config/device_config.sh diff --git a/cmds/dpm/Android.bp b/cmds/dpm/Android.bp index 6819d0982d2c..29bee4958be6 100644 --- a/cmds/dpm/Android.bp +++ b/cmds/dpm/Android.bp @@ -20,5 +20,5 @@ license { sh_binary { name: "dpm", - src: "dpm", + src: "dpm.sh", } diff --git a/cmds/dpm/dpm b/cmds/dpm/dpm.sh index 784db5b352a9..784db5b352a9 100755 --- a/cmds/dpm/dpm +++ b/cmds/dpm/dpm.sh diff --git a/cmds/hid/Android.bp b/cmds/hid/Android.bp index 295c71c65368..a6e27698e36c 100644 --- a/cmds/hid/Android.bp +++ b/cmds/hid/Android.bp @@ -20,7 +20,7 @@ license { java_binary { name: "hid", - wrapper: "hid", + wrapper: "hid.sh", srcs: ["**/*.java"], required: ["libhidcommand_jni"], } diff --git a/cmds/hid/hid b/cmds/hid/hid.sh index 43c76345c9e1..43c76345c9e1 100755 --- a/cmds/hid/hid +++ b/cmds/hid/hid.sh diff --git a/cmds/idmap2/include/idmap2/SysTrace.h b/cmds/idmap2/include/idmap2/SysTrace.h index 19b4353def18..fcadf96a497f 100644 --- a/cmds/idmap2/include/idmap2/SysTrace.h +++ b/cmds/idmap2/include/idmap2/SysTrace.h @@ -17,8 +17,6 @@ #ifndef IDMAP2_INCLUDE_IDMAP2_SYSTRACE_H_ #define IDMAP2_INCLUDE_IDMAP2_SYSTRACE_H_ -#define ATRACE_TAG ATRACE_TAG_RRO - #include <sstream> #include <vector> @@ -29,16 +27,12 @@ namespace android::idmap2::utils { class ScopedTraceNoStart { public: - ~ScopedTraceNoStart() { - ATRACE_END(); - } + ~ScopedTraceNoStart(); }; class ScopedTraceMessageHelper { public: - ~ScopedTraceMessageHelper() { - ATRACE_BEGIN(buffer_.str().c_str()); - } + ~ScopedTraceMessageHelper(); std::ostream& stream() { return buffer_; @@ -48,9 +42,12 @@ class ScopedTraceMessageHelper { std::ostringstream buffer_; }; +bool atrace_enabled(); + #define SYSTRACE \ android::idmap2::utils::ScopedTraceNoStart _trace##__LINE__; \ - (ATRACE_ENABLED()) && android::idmap2::utils::ScopedTraceMessageHelper().stream() + android::idmap2::utils::atrace_enabled() \ + && android::idmap2::utils::ScopedTraceMessageHelper().stream() #else diff --git a/cmds/idmap2/libidmap2/CommandLineOptions.cpp b/cmds/idmap2/libidmap2/CommandLineOptions.cpp index 5b0ae92df887..8129d99650f7 100644 --- a/cmds/idmap2/libidmap2/CommandLineOptions.cpp +++ b/cmds/idmap2/libidmap2/CommandLineOptions.cpp @@ -17,6 +17,7 @@ #include "idmap2/CommandLineOptions.h" #include <algorithm> +#include <cassert> #include <iomanip> #include <iostream> #include <memory> diff --git a/cmds/idmap2/libidmap2/Idmap.cpp b/cmds/idmap2/libidmap2/Idmap.cpp index 6515d5516d83..06650f681b24 100644 --- a/cmds/idmap2/libidmap2/Idmap.cpp +++ b/cmds/idmap2/libidmap2/Idmap.cpp @@ -17,6 +17,7 @@ #include "idmap2/Idmap.h" #include <algorithm> +#include <cassert> #include <iostream> #include <iterator> #include <limits> diff --git a/cmds/idmap2/libidmap2/SysTrace.cpp b/cmds/idmap2/libidmap2/SysTrace.cpp new file mode 100644 index 000000000000..55d45b775ffa --- /dev/null +++ b/cmds/idmap2/libidmap2/SysTrace.cpp @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2022 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#define ATRACE_TAG ATRACE_TAG_RRO + +#include "idmap2/SysTrace.h" + +#ifdef __ANDROID__ +namespace android::idmap2::utils { + +ScopedTraceNoStart::~ScopedTraceNoStart() { + ATRACE_END(); +}; + +ScopedTraceMessageHelper::~ScopedTraceMessageHelper() { + ATRACE_BEGIN(buffer_.str().c_str()); +} + +bool atrace_enabled() { + return ATRACE_ENABLED(); +} +} // namespace android::idmap2::utils +#endif diff --git a/cmds/ime/Android.bp b/cmds/ime/Android.bp index 6dd3ba1ca7ef..5f54ffacbb00 100644 --- a/cmds/ime/Android.bp +++ b/cmds/ime/Android.bp @@ -20,5 +20,5 @@ license { sh_binary { name: "ime", - src: "ime", + src: "ime.sh", } diff --git a/cmds/ime/ime b/cmds/ime/ime.sh index 7d2f72f74010..7d2f72f74010 100755 --- a/cmds/ime/ime +++ b/cmds/ime/ime.sh diff --git a/cmds/incidentd/src/IncidentService.cpp b/cmds/incidentd/src/IncidentService.cpp index fbb99d2aea89..836801deaa08 100644 --- a/cmds/incidentd/src/IncidentService.cpp +++ b/cmds/incidentd/src/IncidentService.cpp @@ -47,10 +47,16 @@ enum { #define DEFAULT_REFACTORY_PERIOD_MS (24 * 60 * 60 * 1000) // 1 Day // Skip these sections (for dumpstate only) -// Skip logs (1100 - 1108) and traces (1200 - 1202) because they are already in the bug report. +// Skip logs (1100 - 1108), traces (1200 - 1202), dumpsys (3000 - 3024, 3027 - 3056, 4000 - 4001) +// because they are already in the bug report. #define SKIPPED_DUMPSTATE_SECTIONS { \ 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, /* Logs */ \ - 1200, 1201, 1202, /* Native, hal, java traces */ } + 1200, 1201, 1202, /* Native, hal, java traces */ \ + 3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, 3011, 3012, 3013, \ + 3014, 3015, 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, 3024, 3027, 3028, 3029, \ + 3030, 3031, 3032, 3033, 3034, 3035, 3036, 3037, 3038, 3039, 3040, 3041, 3042, 3043, \ + 3044, 3045, 3046, 3047, 3048, 3049, 3050, 3051, 3052, 3053, 3054, 3055, 3056, 4000, \ + 4001, /* Dumpsys */ } namespace android { namespace os { diff --git a/cmds/input/Android.bp b/cmds/input/Android.bp index 2e30176971d7..8f44f3e34ef7 100644 --- a/cmds/input/Android.bp +++ b/cmds/input/Android.bp @@ -20,5 +20,5 @@ license { sh_binary { name: "input", - src: "input", + src: "input.sh", } diff --git a/cmds/input/input b/cmds/input/input.sh index d7d041431b49..d7d041431b49 100755 --- a/cmds/input/input +++ b/cmds/input/input.sh diff --git a/cmds/locksettings/Android.bp b/cmds/locksettings/Android.bp index 3869c8fcdabc..5ee582450361 100644 --- a/cmds/locksettings/Android.bp +++ b/cmds/locksettings/Android.bp @@ -23,6 +23,6 @@ package { java_binary { name: "locksettings", - wrapper: "locksettings", + wrapper: "locksettings.sh", srcs: ["**/*.java"], } diff --git a/cmds/locksettings/locksettings b/cmds/locksettings/locksettings.sh index 0ef4fa9f6771..0ef4fa9f6771 100755 --- a/cmds/locksettings/locksettings +++ b/cmds/locksettings/locksettings.sh diff --git a/cmds/pm/Android.bp b/cmds/pm/Android.bp index 847dbabdf4c0..0e61a9e35d5e 100644 --- a/cmds/pm/Android.bp +++ b/cmds/pm/Android.bp @@ -20,5 +20,5 @@ license { sh_binary { name: "pm", - src: "pm", + src: "pm.sh", } diff --git a/cmds/pm/pm b/cmds/pm/pm.sh index 4d1f94554a78..4d1f94554a78 100755 --- a/cmds/pm/pm +++ b/cmds/pm/pm.sh diff --git a/cmds/requestsync/Android.bp b/cmds/requestsync/Android.bp index 57e8dd355b26..8718f79c0d70 100644 --- a/cmds/requestsync/Android.bp +++ b/cmds/requestsync/Android.bp @@ -20,6 +20,6 @@ license { java_binary { name: "requestsync", - wrapper: "requestsync", + wrapper: "requestsync.sh", srcs: ["**/*.java"], } diff --git a/cmds/requestsync/requestsync b/cmds/requestsync/requestsync.sh index 2d5d0e41705a..2d5d0e41705a 100755 --- a/cmds/requestsync/requestsync +++ b/cmds/requestsync/requestsync.sh diff --git a/cmds/screencap/OWNERS b/cmds/screencap/OWNERS new file mode 100644 index 000000000000..89f117782844 --- /dev/null +++ b/cmds/screencap/OWNERS @@ -0,0 +1,2 @@ +include /graphics/java/android/graphics/OWNERS +include /services/core/java/com/android/server/wm/OWNERS diff --git a/cmds/settings/Android.bp b/cmds/settings/Android.bp index cc730062f9df..8180fd6cab61 100644 --- a/cmds/settings/Android.bp +++ b/cmds/settings/Android.bp @@ -14,5 +14,5 @@ package { sh_binary { name: "settings", - src: "settings", + src: "settings.sh", } diff --git a/cmds/settings/settings b/cmds/settings/settings.sh index d41ccc62811a..d41ccc62811a 100755 --- a/cmds/settings/settings +++ b/cmds/settings/settings.sh diff --git a/cmds/sm/Android.bp b/cmds/sm/Android.bp index ecfacaeecfd9..403022a2d2ae 100644 --- a/cmds/sm/Android.bp +++ b/cmds/sm/Android.bp @@ -20,6 +20,6 @@ license { java_binary { name: "sm", - wrapper: "sm", + wrapper: "sm.sh", srcs: ["**/*.java"], } diff --git a/cmds/sm/sm b/cmds/sm/sm.sh index 30eae00a990d..30eae00a990d 100755 --- a/cmds/sm/sm +++ b/cmds/sm/sm.sh diff --git a/cmds/sm/src/com/android/commands/sm/Sm.java b/cmds/sm/src/com/android/commands/sm/Sm.java index b384e702ac4e..07c407933dc5 100644 --- a/cmds/sm/src/com/android/commands/sm/Sm.java +++ b/cmds/sm/src/com/android/commands/sm/Sm.java @@ -94,8 +94,6 @@ public final class Sm { runBenchmark(); } else if ("forget".equals(op)) { runForget(); - } else if ("set-emulate-fbe".equals(op)) { - runSetEmulateFbe(); } else if ("get-fbe-mode".equals(op)) { runGetFbeMode(); } else if ("idle-maint".equals(op)) { @@ -191,17 +189,9 @@ public final class Sm { } } - public void runSetEmulateFbe() throws RemoteException { - final boolean emulateFbe = Boolean.parseBoolean(nextArg()); - mSm.setDebugFlags(emulateFbe ? StorageManager.DEBUG_EMULATE_FBE : 0, - StorageManager.DEBUG_EMULATE_FBE); - } - public void runGetFbeMode() { - if (StorageManager.isFileEncryptedNativeOnly()) { + if (StorageManager.isFileEncrypted()) { System.out.println("native"); - } else if (StorageManager.isFileEncryptedEmulatedOnly()) { - System.out.println("emulated"); } else { System.out.println("none"); } @@ -358,8 +348,6 @@ public final class Sm { System.err.println(""); System.err.println(" sm forget [UUID|all]"); System.err.println(""); - System.err.println(" sm set-emulate-fbe [true|false]"); - System.err.println(""); System.err.println(" sm start-checkpoint <num-retries>"); System.err.println(""); System.err.println(" sm supports-checkpoint"); diff --git a/cmds/svc/Android.bp b/cmds/svc/Android.bp index 41a3ebd2f514..a2460875f28e 100644 --- a/cmds/svc/Android.bp +++ b/cmds/svc/Android.bp @@ -20,6 +20,6 @@ license { java_binary { name: "svc", - wrapper: "svc", + wrapper: "svc.sh", srcs: ["**/*.java"], } diff --git a/cmds/svc/svc b/cmds/svc/svc.sh index a2c9de32b3d0..a2c9de32b3d0 100755 --- a/cmds/svc/svc +++ b/cmds/svc/svc.sh diff --git a/cmds/telecom/Android.bp b/cmds/telecom/Android.bp index 4da79c54477b..be027105ae98 100644 --- a/cmds/telecom/Android.bp +++ b/cmds/telecom/Android.bp @@ -20,6 +20,6 @@ license { java_binary { name: "telecom", - wrapper: "telecom", + wrapper: "telecom.sh", srcs: ["**/*.java"], } diff --git a/cmds/telecom/telecom b/cmds/telecom/telecom.sh index a19036bf5bd8..a19036bf5bd8 100755 --- a/cmds/telecom/telecom +++ b/cmds/telecom/telecom.sh diff --git a/cmds/uiautomator/cmds/uiautomator/Android.bp b/cmds/uiautomator/cmds/uiautomator/Android.bp index 56e2e70958fa..51323860725b 100644 --- a/cmds/uiautomator/cmds/uiautomator/Android.bp +++ b/cmds/uiautomator/cmds/uiautomator/Android.bp @@ -25,7 +25,7 @@ package { java_binary { name: "uiautomator", - wrapper: "uiautomator", + wrapper: "uiautomator.sh", srcs: ["src/**/*.java"], static_libs: ["uiautomator.core"], } diff --git a/cmds/uiautomator/cmds/uiautomator/uiautomator b/cmds/uiautomator/cmds/uiautomator/uiautomator.sh index 889c2b524dfd..889c2b524dfd 100755 --- a/cmds/uiautomator/cmds/uiautomator/uiautomator +++ b/cmds/uiautomator/cmds/uiautomator/uiautomator.sh diff --git a/cmds/uinput/Android.bp b/cmds/uinput/Android.bp index 260cfc781ebc..4b08d968ac4a 100644 --- a/cmds/uinput/Android.bp +++ b/cmds/uinput/Android.bp @@ -20,9 +20,10 @@ license { java_binary { name: "uinput", - wrapper: "uinput", - srcs: ["**/*.java", - ":uinputcommand_aidl" + wrapper: "uinput.sh", + srcs: [ + "**/*.java", + ":uinputcommand_aidl", ], required: ["libuinputcommand_jni"], } diff --git a/cmds/uinput/uinput b/cmds/uinput/uinput.sh index ab2770ee2043..ab2770ee2043 100755 --- a/cmds/uinput/uinput +++ b/cmds/uinput/uinput.sh diff --git a/cmds/vr/Android.bp b/cmds/vr/Android.bp index 893649155fd8..61795b4cc052 100644 --- a/cmds/vr/Android.bp +++ b/cmds/vr/Android.bp @@ -20,6 +20,6 @@ license { java_binary { name: "vr", - wrapper: "vr", + wrapper: "vr.sh", srcs: ["**/*.java"], } diff --git a/cmds/vr/vr b/cmds/vr/vr.sh index dbde02a4ac7f..dbde02a4ac7f 100755 --- a/cmds/vr/vr +++ b/cmds/vr/vr.sh diff --git a/cmds/wm/Android.bp b/cmds/wm/Android.bp index cf6b0193fe87..4d00f175211d 100644 --- a/cmds/wm/Android.bp +++ b/cmds/wm/Android.bp @@ -20,5 +20,5 @@ license { sh_binary { name: "wm", - src: "wm", + src: "wm.sh", } diff --git a/cmds/wm/wm b/cmds/wm/wm.sh index cb45be20c24a..cb45be20c24a 100755 --- a/cmds/wm/wm +++ b/cmds/wm/wm.sh |