[Magisk][TWRP][Treble] NFC for Kirin 655 - P8 Lite (2017) Development

Description
All you need to get NFC on GSI ROM's for Kirin 655 devices.
It's tested on Huawei P8 Lite 2017 (Kirin 655) while running phhusson's AOSP.
Download
Pie
Magisk:
Magisk's Official Repo
NFC4PRA-GSI.zip
TWRP: NFC4PRA-GSI-TWRP.zip
Oreo
Magisk: NFC4PRA-GSI-OREO.zip
TWRP: NFC4PRA-GSI-OREO-TWRP.zip
Changelog
v3.0
Removed unnecessary libs
v2.0
Bump to Pie (9.0)
v1.0
Initial release
Troubleshooting
If stuck at boot, simply reboot once and see if boot resumes
If boot fails again, please provide device and Magisk logs
Credits
topjohnwu for Magisk and its module template
Darkest-Dark for his Magisk Module that inspired this work
dil3mm4 for his version of LineageOS where the v1 files belonged to
haky86 for his version of AOSiP where the v2 files belonged to
kountry83 for his Pie NFC fix and where the v3 files belong to
Source
Magisk: GitHub

I'm honestly curious.
I will take a look, good try as first contribution here.
Welcome to Huawei strange world.
EDIT: Really nice contribution, tested and working.

Using this magisk module on resurrection remix o 6.1.0 when I press the fingerprint my pra-lx1 write a equal sign (=)! Will the twrp zip gives the same problem?

ZzManRoolez said:
Using this magisk module on resurrection remix o 6.1.0 when I press the fingerprint my pra-lx1 write a equal sign (=)! Will the twrp zip gives the same problem?
Click to expand...
Click to collapse
I believe your problem is not related with this module. Could you please check if this topic solves it?

Already done that thing to disable fingerprint navigation, the equal sign problem shows only when I activate this module on magisk, if the module is disabled there are no problem with fingerprint! I have asked because disable a module in magisk is a easy thing, remove a twrp installed patch is different!

ZzManRoolez said:
Already done that thing to disable fingerprint navigation, the equal sign problem shows only when I activate this module on magisk, if the module is disabled there are no problem with fingerprint! I have asked because disable a module in magisk is a easy thing, remove a twrp installed patch is different!
Click to expand...
Click to collapse
I am sorry, but I cannot help you. Is there any navigation gesture feature enabled on your ROM?
On phhusson's AOSP I don't have such problem. It is really weird as no files related with fingerprint handling are included in this module.
I agree with you on that, flashing a TWRP patch is different than flashing a Magisk module but you can always revert by flashing the system image from your ROM again.

Sorry, I have tryed another module and gave me the same problem, I don't know why but it seems related to magisk modules, I've installed Huawei camera module and The equal sign was here! Sorry for the trouble!
P.S. It seems that any Huawei related module activates fingerprint gestures, I have deactivate the gestures but everytime I install one of those two modules the gestures are activated! So strange!

does P8 Lite 2017 have NFC hardware?

panariga said:
does P8 Lite 2017 have NFC hardware?
Click to expand...
Click to collapse
Yes

Noel.89 said:
Yes
Click to expand...
Click to collapse
on all variants?
I have PRA-LA1 and NFC seems not working.
Which kernel you use and what system image? 8.1 or 9?

panariga said:
on all variants?
I have PRA-LA1 and NFC seems not working.
Which kernel you use and what system image? 8.1 or 9?
Click to expand...
Click to collapse
Don't know if all have it my pra-lx1 Variant does I'm on oreo cr droid can't get NFC to work on my phone with 9. 0

ZzManRoolez said:
Sorry, I have tryed another module and gave me the same problem, I don't know why but it seems related to magisk modules, I've installed Huawei camera module and The equal sign was here! Sorry for the trouble!
P.S. It seems that any Huawei related module activates fingerprint gestures, I have deactivate the gestures but everytime I install one of those two modules the gestures are activated! So strange!
Click to expand...
Click to collapse
This issue seems related with an incompatibility between phhusson's fingerprint navigation implementation and Magisk itself.
Please refer to this link - https://github.com/topjohnwu/Magisk/issues/521

