yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] joe2k01:
Stock Camera HAL for custom ROMs​

[IMG="Xiaomi Mi Note 2"]https://www.androidcentral.com/sites/androidcentral.com/files/styles/xlarge_wm_brw/public/article_images/2017/04/xiaomi-mi-note-2-hero.jpg[/IMG]

If you don't like how custom camera performs in custom ROMs, you may want to try this. The flashable zip that you'll download will "install" in your preferred custom ROM the stock ROM Camera HAL.

What is this HAL?

Android's camera Hardware Abstraction Layer (HAL) connects the higher level camera framework APIs in android.hardware to your underlying camera driver and hardware. The camera subsystem includes implementations for camera pipeline components while the camera HAL provides interfaces for use in implementing your version of these components. (from source.android.com)

How to install:

Flash Magisk

From Magisk manager install the "init.d injector" module and reboot

Boot in recovery and flash Stock-Camera-HAL.zip

Reboot

Done!

Warning!

This zip will put your selinux in permissive mode.

Tested on Official LineageOS
​

Download:

v1.0: GitHub

XDA:DevDB Information

Stock Camera HAL for custom ROMs, Tool/Utility for the Xiaomi Mi Note 2

Contributors

joe2k01

Source Code: https://github.com/joe2k01/xiaomi-msm8996-stock-O-camera-HAL

Version Information

Status: Testing

Created 2018-04-24

Last Updated 2018-04-24
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] nikerossxp:
Doesn't work in AEX 8.1 (21.04.2018): WhatsApp still makes a cropped photo, telegram works good without mod. Original youtube app crashed with magisk module.
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] cekekli:
How can i uninstall this mode?
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] joe2k01:
Flash your ROM back
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] troufiniou:
Will it work with MIUI ?
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] alexmanu1:
It's useless in MIUI, it's only for custom roms in order to get close to stock camera performance :)
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] MiguelferraZ:
Thanks! Just flashed this on official Lineage 15.1 and the difference is pretty big! I did two shots of the same location (before and after flashing), and then cropped the photos at the maximum zoom in gallery. The comparison is in attachment.

EDIT: I was using Open Camera app (with camera2api enabled)
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] aspiens:
Installed on the ROM Pixel Expirience . I did not notice any difference.
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] ldmondini:
It doesn't work on your Xenon HD rom, so I move to your lineage release and works with Lineage camera. Thanks
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] joe2k01:
XenonHD needs to be updated
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] nikerossxp:
ok, it works on AEX 8.1, but youtube app goes crashing
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] alexmanu1:
I had no issue with the yt app while i was using the mod...

Maybe because i was using a modded one.

Youtube Vanced was it's name.
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] j1505243:
To clear things up: the HAL won't simply "provide better quality" because it's from Xiaomi. They did close to none good things with the default Qualcomm camera stack. But what you'll really get is the access to HAL1, meaning the possibility to use typical Qualcomm/Xiaomi features. Long exposure, high framerates, all with default libs. Just MIUI Camera or Snapdragon Camera needed. BTW, the sample image posted here was sadly sharpened and purged from colors xD So that's rather an example of something sad.
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] MiguelferraZ:
I agree that it lost a bit of color, but the details are improved
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] j1505243:
Just visually, not technically :> By appearing "better" after zooming in, you get aliasing and halos as the side effect. If it were a small text, you'd notice that actually nothing changed about its readability. Sharpening mask is mathematically wrong and the only possibly useful algorithms are the ones which try to recalculate lost detail, for example something like Raisr.
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] bialyikar:
The camera does not work on the Mi Note 2.

Mi Note 2 6/128 - Miui 9.6 (Xiaomi.eu 8.4.12) + Magisk

Wysłane z mojego Mi Note 2 przy użyciu Tapatalka
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] joe2k01:
Since when miui turned from stock ROM to custom ROM? You're not supposed to use this on stock ROM. Read before flashing
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] Xiaby:
this mod is not working with lineage os official i get crash in both stock and gcam.. someone has the same issue?
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] mmugatti:
no problem with lineage official.

Enviado desde mi MI Note 2 mediante Tapatalk
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] Xiaby:
Did you install the mod with the lineage os stock camera installed??
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] mmugatti:
yes.

flash magisk ang the init.d module.

flash mod zip

have you install the last firmware when you have install lineage?

Enviado desde mi MI Note 2 mediante Tapatalk
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] Xiaby:
I skipped the magisk step :/ do I have to install the universal init.d injector for enabling it in official lineage os?
[Xiaomi Mi Note 2  ROMs, Kernels, Recoveries, & Oth] mmugatti:
you have all in the first post.

Enviado desde mi MI Note 2 mediante Tapatalk
[General Questions and Answers] 雨宮時恵:
I downloaded battlefield 4 commander v2.1.1 it works at start but when I get in the

menu it only show up the title like this : thank you for use battlefield 4 commander

…………

and no other UI button can touch .

I think is the version problem so I search so many website but even I found it the download link always dead can somebody help me uploading the 2.2.0 version battlefield 4 commander obb file please [emoji31]

Uploading the programme from MEMEFRAME Device
[Xiaomi Mi 5 Questions & Answers] sahil19:
i have used lineageos 14.1 on my mi 5 before, but it used to stuck sometimes and was not smooth and it used to lag when i try to record videos so i switched back to miui. i am looking for the best rom for mi 5 which dosent lag or hang and the camera, video recording works smoothly.i dont change roms frequently so i want a rom which i can install and use it for a long time without any problems.can anyone please suggest me a rom?

Thanks
[Xiaomi Mi 5 Questions & Answers] hastopramudw:
I think the best rom is viperOS
[Xiaomi Mi 5 Questions & Answers] 21071992:
Which build of LOS 14.1 you use? I use the latest build and everything is smooth, much smoother than MIUI.
[Xiaomi Mi 5 Questions & Answers] Tsuzan:
Masik is awesome loving it i have tried alll the oreo and nougout rom but nothing comes close to that rom only cons are some of xposed modules doesnt work but other than that magisk is a total winner
[Xiaomi Mi 5 Questions & Answers] XxFatiHxX:
I think you must install AOSP based ROMs. I am using ViperOS 3.1.1 and it is running smooth.
[Xiaomi Mi 5 Questions & Answers] spcx:
I recommend you to try Omni rom or dirty unicorns rom with gcamera & ruthless pixel launcher for an outstanding experience on Mi5. Both are fast,smooth & battery friendly.

Lineage is also very stable but DU 8.1 has many useful customizations built in.
[General Questions and Answers] kumardeshpande2005:
please port MIUI rom for infocus turbo 5.

infocus turbo 5 phones Ui is not good. I Love MIUI so please provide MiUi Custom ROM for infocus turbo 5.
[General Questions and Answers] ẞáçh:
How to root bro
[Samsung Galaxy S7 Active Questions & Answers] Jo Gal:
Hi all I'm super new to all this and I have never posted a thread before so hope I do it correctly and abide by the rules!

My problem is I live in Vanuatu, and use the Digicel network. They have 2 , 3 and 4 g phone services. Had an old s4 active that couldn't be killed. Needed an up grade so got s6 active - to find it wouldnt connect to 3g . (4g data and sms only here and 2g very poor reception)

As frequency checker website shows (for 3g or UMTS) the S4 active would work, s6 active for some reason would not, so I swapped for the s7 which should work according to all accounts. This thread won't let me post links but you can check the two models Samsung galaxy s7 ACTIVE SM-G891A vs Samsung galaxy s4 active GT-i9295 on Digicell VANUATU

I have even cross referenced the phones bands with digicell frequencies and found it should pick up the umts 3G at B8 900Mhz

