Skip to content

Commit dfc80ca

Browse files
committed
see 10/29 log
1 parent bce5bcd commit dfc80ca

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

app/src/main/java/com/blankj/androidutilcode/Config.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.blankj.androidutilcode;
22

3+
import android.os.Environment;
4+
35
/**
46
* <pre>
57
* author: Blankj
@@ -20,7 +22,7 @@ public class Config {
2022
public static final String TEST_APK_PATH;
2123

2224
static {
23-
CACHE_PATH = UtilsApp.getInstance().getCacheDir().getAbsolutePath();
24-
TEST_APK_PATH = CACHE_PATH + FILE_SEP + "apk" + FILE_SEP + "test_install.apk";
25+
CACHE_PATH = Environment.getExternalStorageDirectory().getAbsolutePath();
26+
TEST_APK_PATH = CACHE_PATH + FILE_SEP + "test_install.apk";
2527
}
2628
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<paths xmlns:android="http://schemas.android.com/apk/res/android">
3-
<cache-path
4-
name="external_path"
5-
path=""/>
3+
<external-path
4+
name="my_external_path"
5+
path="."/>
66
</paths>

update_log.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
* 17/10/29 修复6.0内部存储安装失败问题
12
* 17/10/28 替换compile为implementation,provided为compileOnly
23
* 17/10/27 兼容AS3.0
34
* 17/10/27 修复LogUtils在kotlin中使用的问题

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static void installApp(final File file, final String authority) {
8080
}
8181

8282
/**
83-
* 安装App(支持6.0)
83+
* 安装App(支持7.0)
8484
*
8585
* @param activity activity
8686
* @param filePath 文件路径
@@ -93,7 +93,7 @@ public static void installApp(final Activity activity, final String filePath, fi
9393
}
9494

9595
/**
96-
* 安装App(支持6.0)
96+
* 安装App(支持7.0)
9797
*
9898
* @param activity activity
9999
* @param file 文件

0 commit comments

Comments
 (0)