Where to get drivers for Note 6 Pro - Xiaomi Redmi Note 6 Pro Questions & Answers

I trying to make my own ROM/firmware for Xiaomi Note 6 Pro.
I have done following:-
1. Download the AOSP Source code.
2.Added/Changed certain features in the source code of android Pie.
3. Now require drivers for such as wifi, camera etc.
I heard they are proprietary and only manufacturer can release them where can i find them?
Like here we have for Pixel & Nexus Phones here = //developers.google.com/android/drivers#coral
I am doing this for first time. If you have some tips and advises. You welcome to share your views and advises.
Thank You

you ever heard of xiaomi kernel driver being open source?
https://github.com/MiCode/Xiaomi_Kernel_OpenSource

cipheres77 said:
I trying to make my own ROM/firmware for Xiaomi Note 6 Pro.
I have done following:-
1. Download the AOSP Source code.
2.Added/Changed certain features in the source code of android Pie.
3. Now require drivers for such as wifi, camera etc.
I heard they are proprietary and only manufacturer can release them where can i find them?
Like here we have for Pixel & Nexus Phones here = //developers.google.com/android/drivers#coral
I am doing this for first time. If you have some tips and advises. You welcome to share your views and advises.
Thank You
Click to expand...
Click to collapse
Do some research! Go to github , clone kernel / device / vendor trees from any tulip dev, build!
or google for build instructions!
good luck mate!
cjoenic said:
you ever heard of xiaomi kernel driver being open source?
https://github.com/MiCode/Xiaomi_Kernel_OpenSource
Click to expand...
Click to collapse
I bet he didn't know!

Related

Release Of Kernel Sources & Custom Rom Development ?

Will Xiaomi release kernel sources fully for this smartphone & therefore able to have active rom development (including Android M 6.0 roms) in the near future ?
(Kernel sources for the Xiaomi Mi3 & Mi4 were released very late and not in full and are the reason I believe that many Lollipop roms for these devices are not stable).
I think it depends on whether the device goes international. They were quick to release the sources for the Mi4i, and that is the only phone they officially sell internationally. That said, at least it uses the most common SOC of 2015.
Does it help that it has the same soc as the nexus 5x?
ermacwins said:
Does it help that it has the same soc as the nexus 5x?
Click to expand...
Click to collapse
It helps a little bit maybe, but the problem is all the other stuff inside the phone is different. You still need proper sources from Xiaomi.
M.
Do Xiaomi devices have root "built-in" ?
I'm interested in ROM development, too, but for the first months having root would be enough.
Giocarro said:
Do Xiaomi devices have root "built-in" ?
I'm interested in ROM development, too, but for the first months having root would be enough.
Click to expand...
Click to collapse
I have seen a guide on MIUI forum: "How to flash TWRP Recovery and Super Su(Root) on Xiaomi Mi4C"
Having access to kernel will also mean ir blaster will work on custom roms?
ermacwins said:
Having access to kernel will also mean ir blaster will work on custom roms?
Click to expand...
Click to collapse
Don't count on that. Many device that have kernel source and ir blasters still don't work on aosp based roms. Due to all the drivers for the hardware being closed sourced.
zelendel said:
Don't count on that. Many device that have kernel source and ir blasters still don't work on aosp based roms. Due to all the drivers for the hardware being closed sourced.
Click to expand...
Click to collapse
When we say kernel source, is that pertaining to the soc?
ermacwins said:
When we say kernel source, is that pertaining to the soc?
Click to expand...
Click to collapse
The kernel covers all aspects of the device in one form or another.
zelendel said:
The kernel covers all aspects of the device in one form or another.
Click to expand...
Click to collapse
Let's say xiaomi is taking long to release their kernel source but the source for nexus 5x soc is out, would that be enough for aosp rom?
ermacwins said:
Let's say xiaomi is taking long to release their kernel source but the source for nexus 5x soc is out, would that be enough for aosp rom?
Click to expand...
Click to collapse
No it won't. You will also need the device tree for this device. It's not how long it takes for them to release it that I would be worried about. It's if the source is complete and not broken like they are known to release. They have a habit of release broken source to force users to use miui. If you look at other devices from this OEM it takes months some times a year before they release it and when they do it is broken and devs have to take weeks to get it even remotely working. Then there are still bugs that are never fixed.
zelendel said:
No it won't. You will also need the device tree for this device. It's not how long it takes for them to release it that I would be worried about. It's if the source is complete and not broken like they are known to release. They have a habit of release broken source to force users to use miui. If you look at other devices from this OEM it takes months some times a year before they release it and when they do it is broken and devs have to take weeks to get it even remotely working. Then there are still bugs that are never fixed.
Click to expand...
Click to collapse
So having an aosp based rom as a daily driver is out of the question?
ermacwins said:
So having an aosp based rom as a daily driver is out of the question?
Click to expand...
Click to collapse
isn't the Broken OS ROM by TS Team AOSP based ?
Of interest:
[News] Mi 3/4/Note Kernel Source Code Released! Next to Be, Mi Note PRO, Mi 4c/S:
http://en.miui.com/thread-235127-1-1.html
Don't sceptical, I reconstruct Redmi 2 kernel source without any help from Xiaomi. They released Redmi 2 kernel source for KitKat when my device already run "fully open source" and almost bug free Marshmallow :laugh:

[DO IT] Mass Tweet for KERNEL SOURCES.

Guys We have to push xiaomi to release source code.Lets all Mass Tweet and retweet in xiaomi USA and India to tell users what this so called "user centric" company is missing.It will surely hit their brand image in USA and new countries which they care about more.
I will be sharing my Tweet link which u can retweet on and don't forget to like it so that It spread more.
You can follow me if u wish to stay updated regarding our Tweet campaign.
You can also share your tweets link for the same purpose
My Tweet links
1. https://twitter.com/NikhilG43348710/status/931252654822408192
2. https://twitter.com/NikhilG43348710/status/931255960013852672
3.
https://twitter.com/NikhilG43348710/status/931258807191191552
4. https://twitter.com/NikhilG43348710/status/931645298996158466
5. https://twitter.com/XiaomiIndia/status/932526470743801856
6.
https://twitter.com/XiaomiIndia/status/932956772695818242
7. https://twitter.com/NikhilG43348710/status/933344729663602694
8. https://twitter.com/NikhilG43348710/status/933708131082702848
Reserved
According to Jai Mani (Lead Product Manager of Xiaomi India)
"When asked about the status of kernel sources for its devices (with a specific mention of the Mi A1 from our end), Mr. Mani commented that Xiaomi’s focus is on providing quality kernel sources and not just uploaded for the sake of it (we assume he meant complying with the GPL…), like several OEMs in the lower budget market tend to do (if they release sources at all). The internal goal of the company is to release kernel sources within three months. Mr. Mani also commented that unlocking the bootloader of Xiaomi devices does not void warranty."
Sauce: https://www.xda-developers.com/xiaomi-mi-mix-2-indian-launch-review/
Welp, done.
I feel cheated tbh, does it really take this long for Xiaomi to release source for all devices?
Sent from my Mi A1 using Tapatalk
Done! I'm yet to buy this device and I'm waiting for the source code so that we can have some custom action.
Related stuff, OP5T launched yesterday and the company released its source code within 24 hours. That's some generous stuff.
hemantv said:
Done! I'm yet to buy this device and I'm waiting for the source code so that we can have some custom action.
Related stuff, OP5T launched yesterday and the company released its source code within 24 hours. That's some generous stuff.
Click to expand...
Click to collapse
Exactly, Xiaomi should learn how things must be done.Honestly I just think they are up to something else and provide false arguments just to misguide users.I mean don't they maintain a proper Kernel tree while developing for their device.
Why did google allow an exception to Xiaomi to handle the software update themselves? If it was done by google, things would have been different. How can this be an android one device? Just because it comes with aosp rom?
Adromedemon said:
According to Jai Mani (Lead Product Manager of Xiaomi India)
" ...Xiaomi’s focus is on providing quality kernel sources and not just uploaded for the sake of it..."
Click to expand...
Click to collapse
Wha... ... what does it should mean? They have to release the source used to compile the kernel running on the phone...
You don't compile a kernel, release the binary THEN do a complete quality check of the sources... come on mr. Mani, stop foolin around...
Here's another one.I request all mi a1 users to join this campaign.It will benefit us only.
https://twitter.com/NikhilG43348710/status/931645298996158466
An article at XDA about our issue.
https://www.xda-developers.com/xiaomi-not-released-kernel-sources-mi-a1/amp/
rebound821 said:
Wha... ... what does it should mean? They have to release the source used to compile the kernel running on the phone...
You don't compile a kernel, release the binary THEN do a complete quality check of the sources... come on mr. Mani, stop foolin around...
Click to expand...
Click to collapse
You saved me some writings by putting those exact words.
ddaggebi said:
An article at XDA about our issue.
https://www.xda-developers.com/xiaomi-not-released-kernel-sources-mi-a1/amp/
Click to expand...
Click to collapse
Yeah I tweeted about this.
Another one guys. Please show your support to have sources asap.
https://twitter.com/XiaomiIndia/status/932526470743801856
Tweeted! Done!
Let's hope xiaomi releases kernel sources soon..real soon!
https://twitter.com/XiaomiIndia/status/932956772695818242
Sorry for bad English.tweeted it in a hurry.
Doing it for many days !!! @drkhalidomer
Sent from my Xiaomi Mi A1 using XDA Labs
https://twitter.com/NikhilG43348710/status/933344729663602694
Another one guys.
https://twitter.com/NikhilG43348710/status/933708131082702848
https://www.quora.com/unanswered/Ki...el-to-device-launch?share=df82d3f7&srid=57Ki7
Here's a quora question link.Lets see what they answer

Poco F1 Kernel Source Live.

Mi 8/Mi 8 Explorer Edition/Poco F1 Same Branch
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/dipper-o-oss
najjurocks619 said:
Mi 8/Mi 8 Explorer Edition/Poco F1 Same Branch
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/dipper-o-oss
Click to expand...
Click to collapse
Blimey! That's a very good sign!
Hopefully they're intact and usable
thesoupthief said:
Blimey! That's a very good sign!
Hopefully they're intact and usable
Click to expand...
Click to collapse
Indeed, Hoping for great future and development for this device, The cheapest SD 845 yet.
isnt this a security lapse
prabaharanaece said:
isnt this a security lapse
Click to expand...
Click to collapse
Lol are you joking? Xiaomi have themselves released the kernel sources. How does that make it a security lapse when they themselves announced this during the phone launch?
Great news! Hope to see LineageOS soon for this phone.
kishore1998 said:
Lol are you joking? Xiaomi have themselves released the kernel sources. How does that make it a security lapse when they themselves announced this during the phone launch?
Click to expand...
Click to collapse
It is rather a question from me, I know mi released the codes but question is can it be used by someone for hacking this phone. I guess it would be more easier for the hackers now.
prabaharanaece said:
It is rather a question from me, I know mi released the codes but question is can it be used by someone for hacking this phone. I guess it would be more easier for the hackers now.
Click to expand...
Click to collapse
POCO F1 is not the only phone with it's kernel source released. You will find kernel sources released for many phones by different brands (Sony, Samsung, LG, OnePlus and so many more). The purpose of releasing the source is to accommodate custom ROM and Kernel development by developer community (like XDA) and find out vulnerability (if any) in the process. Any vulnerability found is usually patched in updates. Yes the source can be used to compile a kernel or ROM with malicious code or an app which'd try to exploit the vulnerability but it will only affect those who'd install any such app/kernel/ROM. Now any flashaholic you'd meet will tell you how they'd only install apps from trusted sources and flash ROMs/Kernels available on XDA etc. In nutshell, I don't think trying to hack a phone using kernel source is worth it as it targets very limited people who are cautious enough on what to install on their phones making it more difficult to hack. Any developer can enlighten you more on the issue as I might be totally wrong on the issue too.
P.S. It's because of such source code releases that community like XDA is thriving.
prabaharanaece said:
isnt this a security lapse
Click to expand...
Click to collapse
All linux based kernels are open source
Also it is mandatory for OEMs to release kernel sources per GPL license rules.
I got my phone today, waiting for some awesome development..
Thank you everyone for comments :good:. I got my phone today as well
Will only buy it if any rom(i wish for Omni) is built from sources(not ported rom) and officially supports Treble <3
Otherwise simply useless phone for me :X
Would suggest the same for others too
xuser_ said:
Will only buy it if any rom(i wish for Omni) is built from sources(not ported rom) and officially supports Treble <3
Otherwise simply useless phone for me :X
Would suggest the same for others too
Click to expand...
Click to collapse
All roms are build from aosp and other sources, this is not 2012 where ported roms exists here. What are you talking about? Also, the phone is launched with 8.1 so it officially supports treble out of the box. You high or what?
Btw: good to see early release of kernel source but on the other hand, the unlocking of bootloader showing me 30 days (720hours). How will I live for 30 days using MIUI?

Custom rom for Note 10 / Note 10 lite - I seek guidance/help

Hello,
I'd like to get into android ROM development. But I will need help/guidance.
I've managed to build lineageos for curtana using xiaomi kernel and malachite device tree and vendor files. Don't know it it actually works as I don't have the device
.
So as I said I'd like to learn it, but as android is big I am still kinda lost in it. I know i can create something that already is, but that is not useful to the others, so that's why I am thinking about these 2 devices xiaomi note 10 or note 10 lite as they don't have any roms yet.
So if there is anyone who will be able to help and guide me through the process of getting device tree, vendor files and using (xiaomi) kernel putting it all together, I will be more than happy to buy one of those devices and go and create and support some lineageos, aosp and or pixel experience roms.
Thanks
Gajdalf said:
Hello,
I'd like to get into android ROM development. But I will need help/guidance.
I've managed to build lineageos for curtana using xiaomi kernel and malachite device tree and vendor files. Don't know it it actually works as I don't have the device
.
So as I said I'd like to learn it, but as android is big I am still kinda lost in it. I know i can create something that already is, but that is not useful to the others, so that's why I am thinking about these 2 devices xiaomi note 10 or note 10 lite as they don't have any roms yet.
So if there is anyone who will be able to help and guide me through the process of getting device tree, vendor files and using (xiaomi) kernel putting it all together, I will be more than happy to buy one of those devices and go and create and support some lineageos, aosp and or pixel experience roms.
Thanks
Click to expand...
Click to collapse
The problem is that there are no working trees yet. The only thing which is not working is the display. the display is just dead

Question Now Focusing On Custom Rom (LineageOS) For Our Galaxy Z Flip 3

Hello
I did Bought a Samsung Galaxy Z flip 3 demo version , i want to build TWRP for it
Spoiler: That is Done
yesterday i downloaded the Kernel source code from Samsung , now i just need TWRP Sources and and Create a Device Tree to built it
if you want TWRP for this phone , just comment down below (for some motivation)
Spoiler: that done too , look for the custom working kernel
Now For a The Custom Kernel
I Manage to Get A Custom Kernel Working with A lot Of Optimisations (Thanks @chrisaw and Others) on a Old OneUI (That System That Came with the Kernel) and it work well (it need some minor touches)
the Kernel Cant Work on Newer OneUI and Custom Roms (Pixel EXperience) because Of new Changes in Vendor Are not Compatible with the Kernel
A guess this Need A lot Of Working (Everytime Samsung do it their Way and Dont Care about The Correct Way)
ScreenShot of the Kernel
Spoiler: That is Done too too
now on Focusing on The Custom Rom , i download LineageOS 19.0 Source Code as i will build for 2 separate phones (Galaxy Z Flip3 'snapdragon 888' and UMIDIGI F1 Play 'Mediatek Helio P60') consecutively
this rom will be based on treble gsi patches but working only on Galaxy Z Flip3
i manage to build LineageOS 19.0 for Galaxy Z Flip3 , i will not share it now cause :
1 - it is not daily driver or usable , you can call it pre-alpha
2 - it has a lot of bugs that i saw , it could be other i didn't
3 - it is a Treble gsi just for testing purposes and does not have gapps (gapps needed to be included in the gsi not like a normal rom)
4 - i fix the fingerprint , now it is usable
5 - don't ask me about rear screen , it is perfectly not working at all (if you close the phone , the main display become black , rear screen have just samsung galaxy logo....)
6 - other things i forgot
Any Help will be appreciated
Stay Tune
Thanks
Yeah I'd like to see a fully functional TWRP
yes!
really appreciated!
I'm in
hells yeah
ok so i reinstall my ubuntu setup cause apt went broken , but now im good to start
my initial work is the device tree , it is still WIP
GitHub - shadowofleaf96/android_device_samsung_b2q: For building TWRP for Samsung Galaxy Z Flip 3 5G
For building TWRP for Samsung Galaxy Z Flip 3 5G . Contribute to shadowofleaf96/android_device_samsung_b2q development by creating an account on GitHub.
github.com
the kernel still not building , im working on it
thanks for waiting
GitHub - StarKissed/starkissed-kernel-b2q
Contribute to StarKissed/starkissed-kernel-b2q development by creating an account on GitHub.
github.com
I never finished it, but this may help with getting the kernel to build.
It's based on the ROG Phone 5 changes required for the isolated source.
[SOURCE] ASUS_I005_1-kernel (MacOS / Linux)
WARNING: This is NOT a custom kernel! GPL requires that source is released for Android kernels. It does not, however, require that the source is tracked. https://www.asus.com/supportonly/ROG%20Phone%205%20(ZS673KS)/HelpDesk_Download/ Each...
forum.xda-developers.com
twistedumbrella said:
GitHub - StarKissed/starkissed-kernel-b2q
Contribute to StarKissed/starkissed-kernel-b2q development by creating an account on GitHub.
github.com
I never finished it, but this may help with getting the kernel to build.
It's based on the ROG Phone 5 changes required for the isolated source.
[SOURCE] ASUS_I005_1-kernel (MacOS / Linux)
WARNING: This is NOT a custom kernel! GPL requires that source is released for Android kernels. It does not, however, require that the source is tracked. https://www.asus.com/supportonly/ROG%20Phone%205%20(ZS673KS)/HelpDesk_Download/ Each...
forum.xda-developers.com
Click to expand...
Click to collapse
thanks
samsung released android 12 kernel so i will merge the changes from your kernel to mine
Shadow Of Leaf said:
thanks
samsung released android 12 kernel so i will merge the changes from your kernel to mine
Click to expand...
Click to collapse
That kernel never booted, so that would probably do more harm than good. It does, however, include the changes to make an inline kernel build outside the source. It was more an example than a template.
twistedumbrella said:
That kernel never booted, so that would probably do more harm than good. It does, however, include the changes to make an inline kernel build outside the source. It was more an example than a template.
Click to expand...
Click to collapse
ok
yes that what i will do , i will use the samsung open source kernel (android 12) , fix to boot recovery and boot the system , when it does that i will include your changes and see if it works or not
Thanks for your contribution。
Cyanide_zh said:
Thanks for your contribution。
Click to expand...
Click to collapse
you welcome
some good news
TWRP is Booted on our Galaxy Z Flip 3 (SM-F711B) but touchscreen is not working
i think i have a problem with firmware , stay tuned
Shadow Of Leaf said:
some good news
TWRP is Booted on our Galaxy Z Flip 3 (SM-F711B) but touchscreen is not working
i think i have a problem with firmware , stay tuned View attachment 5671531
Click to expand...
Click to collapse
can you share the non-touch version?
i hope he can find the problem and fix it
Maroshall said:
can you share the non-touch version?
i hope he can find the problem and fix it
Click to expand...
Click to collapse
i think i fix the touchscreen problem and its working
there is some minor problems i will fix them and upload it here
also the kernel does not boot on oneui , i have to fix it
the work is done (or atleast it works)
you can check it here TWRP Thread
@twistedumbrella i build the kernel it works on twrp but no luck with OneUI (even with knox and other security measurements disabled) it does panic (kernel panic) i need to do some investigation regarding this , if you want to help i will upload my kernel source code soon​
I have the US version, which is why I abandoned the kernel. I had no way to test the changes specific to Samsung, which would be OneUI.
Your best bet would be looking into the changes for an S21 / S22 because they are going to have the Samsung specific changes.
twistedumbrella said:
I have the US version, which is why I abandoned the kernel. I had no way to test the changes specific to Samsung, which would be OneUI.
Your best bet would be looking into the changes for an S21 / S22 because they are going to have the Samsung specific changes.
Click to expand...
Click to collapse
ah ok thanks
for now i fix to kernel panic , now kernel boot in OneUI But after the loading icon the screens went black
so thanks again and sorry for disturbing you
No worries. I would rather you know I don't know, if that makes sense. Sounds like you are more than capable either way.

Categories

Resources