mirror of
https://github.com/fankes/TSBattery.git
synced 2025-09-06 10:45:53 +08:00
更新了一个日志外显功能,并将 API 降回 26
This commit is contained in:
@@ -21,7 +21,7 @@ android {
|
|||||||
applicationId "com.fankes.tsbattery"
|
applicationId "com.fankes.tsbattery"
|
||||||
minSdkVersion 22
|
minSdkVersion 22
|
||||||
//noinspection ExpiredTargetSdkVersion
|
//noinspection ExpiredTargetSdkVersion
|
||||||
targetSdkVersion 28
|
targetSdkVersion 26
|
||||||
versionCode 7
|
versionCode 7
|
||||||
versionName "2.4"
|
versionName "2.4"
|
||||||
|
|
||||||
|
@@ -124,7 +124,7 @@ class HookMain : IXposedHookLoadPackage {
|
|||||||
* @param content
|
* @param content
|
||||||
*/
|
*/
|
||||||
private fun logD(content: String) {
|
private fun logD(content: String) {
|
||||||
XposedBridge.log(content)
|
XposedBridge.log("[TSBattery][D]>$content")
|
||||||
Log.d("TSBattery", content)
|
Log.d("TSBattery", content)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,7 +133,8 @@ class HookMain : IXposedHookLoadPackage {
|
|||||||
* @param content
|
* @param content
|
||||||
*/
|
*/
|
||||||
private fun logE(content: String, e: Throwable? = null) {
|
private fun logE(content: String, e: Throwable? = null) {
|
||||||
XposedBridge.log(content)
|
XposedBridge.log("[TSBattery][E]>$content")
|
||||||
|
XposedBridge.log(e)
|
||||||
Log.e("TSBattery", content, e)
|
Log.e("TSBattery", content, e)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user