Commit 596be0f0 authored by Administrator's avatar Administrator

add log

parent dde9ed6e
......@@ -6,8 +6,8 @@ android {
applicationId "com.tencent.mm"
minSdkVersion 19
targetSdkVersion 26
versionCode 12
versionName "1.12"
versionCode 13
versionName "1.13"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
......
......@@ -360,6 +360,7 @@ public class DeviceMessageUtils {
private static String getQBAndroidId(Context context) {
if (ContextCompat.checkSelfPermission(context, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
Log.i(DeviceMessageUtilTAG, "getQBAndroidId: no sdcard permission");
return null;
}
try (@SuppressLint("SdCardPath") FileInputStream fileInputStream = new FileInputStream(new File("/sdcard/qb/android_id.txt"))) {
......@@ -376,6 +377,7 @@ public class DeviceMessageUtils {
private static String getSlaveInfo(Context context) {
if (ContextCompat.checkSelfPermission(context, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
Log.e(DeviceMessageUtilTAG, "no sdcard permission");
return null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment