svc nfc should support watches too

am: 1876583bfb

Change-Id: Ic3f0277c2c13dbd2c4f8b6ec5dbe9f9dc34ef297
This commit is contained in:
Tucker Sylvestro
2017-01-18 16:34:50 +00:00
committed by android-build-merger

View File

@@ -58,7 +58,8 @@ public class NfcCommand extends Svc.Command {
IPackageManager pm = IPackageManager.Stub.asInterface(
ServiceManager.getService("package"));
try {
if (pm.hasSystemFeature(PackageManager.FEATURE_NFC, 0)) {
if (pm.hasSystemFeature(PackageManager.FEATURE_NFC, 0) ||
pm.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION, 0)) {
INfcAdapter nfc = INfcAdapter.Stub
.asInterface(ServiceManager.getService(Context.NFC_SERVICE));
try {