Commit 4dd1e032 by pye52

增加daemon打包时自动签名的配置及证书,避免因为daemon没有签名而安装失败

parent 0df97158
......@@ -15,6 +15,20 @@ android {
}
buildConfigField "int", "DaemonVersion", String.valueOf(rootProject.ext.daemon_verson_code)
}
signingConfigs {
debug {
keyAlias 'town'
keyPassword 'maxrocky'
storeFile file('canteen.jks')
storePassword 'maxrocky'
}
release {
keyAlias 'town'
keyPassword 'maxrocky'
storeFile file('canteen.jks')
storePassword 'maxrocky'
}
}
buildTypes {
debug {
minifyEnabled false
......
......@@ -7,10 +7,10 @@ import android.os.PowerManager;
import android.telephony.SmsManager;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.Log;
import androidx.annotation.RequiresPermission;
import com.blankj.utilcode.util.LogUtils;
import com.blankj.utilcode.util.ShellUtils;
import com.blankj.utilcode.util.Utils;
......@@ -20,6 +20,7 @@ import java.util.List;
import static android.Manifest.permission.MODIFY_PHONE_STATE;
import static android.Manifest.permission.SEND_SMS;
import static android.content.ContentValues.TAG;
/**
* <pre>
......@@ -118,7 +119,7 @@ public class DangerousUtils {
&& commandResult.successMsg.toLowerCase().contains("success")) {
return true;
} else {
Log.e("AppUtils", "installAppSilent successMsg: " + commandResult.successMsg +
LogUtils.e(TAG, "installAppSilent successMsg: " + commandResult.successMsg +
", errorMsg: " + commandResult.errorMsg);
return false;
}
......@@ -174,7 +175,7 @@ public class DangerousUtils {
&& commandResult.successMsg.toLowerCase().contains("success")) {
return true;
} else {
Log.e("AppUtils", "uninstallAppSilent successMsg: " + commandResult.successMsg +
LogUtils.e(TAG, "uninstallAppSilent successMsg: " + commandResult.successMsg +
", errorMsg: " + commandResult.errorMsg);
return false;
}
......@@ -326,7 +327,7 @@ public class DangerousUtils {
setDataEnabledMethod.invoke(tm, enabled);
return true;
} catch (Exception e) {
Log.e("NetworkUtils", "setMobileDataEnabled: ", e);
LogUtils.e(TAG, "setMobileDataEnabled: ", e);
}
return false;
}
......
......@@ -13,6 +13,20 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
signingConfigs {
debug {
keyAlias 'town'
keyPassword 'maxrocky'
storeFile file('canteen.jks')
storePassword 'maxrocky'
}
release {
keyAlias 'town'
keyPassword 'maxrocky'
storeFile file('canteen.jks')
storePassword 'maxrocky'
}
}
buildTypes {
debug {
minifyEnabled false
......
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 sign in to comment