Skip to content

Commit

Permalink
Fix IContentProvider for Android P and below (LSPosed#2735)
Browse files Browse the repository at this point in the history
Fix #2734
  • Loading branch information
Howard20181 authored Sep 1, 2023
1 parent 3f99118 commit 0d7cfd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ private void sendBinder(int uid) {
reply = provider.call("android", null, authority, SEND_BINDER, null, extra);
} else if (Build.VERSION.SDK_INT == Build.VERSION_CODES.Q) {
reply = provider.call("android", authority, SEND_BINDER, null, extra);
} else {
reply = provider.call("android", SEND_BINDER, null, extra);
}
if (reply != null) {
Log.d(TAG, "sent module binder to " + name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
import androidx.annotation.RequiresApi;

public interface IContentProvider extends IInterface {
Bundle call(String callingPkg, String method,
String arg, Bundle extras) throws RemoteException;

@RequiresApi(29)
Bundle call(String callingPkg, String authority, String method,
String arg, Bundle extras) throws RemoteException;
Expand Down

0 comments on commit 0d7cfd3

Please sign in to comment.