ELI5 Kenel Source Code - Ascend Mate 7 Q&A, Help & Troubleshooting

hello, so i have been in communication with huawei regrading the kernel source. i mentioned the lack of source files for the mate 7 and how its part of the google/android agreement that oems must share all relevant sources for devices that use any part of android. they replied with the usual reply about how they will work hard to resolve this issue and whatnot. the rep did give me a link to the kernel source which i believe is for kitkat but i cant be sure so i hope that someone can verify.
having said that, why cant the kitkat source be used to build for lollipop and marshmallow? im still using a nook hd+ that is running MM......... WHAT??? how is this possible if the only kernel provided was for ICS? anyway, im going to keep poking at them until they either give up the LP/MM sources of they tell me to ****off. so, if anyone can please check out the link i would really appreciate it.
Lollipop Kernel?

Related

How to Build I717 from original android and samsung source

Hi,
Im new with android develoopment so please bear with a n00b. can someone guide me how to build ics rom using the source provided by samsung..
I have downloaded the original android ics source and samsung's source.. I can build the android source but I dont know how to plug in the samsung code. Unfrotunately, sammy's documentation is insufficient probably about 10 lines, just says to overwrite the android source and do a make. But when I run make I get errors...
I've been looking at the forums most of them build from the cm10 source, but I want to build using the original. Figured I would learn more if I tried to build it from the actual sources..
Appreciate any help. If I learn, I would definitely pay it forward by contributing whatever I can to the community..
Thanks
You need to post this in the Galaxy Note phone section.
Wrong section. 1) Dev sections are for builds and modifications. 2) wrong device thread. This is for the galaxy note 10.1 tablet.
Sent from my GT-N8013 using xda premium
n00b13 said:
Hi,
Im new with android develoopment so please bear with a n00b. can someone guide me how to build ics rom using the source provided by samsung..
I have downloaded the original android ics source and samsung's source.. I can build the android source but I dont know how to plug in the samsung code. Unfrotunately, sammy's documentation is insufficient probably about 10 lines, just says to overwrite the android source and do a make. But when I run make I get errors...
I've been looking at the forums most of them build from the cm10 source, but I want to build using the original. Figured I would learn more if I tried to build it from the actual sources..
Appreciate any help. If I learn, I would definitely pay it forward by contributing whatever I can to the community..
Thanks
Click to expand...
Click to collapse
Wrong forum and building pure AOSP for Samsung non-Nexus devices is impossible, too many framework changes needed. Android userspace is Apache licensed so this is unfortunately legal.
Sent from my GT-N8013 using Tapatalk 2
Thread Moved​
Please post in the correct section.​

How to compile aosp source code for specific devices?

Hi guys, I'm a total noob to android custom roms, so please don't abuse me if I've just asked something very obvious to devs...
Please don't reply giving links to the aosp project, I've already seen them.
Assume I have the system needed to build from the source code.
How do I exactly configure the toolchain for a particular device(say moto g xt1032)?
Do I get configurations with the 9gb download, or do I have to download it separately? And will I be able to successfully compile a working ROM for that device?
I just wanted to know more before diving into my new project.

What is necessary if I want to compile a ROM?

Hi guys. 2 months ago I've came into Android World deeper than before and now I'm very fascinated. I downloaded linux, all the necessary files to compile a rom but I still don't understand some things.
My device is Redmi Note 2 and I use stock MIUI 7. As we all know mtk and/or xiaomi haven't released kernel sources (6795) so developers have to think hard how to make a rom. And there are my questions. Does kernel source is really necessary? What if I compile rom successfully and then port boot.img from stock? Will it work? However developers made some roms based on LP for this device. And I read that I need device tree and vendor, which doesnt exist for redmi note 2 or I still can't use github.
Second question which I have is: does compiling for 64 bit CPU differ from compiling for 32 bit CPU (like 6592)? If yes, could you give me some tips?
Ohh I think you can understand what I wrote
Thanks in advance and please dont blame me for silly questions
If you are looking to compile roms then you picked the wrong device to do it. They are the worst with kernel source. You can't completely compile a rom but use a patch system that does most of the work.
Yes it is different. There are some Tuts around but they are few as most don't use that type of chip.
If you really want to learn to develop then I would suggest getting a different device. One that respects the copyright and gpl laws.
zelendel said:
If you are looking to compile roms then you picked the wrong device to do it. They are the worst with kernel source. You can't completely compile a rom but use a patch system that does most of the work.
Yes it is different. There are some Tuts around but they are few as most don't use that type of chip.
If you really want to learn to develop then I would suggest getting a different device. One that respects the copyright and gpl laws.
Click to expand...
Click to collapse
Thank you for your advices. I have HTC desire 310 and I found the kernel sources. I know what I'll do in my free time
Monsterlevel said:
Thank you for your advices. I have HTC desire 310 and I found the kernel sources. I know what I'll do in my free time
Click to expand...
Click to collapse
To compile a rom u need kernel source, device tree and proprietary, bye

[ROM][TEST]Nexus 5X (Bullhead) HCE Always(off screen payment) Testing rom (AOSP OREO)

Hi.
I've edited android framework code to make HCE(card emulation) feature without turning the screen on.
But I have no device to test this feature because of samsung knox .
So I built a test rom for bullhead.
This rom is based on OPR5.170623.014.
And I want to get feedback about this rom
1. The off screen mobile payment (HCE) feature works well?
2. Then Please let me know the battery time is acceptable or not.
compared to AOSP.
Plus! I do not guarantee this rom is not work properly
If your device broke with my rom, I can't do anything for that
Download Link :
https://drive.google.com/file/d/1w-vO80Jo7O55uUeqCqG0Y83OFqToi7vs/view
Opensource :
https://github.com/HyungJu/hce-always
Apply this patch to frameworks/
Download Gapps for 8.0.0.
Thank you.
No offense, but I think whoever tests this may want to see the source code for whatever you changed.
In my case I wouldn't test this unless I looked at the code and then compiled it myself. Really, it's nothing personal.
The "chain of trust" of most ROMs is that you can easily reproduce the binary version that you can download elsewhere by building from the available source code instead if you wanted to.
Paul L. said:
No offense, but I think whoever tests this may want to see the source code for whatever you changed.
In my case I wouldn't test this unless I looked at the code and then compiled it myself. Really, it's nothing personal.
The "chain of trust" of most ROMs is that you can easily reproduce the binary version that you can download elsewhere by building from the available source code instead if you wanted to.
Click to expand...
Click to collapse
Thank you for your advice.
I uploaded a patch file that I made to github
https://github.com/HyungJu/hce-always
Thank you.
vendor.img..? opr5 14...?

Porting B2G to moto g3

Hi Folks,
I'm trying to port B2G to my moto g3. I was referring to this doc (https://developer.mozilla.org/en-US/docs/Archive/B2G_OS/Porting_B2G_OS/basics). However some of the things mentioned in this doc are not clear to me. Could you please help me with the below issue.
I'd like to build the AndroidKernel from source. So where should I include the below lines? Is it in this file?
https://github.com/LineageOS/android_device_motorola_osprey/blob/cm-14.1/rootdir/etc/init.target.rc
HTML:
on early-init
start ueventd
import /init.b2g.rc
Also if I understood correctly. building the kernel from source doesn't require to unpack , edit the init.rc file and repack the kernel from the device. Could you please confirm this?
Thanks,
Arun
Hi Arun,
I totally understand your frustration with this. You'd like to contribute to the Servonk project but first you need to port B2G to your phone or buy a new phone. Since the only other supported phones are the Z3 compact and Nexus 5, both of which are still relatively expensive secondhand, you want to use your Moto G3 which means first porting B2G to it.
So, I think there are two options you have:
1. Port direct from the AOSP code
2. Port from the CM12 code.
As Gerard said in telegram, porting from CM to B2G was never finalised so may actually require more work. However there may actually be more people here who can help you since people seem more familiar with CM than AOSP (in general, I know some people are very knowledgeable in both).
I see you've posted in the AOSP 7.1.1 kernel thread. Unfortunately, for the Servonk project you currently need a Lollipop based build, so 5.x AOSP kernel or CM12.x.
It might be worth asking a mod to move this thread into one of the development sub-forums.
As you know, this is the limit of my knowledge, but I really hope you find some success, if would be great if you could contribute to the Servonk project.
Your last option is to use the desktop build of Servonk, based on Glutin instead of Gonk, but I understand that you really want to get Servonk working on your phone.
Best of luck

Categories

Resources