Ok so I have built cm11 for my device (galaxys s 4g), and ported cm11 from another device to (aries -> galaxy s 4g). CM11 has too much going on IMO and I just want pure aosp on my device, the problem is that there are no (recent) aosp roms for my device, or any similar devices.
So how do I port my device to a different flavor of android when there are no roms of that flavor?
What have I tried?
So far I have setup the aosp 4.4 repo to a different folder than my cm11 repo (the build environment files should be the same right?)
I tried using the manifest from the cm11 rom and buidling with aosp,that didnt work it didnt even finish compiling =(.
I browsed the aosp source for other devices by the same manufacturer, but everything looked completely different from what I am used to.
The most helpful guide in this direction sofar has been cyanogenmods guide but it has left me with more questions than answers.
What [I think] I need to know
Custom recovery - aosp doent seem to include a recovery, the cm guide says to start with the recovery. So i need to know if I need to add a custom recovery to aosp, or if i can install aosp roms from twrp without breaking it.
Binaries - It is safe to use the binaries used in CM11 for aosp/any other flavor, or are the binaries flavor specific? (im thinking they are safe to use, but not entirely sure).
Device files - what files should be safe to use for any flavor?
Kernel - Cm builds the kernel when you compile the rom (or so it says), does aosp build the kernel when you build the rom, or do I have to build the kernel separately? Is it safe to say use a CM11 kernel with an aosp rom?
Related
So since SafeStrap can boot an AOSP based ROM that can use the same kernel, I decided to make a CyanogenMod 10.1 ROM for those who can only use safestrap.
I've gotten my build environment set up, and repo sync'd cm-10.1.
My question is:
Where can I get proprietary binary "blobs" for this device? I see I can get some device files from
https://github.com/ggow/android_device_amazon_hdx-common and
https://github.com/ggow/android_device_amazon_thor(or apollo) (cm10.1 branch for both)
Where do I put these once cloned? Can I just "lunch full_thor-userdebug" and "make" after that?
Thanks in advance.
Hi guys, I'm doing a Cyanogenmod 12.1 porting for my device that is unsupported. I can build everything and I get a flashable zip but I'm using a prebuilt stock kernel image extracted from the stock lollipop rom. After flashing, the phone does not boot and It's impossible even to access to logcat, so I think it's a kernel related issue. My question is:
- I have the stock kernel source (v.3.10) given by the vendor
- I have the cyanogenmod kernel source (v.2.69)
Do I have to build the stock kernel or I can build the cyanogenmod one by merging the drivers modules and others stuff?
And if I flash a wrong kernel image can my device become unusable?
I read that is not fair importing built kernel modules from other kernel version, but if I merge the kernel trees, is it the same?
Sorry in advance if my question is a noob question
Well I don't know much about porting roms or kernels though. But with what I've heard flashing the wrong kernels can permanently render your phone useless..
Sent from my Tecno F7 a ...?
I want to compile any TouchWiz-based ROM for Samsung Galaxy S4 (GT-I9500). I've found the guide for CyanogenMod and compiled it, but there are bugs in all Cyanogen-based ROMs for this device: unable to power it on when charging, and MHL cable connection often doesn't work. These bugs are absent in TouchWiz ROM, that's why I want to compile it to make my modifications there. Is there any guide or instruction how to do it?
We dont't have sources for Samsungs OEM ROM, only the kernel sources, so you can't compile it like CM.
You only can take the stockfirmware, tweak it more or less (decompile APKs, Theming, etc.), make a flashable Zip or something like that.
Hello,
I'm new to Android modding and I already read many guides, tutorials, etc. But every time people build a new ROM they don't use the AOSP but the CM source. So I like to build a clean, not modified ROM from the AOSP sources but when I tried the first time, I didn't know what I need to do because Google's guide only tells about how to build the ROM for a Nexus device and not for mine (I'm using the Motorola Moto G 2014 as primary device).
So first of all, is it possible to build the AOSP for my device or do I have to make any modifications in sources (or it is for one person just not possible to port the AOSP to my device) ?
If it is possible, what do I have to do? Is there any guide or tutorial how to build the AOSP for a non Google phone in general?
Thanks for responses
firefligher
I wanted to learn about some best practices about working on more than one Custom ROM (for the same device), I already have a working LineageOS build environment for my device (kebab).
I want to get to see how building an other ROM differs from the LineageOS building process, if a ROM has any sketchy Google requirements I don't like, and how functional a ROM is when building it with the device trees and kernel sources provided by LineageOS. Don't worry, I don't want to create buggy binaries of 10 different ROMS, post them on XDA and abandon them after two days. I just want to get more experience and try to build other ROM's myself, and to see what modification are required for a ROM port.
Is it possible copying some source code from my working LineageOS building environment so that repo doesn't have to re-download everything?
Is it okay to use the same ccache for both ROM's, so that I don't to re-compile binaries these both ROM's share? (As of my understanding, ccache keeps my build times lower when re-building a ROM, is that right?)
Any other tips about managing multiple building environments are appreciated! Thanks!