Skip to content

Commit a0b00a1

Browse files
committed
see 04/04 log
1 parent 389efc6 commit a0b00a1

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
* `20/04/03` [fix] UtilsActivityLifecycleImpl#HashMap#remove IllegalStateException Bug. Publish v1.27.2.
1+
* `20/04/04` [fix] ShadowUtils bug running on lower version devices. Publish v1.27.2.
2+
* `20/04/03` [fix] UtilsActivityLifecycleImpl#HashMap#remove IllegalStateException bug.
23
* `20/04/02` [fix] PathUtils sdcard enable state is wrong; ActivityUtils finish activity wrong; Publish v1.27.1.
34
* `20/03/31` [add] Publish v1.27.0.
45
* `20/03/30` [add] BatteryUtils in subutil.

feature/utilcode/pkg/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<!-- app -->
55
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
66
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
7+
<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
78

89
<!-- bar -->
910
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />

lib/utilcode/src/main/java/com/blankj/utilcode/util/AppUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ public static void installApp(final File file) {
7575

7676
/**
7777
* Uninstall the app.
78+
* <p>Target APIs greater than 25 must hold
79+
* Must hold {@code <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />}</p>
7880
*
7981
* @param packageName The name of the package.
8082
*/

lib/utilcode/src/main/java/com/blankj/utilcode/util/IntentUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ public static Intent getInstallAppIntent(final File file) {
8383

8484
/**
8585
* Return the intent of uninstall app.
86+
* <p>Target APIs greater than 25 must hold
87+
* Must hold {@code <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />}</p>
8688
*
8789
* @param pkgName The name of the package.
8890
* @return the intent of uninstall app

0 commit comments

Comments
 (0)