The S7 active phone is a Samsung phone, but AT&T have their logos all over it . I have noticed some strange things they have done with there skin over touchwiz. Like the data toggle switch is not available and also no option in the connection settings to enable disable certain bands or "G's"( gsm hsdpa or LTE etc. I've even tried using a great little third party app called network switch to try and force the 3 g on UMTS.. but it just shows up as no service.

Would really appreciate the help as bought the phone off eBay. Com. Au and if I can't fix may need to return .

Thanks so much !

P.s would rooting help ?? I like touchwiz, it does what I need, but if a rom may get around the at&t network locking or something?? Thanks again
[Samsung Galaxy S7 Active Questions & Answers] Bytecrow:
Did you ever find a solution for this?:)
[Android Auto General] Hoerli:
I downloaded the App from Google Play and try to start it, but every time i got the message, that the Google Play-Service is no working.

I reinstall my phone a view day ago with the stock Samsung Rom without root.

I use the normal Android 8.0.0 for the Note 8 (Duos).

This is the message (in german):

[IMG="Message from Android Auto"]https://lh3.googleusercontent.com/-rV5C1PPATmA/Wt4kr4olQ4I/AAAAAAAAANI/mCnPqP3INDYldL_5jdpMhOR0uiaYmV4wACLcBGAs/s1600/photo_2018-04-23_20-23-27.jpg[/IMG]

I clear the cache of the play store, play-services and reinstall a view times Android Auto but every time the same.

I install the App on my old Samsung Galaxy Note 3 with Custome Rom and Root -> Works perfect!
[Android Auto General] Hoerli:
Got it fixed.

Had to revoke and reassign all permissions.

Now it works. ¯\_(ツ)_/¯
[Galaxy Note 3 Q&A, Help & Troubleshooting] ReaperSL:
Whlist trying to put stock firmware back on my Note 3 SM-N9005 the USB became disconnected and I am now stuck with this issue, I can still get Odin to recognise phone and boot into download mode but cannot flash the stock firmware as I think I have corrupted something, not sure how to proceed, below is my current read outs from Odin.

<ID:0/004> Odin v.3 engine (ID:4)..

<ID:0/004> File analysis..

<ID:0/004> SetupConnection..

<ID:0/004> Initialzation..

<ID:0/004> Get PIT for mapping..

<ID:0/004> Firmware update start..

<ID:0/004> aboot.mbn

<ID:0/004> NAND Write Start!!

<ID:0/004> Complete(Write) operation failed.

<OSM> All threads completed. (succeed 0 / failed 1)
[Galaxy Note 3 Q&A, Help & Troubleshooting] JJEgan:
Kies Recovery ??
[Galaxy Note 3 Q&A, Help & Troubleshooting] ReaperSL:
Kies recognises the phone but gets stuck in an endless connecting message or quits after a few minutes saying coudln't connect to phone.
[Galaxy Note 3 Q&A, Help & Troubleshooting] audit13:
Are you flashing the latest stock ROM from sammobile.com?

Tried using different USB cables or USB ports?
[Galaxy Note 3 Q&A, Help & Troubleshooting] ReaperSL:
Hi,

Yes, I am using the latest stock ROM from sammobile, and I have tried all USB ports and 3 wires, it's always failing at the NAND write start stage in Odin on all ports and wires. Thanks for the advice so far.
[Galaxy Note 3 Q&A, Help & Troubleshooting] JJEgan:
Try another firmware .

Search Nand Write fail .
[Galaxy Note 3 Q&A, Help & Troubleshooting] audit13:
The aboot.mbn file is the bootloader.

You confirmed the phone model# in download mode?

Aboot.mbn can fail to flash because the bootloader is not for the phone, the bootloader in the phone is newer than the bootloader being flashed, and/or you need to use the original Samsung usb cable.
[Samsung Galaxy J7 Questions & Answers] bikelover1352:
Can any developer port official J7 Duo Rom 8.0 To J710FN as it has same cpu and can also port camera.:D
[Android Q&A, Help & Troubleshooting] da.trute:
Hi, all my devices have stopped syncing google bookmarks and no amount of uninstalling an reinstalling seems to resolve which has in the past, as something changed in google/dolphin?

