[Magisk] NFC Fix for Kirin devices - Huawei P Smart Themes, Apps, and Mods

NFC doesn't work on most custom ROMs here. This Magisk module replaces files for NFC.
Should work on more Kirin devices. Let me know below. Tested on Huawei P Smart (Pie)
Download: https://github.com/misakstvanu/NFC-4-Kirin/releases/tag/v1.1
Source: https://github.com/misakstvanu/NFC-4-Kirin
Based on @ponces's work
Made possible by @Zackptg5's MMT Extended template

Thanks for your efforts!

Is this posdible in losq? Thanks for your effort.

First of all, thank you so much! Confirmed to work on Honor 9 (STF-L09) as well. This was a dealbreaker for me, almost switched back to stock.
There is another issue though: the NFC module works, but is limited compared to the stock OS. It throws errors when using larger messages, such as 4096 bit PGP key (see https://gitlab.com/LineageOS/issues/android/-/issues/576). Definitely worked on the stock OS.
But not a problem; the gitlab issue mentions the fix. I created a PR on your github repo as well, worked on my STF-L09 like a charm. As long as the PR is not merged, here is my repo for anyone suffering just like I did: https://github.com/bratekarate/NFC-4-Kirin/releases/tag/v1.1
Thought i'd share it here, in case someone else like me uses 4096 bit keys and got NFC issues with OpenKeychain.

witty_bricker said:
First of all, thank you so much! Confirmed to work on Honor 9 (STF-L09) as well. This was a dealbreaker for me, almost switched back to stock.
There is another issue though: the NFC module works, but is limited compared to the stock OS. It throws errors when using larger messages, such as 4096 bit PGP key (see https://gitlab.com/LineageOS/issues/android/-/issues/576). Definitely worked on the stock OS.
But not a problem; the gitlab issue mentions the fix. I created a PR on your github repo as well, worked on my STF-L09 like a charm. As long as the PR is not merged, here is my repo for anyone suffering just like I did: https://github.com/bratekarate/NFC-4-Kirin/releases/tag/v1.1
Thought i'd share it here, in case someone else like me uses 4096 bit keys and got NFC issues with OpenKeychain.
Click to expand...
Click to collapse
I'm glad it helped. I merged your fix, thank you for that.

Related

[Q] Porting AOSP to i9300

I have gotten so far in this. The device boots and operates quite normally, with three exceptions.
The camera fails to record. If it starts to record, ending the recording freezes the camera. Or, it just won't start at all.
Some graphical glitches on the lockscreen. Nothing major, or breaking, but weird (see below) but the glowpadview is missing a chunk and there's a strong line of dots towards the lock icon.
Animations are jerky.
These are the device trees I'm using
# Device Samsung i9300
https://github.com/UltimaAOSP/android_device_samsung_i9300
# smdk44121-common
https://github.com/UltimaAOSP/android_device_samsung_smdk4412-common
# Kernel source
https://github.com/UltimaAOSP/android_kernel_samsung_smdk4412
This is the AOSP tree I'm using, by broodplank1337
https://github.com/AOSP-S4-KK
The source tree is great. broodplank1337 did a great job, and it builds and runs wonderfully on the S4 i9505. I have nearly got this down but I'd appreciate any help or advice available!
@Kryten2k35 I was surprised to find no pure AOSP ROMs for SIII. I'll be getting one soon so wanted to have compiled 4.4.4 for it.
I'm surprised you get the problems you have however, as surely these aren't apparent in AOSPA, SlimKat, etc. which are based on AOSP also? Surely you must have had to add vendor/samsung stuff, maybe some hardware/ repos, etc. as missing proprietary blobs would explain the broken camera. I'd be glad to help out anyway. I was about to sync pure AOSP source but do you think this'll be too much of a challenge?
Hi,
I should've updated this thread. It turns out I was compiling with ofast CFLAGS, which was causing the graphical glitches and animation issues. The camera I haven't tested yet, but I suspect the same.
Kryten2k35 said:
Hi,
I should've updated this thread. It turns out I was compiling with ofast CFLAGS, which was causing the graphical glitches and animation issues. The camera I haven't tested yet, but I suspect the same.
Click to expand...
Click to collapse
Thanks a lot, I may as well try building my own AOSP if I know you've been successful then. Will those UltimaAOSP trees work fine for me or should I use CyanogenMods or probably better AOSPAs? I'd be grateful if you could point me towards the correct vendor tree if I'll need to use anything our of the ordinary, but I assume CMs will be fine?
Thanks and sorry for the questions but I have 0 experience with this device (don't even own it yet ) so there's many more sources, trees, and stuff than I'm used to (Desire Z only had 1 maintained device tree).
The UltimaROM trees should work fine when I update them slightly based on these changes.
Everything is mostly AOSP, with the obvious exception of the device tree and kernel tree, both of which are Cyanogen, oh, and Camera, which is also Cyanogen. I had to make a few small changes to AOSP stuff to enable it to work with the S3, as well. nothing major, though.
EDIT:
My UltimaAOSP aim is to remain as close to AOSP as possible. Any modifications are 100% optional and disabled on a new install, so a user can have a Nexus-like experience if they wish.
You are 100% welcome to download UltimaAOSP's source and help in any way you see fit. I appreciate any help I can get.
Kryten2k35 said:
The UltimaROM trees should work fine when I update them slightly based on these changes.
Everything is mostly AOSP, with the obvious exception of the device tree and kernel tree, both of which are Cyanogen, oh, and Camera, which is also Cyanogen. I had to make a few small changes to AOSP stuff to enable it to work with the S3, as well. nothing major, though.
EDIT:
My UltimaAOSP aim is to remain as close to AOSP as possible. Any modifications are 100% optional and disabled on a new install, so a user can have a Nexus-like experience if they wish.
You are 100% welcome to download UltimaAOSP's source and help in any way you see fit. I appreciate any help I can get.
Click to expand...
Click to collapse
@Kryten2k35 Thanks, although I'd love to help I'm currently working on a few of my own projetcs with other members already. Is there no need for the android_hardware_samsung repo or SamsungServiceMode any more then as I can't find them in your sources? I've synced AOSP so I'm gonna have a go with your tree right now to see if it works, is it all updated? Thanks alot
EDIT: Found those repos in your default.xml, I assume they're needed then.
EDIT2: Will I need your vendor repo too? At the moment I assume I'll just have to run lunch full_i9300-userdebug as nothing else appears to work
@HTCDreamOn
Yeah you'll need my vendor repo and my Samsung propitiatory blobs repo, I think.
I've picked back up where I left off this last few days. All the graphical glitches were fixed. But the camera glitch remains: details are here: http://forum.xda-developers.com/showpost.php?p=54234546&postcount=585
I have one choice: ArchiKernel. No other kernel works with camera recording. Which is insane, since the CyanogenMod kernel should work fine, but does not.

[8.1] [Magisk Module] Multi-Touch Fix for 8.1 Devices

Hello guys and girls,
As some of you already know Android 8.1 suffers from a severe Multi-Touch Issue. This issues makes the smartphone randomly jumping between the two touching points on the screen when touching with two or more fingers.
The issue is known to google since the preview of 8.1. It isn´t only affecting pixel but most probably all devices running 8.1. The issue is also present on P.
An issue got created here: https://issuetracker.google.com/issues/70344455
There is a fix since mid march in review on google gerrit. But that didn´t make it into the april release, obviously.
To visualize the issue refer to the following videos:
https://youtu.be/wgYN5GwIgIc
https://youtu.be/2Vv584tvVyg
https://www.youtube.com/watch?v=4dnIk_5qdK8&feature=youtu.be
This is especially bad for gamers. With the recent release of PUBG this issues seems dramatic to some, less to others.
I´m no gamer but I noticed the issue on the google foto app.
This issue has nothing to do with the corners badly reacting to touches, or touch sensitivity etc.
So but now to the fix. It seems the issues is only related to resampling but not to touching specific points of the screen ( not related to crossing x and y axis).
That also explains why the issue wasn´t happening when using the touch tracking tool in dev settings but on various multi touch test apps.
The fix is on google gerrit currently under review here:
https://android-review.googlesource.com/c/platform/frameworks/native/+/640605
https://android-review.googlesource.com/c/platform/frameworks/native/+/640606
Last week I compiled myself a DU build with the changes included and I couldn´t trigger the issue at all. I found no other side effects caused by the two patches.
For now I decided to provide a Magisk Module which replaces the changed libs that fixes the issue.
I compiled the libs while doing my april build of DU. The magisk module can be found on the link a little bit down.
The download is here:
https://www.androidfilehost.com/?fid=890129502657595755
A few disclaimers here.
1. That fix should in theory work for most 8.1 devices, including the likes of pixel 1st gen, pixel 2nd gen, one plus, xiaomi which suffer from this severe issue.
2. I didn´t fix this, I just compiled the libs with the fix found on google gerrit.
3. Rom devs you are very welcome to include this fix. I found no ill consequences as of yet but I can understand google taking it slow and reviewing it longer. Maybe they will find a better fix, but as of now this is the best thing we have.
Donations:
Donations are not mandatory but very welcome.
If you like my work: http://paypal.me/freak07
I've got Joe's DU right now, will this affect me?
kingbri said:
I've got Joe's DU right now, will this affect me?
Click to expand...
Click to collapse
Check his git to see if he pulled the fix in or not
Updated trees today I'll push tomm
Just installed on latest lineage .. it's perfect!! Thank you so much
Any word on a fix for the sound bug on 8.1? After a couple of hours the phone stops playing ringtones and notifications (while other sounds work ala YouTube Spotify). A reboot fixes it temporarily.

[UNOFFICIAL][MAGISK MODULE] Active Edge Mod for Edge Sense Plus - continuation for patch levels 2021-01-05 and later

EDIT: It's too annoying to maintain and edit 6 separate threads. The installer works across all devices, so please visit this post for the latest version: https://forum.xda-developers.com/t/...or-patch-levels-2021-01-05-and-later.4226343/
Thanks!
NOTE: Download link in the OP will install mod for the current patch level down to January 2021. It will detect your current patch level and install the correct file. For earlier system builds from 2020 and prior, please use the official discontinued module on the Magisk Manager repo. I did not clone the entire Active Edge Mod repository; my unofficial repository only hosts January 2021 and later builds.
Changes:
I know, I know... I said I was done with releasing my Unofficial Active Edge Mod installer, yet here's another month's update. I might keep doing it for those that update immediately and want it a bit sooner, so long as it's fortunate enough to happen on a day when I'm able to do it relatively quickly. Since I'm building these anyway and sending them over to the dev, for now, to upload to the official Magisk repo, for now I don't mind also updating it here a bit sooner. Anyway, more on this below and some of the headache involved moving forward...
04-05-2021: Soooo... the script I wrote to churn these out as quickly as possible as Google releases the updates, relied on system image dumps on GitRip... unfortunately the domain was seized by the FBI (lol) and so it looks like the old dumper is no longer updating his Android dumps repo on GitRip. Fortunately, mikalovtch pointed me over to a new source that hosts such system dumps, and I was able to get these done relatively quickly afterwards. OP is updated with the 04-05-2021 installer now!
03-02-2021: Meant to post an update a week or two ago. Noticed the magisk module on the official Magisk repo now says [RE-CONTINUED], so there really isn't much need for me to continue updating this anymore! As a final gift, I ran my batch builder script and built the modded apk's for all variants for the 2021-03-05 patch level, and download link for the module installer is in the OP.
02-02-2021: February 2021 mod is now uploaded. Updated installer is in the link in the OP.
02-01-2021: Modified and uploaded modded SystemUIGoogle.apk files for 3 / 3 XL / 3a / 3a XL to GitHub repository. Updated Magisk installer slightly to accommodate this, and removed a few unnecessary lines. Won't make any difference if you already installed the first release.
Thanks for doing this! I miss my squeeze-to-turn-on-flashlight feature, and I look forward to hopefully getting the module for the March update. If you get to the point where you can't make these for the Pixel 3 anymore, please let me know, and I'd be interested in taking over, if possible.
CSX321 said:
Thanks for doing this! I miss my squeeze-to-turn-on-flashlight feature, and I look forward to hopefully getting the module for the March update. If you get to the point where you can't make these for the Pixel 3 anymore, please let me know, and I'd be interested in taking over, if possible.
Click to expand...
Click to collapse
Actually, the official module has been re-continued so there really isn't much need for me to continue making these. The last month has been crazy busy for me and my family so I forgot to post an update about that. I also contacted Mikhail of team Viper (the one who took over the project) and shared my batch script I wrote that basically automates the process to create the modified files for multiple devices at once. He responded, but I haven't gotten back to him about that either, whoops. Anyway, I'm running my script now so I should have the updated module up soon, even though the official will probably be updated soon as well! I should also get back in touch with Mikhail. =)
Ah, I wasn't paying close attention and assumed you were the person doing the re-continued one. Anyway, looking forward to getting my squeeze flashlight back. It's funny how much I miss that one little thing.
CSX321 said:
Ah, I wasn't paying close attention and assumed you were the person doing the re-continued one. Anyway, looking forward to getting my squeeze flashlight back. It's funny how much I miss that one little thing.
Click to expand...
Click to collapse
Lol, I'm flattered. =)
Also, that is literally the one option I can't live without anymore, hahaha. My wife as well! Luckily, the Xposed module still works for short squeeze, and after moving from HTC to Pixel, I've been using short squeeze for flashlight (instead of long squeeze, and short for camera functions). But I still like to be able to map all the other functions as well of course
Btw, OP is updated with the updated module and repo with the new build's modded APK's. There was a small hiccup if you tried installing it in the first 15 minutes or so where I forgot to commit the files to the Github repo, but it should be fine now.
Working perfectly by the way!

[EOL]LineageOS 18.1 19.02.2021

Code:
/*
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* Please do some research if you have any concerns about features included in the products you find here before flashing it!
* YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
* Your warranty will be void if you tamper with any part of your device / software.
* Same statement for XDA.
*/
What's working:
Boots
RIL (Calls, SMS, Data)
WiFi
Bluetooth
Audio
Video Playback
Sensors
Flashlight
GPS
Notification Slider
Off screen gestures
Camera
Known issues:
None
Bug Reporting:
Do not report any bugs here except for features under testing.
Features:-
-4k video recording
-40%-50% louder mic volume. (under testing)
Q Timelapse/Slow motion recording not working
A Use OOS stock camera.
Downloads:
LineageOS 18.1
Gapps
Recovery - TWRP 3.2.3 14.02.2019
Special Thanks
@lineageos
XDA:DevDB Information
LineageOS 18.1, ROM for the OnePlus X
Contributors
psychem
Source Code: https://github.com/YumeMichi/device_oneplus_onyx
https://github.com/YumeMichi/kernel_oneplus_onyx
https://github.com/YumeMichi/proprietory_vendor_oneplus
ROM OS Version: Android 11
ROM Kernel: Linux 3.4.x
Version Information
Status: Stable
Stable Release Date: 2021-02-19
Awesome..R on Onyx!
btw I'm using latest core nikgapps, contact sync on account not showing, pls advice thx in advance, g maps also keep stopping
Surefive said:
Awesome..R on Onyx!
btw I'm using latest core nikgapps, contact sync on account not showing, pls advice thx in advance, g maps also keep stopping
Click to expand...
Click to collapse
Opengapps 11 beta pico

			
				
mponyx said:
@psychem:
First of all, thank you very much for your work and porting Android 11 to our beloved Onyx I've used your Android 10 ROM before, which went absolutely great. Now I've switched to your new one. Runs absolutely stable, the only thing that is (still) missing is the option to swap the lower hardware buttons, or Android Auto does not want to connect to my Mazda ... That worked great with the Android 10 ROM. Maybe you have the possibility to add these two things with a future update? Greetings, mponyx
Click to expand...
Click to collapse
I dirty flashed over 17.1 , don't have these issues, buttons are as I like them to be. Try dirty flashing.
Great work, @psychem !
Truly appreciate your work.
Thank you for a good ROM.
I have found a bug, if I run the Screen Cast, android is crashing.
Liolyk L said:
Thank you for a good ROM.
I have found a bug, if I run the Screen Cast, android is crashing.
Click to expand...
Click to collapse
works fine
Hi, one bug I found, sometimes phone restart itself, and it had problem connect do SD card, i try different card, but problem still exist. I use sd card like expanded storage, for apps and tec, and after restart it have long loading card, and never put back icons on homescreen...how to fix it pls? thank you
Thank you for your work it's great. How to change saving photos to SD card?
mponyx said:
@psychem:
First of all, thank you very much for your work and porting Android 11 to our beloved Onyx I've used your Android 10 ROM before, which went absolutely great. Now I've switched to your new one. Runs absolutely stable, the only thing that is (still) missing is the option to swap the lower hardware buttons, or Android Auto does not want to connect to my Mazda ... That worked great with the Android 10 ROM. Maybe you have the possibility to add these two things with a future update? Greetings, mponyx
Click to expand...
Click to collapse
You could use Button Mapper pro for the time being, it can swap the hardware buttons.
I'm missing the option to force close apps in developer settings? Or is that an android 11 thing?
Oh nice !
Thank you to maintain our sweet Oneplus X.
Is it possible to have some screenshots of the rom or maybe a video ?
Thanks for keeping the phone alive. I've installed the image a few days ago and it generally seems to work fine so far. There are a couple of minor issues - some of them mentioned already (e.g. can't seem to find a way to swap the hardware buttons). Topic for another time, they don't bother me much.
However, a more major problem is perhaps related to the tweaks to microphone volume: it appears too loud, and it also sounds like noise cancellation is disabled: all surrounding noise is making it to the person I'm talking to. Any hints on how to enable this?
Hello ; thanks for this good work !
Like tbodor, i experience very poor microphone quality.
Hard to be understood on the other side.
Regards
rahan56 said:
Hello ; thanks for this good work !
Like tbodor, i experience very poor microphone quality.
Hard to be understood on the other side.
Regards
Click to expand...
Click to collapse
I have since rolled back the volume changes and no one is complaining about code quality anymore. To be fair I think they said it's not quite as good as it was with my previous version (14.1), but definitely usable.
I suspect noise suppression is calibrated for original volumes and changing them breaks that calibration.. but I don't really understand how audio works and don't really have time to learn.
Thanks for you update.
Can you describe how you reverted the volume changes, please ?
It is an edit to do on /system/vendor/etc/mixer_paths.xml ?
I saw threads on this, replacing speaker-mic with another reference (dmic1 ?) :
<path name="voice-speaker-mic">
<path name="speaker-mic" />
</path>
speaker-mic has volumes at 108 (DEC3, DEC4) ; i honestly know nothing about all of that.
i changed /system/vendor/audio/audio_platform_info.xml from
<device name="SND_DEVICE_IN_SPEAKER_MIC" acdb_id="11" />
to
<device name="SND_DEVICE_IN_SPEAKER_MIC" acdb_id="42" />
and apparently, sound is much better in speaker mode.
cf https://github.com/YumeMichi/device...e3657ddfcbcafe39d12e3f0397836d6400bdb0c24cc80
Hi,
I have just installed and I don't know how to exchange the back button and the recent apps button.
Is there the possibility?
rahan56 said:
Thanks for you update.
Can you describe how you reverted the volume changes, please ?
It is an edit to do on /system/vendor/etc/mixer_paths.xml ?
I saw threads on this, replacing speaker-mic with another reference (dmic1 ?) :
<path name="voice-speaker-mic">
<path name="speaker-mic" />
</path>
speaker-mic has volumes at 108 (DEC3, DEC4) ; i honestly know nothing about all of that.
Click to expand...
Click to collapse
Hi.. I actually uploaded the mixer_paths.xml from my backup. But that is effectively the same as the one here: https://raw.githubusercontent.com/YumeMichi/device_oneplus_onyx/lineage-18.1/audio/mixer_paths.xml, so you can use that. I didn't rebuild the image, just changed it directly on the phone (adb in root mode, remount / as read write, then adb push to /system/vendor/etc/mixer_paths.xml, reboot - not sure if it's needed, but I did just in case).
If you extract the one from the image linked in the original post and compare to the one from github you will see the volume differences. Reverting to the old one seems to bring the volumes back into the range expected by the calibration.
As for the acdb, I think the DMIC one already gets selected correctly, so not sure what your change does there and why it ends up being better. I've looked at my logs and I can see that at the start of a voice call, I seem to get the correct acdb - one with dual mic support. I also don't know much about this, I'd afraid. I am only guessing from a few hours' worth of research.
lovechii said:
Hi,
I have just installed and I don't know how to exchange the back button and the recent apps button.
Is there the possibility?
Click to expand...
Click to collapse
I'd also like to know; I am used to the back button on the left. It's possible to swap them if you use on screen buttons, but for hardware buttons - no idea. I am slowly getting used to the 'wrong' layout, it's a minor annoyance. But if someone knows how to swap them, that would be great.

Question Front camera not working on video chats?

Hey all, I have been unable to use the front camera in any video chat app (Viber, messenger, duo) since I got the phone a couple months ago.
The front camera turns itself off during the call and you have to manually turn it back on continuously.
If you search the OnePlus Nord 2 forums you will find many references to this issue.
I have also submitted a support ticket and provided all the debugging information that was requested from me, but the problem just remains there without any solution for 5 months (from initial user references)
Does anybody else face the same issue or have any ideas?
No problem here , front facing camera calls (teams, whatsapp, telegram, etc...) works correctly even for long time periods
Pouic said:
No problem here , front facing camera calls (teams, whatsapp, telegram, etc...) works correctly even for long time periods
Click to expand...
Click to collapse
Hi! Could you share some info regarding model number and build version?
Same thing here on EU vers. A15 , front camera functionality is flawless
I also have the version DN2103_11_A.15 but I am heavily experiencing the issue.
Have you tried for testing a 5 min call with Duo?
More people also report it in the forums:
eg:
OnePlus Community
Introducing our new OnePlus Community experience, with a completely revamped structure, built from the ground-up.
forums.oneplus.com
OnePlus Community
Introducing our new OnePlus Community experience, with a completely revamped structure, built from the ground-up.
forums.oneplus.com
I am surprised that nobdy here has this front-camera problem, while it is the most frequently reported problems in the OnePlus forums...
After a chat with support, it also seems that they admitted that it is a known hardware issue and device needs repair
I have the same issue. When using messenger camera it's stop working all the time. It's really annoying. Phone it's new. Do You think I can return device at is factory issue ?
zawiszak85 said:
I have the same issue. When using messenger camera it's stop working all the time. It's really annoying. Phone it's new. Do You think I can return device at is factory issue ?
Click to expand...
Click to collapse
Hey, sorry for the late reply but just saw the message.
I eventually had mine returned and motherboard replaced, which solved the issue.
However, I can't tell you whether in recent OS updates it was also resolved somehow from software...

Categories

Resources