More importantly, I went to Google’s git and saw that the fingerprint scanner option is activated by default. But I was wrong, because the General Mobile 6 device has a fingerprint scanner on the HOME button. So, I thought maybe the port device did not have a fingerprint hardware. But guess what? No fingerprint option still appeared under “Security” option. In the end, I had about 95% of my stock libs and bins in port ROM. I copied them 20 at a time except the core libraries and binaries like libandroid*.so, libart*.so, libmedia*.so, libinput*.so, app_process (app_process64), dalvikm (dalvikvm64) etc. During the weekend that followed, I decided to take this problem seriously – more aggressive this time! I copied all my stock bins and libs (including those in system/vendor) to the port ROM using Aroma File Manager 1.80 (it’s the only version that has touchscreen support in most MTK devices). That was it, I had dropped it for two days. And I was like, “what the hell? where the hell do you come from?”. I went to Github and did the same with the same results. I put libteec.so in the search bar but nothing came up. But libteec.so wouldn’t allow the phone to boot! I went to Google. Copying the appropriate file to this location solved that issue. For the second lib, I found out that the permission for the Consumer IR feature was missing from system/etc/permissions. In the end, libteec.so and appeared to be the culprits. The second time, I didn’t copy all the extra files at once. Something else is wrong” was what I said in my head. Extra files are compatible with my phone’s hardware. I forgot to mention that the first time I did that, the ROM went into a bootloop! “It doesn’t make sense. So, I decided to put extra files from stock. I copied the fingerprint files (at least those I believed to be) from stock to port, but fingerprint option was still missing under “Security” option.
NOUGAT FINGERPRINT HARDWARE ANDROID
To fix the fingerprint, I started with the already known process (that of Android Marshmallow ROMs). The new way of storing security keys is evil The ROM became stable very quickly except fingerprint scanner. It was hard to boot the ROM, but I succeeded.
NOUGAT FINGERPRINT HARDWARE PATCH
I followed the usual steps (flash the rom, flash the patch if any). You get more chances in AOSP roms than in ROMs with custom skins. It was Android One crossported from General Mobile 6. I started with a pure Android custom ROM. This fingerprint bug was the one that kept me away from Nougat ROMs for so long! One day, I decided to face it and fight it. Once I’m committed to something, I hardly stop until good results have been obtained. But you can read it to see how I achieved it! Note: You do not have to read the literature part, you can just jump to the fixing part (For the lazy people). But I figured it out! And this is my process.
But in Nougat, things have completely changed and the way the fingerprint works in Nougat is no longer the same as it was in Android 6.0 marshmallow. All I had to do was to copy fingerprint files from my stock rom to port one (fingerprintd, libfprint-圆4.so, ). That’s pretty much what happened on the DOOGEE Y6 smartphone! In fact, in Android Marshmallow, it was easier for me to fix fingerprint scanner in custom ROMs.
The SELinux changes in Android 7.0 Nougat were important and as such, the way the fingerprint functioned in previous versions had changed on some devices. Fingerprint scanner functionality was introduced in Android 5.0 lollipop and has since then become a usual feature we find on many devices nowadays. Thanks to the solid iCloud service by Apple Inc., iPhones are ways more secure than any Android device on the market even those by BlackBerry, the manufacturer that is known for its reputation when it comes to seriousness and security in mobile industry.
I insist (and will always insist) on the fact that Android is not a SO secure OS no matter what manufacturers (including Google itself) try to sell to the end-users. One of the most important things to notice in every Android release (especially 5.x and onward) is the security. My long, boring and frustrating experience with nougat fingerprint