{"action":"opened","issue":{"url":"https://api.github.com/repos/Qihoo360/RePlugin/issues/524","repository_url":"https://api.github.com/repos/Qihoo360/RePlugin","labels_url":"https://api.github.com/repos/Qihoo360/RePlugin/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/Qihoo360/RePlugin/issues/524/comments","events_url":"https://api.github.com/repos/Qihoo360/RePlugin/issues/524/events","html_url":"https://github.com/Qihoo360/RePlugin/issues/524","id":303820846,"number":524,"title":"发现 replugin 脚本更改v4包的LocalBroadcastManager 好像有bug","user":{"login":"a247124718","id":13374187,"avatar_url":"https://avatars3.githubusercontent.com/u/13374187?v=4","gravatar_id":"","url":"https://api.github.com/users/a247124718","html_url":"https://github.com/a247124718","followers_url":"https://api.github.com/users/a247124718/followers","following_url":"https://api.github.com/users/a247124718/following{/other_user}","gists_url":"https://api.github.com/users/a247124718/gists{/gist_id}","starred_url":"https://api.github.com/users/a247124718/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a247124718/subscriptions","organizations_url":"https://api.github.com/users/a247124718/orgs","repos_url":"https://api.github.com/users/a247124718/repos","events_url":"https://api.github.com/users/a247124718/events{/privacy}","received_events_url":"https://api.github.com/users/a247124718/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-09T12:09:00Z","updated_at":"2018-03-09T12:09:00Z","closed_at":null,"author_association":"NONE","body":"#### 问题详细描述 Detailed description of the problem\r\n\r\n我看到了脚本执行后\r\ninvoke-static {v0}, Lcom/qihoo360/replugin/loader/b/PluginLocalBroadcastManager;->getInstance(Landroid/content/Context;)Ljava/lang/Object;\r\n\r\n返回值变成了Ljava/lang/Object; \r\n\r\n应该是 Lcom/qihoo360/replugin/loader/b/PluginLocalBroadcastManager;这个对象就对了。\r\n\r\n然后发现脚本没有更改全局变量。\r\n\r\n这2个问题会导致dex 校验的时候出问题。\r\n\r\n我写了个自动化，把这2个问题点改掉了\r\n#### 复现问题步骤 Steps to reproduce the problem\r\n1. 插件接入facebook sdk   compile 'com.facebook.android:facebook-android-sdk:4.27.0'\r\n2. 主程序加载插件\r\n\r\n#### 其它重要信息 Other important information\r\n\r\nreplugin-host-lib/gradle Version:\r\nrePlugin-plugin-lib/gradle Version:\r\n\r\nAndroid API Version：\r\nAndroid 手机型号&ROM(Phone model & ROM): \r\n\r\n#### Logcat上下文 Logcat context\r\n3. Caused by: java.lang.VerifyError: Verifier rejected class com.facebook.AccessTokenManager: com.facebook.AccessTokenManager com.facebook.AccessTokenManager.getInstance() failed to verify: com.facebook.AccessTokenManager com.facebook.AccessTokenManager.getInstance(): [0x1A] register v2 has type Reference: java.lang.Object but expected Precise Reference: android.support.v4.content.LocalBroadcastManager (declaration of 'com.facebook.AccessTokenManager' appears in /data/data/com.ostudio.issue.sdk/app_plugins_v3/login-10-10-1.jar:classes2.dex)"}}
{"actor":{"display_login":"a247124718"}}