Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Fixed IPC restrictions for Lollipop
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Jul 1, 2015
1 parent 1d74fd0 commit b488eee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/biz/bokhorst/xprivacy/XBinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import android.content.Context;
import android.os.Binder;
import android.os.Build;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Process;
Expand Down Expand Up @@ -308,7 +309,8 @@ private void checkIPC(XParam param) throws Throwable {
try {
// static protected final Parcel obtain(int obj)
// frameworks/base/core/java/android/os/Parcel.java
Method methodObtain = Parcel.class.getDeclaredMethod("obtain", int.class);
Method methodObtain = Parcel.class.getDeclaredMethod("obtain",
Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP ? int.class : long.class);
methodObtain.setAccessible(true);
reply = (Parcel) methodObtain.invoke(null, param.args[2]);
} catch (NoSuchMethodException ex) {
Expand Down

0 comments on commit b488eee

Please sign in to comment.