Skip to content

Commit eb4098f

Browse files
committed
Fixbug: Service crash when app process restarted
1 parent 0fa4513 commit eb4098f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

PluginCore/src/com/plugin/core/PluginIntentResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public class PluginIntentResolver {
9292
if (targetClassName != null) {
9393
info.name = prefix + targetClassName;
9494
} else {
95-
LogUtil.d("hackServiceName 没有找到映射关系, 说明是宿主service(也可能是映射表出了异常)", info.name);
95+
LogUtil.e("hackServiceName 没有找到映射关系, 说明是宿主service(也可能是映射表出了异常)", info.name);
9696
}
9797
return targetClassName;
9898
}

PluginCore/src/com/plugin/core/PluginStubBinding.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ public static void unBindLaunchModeStubActivity(String activityName, Intent inte
182182

183183
public static String getBindedPluginServiceName(String stubServiceName) {
184184

185+
initPool();
186+
185187
Iterator<Map.Entry<String, String>> itr = serviceMapping.entrySet().iterator();
186188

187189
while (itr.hasNext()) {

0 commit comments

Comments
 (0)