commit | 1fe09dc2478d6ca07fad020f4d1b53a5f59ac2aa | [log] [tgz] |
---|---|---|
author | Suhas Suresh <suhas.suresh_1@nxp.com> | Mon May 07 11:55:06 2018 +0530 |
committer | nxpandroid <srikrishna.pramoda@nxp.com> | Thu Jun 14 13:30:07 2018 +0530 |
tree | 5692d807bc8e69f639b0da5e73e25e6ea6eef24e | |
parent | 1868213660ad5e877c270858ca0b4d83b190f96e [diff] [blame] |
Add factory reset functionality Factory reset is needed to inform the underlying hardware to clear the chip and full initialization will be needed during next init. Change-Id: I12a16a574772fba07f72398ce535debb3e2aa2f9
diff --git a/nci/src/com/android/nfc/dhimpl/NativeNfcManager.java b/nci/src/com/android/nfc/dhimpl/NativeNfcManager.java index 7b42d70..b499fe7 100755 --- a/nci/src/com/android/nfc/dhimpl/NativeNfcManager.java +++ b/nci/src/com/android/nfc/dhimpl/NativeNfcManager.java
@@ -221,6 +221,13 @@ doDisableDtaMode(); } + private native void doFactoryReset(); + + @Override + public void factoryReset() { + doFactoryReset(); + } + private native boolean doDeinitialize(); @Override