public final class android.nfc.cardemulation.CardEmulation
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: android.nfc.cardemulation.CardEmulation
super_class: java.lang.Object
{
static final java.lang.String TAG;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "CardEmulation"
public static final java.lang.String ACTION_CHANGE_DEFAULT;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "android.nfc.cardemulation.action.ACTION_CHANGE_DEFAULT"
public static final java.lang.String EXTRA_CATEGORY;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "category"
public static final java.lang.String EXTRA_SERVICE_COMPONENT;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "component"
public static final java.lang.String CATEGORY_PAYMENT;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "payment"
public static final java.lang.String CATEGORY_OTHER;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "other"
public static final int SELECTION_MODE_PREFER_DEFAULT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final int SELECTION_MODE_ALWAYS_ASK;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final int SELECTION_MODE_ASK_IF_CONFLICT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 2
static boolean sIsInitialized;
descriptor: Z
flags: (0x0008) ACC_STATIC
static java.util.HashMap<android.content.Context, android.nfc.cardemulation.CardEmulation> sCardEmus;
descriptor: Ljava/util/HashMap;
flags: (0x0008) ACC_STATIC
Signature: Ljava/util/HashMap<Landroid/content/Context;Landroid/nfc/cardemulation/CardEmulation;>;
static android.nfc.INfcCardEmulation sService;
descriptor: Landroid/nfc/INfcCardEmulation;
flags: (0x0008) ACC_STATIC
final android.content.Context mContext;
descriptor: Landroid/content/Context;
flags: (0x0010) ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: iconst_0
putstatic android.nfc.cardemulation.CardEmulation.sIsInitialized:Z
1: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic android.nfc.cardemulation.CardEmulation.sCardEmus:Ljava/util/HashMap;
2: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(android.content.Context, android.nfc.INfcCardEmulation);
descriptor: (Landroid/content/Context;Landroid/nfc/INfcCardEmulation;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokevirtual android.content.Context.getApplicationContext:()Landroid/content/Context;
putfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
2: aload 2
putstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Landroid/nfc/cardemulation/CardEmulation;
0 4 1 context Landroid/content/Context;
0 4 2 service Landroid/nfc/INfcCardEmulation;
MethodParameters:
Name Flags
context
service
public static synchronized android.nfc.cardemulation.CardEmulation getInstance(android.nfc.NfcAdapter);
descriptor: (Landroid/nfc/NfcAdapter;)Landroid/nfc/cardemulation/CardEmulation;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
ifnonnull 1
new java.lang.NullPointerException
dup
ldc "NfcAdapter is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual android.nfc.NfcAdapter.getContext:()Landroid/content/Context;
astore 1
start local 1 2: aload 1
ifnonnull 5
3: ldc "CardEmulation"
ldc "NfcAdapter context is null."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
4: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
5: StackMap locals: android.content.Context
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sIsInitialized:Z
ifne 17
6: invokestatic android.app.ActivityThread.getPackageManager:()Landroid/content/pm/IPackageManager;
astore 2
start local 2 7: aload 2
ifnonnull 10
8: ldc "CardEmulation"
ldc "Cannot get PackageManager"
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
9: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
10: StackMap locals: android.content.pm.IPackageManager
StackMap stack:
aload 2
ldc "android.hardware.nfc.hce"
iconst_0
invokeinterface android.content.pm.IPackageManager.hasSystemFeature:(Ljava/lang/String;I)Z
ifne 16
11: ldc "CardEmulation"
ldc "This device does not support card emulation"
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
12: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
13: StackMap locals:
StackMap stack: android.os.RemoteException
pop
14: ldc "CardEmulation"
ldc "PackageManager query failed."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
15: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
16: StackMap locals:
StackMap stack:
iconst_1
putstatic android.nfc.cardemulation.CardEmulation.sIsInitialized:Z
end local 2 17: StackMap locals:
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sCardEmus:Ljava/util/HashMap;
aload 1
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast android.nfc.cardemulation.CardEmulation
astore 2
start local 2 18: aload 2
ifnonnull 25
19: aload 0
invokevirtual android.nfc.NfcAdapter.getCardEmulationService:()Landroid/nfc/INfcCardEmulation;
astore 3
start local 3 20: aload 3
ifnonnull 23
21: ldc "CardEmulation"
ldc "This device does not implement the INfcCardEmulation interface."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
22: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
23: StackMap locals: android.nfc.cardemulation.CardEmulation android.nfc.INfcCardEmulation
StackMap stack:
new android.nfc.cardemulation.CardEmulation
dup
aload 1
aload 3
invokespecial android.nfc.cardemulation.CardEmulation.<init>:(Landroid/content/Context;Landroid/nfc/INfcCardEmulation;)V
astore 2
24: getstatic android.nfc.cardemulation.CardEmulation.sCardEmus:Ljava/util/HashMap;
aload 1
aload 2
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 25: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 adapter Landroid/nfc/NfcAdapter;
2 26 1 context Landroid/content/Context;
7 17 2 pm Landroid/content/pm/IPackageManager;
18 26 2 manager Landroid/nfc/cardemulation/CardEmulation;
20 25 3 service Landroid/nfc/INfcCardEmulation;
Exception table:
from to target type
10 13 13 Class android.os.RemoteException
MethodParameters:
Name Flags
adapter
public boolean isDefaultServiceForCategory(android.content.ComponentName, java.lang.String);
descriptor: (Landroid/content/ComponentName;Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
aload 2
invokeinterface android.nfc.INfcCardEmulation.isDefaultServiceForCategory:(ILandroid/content/ComponentName;Ljava/lang/String;)Z
1: ireturn
2: StackMap locals:
StackMap stack: android.os.RemoteException
pop
3: aload 0
invokevirtual android.nfc.cardemulation.CardEmulation.recoverService:()V
4: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
ifnonnull 7
5: ldc "CardEmulation"
ldc "Failed to recover CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
8: aload 2
9: invokeinterface android.nfc.INfcCardEmulation.isDefaultServiceForCategory:(ILandroid/content/ComponentName;Ljava/lang/String;)Z
10: ireturn
11: StackMap locals:
StackMap stack: android.os.RemoteException
pop
12: ldc "CardEmulation"
ldc "Failed to recover CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
13: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Landroid/nfc/cardemulation/CardEmulation;
0 14 1 service Landroid/content/ComponentName;
0 14 2 category Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class android.os.RemoteException
7 10 11 Class android.os.RemoteException
MethodParameters:
Name Flags
service
category
public boolean isDefaultServiceForAid(android.content.ComponentName, java.lang.String);
descriptor: (Landroid/content/ComponentName;Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
aload 2
invokeinterface android.nfc.INfcCardEmulation.isDefaultServiceForAid:(ILandroid/content/ComponentName;Ljava/lang/String;)Z
1: ireturn
2: StackMap locals:
StackMap stack: android.os.RemoteException
pop
3: aload 0
invokevirtual android.nfc.cardemulation.CardEmulation.recoverService:()V
4: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
ifnonnull 7
5: ldc "CardEmulation"
ldc "Failed to recover CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
aload 2
invokeinterface android.nfc.INfcCardEmulation.isDefaultServiceForAid:(ILandroid/content/ComponentName;Ljava/lang/String;)Z
8: ireturn
9: StackMap locals:
StackMap stack: android.os.RemoteException
pop
10: ldc "CardEmulation"
ldc "Failed to reach CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
11: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Landroid/nfc/cardemulation/CardEmulation;
0 12 1 service Landroid/content/ComponentName;
0 12 2 aid Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class android.os.RemoteException
7 8 9 Class android.os.RemoteException
MethodParameters:
Name Flags
service
aid
public boolean categoryAllowsForegroundPreference(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: ldc "payment"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 10
1: iconst_0
istore 2
start local 2 2: aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getContentResolver:()Landroid/content/ContentResolver;
3: ldc "nfc_payment_foreground"
4: invokestatic android.provider.Settings$Secure.getInt:(Landroid/content/ContentResolver;Ljava/lang/String;)I
ifeq 5
iconst_1
goto 6
StackMap locals: int
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: istore 2
7: goto 9
StackMap locals:
StackMap stack: android.provider.Settings$SettingNotFoundException
8: pop
9: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 10: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Landroid/nfc/cardemulation/CardEmulation;
0 11 1 category Ljava/lang/String;
2 10 2 preferForeground Z
Exception table:
from to target type
2 7 8 Class android.provider.Settings$SettingNotFoundException
MethodParameters:
Name Flags
category
public int getSelectionModeForCategory(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: ldc "payment"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
1: aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getContentResolver:()Landroid/content/ContentResolver;
2: ldc "nfc_payment_default_component"
3: invokestatic android.provider.Settings$Secure.getString:(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 4: aload 2
ifnull 6
5: iconst_0
ireturn
6: StackMap locals: java.lang.String
StackMap stack:
iconst_1
ireturn
end local 2 7: StackMap locals:
StackMap stack:
iconst_2
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Landroid/nfc/cardemulation/CardEmulation;
0 8 1 category Ljava/lang/String;
4 7 2 defaultComponent Ljava/lang/String;
MethodParameters:
Name Flags
category
public boolean registerAidsForService(android.content.ComponentName, java.lang.String, java.util.List<java.lang.String>);
descriptor: (Landroid/content/ComponentName;Ljava/lang/String;Ljava/util/List;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new android.nfc.cardemulation.AidGroup
dup
aload 3
aload 2
invokespecial android.nfc.cardemulation.AidGroup.<init>:(Ljava/util/List;Ljava/lang/String;)V
astore 4
start local 4 1: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
aload 4
invokeinterface android.nfc.INfcCardEmulation.registerAidGroupForService:(ILandroid/content/ComponentName;Landroid/nfc/cardemulation/AidGroup;)Z
2: ireturn
3: StackMap locals: android.nfc.cardemulation.CardEmulation android.content.ComponentName java.lang.String java.util.List android.nfc.cardemulation.AidGroup
StackMap stack: android.os.RemoteException
pop
4: aload 0
invokevirtual android.nfc.cardemulation.CardEmulation.recoverService:()V
5: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
ifnonnull 8
6: ldc "CardEmulation"
ldc "Failed to recover CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
9: aload 4
10: invokeinterface android.nfc.INfcCardEmulation.registerAidGroupForService:(ILandroid/content/ComponentName;Landroid/nfc/cardemulation/AidGroup;)Z
11: ireturn
12: StackMap locals:
StackMap stack: android.os.RemoteException
pop
13: ldc "CardEmulation"
ldc "Failed to reach CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
14: iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Landroid/nfc/cardemulation/CardEmulation;
0 15 1 service Landroid/content/ComponentName;
0 15 2 category Ljava/lang/String;
0 15 3 aids Ljava/util/List<Ljava/lang/String;>;
1 15 4 aidGroup Landroid/nfc/cardemulation/AidGroup;
Exception table:
from to target type
1 2 3 Class android.os.RemoteException
8 11 12 Class android.os.RemoteException
Signature: (Landroid/content/ComponentName;Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;)Z
MethodParameters:
Name Flags
service
category
aids
public java.util.List<java.lang.String> getAidsForService(android.content.ComponentName, java.lang.String);
descriptor: (Landroid/content/ComponentName;Ljava/lang/String;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
1: aload 2
2: invokeinterface android.nfc.INfcCardEmulation.getAidGroupForService:(ILandroid/content/ComponentName;Ljava/lang/String;)Landroid/nfc/cardemulation/AidGroup;
astore 3
start local 3 3: aload 3
ifnull 4
aload 3
invokevirtual android.nfc.cardemulation.AidGroup.getAids:()Ljava/util/List;
goto 5
StackMap locals: android.nfc.cardemulation.AidGroup
StackMap stack:
4: aconst_null
StackMap locals:
StackMap stack: java.util.List
5: areturn
end local 3 6: StackMap locals: android.nfc.cardemulation.CardEmulation android.content.ComponentName java.lang.String
StackMap stack: android.os.RemoteException
pop
7: aload 0
invokevirtual android.nfc.cardemulation.CardEmulation.recoverService:()V
8: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
ifnonnull 11
9: ldc "CardEmulation"
ldc "Failed to recover CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
10: aconst_null
areturn
11: StackMap locals:
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
12: aload 2
13: invokeinterface android.nfc.INfcCardEmulation.getAidGroupForService:(ILandroid/content/ComponentName;Ljava/lang/String;)Landroid/nfc/cardemulation/AidGroup;
astore 3
start local 3 14: aload 3
ifnull 15
aload 3
invokevirtual android.nfc.cardemulation.AidGroup.getAids:()Ljava/util/List;
goto 16
StackMap locals: android.nfc.cardemulation.AidGroup
StackMap stack:
15: aconst_null
StackMap locals:
StackMap stack: java.util.List
16: areturn
end local 3 17: StackMap locals: android.nfc.cardemulation.CardEmulation android.content.ComponentName java.lang.String
StackMap stack: android.os.RemoteException
pop
18: ldc "CardEmulation"
ldc "Failed to recover CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
19: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Landroid/nfc/cardemulation/CardEmulation;
0 20 1 service Landroid/content/ComponentName;
0 20 2 category Ljava/lang/String;
3 6 3 group Landroid/nfc/cardemulation/AidGroup;
14 17 3 group Landroid/nfc/cardemulation/AidGroup;
Exception table:
from to target type
0 5 6 Class android.os.RemoteException
11 16 17 Class android.os.RemoteException
Signature: (Landroid/content/ComponentName;Ljava/lang/String;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
service
category
public boolean removeAidsForService(android.content.ComponentName, java.lang.String);
descriptor: (Landroid/content/ComponentName;Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
aload 2
invokeinterface android.nfc.INfcCardEmulation.removeAidGroupForService:(ILandroid/content/ComponentName;Ljava/lang/String;)Z
1: ireturn
2: StackMap locals:
StackMap stack: android.os.RemoteException
pop
3: aload 0
invokevirtual android.nfc.cardemulation.CardEmulation.recoverService:()V
4: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
ifnonnull 7
5: ldc "CardEmulation"
ldc "Failed to recover CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
aload 2
invokeinterface android.nfc.INfcCardEmulation.removeAidGroupForService:(ILandroid/content/ComponentName;Ljava/lang/String;)Z
8: ireturn
9: StackMap locals:
StackMap stack: android.os.RemoteException
pop
10: ldc "CardEmulation"
ldc "Failed to reach CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
11: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Landroid/nfc/cardemulation/CardEmulation;
0 12 1 service Landroid/content/ComponentName;
0 12 2 category Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class android.os.RemoteException
7 8 9 Class android.os.RemoteException
MethodParameters:
Name Flags
service
category
public boolean setPreferredService(android.app.Activity, android.content.ComponentName);
descriptor: (Landroid/app/Activity;Landroid/content/ComponentName;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 1
aload 2
ifnonnull 2
1: StackMap locals:
StackMap stack:
new java.lang.NullPointerException
dup
ldc "activity or service or category is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual android.app.Activity.isResumed:()Z
ifne 4
3: new java.lang.IllegalArgumentException
dup
ldc "Activity must be resumed."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 2
invokeinterface android.nfc.INfcCardEmulation.setPreferredService:(Landroid/content/ComponentName;)Z
5: ireturn
6: StackMap locals:
StackMap stack: android.os.RemoteException
pop
7: aload 0
invokevirtual android.nfc.cardemulation.CardEmulation.recoverService:()V
8: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
ifnonnull 11
9: ldc "CardEmulation"
ldc "Failed to recover CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 2
invokeinterface android.nfc.INfcCardEmulation.setPreferredService:(Landroid/content/ComponentName;)Z
12: ireturn
13: StackMap locals:
StackMap stack: android.os.RemoteException
pop
14: ldc "CardEmulation"
ldc "Failed to reach CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
15: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Landroid/nfc/cardemulation/CardEmulation;
0 16 1 activity Landroid/app/Activity;
0 16 2 service Landroid/content/ComponentName;
Exception table:
from to target type
4 5 6 Class android.os.RemoteException
11 12 13 Class android.os.RemoteException
MethodParameters:
Name Flags
activity
service
public boolean unsetPreferredService(android.app.Activity);
descriptor: (Landroid/app/Activity;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "activity is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual android.app.Activity.isResumed:()Z
ifne 4
3: new java.lang.IllegalArgumentException
dup
ldc "Activity must be resumed."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
invokeinterface android.nfc.INfcCardEmulation.unsetPreferredService:()Z
5: ireturn
6: StackMap locals:
StackMap stack: android.os.RemoteException
pop
7: aload 0
invokevirtual android.nfc.cardemulation.CardEmulation.recoverService:()V
8: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
ifnonnull 11
9: ldc "CardEmulation"
ldc "Failed to recover CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
invokeinterface android.nfc.INfcCardEmulation.unsetPreferredService:()Z
12: ireturn
13: StackMap locals:
StackMap stack: android.os.RemoteException
pop
14: ldc "CardEmulation"
ldc "Failed to reach CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
15: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Landroid/nfc/cardemulation/CardEmulation;
0 16 1 activity Landroid/app/Activity;
Exception table:
from to target type
4 5 6 Class android.os.RemoteException
11 12 13 Class android.os.RemoteException
MethodParameters:
Name Flags
activity
public boolean supportsAidPrefixRegistration();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
invokeinterface android.nfc.INfcCardEmulation.supportsAidPrefixRegistration:()Z
1: ireturn
2: StackMap locals:
StackMap stack: android.os.RemoteException
pop
3: aload 0
invokevirtual android.nfc.cardemulation.CardEmulation.recoverService:()V
4: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
ifnonnull 7
5: ldc "CardEmulation"
ldc "Failed to recover CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
invokeinterface android.nfc.INfcCardEmulation.supportsAidPrefixRegistration:()Z
8: ireturn
9: StackMap locals:
StackMap stack: android.os.RemoteException
pop
10: ldc "CardEmulation"
ldc "Failed to reach CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
11: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Landroid/nfc/cardemulation/CardEmulation;
Exception table:
from to target type
0 1 2 Class android.os.RemoteException
7 8 9 Class android.os.RemoteException
public boolean setDefaultServiceForCategory(android.content.ComponentName, java.lang.String);
descriptor: (Landroid/content/ComponentName;Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
aload 2
invokeinterface android.nfc.INfcCardEmulation.setDefaultServiceForCategory:(ILandroid/content/ComponentName;Ljava/lang/String;)Z
1: ireturn
2: StackMap locals:
StackMap stack: android.os.RemoteException
pop
3: aload 0
invokevirtual android.nfc.cardemulation.CardEmulation.recoverService:()V
4: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
ifnonnull 7
5: ldc "CardEmulation"
ldc "Failed to recover CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
8: aload 2
9: invokeinterface android.nfc.INfcCardEmulation.setDefaultServiceForCategory:(ILandroid/content/ComponentName;Ljava/lang/String;)Z
10: ireturn
11: StackMap locals:
StackMap stack: android.os.RemoteException
pop
12: ldc "CardEmulation"
ldc "Failed to reach CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
13: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Landroid/nfc/cardemulation/CardEmulation;
0 14 1 service Landroid/content/ComponentName;
0 14 2 category Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class android.os.RemoteException
7 10 11 Class android.os.RemoteException
MethodParameters:
Name Flags
service
category
public boolean setDefaultForNextTap(android.content.ComponentName);
descriptor: (Landroid/content/ComponentName;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
invokeinterface android.nfc.INfcCardEmulation.setDefaultForNextTap:(ILandroid/content/ComponentName;)Z
1: ireturn
2: StackMap locals:
StackMap stack: android.os.RemoteException
pop
3: aload 0
invokevirtual android.nfc.cardemulation.CardEmulation.recoverService:()V
4: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
ifnonnull 7
5: ldc "CardEmulation"
ldc "Failed to recover CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
invokeinterface android.nfc.INfcCardEmulation.setDefaultForNextTap:(ILandroid/content/ComponentName;)Z
8: ireturn
9: StackMap locals:
StackMap stack: android.os.RemoteException
pop
10: ldc "CardEmulation"
ldc "Failed to reach CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
11: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Landroid/nfc/cardemulation/CardEmulation;
0 12 1 service Landroid/content/ComponentName;
Exception table:
from to target type
0 1 2 Class android.os.RemoteException
7 8 9 Class android.os.RemoteException
MethodParameters:
Name Flags
service
public java.util.List<android.nfc.cardemulation.ApduServiceInfo> getServices(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
invokeinterface android.nfc.INfcCardEmulation.getServices:(ILjava/lang/String;)Ljava/util/List;
1: areturn
2: StackMap locals:
StackMap stack: android.os.RemoteException
pop
3: aload 0
invokevirtual android.nfc.cardemulation.CardEmulation.recoverService:()V
4: getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
ifnonnull 7
5: ldc "CardEmulation"
ldc "Failed to recover CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
6: aconst_null
areturn
7: StackMap locals:
StackMap stack:
getstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokevirtual android.content.Context.getUserId:()I
aload 1
invokeinterface android.nfc.INfcCardEmulation.getServices:(ILjava/lang/String;)Ljava/util/List;
8: areturn
9: StackMap locals:
StackMap stack: android.os.RemoteException
pop
10: ldc "CardEmulation"
ldc "Failed to reach CardEmulationService."
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
11: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Landroid/nfc/cardemulation/CardEmulation;
0 12 1 category Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class android.os.RemoteException
7 8 9 Class android.os.RemoteException
Signature: (Ljava/lang/String;)Ljava/util/List<Landroid/nfc/cardemulation/ApduServiceInfo;>;
MethodParameters:
Name Flags
category
public static boolean isValidAid(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "*"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 3
aload 0
ldc "#"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 6
StackMap locals:
StackMap stack:
3: aload 0
invokevirtual java.lang.String.length:()I
iconst_2
irem
ifne 6
4: ldc "CardEmulation"
new java.lang.StringBuilder
dup
ldc "AID "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " is not a valid AID."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 0
ldc "*"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 9
aload 0
ldc "#"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 9
aload 0
invokevirtual java.lang.String.length:()I
iconst_2
irem
ifeq 9
7: ldc "CardEmulation"
new java.lang.StringBuilder
dup
ldc "AID "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " is not a valid AID."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
aload 0
ldc "[0-9A-Fa-f]{10,32}\\*?\\#?"
invokevirtual java.lang.String.matches:(Ljava/lang/String;)Z
ifne 12
10: ldc "CardEmulation"
new java.lang.StringBuilder
dup
ldc "AID "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " is not a valid AID."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic android.util.Log.e:(Ljava/lang/String;Ljava/lang/String;)I
pop
11: iconst_0
ireturn
12: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 aid Ljava/lang/String;
MethodParameters:
Name Flags
aid
void recoverService();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield android.nfc.cardemulation.CardEmulation.mContext:Landroid/content/Context;
invokestatic android.nfc.NfcAdapter.getDefaultAdapter:(Landroid/content/Context;)Landroid/nfc/NfcAdapter;
astore 1
start local 1 1: aload 1
invokevirtual android.nfc.NfcAdapter.getCardEmulationService:()Landroid/nfc/INfcCardEmulation;
putstatic android.nfc.cardemulation.CardEmulation.sService:Landroid/nfc/INfcCardEmulation;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Landroid/nfc/cardemulation/CardEmulation;
1 3 1 adapter Landroid/nfc/NfcAdapter;
}
SourceFile: "CardEmulation.java"
InnerClasses:
public final Secure = android.provider.Settings$Secure of android.provider.Settings
public SettingNotFoundException = android.provider.Settings$SettingNotFoundException of android.provider.Settings