panariga said:
on all variants?
I have PRA-LA1 and NFC seems not working.
Which kernel you use and what system image? 8.1 or 9?
Click to expand...
Click to collapse
Noel.89 said:
Don't know if all have it my pra-lx1 Variant does I'm on oreo cr droid can't get NFC to work on my phone with 9. 0
Click to expand...
Click to collapse
I believe NFC is not related with the device's kernel.
Currently, this module only supports Oreo (8.1).
In a couple of hours I will upload a Pie (9) version.

OP updated with Pie version!
Check the first page for the download links

I installed this module but I can't activate NFC..
How doest this work?
Mate 10 pro on RRos beta 3

Marcuss4 said:
I installed this module but I can't activate NFC..
How doest this work?
Mate 10 pro on RRos beta 3
Click to expand...
Click to collapse
This is exclusively for Kirin 655. Your device is a Kirin 970...

ponces said:
This is exclusively for Kirin 655. Your device is a Kirin 970...
Click to expand...
Click to collapse
Aah I thought I had a 655 too.
Sorry!!
Thanks for the response!

ponces said:
OP updated with Pie version!
Check the first page for the download links
Click to expand...
Click to collapse
Module v1.0 is working great on oreo rom on my kirin 950.
But... one slight problem : in magisk manager, v2.0 "update" is to be avoided as it is for pie. As it is for a different system, it's not actually an update.
Would it be possible to make 2 distinct modules, one for Oreo and one for Pie, so Oreo users don't have to skip the update ?
Thanks !

pix106 said:
Module v1.0 is working great on oreo rom on my kirin 950.
But... one slight problem : in magisk manager, v2.0 "update" is to be avoided as it is for pie. As it is for a different system, it's not actually an update.
Would it be possible to make 2 distinct modules, one for Oreo and one for Pie, so Oreo users don't have to skip the update ?
Thanks !
Click to expand...
Click to collapse
That was why I configured to be mandatory to use v2.0 with Magisk 17.0 or above only. But I guess you're already using Magisk 17 on Oreo, right?
Sent from my PRA-LX1 using Tapatalk

ponces said:
That was why I configured to be mandatory to use v2.0 with Magisk 17.0 or above only. But I guess you're already using Magisk 17 on Oreo, right?
Click to expand...
Click to collapse
Right, latest stable magisk is 17.1, i indeed use it on oreo

Related

[Magisk] ARCore+Google Camera