As per usual Dolphin arent replying to any support emails and are ignoring comments and messages on facebook.

This is currently the only browser I can find that can sync google bookmarks apart from Chrome which is total sh!te.

anyone else having the same issue or can anyone else recommend a browser that can SYNC google bookmarks (not just import them)
[Mogul, XV6800 ROM Development] lextracks:
I'm new to the forum and this is my first post so be easy on me. I've been reading as many threads as I can to enable/disable my Rev-A on my XV6800. I'm running dcd 3.0.1 and radio 3.35.04. As far as I got was dial ##778, click edit, enter unlock code (what I've got is 000000), press view info, press Data Parameters and Rev-A should be under Packet Dial String but it's not there. Can anyone help a bro out?!
[Mogul, XV6800 ROM Development] madman34:
REV-A does work

I work in the switch and logged into the network side and see REV-A session on mine and speed tests bear it out, but the phone has no REV-A indicator. Trust me, if you have REV-A coverage where you are it is working.
[Mogul, XV6800 ROM Development] lextracks:
Thanks. I'm in Oakland, CA and I've confirmed it's a Rev-A zone. I just wanted to make sure I'm getting speeds like everyone else. I understand it has nothing to do with how fast ie is though? Cuz my ie isn't as fluid (freezes for seconds) as my stock Verizon rom.
[Galaxy Note II Q&A, Help & Troubleshooting] huyhung040106:
i down from china site and reupload on vietnam site

https://www.fshare.vn/file/5MH8GC1V2B6O
[Galaxy Note II Q&A, Help & Troubleshooting] SakthivelNadar:
can you please mirror it to google drive please ?:)
[Galaxy Note II Q&A, Help & Troubleshooting] xiehaibo:
I will upload this rom to MEGA, this is what I can do:o

https://mega.nz/#!3uRC3SJL!0H0MxwkcanRBlzxjI7sl29Ml9Knr8D4SHuwctzHz5Ho
[Galaxy Note II Q&A, Help & Troubleshooting] SakthivelNadar:
thanks dev !

thanks dev, i have been struggling to download this rom for long .

by the way can i port this rom to galaxy s3 gt-i9300?
[Galaxy Note II Q&A, Help & Troubleshooting] GameBuster13:
is it really android 6.0 or just a build.prop modification?
[Galaxy Note II Q&A, Help & Troubleshooting] SakthivelNadar:
is there any screenshots of this rom? if anyone has tested this rom ?

i am asking this question because i currently do not have note 2 for testing this rom.
[Galaxy Note II Q&A, Help & Troubleshooting] huyhung040106:
it is real miui 9 on android 6

screenshot same any miui 9 of xuaomi

more rom there http://m.romzj.com/list/samsung_galaxynote2_time.htm
[Galaxy Note II Q&A, Help & Troubleshooting] unknown:
very good
[Galaxy Note II Q&A, Help & Troubleshooting] talha_:
any bugs ? battery timings ?
[Galaxy Note II Q&A, Help & Troubleshooting] Sam7100:
Bugs?
[Galaxy Note II Q&A, Help & Troubleshooting] mo romeh:
any solution for battery drain or slow charging ?????
[Galaxy Note II Q&A, Help & Troubleshooting] Azeemkhan41:
front cam error
[Galaxy Note II Q&A, Help & Troubleshooting] Ian Doge:
Port to N7105 Please
[Sony Xperia XZ2 Premium Questions & Answers] temporarium:
How hard/easy is it to unlock the bootloader on Xperia devices?

