From e0efaddbebaf9cdabe4253d7f3cfdf87dc9a7446 Mon Sep 17 00:00:00 2001 From: KOUSHIK PANUGANTI Date: Mon, 23 Apr 2018 17:31:10 -0700 Subject: [PATCH] Migrated various apps under frameworks/base/packages/Shell to androidx Bug: 76692459 Test: make Shell Change-Id: If11159cac1bd5aa61c46a346647b97a661abbf11 Merged-In: If11159cac1bd5aa61c46a346647b97a661abbf11 (cherry picked from commit e92135a6e9e3bae6236063d35670f3f7f2f51be4) (cherry picked from commit 474df059db94fac9a279e5f90ab0c046de4a3e08) --- packages/Shell/Android.mk | 3 ++- packages/Shell/AndroidManifest.xml | 2 +- .../Shell/src/com/android/shell/BugreportProgressService.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/Shell/Android.mk b/packages/Shell/Android.mk index 5713dc679341f..b738d77714658 100644 --- a/packages/Shell/Android.mk +++ b/packages/Shell/Android.mk @@ -12,7 +12,8 @@ LOCAL_SRC_FILES += \ LOCAL_AIDL_INCLUDES = frameworks/native/cmds/dumpstate/binder -LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4 +LOCAL_STATIC_ANDROID_LIBRARIES := androidx.legacy_legacy-support-v4 +LOCAL_USE_AAPT2 := true LOCAL_PACKAGE_NAME := Shell LOCAL_PRIVATE_PLATFORM_APIS := true diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index b4f331d89074f..8a5cb4a6d643a 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -157,7 +157,7 @@ android:defaultToDeviceProtectedStorage="true" android:directBootAware="true"> diff --git a/packages/Shell/src/com/android/shell/BugreportProgressService.java b/packages/Shell/src/com/android/shell/BugreportProgressService.java index 600f0dc377755..4fc190d430560 100644 --- a/packages/Shell/src/com/android/shell/BugreportProgressService.java +++ b/packages/Shell/src/com/android/shell/BugreportProgressService.java @@ -88,7 +88,7 @@ import android.os.SystemProperties; import android.os.UserHandle; import android.os.UserManager; import android.os.Vibrator; -import android.support.v4.content.FileProvider; +import androidx.core.content.FileProvider; import android.text.TextUtils; import android.text.format.DateUtils; import android.util.Log;