Hey,
I've created a small magisk module, with that you can use the Argument Reality function inside the Google Camera.
It works on LOS 15 and LOS 15.1, it works maybe also on nougat but I can't guarantee.
When you want to test it on other devices than the Mi5s, please don't forget to make a backup.
Installation instructions:
Every module can easily flashed inside the Magisk Manager or with TWRP.
Additional informations for all downloads:
Android 8.1:
Mini version:
only Includes the necessary configurations and changes in the build prop, to get it fully working you need additionally the Apps Package
Full version:
Includes everything you need, in one module.
(Modded GCam, ARCore, ARStickers and all configurations)
Android 7.0-8.0
Only one module with all necessary configurations you have to flash additionally the Apps module.
Downloads:
Android 8.1
https://drive.google.com/folderview?id=1SnsVQPuKyWQwJcMkWAO5pJaBJz6InrYH
Android 8.1 V2:
https://drive.google.com/file/d/1wuzRqYjG0uaB35kdyYaLK3-K-tW9Iag9/view?usp=sharing
Android 8
https://drive.google.com/folderview?id=1xz8CQD71B-i2jbzy08t9UY5CqJ8eZSJw
[Test] Android 7.0 -7.1.2
https://drive.google.com/folderview?id=1QeSXy9Du3RkZnhnTa_Z2eiVxAV6RdlbJ
Apps Module (for Android 7.0 - 8.0 and the 8.1 mini module)
https://drive.google.com/folderview?id=1YY97M5Y-r9MqJ6art8aYBQDWPLi8Hb6C
Apps Module V2:
https://drive.google.com/file/d/19rtu2nUAcH2WKCBbGbm2F75uXsfwKXt4/view?usp=sharing
Do not thank me, just thank him @Arnova8G2
Screenshots:
jigs4wkiller said:
Screenshots:
Click to expand...
Click to collapse
can you record a video, mine crashes.
357662149 said:
can you record a video, mine crashes.
Click to expand...
Click to collapse
Yes
jigs4wkiller said:
Yes
Click to expand...
Click to collapse
What rom are you using?
357662149 said:
What rom are you using?
Click to expand...
Click to collapse
Latest LOS 15.1 build.
jigs4wkiller said:
Latest LOS 15.1 build.
Click to expand...
Click to collapse
Me too, but get crashing when stop recording.i don't know why.
I can't record video too, it records and saves movie but it can't play. LOS 15.1 LASTEST BUILD.
Crash when i switch ar stickers menu, I'm in lates miui.eu develop btw.
i am using 15.1 and flash did not work with TWRP?
mrducluan said:
i am using 15.1 and flash did not work with TWRP?
Click to expand...
Click to collapse
Do you have magisk installed ?
I have installed magisk, and flash the latest TWRP and success. Thanks
Don't work on MIUI
Sadur said:
Crash when i switch ar stickers menu, I'm in lates miui.eu develop btw.
Click to expand...
Click to collapse
Same problem here. MIUI 9 global developer
Which version of Gcam is being used?
Also crashing on MIUI 9.3 (Xiaomi.eu latest) !
n0thing722 said:
Also crashing on MIUI 9.3 (Xiaomi.eu latest) !
Click to expand...
Click to collapse
At the moment I am using MIUI to find a fix.
This mod is work on HTC U11 too.
Thank you for share.
Android 8.0 Magicsk V 15.2
Updated OP.
V2 Modules are know made with Magisk 15 template and I updated the Gcam.
jigs4wkiller said:
Updated OP.
V2 Modules are know made with Magisk 15 template and I updated the Gcam.
Click to expand...
Click to collapse
Thanks bro, but still not working on MIUI 9 :/
Sent from my MI 5s using Tapatalk
I flashed android 8.1 v2, but i dont get the gcam
---------- Post added at 01:22 PM ---------- Previous post was at 01:16 PM ----------
Where to get the gcam?

Oreo security patches?

