-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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不会停止。
The text was updated successfully, but these errors were encountered: