OSDN Git Service

Migrated various apps under frameworks/base/packages/Shell to androidx
authorKOUSHIK PANUGANTI <kpanuganti@google.com>
Tue, 24 Apr 2018 00:31:10 +0000 (17:31 -0700)
committerKOUSHIK PANUGANTI <kpanuganti@google.com>
Tue, 24 Apr 2018 00:31:10 +0000 (17:31 -0700)
Bug: 76692459
Test: make Shell
Change-Id: If11159cac1bd5aa61c46a346647b97a661abbf11

packages/Shell/Android.mk
packages/Shell/AndroidManifest.xml
packages/Shell/src/com/android/shell/BugreportProgressService.java

index 5713dc6..b738d77 100644 (file)
@@ -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
index b4f331d..8a5cb4a 100644 (file)
                  android:defaultToDeviceProtectedStorage="true"
                  android:directBootAware="true">
         <provider
-            android:name="android.support.v4.content.FileProvider"
+            android:name="androidx.core.content.FileProvider"
             android:authorities="com.android.shell"
             android:grantUriPermissions="true"
             android:exported="false">
index 600f0dc..4fc190d 100644 (file)
@@ -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;