It looks like Huawei/Honor continues the development of security patches for EMUI 5 - b410 is approved by IMEI and contains August patches, while b412 contains September patches and will probably be approved soon. However, nothing new on the EMUI 8 side of things.
I don't remember how things were with the EMUI 4->5 transition, but the fact that they continue to focus on providing updates only for the old emui doesn't fill me with confidence.
Was 8.0.0.521 an one-off? I hope not.
I think Oreo is an one-off. Infact i returned back to b407
It's really disappointing, because the B521 firnware has some annoying bugs.
To me, the fact that Huawei controls both processor (Kirin) and OS (EMUI), should mean that they would be of the likes of Apple and iOS, or the likes of Google and Pixels: each version of EMUI should be able to be installed on all compatible phones, on launch day. I can't believe they cannot do that, unless their developers' skills are so bad.
This is a lost opportunity, in favour clearly of selling more phones. They envision being better than Apple, without taking the first page of their book: fewer phones, better support.
If that's the case in the end, "so long and thanks for all the fish".
skyrush7 said:
It's really disappointing, because the B521 firnware has some annoying bugs.
Click to expand...
Click to collapse
I just wanted the treble support. Now I'm using custom rom RR and it seems pretty good.
ahadshah said:
I just wanted the treble support. Now I'm using custom rom RR and it seems pretty good.
Click to expand...
Click to collapse
That's nice that it worked for you - however a lot of people didn't want to switch to a custom treble ROM; they just needed a properly updated official OS with security updates.
ahadshah said:
I just wanted the treble support. Now I'm using custom rom RR and it seems pretty good.
Click to expand...
Click to collapse
Guess I have to switch to custom ROMs again just for security patches. ¯\_(ツ)_/¯
ahadshah said:
I just wanted the treble support. Now I'm using custom rom RR and it seems pretty good.
Click to expand...
Click to collapse
Link for custom rom please
saadibader said:
Link for custom rom please
Click to expand...
Click to collapse
OpenKirin
ahadshah said:
OpenKirin
Click to expand...
Click to collapse
Will it work for L02? Indian variant.
gabriel.87 said:
Will it work for L02? Indian variant.
Click to expand...
Click to collapse
It should. But i'm not sure. You can contact the devs. They provide support on telegram.
ahadshah said:
OpenKirin
Click to expand...
Click to collapse
Thanks man, one last question which one do you use ? Resurrection, omni or lineage ? And wich one is better for honor 8 ?
There are some bugs ?
saadibader said:
Thanks man, one last question which one do you use ? Resurrection, omni or lineage ? And wich one is better for honor 8 ?
There are some bugs ?
Click to expand...
Click to collapse
"LOS - Stability, basic, like AOSP, but with a tad bit more customizability
OmniROM - Both hitting the sweet spot between RR and LOS. NFC.
RR - Really good battery life, customization to the max"
I am using RR coz of the customizations. AFAIK all the roms are usable as daily driver. There might be minor bugs here and there but nothing too big. NFC is only available on Omni. No VoLTE support on any rom. Thats all i can think of right now. Their web has detailed info.
ahadshah said:
"LOS - Stability, basic, like AOSP, but with a tad bit more customizability
OmniROM - Both hitting the sweet spot between RR and LOS. NFC.
RR - Really good battery life, customization to the max"
I am using RR coz of the customizations. AFAIK all the roms are usable as daily driver. There might be minor bugs here and there but nothing too big. NFC is only available on Omni. No VoLTE support on any rom. Thats all i can think of right now. Their web has detailed info.
Click to expand...
Click to collapse
Thanks again for your answer, i dont use NFC neither VoLTE (not avalaible both in my country) i contacted devs on Telegram, in order to have those rom i should be on Oreo
Im thinking to rebrand my FRD-L09C185 to C432 to have Oreo
Anyway thanks a lot for your answer
gabriel.87 said:
Will it work for L02? Indian variant.
Click to expand...
Click to collapse
Will work as long as you are on EMUI 8.
daspyki said:
I just wanted the treble support. Now I'm using custom rom RR and it seems pretty good.
Click to expand...
Click to collapse
I can't switch to treble ROMs, because banking apps won't work on them.
skyrush7 said:
I can't switch to treble ROMs, because banking apps won't work on them.
Click to expand...
Click to collapse
Working good here on OpenKirin RROS with Magisk / enabled Magisk Hide. I'm passing SafetyNet and PlayStore shows certified. Magisk is hidden with repackaged MagiskManager and banking app is working :good:
Sent from my FRD-L09 using XDA Labs
cypher187 said:
Working good here on OpenKirin RROS with Magisk / enabled Magisk Hide. I'm passing SafetyNet and PlayStore shows certified. Magisk is hidden with repackaged MagiskManager and banking app is working :good:
Click to expand...
Click to collapse
I'm unfamiliar with this Magisk thing. I've read about it already, but it wasn't clear what is it for. Is it easy to use?
skyrush7 said:
I'm unfamiliar with this Magisk thing. I've read about it already, but it wasn't clear what is it for. Is it easy to use?
Click to expand...
Click to collapse
Yeah I think it's pretty easy. It's a root solution, in general. Installation guide which you can use also for our device can be found here. Usage is pretty easy but now we're getting off topic with that.
Sent from my FRD-L09 using XDA Labs

