[Magisk] JohnWo:
Hello again, [MENTION=6471406]lapwat[/MENTION]

I tried reinstalling everything from scratch (reflashed and updated the original manufacturer ROM and applied the last update, rooted with Magisk, installed curl). The module installation was successful:

- Copying zip to temp directory
- Installing NFCScreenOff-v0.3.1-JohnWo(1).zip
- Device is system-as-root
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: module.prop
****************
NFC Screen Off
****************
*******************
Powered by Magisk
*******************
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: customize.sh
- Extracting module files
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: customize.sh
inflating: module.prop
inflating: service.sh
creating: system/
inflating: system/placeholder
creating: bin/
inflating: bin/zip
inflating: bin/curl
-- Searching for NFC app in /system/app/ folder...
-- Nfc_st.apk found!
-- Device info --
APK_NAME=Nfc_st
MANUFACTURER=A-gold
MODEL=BV9500Plus
DEVICE=BV9500Plus
ROM=
-----------------
-- Searching for Nfc_st.apk backup...
-- Nfc_st_bak.apk not found. Creating backup of original Nfc_st.apk.
-- Searching for Nfc_st.odex backup...
-- Nfc_st_bak.odex not found. Creating backup of original Nfc_st.odex.
-- Searching for Nfc_st.vdex backup...
-- Nfc_st_bak.vdex not found. Creating backup of original Nfc_st.vdex.
-- Searching for custom Nfc_st.apk in extracted files...
-- Nfc_st_align.apk not found.
-- Zipping Nfc_st.apk and device's framework (/data/adb/modules_update/NFCScreenOff/bin/zip)
adding: .env (deflated 11%)
adding: Nfc_st.apk (deflated 51%)
adding: framework-res.apk (deflated 62%)
-- Uploading device's apks for modding (/system/bin/curl), it may take a while (9Mb)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
3 9790k 0 0 3 384k 0 526k 0:00:18 --:--:-- 0:00:18 526k
61 9790k 0 0 61 6016k 0 3593k 0:00:02 0:00:01 0:00:01 3591k
100 9790k 0 0 100 9790k 0 2942k 0:00:03 0:00:03 --:--:-- 2943k
100 9790k 0 0 100 9790k 0 2262k 0:00:04 0:00:04 --:--:-- 2262k
100 9790k 0 0 100 9790k 0 1836k 0:00:05 0:00:05 --:--:-- 1836k
100 9790k 0 0 100 9790k 0 1546k 0:00:06 0:00:06 --:--:-- 1679k
100 9790k 0 0 100 9790k 0 1335k 0:00:07 0:00:07 --:--:-- 667k
100 9790k 0 0 100 9790k 0 1174k 0:00:08 0:00:08 --:--:-- 0
100 9790k 0 0 100 9790k 0 1048k 0:00:09 0:00:09 --:--:-- 0
100 9790k 0 0 100 9790k 0 947k 0:00:10 0:00:10 --:--:-- 0
100 9790k 0 0 100 9790k 0 863k 0:00:11 0:00:11 --:--:-- 0
100 9790k 0 0 100 9790k 0 829k 0:00:11 0:00:11 --:--:-- 0
curl: (22) The requested URL returned error: 502
-- Classic modding failed, trying odex strategy
-- Adding whole framework folder and odex/vdex files to archive
adding: .env (deflated 9%)
adding: Nfc_st.apk (deflated 51%)
adding: Nfc_st.odex (deflated 68%)
adding: Nfc_st.vdex (deflated 57%)
adding: arm64/ (stored 0%)
adding: arm64/boot-bouncycastle.vdex (deflated 57%)
adding: arm64/boot-mediatek-telephony-base.vdex (deflated 60%)
adding: arm64/boot-mediatek-framework.oat (deflated 71%)
adding: arm64/boot-conscrypt.art.rel (deflated 87%)
adding: arm64/boot-framework.art.rel (deflated 91%)
adding: arm64/boot-android.hidl.base-V1.0-java.vdex (deflated 55%)
adding: arm64/boot-framework-oahl-backward-compatibility.vdex (deflated 44%)
adding: arm64/boot.art.rel (deflated 90%)
adding: arm64/boot-mediatek-telecom-common.art (deflated 86%)
adding: arm64/boot-android.hidl.manager-V1.0-java.art (deflated 86%)
adding: arm64/boot-ims-common.oat (deflated 68%)
adding: arm64/boot-telephony-common.vdex (deflated 61%)
adding: arm64/boot-ims-common.art (deflated 75%)
adding: arm64/boot-framework-oahl-backward-compatibility.oat (deflated 92%)
adding: arm64/boot-bouncycastle.art.rel (deflated 83%)
adding: arm64/boot-mediatek-common.art.rel (deflated 44%)
adding: arm64/boot-framework-oahl-backward-compatibility.art.rel (deflated 24%)
adding: arm64/boot-mediatek-framework.art (deflated 75%)
adding: arm64/boot-mediatek-framework.vdex (deflated 64%)
adding: arm64/boot-conscrypt.vdex (deflated 55%)
adding: arm64/boot-mediatek-telephony-base.art.rel (deflated 73%)
adding: arm64/boot-core-libart.oat (deflated 55%)
adding: arm64/boot-android.hidl.base-V1.0-java.art (deflated 83%)
adding: arm64/boot-telephony-common.oat (deflated 60%)
adding: arm64/boot-android.hidl.manager-V1.0-java.oat (deflated 82%)
adding: arm64/boot-android.test.base.art (deflated 86%)
adding: arm64/boot-ext.oat (deflated 62%)
adding: arm64/boot-ims-common.vdex (deflated 59%)
adding: arm64/boot-mediatek-common.oat (deflated 76%)
adding: arm64/boot-telephony-common.art (deflated 73%)
adding: arm64/boot-mediatek-framework.art.rel (deflated 73%)
adding: arm64/boot-mediatek-telephony-base.oat (deflated 69%)
adding: arm64/boot-ext.art.rel (deflated 78%)
adding: arm64/boot-mediatek-telephony-common.vdex (deflated 70%)
adding: arm64/boot-voip-common.vdex (deflated 54%)
adding: arm64/boot-framework-oahl-backward-compatibility.art (deflated 96%)
adding: arm64/boot-android.hidl.manager-V1.0-java.art.rel (deflated 71%)
adding: arm64/boot-android.test.base.oat (deflated 91%)
adding: arm64/boot-mediatek-telecom-common.oat (deflated 91%)
adding: arm64/boot-framework.oat (deflated 60%)
adding: arm64/boot-mediatek-ims-common.vdex (deflated 56%)
adding: arm64/boot-mediatek-telecom-common.art.rel (deflated 43%)
adding: arm64/boot-conscrypt.oat (deflated 62%)
adding: arm64/boot-framework.vdex (deflated 58%)
adding: arm64/boot-apache-xml.vdex (deflated 54%)
adding: arm64/boot-conscrypt.art (deflated 75%)
adding: arm64/boot-mediatek-telephony-common.oat (deflated 60%)
adding: arm64/boot-okhttp.vdex (deflated 52%)
adding: arm64/boot-core-libart.vdex (deflated 51%)
adding: arm64/boot-apache-xml.oat (deflated 60%)
adding: arm64/boot-mediatek-ims-common.oat (deflated 82%)
adding: arm64/boot-telephony-common.art.rel (deflated 88%)
adding: arm64/boot-framework.art (deflated 75%)
adding: arm64/boot-mediatek-ims-common.art.rel (deflated 56%)
adding: arm64/boot-mediatek-telephony-common.art (deflated 66%)
adding: arm64/boot-android.hidl.manager-V1.0-java.vdex (deflated 59%)
adding: arm64/boot-okhttp.art.rel (deflated 87%)
adding: arm64/boot-okhttp.art (deflated 74%)
adding: arm64/boot-apache-xml.art.rel (deflated 78%)
adding: arm64/boot-android.hidl.base-V1.0-java.oat (deflated 92%)
adding: arm64/boot-voip-common.art.rel (deflated 69%)
adding: arm64/boot.vdex (deflated 54%)
adding: arm64/boot-android.test.base.vdex (deflated 52%)
adding: arm64/boot-bouncycastle.art (deflated 71%)
adding: arm64/boot-mediatek-telecom-common.vdex (deflated 60%)
adding: arm64/boot-ext.vdex (deflated 57%)
adding: arm64/boot-ims-common.art.rel (deflated 83%)
adding: arm64/boot-apache-xml.art (deflated 71%)
adding: arm64/boot-bouncycastle.oat (deflated 59%)
adding: arm64/boot.art (deflated 74%)
adding: arm64/boot-mediatek-telephony-common.art.rel (deflated 66%)
adding: arm64/boot-okhttp.oat (deflated 57%)
adding: arm64/boot-mediatek-common.art (deflated 88%)
adding: arm64/boot-ext.art (deflated 70%)
adding: arm64/boot-mediatek-ims-common.art (deflated 80%)
adding: arm64/boot-mediatek-common.vdex (deflated 65%)
adding: arm64/boot.oat (deflated 57%)
adding: arm64/boot-android.hidl.base-V1.0-java.art.rel (deflated 67%)
adding: arm64/boot-core-libart.art (deflated 72%)
adding: arm64/boot-voip-common.art (deflated 80%)
adding: arm64/boot-core-libart.art.rel (deflated 87%)
adding: arm64/boot-android.test.base.art.rel (deflated 56%)
adding: arm64/boot-voip-common.oat (deflated 82%)
adding: arm64/boot-mediatek-telephony-base.art (deflated 74%)
/data/data/com.topjohnwu.magisk/cache/flash
-- Uploading archive for odex modding (/system/bin/curl), it may take a while (33Mb)
% 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
9 33.7M 0 0 9 3392k 0 3097k 0:00:11 0:00:01 0:00:10 3094k
27 33.7M 0 0 27 9600k 0 4662k 0:00:07 0:00:02 0:00:05 4662k
46 33.7M 0 0 46 15.8M 0 5291k 0:00:06 0:00:03 0:00:03 5289k
65 33.7M 0 0 65 22.1M 0 5581k 0:00:06 0:00:04 0:00:02 5580k
84 33.7M 0 0 84 28.5M 0 5765k 0:00:05 0:00:05 --:--:-- 5856k
100 33.7M 0 0 100 33.7M 0 4970k 0:00:06 0:00:06 --:--:-- 5321k
100 33.7M 0 0 100 33.7M 0 4344k 0:00:07 0:00:07 --:--:-- 4233k
100 33.7M 0 0 100 33.7M 0 3858k 0:00:08 0:00:08 --:--:-- 3114k
100 33.7M 0 0 100 33.7M 0 3470k 0:00:09 0:00:09 --:--:-- 2016k
100 33.7M 0 0 100 33.7M 0 3152k 0:00:10 0:00:10 --:--:-- 909k
100 33.7M 0 0 100 33.7M 0 2889k 0:00:11 0:00:11 --:--:-- 0
100 33.7M 0 0 100 33.7M 0 2665k 0:00:12 0:00:12 --:--:-- 0
100 33.7M 0 0 100 33.7M 0 2474k 0:00:13 0:00:13 --:--:-- 0
100 33.7M 0 0 100 33.7M 0 2308k 0:00:14 0:00:14 --:--:-- 0
100 33.7M 0 0 100 33.7M 0 2164k 0:00:15 0:00:15 --:--:-- 0
100 33.7M 0 0 100 33.7M 0 2036k 0:00:16 0:00:16 --:--:-- 0
100 33.7M 0 0 100 33.7M 0 1922k 0:00:17 0:00:17 --:--:-- 0
100 33.7M 0 0 100 33.7M 0 1821k 0:00:18 0:00:18 --:--:-- 0
100 33.7M 0 0 100 33.7M 0 1729k 0:00:19 0:00:19 --:--:-- 0
96 35.0M 0 7240 100 33.7M 356 1702k 1:03:02 0:00:20 1:02:42 1674
100 35.0M 100 1314k 100 33.7M 65004 1667k 0:00:20 0:00:20 --:--:-- 350k
-- Downloaded custom Nfc_st.apk from lapwat's servers
- Replace target: /system/app/Nfc_st
- Done

