Xiaomi 9T
Redmi K20 Pro
NFC
all-in-all NFC
Xiaomi 9T
MIUI 12/13/14
Letโs just note: despite the fact that the smartphone Released in 2019, his NFC-module NXP PN80T) It's still one of the most versatile of the budget flagships. HCE (Host Card Emulation for Bank Cards, NFC-F (FeliCa for Japanese transponders and even NFC-V You can do this for some smart locks, but to make it work, you have to set up the system right, and that's where the first setbacks start.
If youโve never used contactless technology, donโt worry: weโll start with the basics of how to turn it on. NFC, Link the card and pay for the purchase. Advanced scenarios: emulating passes, automating with tags, and circumventing regional restrictions (for example, for Google Pay in countries where it is not officially supported) will be useful for experienced users).
1. How to turn on NFC Xiaomi 9T: step-by-step
The first thing you need to do is activate the module itself. 9T It's turned off by default to save battery power. NFC literally in two tapas, but there are nuances depending on the version MIUI.
Open the Settings. โ Connections and sharing โ NFC. If there is no such item, then your firmware uses the old menu structure - try the Settings path. โ Additionally. โ Wireless networks โ NFC. Insert the slider in the "On" position.ยป.
Slideer NFC on (should burn green)
Android Beam (Data Transfer) Mode Activated
There's a badge in the status line. NFC (If it is not, restart the smartphone)
Download the test application (for example, NFC Tools for inspection -->
Important: Some custom firmware (e.g. Pixel Experience or LineageOS) have a way to set up NFC If you can't find this section, check if the module is disabled at the kernel level, which happens after an incorrect update.
After activating the module, we recommend you to immediately update Google Play and Google Pay services (if you plan to use payments). โ Profile โ Device control โ Updates and install all available updates.
โ ๏ธ Attention: On Xiaomi 9T firmware MIUI 12.5 may not work emulation of cards in the background. NFC It shuts down after 5 minutes of inactivity. Solution: Update the firmware or use the app. NFC ReTag for Forced Connection Retention.
2.Configure contactless payments: Google Pay, SberPay, Mir Pay
Main application NFC โ Paying for purchases with a smartphone. 9T All popular payment systems are supported, but there are regional restrictions, so let's figure out how to tie a card in each case.
For Google Pay (now Google Wallet), the algorithm is as follows:
- Install the Google Wallet app from the Play Store.
- Open it and click โAdd Cardโ โ โCredit or Debit Cardโ.
- Scan the map with the camera or enter the data manually.
- Confirm the binding via SMS or banking application.
SberPay and Mir Pay are configured via the same app, and the main difference is that they require support. HCE (Host Card Emulation, which is available on Xiaomi 9T However, some banks (such as Tinkoff or Alfa Bank) can block card binding to smartphones with the bootloader unlocked. If you encounter a device not supported error, try it:
Solution for locked devices
Compare the payment systems in the table:
| Service | Support for Xiaomi 9T | Regional restrictions | Max. Payment amount. |
|---|---|---|---|
| Google Pay | Yes (HCE) | Officially, 40 countries work unofficially everywhere. | Depends on the bank (usually up to 100,000) โฝ) |
| SberPay | Yes (HCE) | Only for Sberbank cards | up to 50,000 โฝ |
| Mir Pay | Yes (HCE) | For maps only, the world | up to 15,000 โฝ |
| Apple Pay | No. | โ | โ |
| Samsung Pay | Partially (requires Magisk) | Officially, 20 countries | 200,000 โฝ |
โ ๏ธ Note: If payments fail after the card is tied, check if the energy saving mode for the payment system application is turned on. โ Annexes โ Application management โ Google Wallet โ Battery and select "No restrictionsยป.
3. Data transmission by NFC: Android Beam and Alternatives
Besides payments, NFC Xiaomi 9T It allows you to quickly share files, contacts and links with other devices, using Android Beam technology, but Google has officially stopped supporting it since 2020.
To transmit the file:
- Turn on NFC on both devices.
- Open the file (photo, contact, web page) in the appropriate application.
- Combine the back of smartphones (antenna) NFC Located at the top of Xiaomi 9T, near-camera).
- Wait for the sound signal and vibration โ the transmission will begin automatically.
If Android Beam doesnโt work, use third-party apps:
- ๐ฑ NFC Tools โ allows you to create your own tags and transfer text, links, Wi-Fi passwords.
- ๐ Send Anywhere โ an alternative to transfer files over the Internet NFC (requires installation on both devices).
- ๐ Trigger โ Automation of actions on the NFC (For example, turning on Bluetooth when touching a tag).
๐ก
If file transfers are constantly disrupted, try turning off the system's power saving mode. โ Battery โ Performance mode and select โNo Limitsโ for transfer time.
Transmission speed NFC It is low (up to 424 kbps), so it is better to use Wi-Fi Direct or Bluetooth 5.0 for large files. NFC wins in convenience โ no need to search for a device in the list or enter passwords.
4. Work with NFC-Labels: Automation and Smart Home
One of the most interesting functions NFC โ Tags are small stickers or key fobs that can be programmed to perform certain actions when touched by a smartphone. 9T It works through applications like this. NFC Tools or Trigger.
Examples of use of tags:
- ๐ Smart home: Touching a mark at the door turns on Wi-Fi, launches a smart lock app and sends a homecoming notification.
- ๐ Car: The tag in the car activates Bluetooth, triggers the navigator and turns on the economical battery mode.
- ๐๏ธ Bedroom: Touching the label on the nightstand puts the phone in Do Not Disturb mode and reduces the brightness of the screen.
- ๐ผ Office: A label on the desktop opens the corporate VPN, Slack launches and disables notifications from social networks.
To program the tag:
- Buy the empty ones. NFC-stickers (e.g., stickers, NTAG213 or NTAG215).
- Install the app NFC Tools from Play Store.
- Select "Write downยป โ ยซAdd a recordยป โ specify the action (URL, text, command, etc.).
- Apply a tag to the back of the smartphone and wait for the recording confirmation.
๐ก
For complex scenarios (e.g., enabling multiple smart home devices), use Tasker in conjunction with the NFC Tools. This will allow you to start chains of action with one touch.
If the tag doesn't work:
- Check that it is compatible with Xiaomi. 9T (should be maintained NFC Forum Type 2).
- Make sure there is enough memory on the tag (for example, for URL enough NTAG213, And you need complex teams. NTAG216).
- Rewrite the tag โ sometimes the data is damaged when used for the first time.
5. Emulation of access cards, passes and transport tickets
Xiaomi 9T can emulate access cards (for example, for an office or entrance), transport tickets (in cities with support) NFC-There are technical and legal nuances to this, but there are student tickets.
To emulate the passes, you will need:
- Download the appendix NFC Card Emulator or Mifare Classic Tool.
- Read the original map (if any) - to do this, attach it to your smartphone and save the dump.
- Write the dump to a virtual card in your phone or to a reprogrammable tag (e.g, NTAG216).
Important: Not all access cards can be copied.
- โ Mifare Classic 1K โ copy without any problems.
- โ ๏ธ Mifare Ultralight โ Copyable, but may not work with some readers.
- โ Mifare DESFire โ not copied due to encryption.
- โ HID iClass โ requires specialized equipment.
Legal risks of card emulation
For transport cards (for example, Troika in Moscow or Posrodnik in Minsk), the situation is more complicated:
- Officially, their emulation on smartphones is not supported - a physical card is required.
- Unofficial methods (via the Mifare Classic Tool) only work with outdated versions of cards and can result in a lockdown.
- In some cities (for example, Kazan) to test the fare through Mir Pay is a legal alternative.
6.Problems with NFC Xiaomi 9T and their decisions
Even on a proper device. NFC It can malfunction. We'll look at the typical problems and how to fix them.
Problem 1: NFC It does not turn on or immediately switch off.
- ๐ Check the battery power โ at a level below 5%, the module automatically deactivates.
- ๐ Restart your smartphone in Safe Mode (hold the power button) โ ยซRestart in Safe Mode. โIf NFC earned - the fault of the third-party application.
- ๐ ๏ธ Update the firmware to the latest version MIUI Or roll back to a stable build if you use the beta version.
Problem 2: Payments are not accepted (card is not supported).
- ๐ณ Make sure the bank supports contactless payments through HCE.
- ๐ Check if the Root access or unlocked bootloader is blocked (some banks block such devices).
- ๐ฑ Reset your Google Play Services settings in Settings โ Annexes โ Application management โ Google Play Services โ Warehouse โ Clear the data.
Problem 3: The smartphone can't see NFC-marker.
- ๐ Check the location of the antenna โ on Xiaomi 9T It's on the top of the back, next to the camera.
- ๐ก๏ธ Remove the case โ some models with metal inserts screen the signal.
- ๐ Rewrite the tag with another device (e.g. iPhone with iOS 13)+).
๐ก
If NFC It stopped working after the smartphone fell, most likely the antenna or the chip itself is damaged, in which case only replacing the module in the service center (cost is from 1500 to 3000) will help. โฝ).
To diagnose hardware problems, use the engineering menu:
- Please dial the phone application ##4636##.
- Select "Equipment Testingยป โ ยซNFCยป.
- If the Failed status is a malfunction at the iron level.
7. Advanced scenarios: NFC for developers and enthusiasts
If you are not limited to basic features, Xiaomi 9T It offers opportunities for experimentation. NFC for:
- ๐ค Automation of tasks through Tasker + NFC Tools (for example, running a script when touching a tag).
- ๐ Two-factor authentication โ some services (e.g. YubiKey) support NFC-keynote.
- ๐ฎ Game controllers โ you can program the tag to emulate button presses (useful for automatic actions in games).
- ๐ก Transfer Wi-Fi passwords to guests without disclosing the password itself (through a tag with an encrypted link).
To work with RAW-data NFC (For example, for research protocols, an application will be suitable. NFC Gateway, it allows:
- Read and write UID marker.
- Emulate Mifare Classic and Ultralight cards.
- Analyze APDU-commands (protocol of data exchange with the NFC-device).
<uses-permission android:name="android.permission.NFC" />
<uses-feature android:name="android.hardware.nfc" android:required="true" />For enthusiasts who want to dive deeper, the following resources are useful:
- ๐ Documentation. NXP PN80T (chip used in Xiaomi 9T).
- ๐ ๏ธ The libnfc project for working with NFC Linux-level.
- ๐ค Community XDA Developers โ there are guides on modifications NFC-custom-stack.