? What Magisk Modules Are you Guys Using?

What magisk modules you guys are using care to share some? So far here's mine
Debloater works properly on Realme UI?
Madhuvrata said:
Debloater works properly on Realme UI?
Click to expand...
Click to collapse
Yes it works fine on realme UI I uninstalled the google bloatwares
How do you install magisk on realme ui? I thought twrp doesn't support android 10 yet
nickycarlo69 said:
How do you install magisk on realme ui? I thought twrp doesn't support android 10 yet
Click to expand...
Click to collapse
Im on a unlocked bootloader before I upgrade to android 10 i unlocked my bootloader as for the twrp its working fine im using this https://forum.xda-developers.com/realme-5-pro/development/recovery-twrp-3-3-x-realme-5-pro-realme-t4067113
Viper4android doesn't work after realme ui update.
Driver not installed and tried different methods without a result.
Any suggestions?
mido hamdy said:
Viper4android doesn't work after realme ui update.
Driver not installed and tried different methods without a result.
Any suggestions?
Click to expand...
Click to collapse
No Idea about that mate as I haven't used viper
have you tried using other audio mods im sure there are other's on magisk
killerhaha100 said:
Yes it works fine on realme UI I uninstalled the google bloatwares
Click to expand...
Click to collapse
What about realms bloatwares?
Madhuvrata said:
What about realms bloatwares?
Click to expand...
Click to collapse
Haven't touch the other realme software as I don't know what is needed might break some function

[Android 10] Buffer fix by nullby

