Skip to content

Commit

Permalink
Fix(Service): IServiceConnection的connect函数;IActivityManagerHookHandle…
Browse files Browse the repository at this point in the history
…中使用统一的ReplaceCallingPackageHookedMethodHandler替换callingPackage

1、Hook IServiceConnection的connect函数,为了解决插件中的ServiceConnect.onServiceConnected回调的时候传回的ComponentName为代理服务的问题。
2、IActivityManagerHookHandle中使用统一的ReplaceCallingPackageHookedMethodHandler替换callingPackage参数。防止漏换的问题。
  • Loading branch information
cmzy committed Feb 1, 2016
1 parent 891020a commit a50565d
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 57 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/* //device/java/android/android/app/IServiceConnection.aidl
**
** Copyright 2007, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/

package android.app;

import android.content.ComponentName;

/** @hide */
oneway interface IServiceConnection {
void connected(in ComponentName name, IBinder service);
}

Loading

0 comments on commit a50565d

Please sign in to comment.