BundleCompat.java
1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package android.support.v4.app;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;
import cl;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public final class BundleCompat
{
public static IBinder getBinder(Bundle paramBundle, String paramString)
{
if (Build.VERSION.SDK_INT >= 18) {
return paramBundle.getBinder(paramString);
}
return cl.a(paramBundle, paramString);
}
public static void putBinder(Bundle paramBundle, String paramString, IBinder paramIBinder)
{
if (Build.VERSION.SDK_INT >= 18) {
paramBundle.putBinder(paramString, paramIBinder);
}
for (;;)
{
return;
if (!cl.b) {}
try
{
Method localMethod = Bundle.class.getMethod("putIBinder", new Class[] { String.class, IBinder.class });
cl.a = localMethod;
localMethod.setAccessible(true);
cl.b = true;
if (cl.a == null) {
continue;
}
}
catch (NoSuchMethodException localNoSuchMethodException)
{
try
{
cl.a.invoke(paramBundle, new Object[] { paramString, paramIBinder });
return;
}
catch (InvocationTargetException paramBundle)
{
Log.i("BundleCompatGingerbread", "Failed to invoke putIBinder via reflection", paramBundle);
cl.a = null;
return;
localNoSuchMethodException = localNoSuchMethodException;
Log.i("BundleCompatGingerbread", "Failed to retrieve putIBinder method", localNoSuchMethodException);
}
catch (IllegalAccessException paramBundle)
{
for (;;) {}
}
catch (IllegalArgumentException paramBundle)
{
for (;;) {}
}
}
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/app/BundleCompat.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/