Buffer Fix for Mi CC9 / Mi 9 Lite
This should help reduce lag in GCam
This release is made for Android 10 - unlike Android 9 based version by Wyroczen stock camera works!
Download:
Magisk module
Twrp flashable (try if magisk one doesn't work)
If this ever needs to be updated, message me on telegram @​nullby
Donate if you want: paypal.me/nullby
XDA:DevDB Information
[Android 10] Buffer fix by nullby, Tool/Utility for the Xiaomi Mi CC9 / Mi 9 Lite
Contributors
nullbytepl
Version Information
Status: Stable
Created 2020-03-23
Last Updated 2020-03-23
Does it work on 10 beta weekly from xiaomi.eu ? I tried flashing via twrp but no succes, lagg is still here
NeoDJW said:
Does it work on 10 beta weekly from xiaomi.eu ? I tried flashing via twrp but no succes, lagg is still here
Click to expand...
Click to collapse
It's a magisk module
Sent from my Mi 9 Lite using Tapatalk
NeoDJW said:
Does it work on 10 beta weekly from xiaomi.eu ? I tried flashing via twrp but no succes, lagg is still here
Click to expand...
Click to collapse
I heard mounting vendor before flashing makes it work.
Hello test it on stable 11.0.1.0 (cc9) and it crash my stock camera (gcam to), install it from magisk
Al765436 said:
It's a magisk module
Sent from my Mi 9 Lite using Tapatalk
Click to expand...
Click to collapse
Dont get me wrong, but are you blind ? Don't know how to read ? Read the first post dude.
NeoDJW said:
Dont get me wrong, but are you blind ? Don't know how to read ? Read the first post dude.
Click to expand...
Click to collapse
Ok right there's 2 of them,I didn't cop that,the magisk one works good for me
Sent from my Mi 9 Lite using Tapatalk
Thank you this finally fixed the laggy camera.
I guess the other buffer fix would not work with android 10.
BiteApple said:
Thank you this finally fixed the laggy camera.
I guess the other buffer fix would not work with android 10.
Click to expand...
Click to collapse
I think it's Rom dependent, not Android version dependent. Because I'm using the original one on LineageOS 17.1 and it works perfectly fine.
JBolho said:
I think it's Rom dependent, not Android version dependent. Because I'm using the original one on LineageOS 17.1 and it works perfectly fine.
Click to expand...
Click to collapse
The original version didn't work with miui camera on stock Android 10. This one does
nullbytepl said:
The original version didn't work with miui camera on stock Android 10. This one does
Click to expand...
Click to collapse
I'm not criticizing your work, it's good that someone found a way to do this for MIUI, I just said the problem is not Android 10, it's MIUI and it's camera version.
nullbytepl said:
The original version didn't work with miui camera on stock Android 10. This one does
Click to expand...
Click to collapse
hey. I'm using MIUIPRO 20.3.26 version, but buffer fix broke stock cam.
Is it possible to fix?
Thanks!
Hello everyone, I just updated to Android 10. (MIUI Global 11.0.1 Stable QFCEUXM)
Work the Bufferfix with this version and work the Stock Cam perfect? I want to flash it with TWRP.
Many thanks
Great work! It works perfectly on Android 10.
I read that even users of the Mi 9 SE are using it on their devices
Can we download GCAM from the market when we flash this?
Works for LOS 17.1, flashed via Magisk
Thanks friend!
Not working on latest MIUI11..0.3.0(QFCMIXM), using TWRP.
It's working on Mi 9 lite, Android 10 MIUI 12.1 (20,7.23). i needed to download Twrp flashable version, mount Vendro and flash it. After restart GCAM don't lag, and stock cam don't crash.
Installed with Magisk on MIUI 12.1 (Xiaomi.eu version) and it's working 100%, no crash on stock cam either.
JBolho said:
Installed with Magisk on MIUI 12.1 (Xiaomi.eu version) and it's working 100%, no crash on stock cam either.
Click to expand...
Click to collapse
Thank you brother.
Not working crash stock camera
Eu versiyon?

Question Any updated Poco X3 Pro kernels that support latest KernelSU and ZygiskforKSU?

Is there any up to date kernel that is ported to support Kernelsu and zygisk4ksu?
Any other cpu and memory optimizations would also be a plus.
Forgot to mention: Must also support MIUI 14, android 13 version.
immortalwon said:
Is there any up to date kernel that is ported to support Kernelsu and zygisk4ksu?
Any other cpu and memory optimizations would also be a plus.
Forgot to mention: Must also support MIUI 14, android 13 version.
Click to expand...
Click to collapse
No gravity
immortalwon said:
Is there any up to date kernel that is ported to support Kernelsu and zygisk4ksu?
Any other cpu and memory optimizations would also be a plus.
Forgot to mention: Must also support MIUI 14, android 13 version.
Click to expand...
Click to collapse
Use Magisk Alpha, better than KernelSU, and don't need to install custom kernels.
swer45 said:
Use Magisk Alpha, better than KernelSU, and don't need to install custom kernels.
Click to expand...
Click to collapse
Perhaps you are right, it's the TEE that google will use to enforce against us in the future. @swer45
joke19 said:
No gravity
Click to expand...
Click to collapse
Tried it, but modules were not working with it @joke19
immortalwon said:
Perhaps you are right, it's the TEE that google will use to enforce against us in the future. @swer45
Click to expand...
Click to collapse
What? TEE is just the part of the processor (TrustZone in ARM) where Trusty runs to verify the integrity of your device. KernelSU is just another root implementation (like Magisk).
I recommend you to stop using custom kernels. If you want a rooted device; use Magisk.
immortalwon said:
TEE
Click to expand...
Click to collapse
Trusty TEE | Android Open Source Project
source.android.com
joke19 said:
No gravity
Click to expand...
Click to collapse
Compiled using unstable and old Clang, I don't recommend it.
swer45 said:
What? TEE is just the part of the processor (TrustZone in ARM) where Trusty runs to verify the integrity of your device. KernelSU is just another root implementation (like Magisk).
I recommend you to stop using custom kernels. If you want a rooted device; use Magisk.
Click to expand...
Click to collapse
swer45 said:
Compiled using unstable and old Clang, I don't recommend it.
Click to expand...
Click to collapse
I meant to say that I was considering KSU because it would make it harder to detect root, but Google will use play integrity in the future so it's meaningless

Categories

Resources