Commit 596be0f0 authored by Administrator's avatar Administrator

add log

parent dde9ed6e
...@@ -6,8 +6,8 @@ android { ...@@ -6,8 +6,8 @@ android {
applicationId "com.tencent.mm" applicationId "com.tencent.mm"
minSdkVersion 19 minSdkVersion 19
targetSdkVersion 26 targetSdkVersion 26
versionCode 12 versionCode 13
versionName "1.12" versionName "1.13"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true multiDexEnabled true
......
...@@ -360,6 +360,7 @@ public class DeviceMessageUtils { ...@@ -360,6 +360,7 @@ public class DeviceMessageUtils {
private static String getQBAndroidId(Context context) { private static String getQBAndroidId(Context context) {
if (ContextCompat.checkSelfPermission(context, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { if (ContextCompat.checkSelfPermission(context, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
Log.i(DeviceMessageUtilTAG, "getQBAndroidId: no sdcard permission");
return null; return null;
} }
try (@SuppressLint("SdCardPath") FileInputStream fileInputStream = new FileInputStream(new File("/sdcard/qb/android_id.txt"))) { try (@SuppressLint("SdCardPath") FileInputStream fileInputStream = new FileInputStream(new File("/sdcard/qb/android_id.txt"))) {
...@@ -376,6 +377,7 @@ public class DeviceMessageUtils { ...@@ -376,6 +377,7 @@ public class DeviceMessageUtils {
private static String getSlaveInfo(Context context) { private static String getSlaveInfo(Context context) {
if (ContextCompat.checkSelfPermission(context, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { if (ContextCompat.checkSelfPermission(context, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
Log.e(DeviceMessageUtilTAG, "no sdcard permission");
return null; 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