微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > Non-MTK NFC Chip Porting

Non-MTK NFC Chip Porting

时间:10-02 整理:3721RD 点击:
[DESCRIPTION]

Non-mtk nfc Chip Porting

[SOLUTION]

对于非MTK NFC(不包括MST3110)芯片, MTK只support到build pass
请参考以下porting guide.
Please follow the below instructions to enable non-MTK NFC controller for
your platform.
1. Modify your ProjectConfig.mk
Make sure the following options is turned off or SIMply removed fROM your
ProjectConfig.mk:
MTK_NFC_SUPPORT=No
MTK_NFC_APP_SUPPORT=No
MTK_NFC_ADDON_SUPPORT=No
MTK_BEAM_PLUS_SUPPORT=No
2. Replace your NFC php?mod=tag&id=6090" target="_blank" class="relatedlink">Framework to default.
Replace the following directory using Google's original release:
alps/frameworks/base/core/java/android/nfc
PS: For ALPS.JB2.MP, you can use Android 4.2.2
3. Replace your NfcService to default.
Replace the following directory using Google's original release:
alps/packages/apps/Nfc
4. Add dummy function in NFC framework
Because MTK provides richer NFC functionality than original Android by
extending the NFC framework and NfcService, some of the API must be added
to avoid build error.
PS: The runtime behavior is controlled by MTK's Java layer feature option
system,
so these dummy functions simply help you to pass build and should not be
executed.
Please add following code to
alps/frameworks/base/core/java/android/nfc/NfcAdapter.java:
/**
* @hide
*/
public static final int MODE_READER = 1;
/**
* @hide
*/
public static final int MODE_P2P = 2;
/**
* @hide
*/
public static final int MODE_CARD = 4;
/**
* @hide
*/
public static final int FLAG_OFF = 0;
/**
* @hide
*/
public static final int FLAG_ON = 1;
/**
* @hide
*/
public int getModeFlag(int mode) { return 0; }
/**
* @hide
*/
public void setModeFlag(int mode, int flag) {}
/**
* @hide
*/
public void setMtkBeamPlusPushUris(Uri[] uris, Activity activity) {}
/**
* @hide
*/
public void setMtkBeamPushUrisCallback(CreateBeamUrisCallback callback,
Activity activity) {}

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top