The problem is that there is some problem with the new binary:

07-13 12:16:36.052 1990 1990 I hbox:interacto: The ClassLoaderContext is a special shared library.
07-13 12:16:36.058 1180 1190 V WindowManager: Removing focused app token:AppWindowToken{4af65a1 token=Token{74e8a08 ActivityRecord{6f173ab u0 com.android.settings/.FallbackHome t1}}}
07-13 12:16:36.060 1180 1197 W ActivityManager: Slow operation: 73ms so far, now at startProcess: returned from zygote!
07-13 12:16:36.060 2037 2037 E libc : Access denied finding property "persist.vendor.sys.activitylog"
07-13 12:16:36.061 425 1899 W SurfaceFlinger: Attempting to destroy on removed layer: AppWindowToken{4af65a1 token=Token{74e8a08 ActivityRecord{6f173ab u0 com.android.settings/.FallbackHome t1}}}#0
07-13 12:16:36.063 1454 1454 D CdmaVolteServiceChecker: onReceived, action = android.intent.action.SIM_STATE_CHANGED
07-13 12:16:36.064 1454 1454 D CdmaVolteServiceChecker: updateState, checking = false
07-13 12:16:36.064 2007 2007 D AndroidRuntime: Shutting down VM
--------- beginning of crash
07-13 12:16:36.065 2007 2007 E AndroidRuntime: FATAL EXCEPTION: main
07-13 12:16:36.065 2007 2007 E AndroidRuntime: Process: com.android.nfc, PID: 2007
07-13 12:16:36.065 2007 2007 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application com.android.nfc.NfcApplication: java.lang.ClassNotFoundException: Didn't find class "com.android.nfc.NfcApplication" on path: DexPathList[[zip file "/system/framework/com.st.android.nfc_extensions.jar", zip file "/system/framework/com.st.android.nfc_dta_extensions.jar", zip file "/system/app/Nfc_st/Nfc_st.apk"],nativeLibraryDirectories=[/system/app/Nfc_st/lib/arm64, /system/app/Nfc_st/Nfc_st.apk!/lib/arm64-v8a, /system/lib64, /system/lib64]]
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.LoadedApk.makeApplication(LoadedApk.java:1069)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5873)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.ActivityThread.access$1200(ActivityThread.java:206)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1678)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:106)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:193)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6702)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
07-13 12:16:36.065 2007 2007 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.nfc.NfcApplication" on path: DexPathList[[zip file "/system/framework/com.st.android.nfc_extensions.jar", zip file "/system/framework/com.st.android.nfc_dta_extensions.jar", zip file "/system/app/Nfc_st/Nfc_st.apk"],nativeLibraryDirectories=[/system/app/Nfc_st/lib/arm64, /system/app/Nfc_st/Nfc_st.apk!/lib/arm64-v8a, /system/lib64, /system/lib64]]
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:50)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.Instrumentation.newApplication(Instrumentation.java:1120)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.LoadedApk.makeApplication(LoadedApk.java:1061)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	... 9 more
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	Suppressed: java.io.IOException: No original dex files found for dex location /system/app/Nfc_st/Nfc_st.apk
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at dalvik.system.DexFile.openDexFileNative(Native Method)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at dalvik.system.DexFile.openDexFile(DexFile.java:354)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at dalvik.system.DexFile.<init>(DexFile.java:101)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at dalvik.system.DexFile.<init>(DexFile.java:75)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at dalvik.system.DexPathList.loadDexFile(DexPathList.java:394)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at dalvik.system.DexPathList.makeDexElements(DexPathList.java:354)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at dalvik.system.DexPathList.<init>(DexPathList.java:164)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:74)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:65)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:64)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:73)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:88)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:74)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:40)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:727)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.LoadedApk.getClassLoader(LoadedApk.java:810)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.LoadedApk.getResources(LoadedApk.java:1032)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.ContextImpl.createAppContext(ContextImpl.java:2346)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5780)
07-13 12:16:36.065 2007 2007 E AndroidRuntime:	... 8 more
07-13 12:16:36.066 1180 1190 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000100 cmp=com.android.launcher3/com.android.searchlauncher.SearchLauncher} from uid 0
07-13 12:16:36.066 1454 1454 D CdmaVolteServiceChecker: getMainCapabilitySubId = -2
07-13 12:16:36.067 1454 1454 D CdmaVolteServiceChecker: infos mainId = -2
07-13 12:16:36.069 1180 1180 I AccountManagerService: User 0 is unlocked - opening CE database
07-13 12:16:36.074 2056 2056 E com.adups.fota: Not starting debugger since process cannot load the jdwp agent.

Thanks!

---------- Post added at 01:23 PM ---------- Previous post was at 12:33 PM ----------

Ok. It seems after installing NFCScreenOff, at /system/app/Nfc_st there is only one file (the .apk), and the .odex, .vdex files are missing.