mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2025-09-04 02:05:16 +08:00
Fix app errors record's current Context may not has INTERACT_ACROSS_USERS permission problem
This commit is contained in:
@@ -198,7 +198,7 @@ object FrameworkHooker : YukiBaseHooker() {
|
|||||||
}
|
}
|
||||||
afterHook {
|
afterHook {
|
||||||
/** 当前实例 */
|
/** 当前实例 */
|
||||||
val context = field { name = "mContext" }.get(instance).cast<Context>() ?: return@afterHook
|
val context = appContext ?: field { name = "mContext" }.get(instance).cast<Context>() ?: return@afterHook
|
||||||
|
|
||||||
/** 错误数据 */
|
/** 错误数据 */
|
||||||
val errData = args().first().cast<Message>()?.obj
|
val errData = args().first().cast<Message>()?.obj
|
||||||
|
Reference in New Issue
Block a user