GithubHelp home page GithubHelp logo

lapwat / nfcscreenoff Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 1.0 4.37 MB

Read NFC tags when screen is off. Disable NFC tagging sound.

Home Page: https://forum.xda-developers.com/apps/magisk/module-nfcscreenoff8-t4034903

Shell 100.00%
apk nfc-tag nfc-service nfc magisk android magisk-module card-emulator phones

nfcscreenoff's Introduction

NFCScreenOff

Read NFC tags when screen is off. Disable NFC tagging sound.

Useful integrations: NFC Card Emulator Pro - Tasker

How does it work?

The NFC app is patched during installation into a modded version. This modded version is injected at boot time by service.sh so that the phone thinks the screen is always on and unlocked. This patch only applies to NFC Service so it does not impact any other functionality of the phone that involves screen state detection.

The modded app was generated using this method.

Help section

I AM STUCK IN A BOOTLOOP

Remove the module manually.

  1. Boot into TWRP
  2. Advanced -> File Manager
  3. Delete /adb/modules/NFCScreenOff
  4. Reboot

THE MODULE IS NOT WORKING SINCE LAST UPDATE

Perform a clean reinstallation.

  1. Uninstall the module
  2. Reboot
  3. Install the module
  4. Reboot

If it does not solve your problem, you can create an issue.

MY NFC IS NOT DETECTED ANYMORE

If you did not unlock your device since last boot, unlock it and wait 30 seconds for the module to be loaded.

After that time, if NFC does not start automatically or manually, it means that the patch does not work for your device. You can uninstall the module and create an issue.

nfcscreenoff's People

Contributors

lapwat avatar scality-q avatar topjohnwu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jon8rfc

nfcscreenoff's Issues

上传修改apk返回404

OnePlus6 + Magisk V22.0
日志见下方

  • Installing NFC_Screen_Off-v0.3.1(31).zip
  • Current boot slot: _b
  • Device is system-as-root
    Archive: /storage/emulated/0/Download/NFC_Screen_Off-v0.3.1(31).zip
    inflating: module.prop

NFC Screen Off
by lapwat


Archive: /storage/emulated/0/Download/NFC_Screen_Off-v0.3.1(31).zip
inflating: customize.sh


Powered by Magisk


  • Extracting module files
    Archive: /storage/emulated/0/Download/NFC_Screen_Off-v0.3.1(31).zip
    inflating: README.md
    creating: bin/
    inflating: bin/curl
    inflating: bin/zip
    inflating: customize.sh
    inflating: module.prop
    inflating: service.sh
    creating: system/
    inflating: system/placeholder
    -- Searching for NFC app in /system/app/ folder...
    -- NxpNfcNci.apk found!
    -- Device info --
    cp: can't stat '/system/app/NxpNfcNci/oat/arm64/NxpNfcNci.odex': No such file or directory
    APK_NAME=NxpNfcNci
    MANUFACTURER=OnePlus
    MODEL=ONEPLUS A6003
    DEVICE=OnePlus6
    ROM=

-- Searching for NxpNfcNci.apk backup...
-- NxpNfcNci_bak.apk not found. Creating backup of original NxpNfcNci.apk.
-- Searching for NxpNfcNci.odex backup...
-- NxpNfcNci_bak.odex not found. Creating backup of original NxpNfcNci.odex.
-- Searching for NxpNfcNci.vdex backup...
-- NxpNfcNci_bak.vdex not found. Creating backup of original NxpNfcNci.vdex.
cp: can't stat '/system/app/NxpNfcNci/oat/arm64/NxpNfcNci.vdex': No such file or directory
-- Searching for custom NxpNfcNci.apk in extracted files...
-- NxpNfcNci_align.apk not found.
-- Zipping NxpNfcNci.apk and device's framework (/data/adb/modules_update/NFCScreenOff/bin/zip)
adding: .env (deflated 5%)
adding: NxpNfcNci.apk (deflated 17%)
adding: framework-res.apk (deflated 57%)
-- Uploading device's apks for modding (/system/bin/curl), it may take a while (14Mb)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
0 14.7M 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
-- Classic modding failed, trying odex strategy
-- Adding whole framework folder and odex/vdex files to archive
zip warning: name not matched: /dev/tmp/NxpNfcNci.odex
zip warning: name not matched: /dev/tmp/NxpNfcNci.vdex
adding: .env (deflated 4%)
adding: NxpNfcNci.apk (deflated 17%)
adding: arm64/ (stored 0%)
adding: arm64/boot-qcnvitems.art (deflated 92%)
adding: arm64/boot-ims-common.vdex (deflated 11%)
adding: arm64/boot-oneplus_sdk_wrapper.art (deflated 95%)
adding: arm64/boot-bouncycastle.art (deflated 75%)
adding: arm64/boot-QPerformance.vdex (deflated 23%)
adding: arm64/boot-android.test.base.art (deflated 88%)
adding: arm64/boot-android.test.base.vdex (deflated 16%)
adding: arm64/boot-android.test.base.oat (deflated 94%)
adding: arm64/boot-apache-xml.oat (deflated 77%)
adding: arm64/boot-QPerformance.oat (deflated 91%)
adding: arm64/boot-telephony-common.oat (deflated 58%)
adding: arm64/boot-oneplus_sdk_utils.art (deflated 94%)
adding: arm64/boot-UxPerformance.art (deflated 91%)
adding: arm64/boot-ext.oat (deflated 62%)
adding: arm64/boot-oneplus_sdk_wrapper.oat (deflated 95%)
adding: arm64/boot-okhttp.oat (deflated 57%)
adding: arm64/boot-framework.vdex (deflated 60%)
adding: arm64/boot-QPerformance.art (deflated 92%)
adding: arm64/boot-ext.vdex (deflated 18%)
adding: arm64/boot-bouncycastle.oat (deflated 64%)
adding: arm64/boot-oneplus-framework.oat (deflated 86%)
adding: arm64/boot-qcnvitems.vdex (deflated 6%)
adding: arm64/boot.art (deflated 76%)
adding: arm64/boot-core-libart.vdex (deflated 15%)
adding: arm64/boot.vdex (deflated 12%)
adding: arm64/boot-framework.art (deflated 76%)
adding: arm64/boot-core-libart.oat (deflated 55%)
adding: arm64/boot-telephony-ext.art (deflated 95%)
adding: arm64/boot-tcmiface.art (deflated 97%)
adding: arm64/boot-voip-common.art (deflated 88%)
adding: arm64/boot-oneplus-framework.art (deflated 85%)
adding: arm64/boot-qcnvitems.oat (deflated 85%)
adding: arm64/boot-okhttp.vdex (deflated 6%)
adding: arm64/boot.oat (deflated 57%)
adding: arm64/boot-ims-common.oat (deflated 65%)
adding: arm64/boot-voip-common.vdex (deflated 9%)
adding: arm64/boot-oneplus_sdk_wrapper.vdex (deflated 29%)
adding: arm64/boot-UxPerformance.oat (deflated 95%)
adding: arm64/boot-tcmiface.oat (deflated 95%)
adding: arm64/boot-bouncycastle.vdex (deflated 18%)
adding: arm64/boot-telephony-common.art (deflated 74%)
adding: arm64/boot-ext.art (deflated 73%)
adding: arm64/boot-telephony-common.vdex (deflated 17%)
adding: arm64/boot-apache-xml.art (deflated 89%)
adding: arm64/boot-okhttp.art (deflated 77%)
adding: arm64/boot-WfdCommon.vdex (deflated 12%)
adding: arm64/boot-UxPerformance.vdex (deflated 29%)
adding: arm64/boot-telephony-ext.vdex (deflated 14%)
adding: arm64/boot-oneplus-framework.vdex (deflated 6%)
adding: arm64/boot-tcmiface.vdex (deflated 29%)
adding: arm64/boot-oneplus_sdk_utils.oat (deflated 95%)
adding: arm64/boot-apache-xml.vdex (deflated 17%)
adding: arm64/boot-WfdCommon.oat (deflated 92%)
adding: arm64/boot-core-libart.art (deflated 74%)
adding: arm64/boot-telephony-ext.oat (deflated 93%)
adding: arm64/boot-framework.oat (deflated 60%)
adding: arm64/boot-voip-common.oat (deflated 78%)
adding: arm64/boot-WfdCommon.art (deflated 95%)
adding: arm64/boot-ims-common.art (deflated 81%)
adding: arm64/boot-oneplus_sdk_utils.vdex (deflated 23%)
/dev/tmp
-- Uploading archive for odex modding (/system/bin/curl), it may take a while (12Mb)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 12.2M 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
!! Odex strategy failed.
! Installation failed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.