Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DroidPlugin中的service问题 #69

Open
ustcxiaoyu opened this issue Nov 7, 2015 · 4 comments
Open

DroidPlugin中的service问题 #69

ustcxiaoyu opened this issue Nov 7, 2015 · 4 comments
Labels

Comments

@ustcxiaoyu
Copy link

1 .对于在同一个进程中 bind几个不同的service,代码中是使用一个stubservice以及ServcesManager来管理的,这会有一个问题,onServiceConnected(ComponentName name, IBinder service)中的service都是同一个对象,因为第二次bind并没有调用stubservice的onbind()方法,导致只会返回首次绑定service的binder对象
2. 对于在一个进程中启动另外一个进程中的service后,比喻在A进程中启动B进程的service,然后在A进程中stop B进程的该service,但由于stopService hook的int re = ServcesManager.getDefault().stopService(mHostContext, intent);只会在本进程的ServcesManager中处理,mNameService肯定不会找到那个targetservice,所以这地方会导致B进程中的service不会停止。

@cmzy cmzy added the bug label Nov 12, 2015
@RichesJson
Copy link

奇怪了,我现在连bind都不行了

@luoqii
Copy link

luoqii commented Jan 21, 2016

@RichesJson i agree with U

@cmzy
Copy link
Member

cmzy commented Feb 15, 2016

问题1已经解决了。

@juefei
Copy link

juefei commented Aug 26, 2016

请问一下,问题1是如何解决的?@cmzy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants