No source available for my device, how to build rom using similar spec device source? - Android Q&A, Help & Troubleshooting

I have two chinese phones I wish to build custom ROMS for however I cannot get the source code of either device. The devices in question are a Doogee F5 and a santin candy u7. My only option is to build using source from a similar spec device. How would I go about the porting of the rom once I have the rom built????

Related

[Q] How did your developers build a ROM when there isn't one from Samsung?

Hi.
I am a noob, not a techy
just curios - how can your devs build ICS roms when Samsung themselves did not build/create/honed/refined the Vibrant for Android 4?
What I am trying to ask is, how can your devs manage to control the hardware via android 4, if Samsung did not supply the codes/drivers/source?
Thanks
I'm not 100% sure but I think I read somewhere you can use the source code to build a ROM and then they used the Gingerbread bootloader/kernel and from there it's debugging.... again I could be wrong.
I think they took the source, and compile the source with the characteristics of the device. then applications that do not work, modified or exchanged for other versions of other rom, like the kernel, and other modifications, which is why the rom, there are many versions which fix bugs Version earlier after many users try it. (an example of this is the ICS Passion, which is now in its version 13)
Well passion is based on cm9. Which is aosp rom using source code android releases. Basically if you have drivers for hardware and a device tree you can use that source to build for any device.
Wherelse Samsung roms are usually not directly from source but just modded firmware from Samsung leaks. Oems do use close sources drivers though, usually better and get more out of hardware.
Sent from my SGH-T959 using XDA App

[GUIDE]Where to Find the Kernel Source Code for Your Device[6-20-14]

Shimp208's Guide to Finding the Kernel Source Code for your Device​
Introduction​
I see a lot of people asking how to start make custom kernels (This is well beyond the scope of this guide, for a great introduction check out Building Your First Kernel), or I want to port CM, AOKP, AOSP, etc. to my device. Well that great except you can’t begin to make a custom kernel or truly port CM, AOKP, AOSP, etc. without the appropriate kernel source code for your device. The following list tells you where you can find the kernel source code (Among other bits and pieces of code essential to development) for your device based on your manufacturer, as well as some other places to look for kernel sources.
Please Note: Not all manufactures release their kernel sources, and not all kernel sources are released for every device​
Manufactures​
LG​
http://www.lg.com/global/support/opensource/opensource.jsp
* Under category select mobile phones and hit the search button located to the right, optionally you can enter in a model number to search for.
HTC​
http://htcdev.com/devcenter/downloads
* You can easily find what you’re looking for by using the filters, for device, carrier, region, and android version. You will also find some useful files here besides kernel source code.
Samsung​
http://opensource.samsung.com/index.jsp;jsessionid=52CC30D59B619BB5D77CE750C8AD80E1
* The easiest way to find your device is to use the search box and search for your devices model number.
Motorola​
http://sourceforge.net/motorola/wiki/Projects/
https://github.com/MotorolaMobilityLLC
* Contains some devices kernel source code as well as many device specific proprietary files.
Kyocera​
http://www.kyocera-wireless.com/support/developers.htm
* Small selection of kernel source code in addition to some other code.
Sony (Ericsson)​
http://developer.sonymobile.com/downloads/xperia-open-source-archives/
* Variety of kernel sources and some interesting release notes documents
Google​
https://android.googlesource.com/?format=HTML
* Very large selection of kernel sources for Google devices as well as tons of other hardware specific files.
Pantech​
http://opensource.pantech.com/model/list.asp?Category=Mobile
* You have to sign-up and create an account (Don’t worry it’s free and easy) before you can download the kernel sources. You can use the list on your left to quickly scroll through the available devices to find the one you are looking for.
ZTE​
http://support.zte.com.cn/support/news/NewsMain.aspx?type=service
http://support.zte.com.cn/support/ServiceCenter/ServiceMain.aspx
* Random of assortment of kernel sources, software updates, and pieces of code for ZTE devices. Note, the second link requires you to register for an account which gives you further access but requires you to wait a day of two for your account to be approved.
Asus​
http://support.asus.com/download/options.aspx?SLanguage=en
* You can either preform a model name search to find your device or press the select model manually and select if from the list. Common product model families for Android include Eee Pad (Select under Eee Family) and PadFone (In Handheld and Navigation, under Mobile Phone, then PadFone series). It includes everything from kernel source, firmware, USB drivers, and manuals.
Acer​
http://support.acer.com/product/default.aspx
* Includes kernel source for some phones and tablets. To find your device click on the link that says select a product model if your device is a smartphone select smart handheld then select your device model. If your device is a tablet select tablet from the family of products list then select your device model.
Archos​
http://www.archos.com/support/support_tech/updates.html?country=us&lang=en
* Includes the kernel source code for many of Archos tablets from several generations of products, as well as firmware and other experimental software for the tablet.
Dell​
http://opensource.dell.com/releases/
* Kernel source for many of Dell's Android devices as well as some additional patches, and driver files.
Huawei​
http://www.huaweidevice.com/worldwide/downloadCenter.do?method=index&type=software
http://consumer.huawei.com/en/support/downloads/index.htm
* Kernel source for many of Huawei's devices both phones and tablets, also includes platform code, firmware, and some user manuals, you can scroll through the available software by hitting the *more* button at the bottom of the page
Alcatel​
http://sourceforge.net/projects/alcatel/files/?source=navbar
* Kernel source as well as other files for development of Alcatel branded devices
Other Resources​
Qualcomm​
https://www.codeaurora.org/xwiki/bin/QAEP/
https://www.codeaurora.org/cgit/
* Great resource for finding the kernel source code of many Qualcomm chipsets.
Amlogic​
http://openlinux.amlogic.com/index.php/Arm/Kernel_Info
* Contains kernel source code for devices based on the Amlogic 6236M(sz/sh), 7266M(sz/sh), 8226M(dvbc), or 8726M chipsets.
Allwinner​
https://github.com/linux-sunxi
http://linux-sunxi.org/Main_Page
*Wide range of development resources from kernel source, to tools, and lots of other information for devices based on the Allwinner platform
I hope the information in this guide helped you out
A Note On Mediatek (MTK) Sources
While Mediatek sources are not officially available except through third-party repositories (Usually github) or some manufactures websites, Mediatek is taking steps to be more open source and GPL compliant with the release of MediaTek Labs. You can sign up for and stay up to date on MediaTek's efforts by signing up for MediaTek Lab's here.
Huge thanks to POORCOLLEGEGUY and all the other XDA writers for featuring this on the portal on October 2, 2012!
Just wanted to say Thank you!
Very Nice Share For All Dev............ Many Many Thanks For it......
Please find source for Micromax Devices!
shimp208 said:
Shimp208's Guide to Finding the Kernel Source Code for your Device​
Introduction​
I see a lot of people asking how to start make custom kernels (This is well beyond the scope of this guide, for a great introduction check out Building Your First Kernel), or I want to port CM, AOKP, AOSP, etc. to my device. Well that great except you can’t begin to make a custom kernel or truly port CM, AOKP, AOSP, etc. without the appropriate kernel source code for your device. The following list tells you where you can find the kernel source code (Among other bits and pieces of code essential to development) for your device based on your manufacturer, as well as some other places to look for kernel sources.
Please Note: Not all manufactures release their kernel sources, and not all kernel sources are released for every device​
Manufactures​
LG​
http://www.lg.com/global/support/opensource/opensource.jsp
* Under category select mobile phones and hit the search button located to the right, optionally you can enter in a model number to search for.
HTC​
http://htcdev.com/devcenter/downloads
* You can easily find what you’re looking for by using the filters, for device, carrier, region, and android version. You will also find some useful files here besides kernel source code.
Samsung​
http://opensource.samsung.com/index.jsp;jsessionid=52CC30D59B619BB5D77CE750C8AD80E1
* The easiest way to find your device is to use the search box and search for your devices model number.
Motorola​
http://sourceforge.net/motorola/wiki/Projects/
* Contains some devices kernel source code as well as many device specific proprietary files.
Kyocera​
http://www.kyocera-wireless.com/support/developers.htm
* Small selection of kernel source code in addition to some other code.
Sony (Ericsson)​
http://developer.sonymobile.com/wportal/devworld/search-downloads/opensource?cat=&maxItemCount=100&q=&searchTargetPage=&sortField=release_date&sortOrder=true&sortState=
* Variety of kernel sources and some interesting release notes documents
Google​
https://android.googlesource.com/?format=HTML
* Very large selection of kernel sources for Google devices as well as tons of other hardware specific files.
Pantech​
http://opensource.pantech.com/model/list.asp?Category=Mobile
* You have to sign-up and create an account (Don’t worry it’s free and easy) before you can download the kernel sources. You can use the list on your left to quickly scroll through the available devices to find the one you are looking for.
ZTE​
http://support.zte.com.cn/support/news/NewsMain.aspx?type=service
http://support.zte.com.cn/support/ServiceCenter/ServiceMain.aspx
* Random of assortment of kernel sources, software updates, and pieces of code for ZTE devices. Note, the second link requires you to register for an account which gives you further access but requires you to wait a day of two for your account to be approved.
Asus​
http://support.asus.com/download/options.aspx?SLanguage=en
* You can either preform a model name search to find your device or press the select model manually and select if from the list. Common product model families for Android include Eee Pad (Select under Eee Family) and PadFone (In Handheld and Navigation, under Mobile Phone, then PadFone series). It includes everything from kernel source, firmware, USB drivers, and manuals.
Acer​
http://support.acer.com/product/default.aspx
* Includes kernel source for some phones and tablets. To find your device click on the link that says select a product model if your device is a smartphone select smart handheld then select your device model. If your device is a tablet select tablet from the family of products list then select your device model.
Archos​
http://www.archos.com/support/support_tech/updates.html?country=us&lang=en
* Includes the kernel source code for many of Archos tablets from several generations of products, as well as firmware and other experimental software for the tablet.
Other Resources​
Qualcomm​
http://https://www.codeaurora.org/xwiki/bin/QAEP/
* Great resource for finding the kernel source code of many Qualcomm chipsets.
Amlogic​
http://openlinux.amlogic.com/index.php/Arm/Kernel_Info
*Contains kernel source code for devices based on the Amlogic 6236M(sz/sh), 7266M(sz/sh), 8226M(dvbc), or 8726M chipsets.
I hope the information in this guide helped you out
Click to expand...
Click to collapse
Please Give me the source for Micromax Devices (I do have Funbook Pro (P500))
any for huawei honor?
lucacerio said:
any for huawei honor?
Click to expand...
Click to collapse
Check out this link for huawei honor source:
http://hbf.by/index.php?/topic/16424-huawei-honor-u8860-kernel-source-308/
thatsgamer said:
Please Give me the source for Micromax Devices (I do have Funbook Pro (P500))
Click to expand...
Click to collapse
I wasn't able to find the source for Micromax devices and from what I have read they don't seem to release there kernel source . I suppose you could try contacting them about it if you wanted to.
thatsgamer said:
Please Give me the source for Micromax Devices (I do have Funbook Pro (P500))
Click to expand...
Click to collapse
shimp208 said:
I wasn't able to find the source for Micromax devices and from what I have read they don't seem to release there kernel source . I suppose you could try contacting them about it if you wanted to.
Click to expand...
Click to collapse
Micromax uses qualcomm chipsets. You can find their kernel here. Just look at your device's build.prop for ro.product.board. For example, my Micromax A57 uses msm7627a chipset.
Nice find I didn't realize that micromax used qualcomm I have that link in the op though already. Still great find though
Sent from my SCH-I535 using xda premium
thanks for this!
codeaurora link needs to be fixed though
Mediatek
Any kernel sources publicly available for Mediatek SOCs MT(K) 6575 6577 6583 6588 ? I couldn't find anything Is Mediatek open source friendly ?
PS: I ask this because I consider buying a dual sim dual active android phone and best bang for the buck seems to be offered by MT6577 devices like ZTE Grand X (V970), Huawei Ascend G500 (U8836D,U8832D) and many other chinese phones.
Also, devices based on MT658x started appearing on the market too.
shimp208 said:
Qualcomm​
http://https://www.codeaurora.org/xwiki/bin/QAEP/
Click to expand...
Click to collapse
I don't think that http://https://.. is valid URL
invisiblek said:
thanks for this!
codeaurora link needs to be fixed though
Click to expand...
Click to collapse
SamePaul said:
I don't think that http://https://.. is valid URL
Click to expand...
Click to collapse
Thanks for pointing this out guys link should be fixed now!
" Dell "
anyone?
xtcdj15 said:
Any kernel sources publicly available for Mediatek SOCs MT(K) 6575 6577 6583 6588 ? I couldn't find anything Is Mediatek open source friendly ?
PS: I ask this because I consider buying a dual sim dual active android phone and best bang for the buck seems to be offered by MT6577 devices like ZTE Grand X (V970), Huawei Ascend G500 (U8836D,U8832D) and many other chinese phones.
Also, devices based on MT658x started appearing on the market too.
Click to expand...
Click to collapse
It seems Mediatek is not that open source friendly, the small bits and pieces I could find on Mediatek SOC's were long outdated or really incomplete sources.
prasad12ka4 said:
" Dell "
anyone?
Click to expand...
Click to collapse
Just updated the OP to include Dell sources
i want mediatek kernel please help me...i have new cloned phone and its touch stopped working...please help me so i can flash it with odin and update a new rom...
shimp208 said:
Sony (Ericsson)​
http://developer.sonymobile.com/wportal/devworld/search-downloads/opensource?cat=&maxItemCount=100&q=&searchTargetPage=&sortField=release_date&sortOrder=true&sortState=
Click to expand...
Click to collapse
Great thread, here is an update: http://developer.sonymobile.com/downloads/xperia-open-source-archives
Mediatek
shimp208 said:
It seems Mediatek is not that open source friendly, the small bits and pieces I could find on Mediatek SOC's were long outdated or really incomplete sources.
Click to expand...
Click to collapse
Damn
I found few customized roms for Mediatek based phones....but virualy all of them use stock unmodified kernels form manufacturers.
Did any developer (interested in Mediatek based phones) tried to contact Mediatek regarding support policy for their SOCs ? The strange thing is that, although most mediatek based phones target Asia (China, India, etc), virtually all asian developers around xda-forum seems to target high end international phone models based on more widely spread SOCs. I wonder if this is related to poor SOC support from Mediatek or just poor phones quality. Probably first one .
---------- Post added at 01:02 PM ---------- Previous post was at 12:49 PM ----------
When I'll have enough posts to be able to post in devel section of the forum I'll try to contact Bruno Martin ( bgcngm ), the guy who released customized roms for both ZTE V970 and Huawei U8836D, maybe he have more details about Mediatek and this 2 phones.
How about MTK Kernel Source

[Q] Using ROM source to delevope ASOP or CM ROM

I've been looking at getting a Huawei Honor 3C and finally found the website of where to actually get the official ROM from:
http://zh.ui.vmall.com/emotiondownload.php?mod=myrom&modelid=32
Anyway I also found they had the source, downloaded it, opened the .GZ file and the single file says "H30-U10_kernel_opensource" (H30-U10 being the model code for the device. Says its a JellyBean kernel-3.4.5
Anyway I was reading the other day about source code being useful for porting CM to a device that doesn't currently have it. I'm happy to have a go when I get the device, but I was wondering is this going to be enough to fill in the missing bits?
Mainly asking cause this uses a Mediatek MT6582 processor which apparently people don't have the source for, so they can't build proper ROM's for it. At they talking about the SOC source or a decent ROM source.
Anyway, thank for any advice/help you can give me.
B.

[Questions] Kernel source issues when compiling LOS/TWRP

Hello guys.
This question is specially for devs or advanced users with development skills.
My question is related to the kernel source of one of my devices, Huawei Mediapad T1 10 (codename: hwt1a21l). I got the kernel source from the oficial Huawei website and uploaded it to a github repo. My device, which has a msm8916 chiset, doesn't have any development (roms, recoveries, device tree, etc) and his rom, EMUI 3.0, is based on Kit Kat 4.4.2.
I have been trying to bring development for this tablet many months ago because the stock rom is too deprecated for the hardware that has, with the msm8916 there is a huge potential to bring it a lot of development.
Well, i'm going to summarize my problems when trying to bring development for the device:
To get started development, for example a LineageOS build i needed a solid base to start with: device tree, propietary blobs and kernel source, so i got all of them. I ported the device tree from another one very similar to mine (with the same chipset), extracted the propietary blobs with the build tools from the source and got the kernel source from the Huawei website. So everything seemed to be good, but when i start the build process with my Linux machine (repo sync > source build/envsetup.sh > breakfast hwt1a21l > brunch hwt1a21l) i always receive thousands of build error by the kernel source, and i have been fixing (or at least avoid) a lot of them but it never ends, so i don't know if it's worth to keep trying to "fix" them or if i'm wasting my time.
So, what i have been trying to do: i have been trying to build a LineageOS 14.1 and TWRP recovery with my device tree This: Mustang-ssc/android_device_huawei_msm8916-common ported from this one from @dianlujitao : dianlujitao/android_device_huawei_msm8916-common and the specific kernel source for my device downloaded from the Huawei website Mustang-ssc/android_kernel_huawei_hwt1a21l. Here ends the summary.
So after a lot of hours, days and nights over the last months trying to make progress with this and not getting any help from the few devs i asked after seeing my lack of progress i decided to publicly ask for help.
The questions:
1. I have the official kernel source (Mustang-ssc/android_kernel_huawei_hwt1a21l) which i didn't have success to compile it, and then i saw the kernel source from a device almost identical to mine (same chipset, brand, ram, ...) (dianlujitao/android_kernel_huawei_msm8916). Can i use that kernel source as a base for my device after porting the specific configurations of my official kernel source (defconfig, drivers, libraries)? That one is much more updated and probably optimized than mine, but i don't know if it's possible to adapt a kernel source from other device using your kernel source.
2. This may be a dumb question: my device has Kit Kat 4.4.2. Is there any link between the kernel source and the android version the device has? I mean, i don't know if i should do something to adapt my kernel source for newer android versions (Marshmallow, Nougat) of if it's ok to just build with it without any change.
If you read it all, congratulations, you're awesome
Still waiting for a reply

Making own rom for Mediatek device

Hello!
I'd like to build my own rom from AOSP 8.0 official branch. I'm looking for some kind of guide but couldn't find any So, let's say I've got android source code and files from other custom rom that makes camera work. What have I to do to make my rom now? How can I build it and be sure that everything will work. Generally my target is to install android 8 on my Leeco le 2 x620 device with Mediatek chip
Any help is appreciated ^v^
LEGOL2 said:
Hello!
I'd like to build my own rom from AOSP 8.0 official branch. I'm looking for some kind of guide but couldn't find any So, let's say I've got android source code and files from other custom rom that makes camera work. What have I to do to make my rom now? How can I build it and be sure that everything will work. Generally my target is to install android 8 on my Leeco le 2 x620 device with Mediatek chip
Any help is appreciated ^v^
Click to expand...
Click to collapse
"I'd like to build my own rom from AOSP"
So you mean an aftermarket os like lineageos or carbonrom or do you mean that you take the aosp repo and compile aosp for your device? You can look in source.android.com
"source code and files from other custom rom that makes camera work"
Is that an already compiled rom? Because you won't get source code out of that
"How can I build it and be sure that everything will work"
Ya don't. Nothing can ever be 100% bugfree, it can either be from your device tree's source code, or the aosp code itself.
Generally, if there is a caf tree for your device, it's going to be 3x as hard to create an aosp tree.
It is going to be 100000x as hard to create an aosp tree that is for a newly released, new hardware requirement operating system.
Wanna know the topping of the cake? Mediatek is notorious when it comes to releasing the source (in fact, it has become a meme in the Mediatek users world) but don't let that stop you son.
You can try, but don't give up just because it won't compile the first couple of hundred times. The errors when compiling should give you a great start
Good luck.
ramiabouzahra said:
"I'd like to build my own rom from AOSP"
So you mean an aftermarket os like lineageos or carbonrom or do you mean that you take the aosp repo and compile aosp for your device? You can look in source.android.com
"source code and files from other custom rom that makes camera work"
Is that an already compiled rom? Because you won't get source code out of that
"How can I build it and be sure that everything will work"
Ya don't. Nothing can ever be 100% bugfree, it can either be from your device tree's source code, or the aosp code itself.
Generally, if there is a caf tree for your device, it's going to be 3x as hard to create an aosp tree.
It is going to be 100000x as hard to create an aosp tree that is for a newly released, new hardware requirement operating system.
Wanna know the topping of the cake? Mediatek is notorious when it comes to releasing the source (in fact, it has become a meme in the Mediatek users world) but don't let that stop you son.
You can try, but don't give up just because it won't compile the first couple of hundred times. The errors when compiling should give you a great start
Good luck.
Click to expand...
Click to collapse
Oh God, how am I meant to do this ;0 There is Lineage 14.1 project on my device. I really want to have android 8 on my phone. Thank you for all the advice.
Yes im trying the same andere without any succes so far.
Im also trying to port from a different device ROM to the stock ROM what im running now.
The chip sets are the same but the Android versions not.
It would be really Nice if some mtk ROM developer find some time in his busy life to create a ROM for our phone.
Or a guide to compile/port Android o tot oud phone.

Categories

Resources