Is there a developer community with custom ROMs such as ResurrectionRemix that might develop for this phone?
[Sony Xperia XZ2 Premium Questions & Answers] FartyParty:
It takes a few mins. You go to this site, select phone in the list and then enter IMEI, Email in which you get an email with the unlock code and then you simply enter that code into ADB and done.

Can't answer your second question as that depends on whether or not any devs will get this phone so time will tell I guess.
[Sony Xperia XZ2 Premium Questions & Answers] temporarium:
That's s great site, very well presented.

Let's hope the XZ2P shows up on that unlockable list...
[Sony Xperia XZ2 Premium Questions & Answers] Pandemic:
No we xz2 users wait also, like also on the drm fix, 1 week that sony release the source.
[Sony Xperia XZ2 Premium Questions & Answers] korom42:
[MENTION=4645704]temporarium[/MENTION]

1- The unlock procedure is easy and free via official website however the consequences are pretty bad. Unlocking the boot-loader will

permanently

remove the TA partition on the phone which contains the drm keys files and mess up the camera and many other functions will stop working ,these issues can be temporary patched/fixed by using a custom kernel with drm fix support, if you have no idea about DRM keys, read this quote ..

Note that on older devices shipped with MM or older Android versions like Xperia XZ there's a hack/exploit that was used to backup that TA partition before unlocking the bootlodaer to restore it later whener there's need to but unfortunately this is not possible since XZ Premium (shipped with Android Nougat)

2- For the developer community for Xperia Phones it really depends on the device popularity for example Z1, Z3, Z5 and XZ premium were quite popular in the last few years and were lucky to have a decent dev community, unlike for example the forgotten XZs, in my personal opinion I see that the devcommunity for Sony devices is way worse compared to other oems for example (samsung, oneplus, htc ...)
[Sony Xperia XZ2 Premium Questions & Answers] temporarium:
Thanks, but I'm on a Xiaomi Redmi Note 5 and loving it.
[General Questions and Answers] hans293:
Hello,

how can I add the following line to my WifiConfigStore.xml in order to solve a problem with eduroam?

phase1="tls_disable_tlsv1_1=1 tls_disable_tlsv1_2=1"

The problem is that Oreo saves new networks in WifiConfigStore.xml rather wpa_supplicant.conf and I fail to translate the parameter...

Greetings
[Samsung Galaxy A3, A5, A7 (2017) Questions & Answe] paradisecookie:
Hello,

Recently, after dropping my phone, the screen became slowly non-responding to touch (lcd fluid leaking), and ever since the screen became fully black (I can't see anything) and therefore made unlocking my phone impossible. (I have the pattern to unlock and the sim pin) I really want to extract data from my phone, but USB debugging is disabled on it, auto play doesn't work, my pc detects the phone but can't extract any data (I can only see the phone in the hidden icons, devices and printers (marked as "non-specified) and in auto play and but the only selection I can make is either "Take no action" or "Ask me everytime") I've tried several android extraction softwares, but most of them are not compatible with my phone (Samsung Galaxy A5 2017, SM-520F) I've tried Dr Fone, PawLab, FoneLab, (These are not compatible with my device) and Kies 3 can't detect my samsung. Connecting a mouse to my phone wouldn't be useful since the screen is pitch black. I am very desperate and I have no ideas left on what to do. My phone still works, it can charge and connect to a computer but it's locked and usb debugging is unfortunately disabled... Any ideas on what I can do to extract the data from it? Thank you
[Samsung Galaxy A3, A5, A7 (2017) Questions & Answe] Option58:
edit: nevermind actually
[Samsung Galaxy A3, A5, A7 (2017) Questions & Answe] paradisecookie:
so I should not use odin? I'm really desperate...
[Samsung Galaxy A3, A5, A7 (2017) Questions & Answe] Option58:
Nono..sorry I forgot that Samsung encrypts their firmware so you can't access it via TWRP.
[Samsung Galaxy A3, A5, A7 (2017) Questions & Answe] paradisecookie:
Oh ok... So got no ideas on what I can do then?
[Samsung Galaxy A3, A5, A7 (2017) Questions & Answe] Black Platypus:
Same situation

Hey, I have the same situation here: Broken screen on Galaxy A5 (2017) SM-A520F, therefore unable to unlock and/or turn on USB debugging; no recovery program seems to support it.

Why would Samsung encrypting their firmware prevent us from proceeding?

Wouldn't the first step be to flash a new firmware anyway?

Or are you saying that storage data is also encrypted?

What are the AIO recovery solutions out there doing exactly? It seems they start out by trying to install some recovery...

It really feels like it should be possible to save the data. Come on, can't we do this??
[Samsung Galaxy A3, A5, A7 (2017) Questions & Answe] SnowFuhrer:
Just restore Google or Samsung backup on your new phone. Basically the only option.
[HTC Desire 630 Questions & Answers] Machineee988:
Hi, I have rooted HTC desire 630 with custom TWRP and S-ON. I want to lock bootloader. Is it possible get LOCKED instead of RELOCKED status? Thanks
[HTC Desire 630 Questions & Answers] vaibhav1:
No
[Moto E4 Plus Questions & Answers] stonefabtim:
used this thread to try and return to stock:

https://xdaforums.com/moto-e4-plus/how-to/moto-e4-qualcomm-owens-completely-to-t3743441

My **** turned off, now it wont turn on period. Cant go into any kind of download mode NOTHING. I have no warranty, I got the phone off the street. Tried to flash a custom rom did it wrong then tried to return it to stock because I didnt make a backup. I'm ready to throw it at a wall.

It WAS a boost moto e4 plus owens xt1776
[Moto E4 Plus Questions & Answers] Sizzlechest:
If it won't turn on, there's not much you can do. The battery is technically removable, so you COULD try removing it and putting it back in, but I doubt it will help. You might want to see if Motorola will repair it. It's a longshot, but they might help you. I wouldn't tell them you bought it off the street. Just say you don't have a receipt.
[Moto E4 Plus Questions & Answers] ATTACK:
I know on older Motorola's, if you plugged them in and let it charge for a few hours, they would turn back on.

But I don't know what you did. It would help if you provided more info on what you did, so we could gain a better perspective.
[Moto E4 Plus Questions & Answers] bcrichster:
You're right, I forgot about that one..
[Moto E4 Plus Questions & Answers] TheHitMan:
If he temper any of the device partition than probably it will be a soft brick and should be resolved by the service center guy like i did this before three times with my Moto E4 and it won't turn on. No fastboot mode, no recovery, Just the notification light when connecting to a power source and nothing else. I also got the new IMEI number.
[Moto E4 Plus Questions & Answers] ATTACK:
We don't know if he messed with his partitons, though. Without further details as to what he did, all we're doing is guessing.
[Moto E4 Plus Questions & Answers] stonefabtim:
Sorry about my delay had some stuff go down. Uhm, I followed that thread, ran the commands listed, used a sprint factory instead of a boost, from what i read in that thread, it should have worked. But now I dont even get a notification light when i charge.
[Moto E4 Plus Questions & Answers] doodalydoo:
I'm having the same problem as him and I feel like I'm making some progress, but I still can't fix it. Here's my posts on what I found from that thread. They are probably better suited here anyway. https://xdaforums.com/showpost.php?p=76459007&postcount=21
[Moto E4 Plus Questions & Answers] bcrichster:
Don't forget that the OEM files are labeled differently for Boost Mobile users, messing that labeling up during fastboot will cause it not to boot as well..
[Moto E4 Plus Questions & Answers] doodalydoo:
I have the carrier unlocked version. I think the way I bricked my phone is that I OTA updated my phone and then tried to revert back to stock. I've seen a video on youtube of somebody who did the exact same thing and was able to unbrick his phone. I think the main problem right now is I can't find the right firmware files to use in QFIL. The stock firmware zips don't have the right files that QFIL needs