Accéder au contenu principal

Porting OmniROM from CM11 configs

Overview

I'm going to discuss forking CM11-based configs to OmniROM, I will not dicuss adapting device configs to TWRP because it's been done to death and most devices do have TWRP.



I'm not going to discuss how to move device, kernel and vendor configs into their proper folders, work at this level is very basic and I'm writing this under the assumption folks have a general understanding of how to build CM11 outside of just using 'breakfast' on an officially supported device. I will be writing this guide assuming you know where to put what, but just don't know how to structure them.



I'll be writing this guide under the assumption that you are using 'moto_msm8960', which I'll be using as an example; however this should apply to any device generally.



Rename the following file from:

cm.mk -> omni_moto_msm8960.mk

http://ift.tt/1Akrkav



full_moto_msm8960.mk (will be merged into omni_moto_msm8960.mk)

http://ift.tt/18wxP4L



If your device config file does not follow this format it's fine. If you have a "Full_device.mk" you will need to import it into your newly made omni_moto_msm8960.mk

I realize you're told to not do this, It's ok hold my hand and we'll walk into the darkness together.



Both files have "device Identifier" values and when using two makefiles with Omni this will cause compile issues 90% of the time unless the entry:

PRODUCT_NAME := full_moto_msm8960

Is above all the other Product_values. (but PRODUCT_value entries must be at the very END of the makefile)



If your Omni has built but has an under 100MB size, do not use dual-makefiles.



Let's construct the omni_moto_msm8960.mk:




Quote:








#---------------------------#

# Moto_msm8960 unified #

# - OmniROM 4.4 - #

#---------------------------#

# Main product makefile

#---------------------------#

# First revision, everything is good here.

#---------------------------#

# Define screen resolution #

#---------------------------#

# * Change this for HDPI devices like Razr M

TARGET_SCREEN_WIDTH := 720

TARGET_SCREEN_HEIGHT := 1280



#---------------------------#

# Phone-specific config #

#---------------------------#

$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)



#---------------------------#

# Build for a CDMA phone #

#---------------------------#

$(call inherit-product, vendor/omni/config/cdma.mk)



#---------------------------#

# Use generic Omni configs #

#---------------------------#

$(call inherit-product, vendor/omni/config/common.mk)



#---------------------------#

# Phone-specific config #

#---------------------------#

$(call inherit-product, device/motorola/moto_msm8960/device_moto_msm8960.mk)



#---------------------------#

# Product [name] values #

#---------------------------#

PRODUCT_NAME := omni_moto_msm8960

PRODUCT_DEVICE := moto_msm8960

PRODUCT_BRAND := motorola

PRODUCT_MODEL := MOTOROLA MSM8960

PRODUCT_MANUFACTURER := motorola



Of course some things will vary; If you use a GSM phone you will not use Omnis CDMA config file, but will ALWAYS use common.



The product-values should reflect what is found in your makefile and PRODUCT_NAME should always be at the very top, screen resolution should be the very first thing specified followed by device specific telephony configs, everything inbetween does not matter as much.



Now we must edit Androidproducts.mk to reflect such a dramatic change, as we're now only using a single makefile.


Quote:








#---------------------------#

# Moto_msm8960 unified #

# - OmniROM 4.4 - #

#---------------------------#

# Product Root makefile

#---------------------------#

PRODUCT_MAKEFILES := \

$(LOCAL_DIR)/omni_moto_msm8960.mk



Modify this file in the following way, also make sure entries point to build paths and not something on Github.

cm.dependencies -> omni.dependencies



If not present, add a 'vendorsetup.sh' file containing the following entry


Quote:








# ----------------------------------------

# Moto_msm8960 unified configuration

# - OmniROM 4.4 -

# ----------------------------------------

# Enable support for 'brunch' command

# ----------------------------------------

add_lunch_combo omni_moto_msm8960-userdebug

add_lunch_combo omni_moto_msm8960-eng



With your kernel and supporting device configs & vendor files intact, Omni will now be able to build functionally.



IF you recieve config.xml error, simply remove that line in config.xml or delete your Overlay folder.



If OmniROM builds but does not seem to boot; use Logcat, do you have this error?

E/Fence ( 220): sync_fence_info returned NUL



If so find the following commit in your kernel:

msm: mdp: Update sync pt. behaviour



and revert it.





from xda-developers http://ift.tt/1Akri2u

Commentaires

Posts les plus consultés de ce blog

[TOOL][UTILITY] CIKA - Carliv Image Kitchen for Android - unpack/repack boot-recovery

Hi, I present you my latest work: CIKA aka Carliv Image Kitchen for Android . So, what is this? It's a utility (tool) for unpacking and repacking boot and recovery images for many kind of android phones. I made two versions, one for windows users and one for linux users. The windows version works by dragging&dropping over the script you want to use, while the linux version will work with terminal commans (very simple commands though). What's inside? For windows version the scripts are batch files and for linux bash files , but the names are the same and they do same thing: clear_all will clear the working folder deleting any unpacked boot/recovery folder, but not the boot or recovery files (original or repacked). image_info will print on screen all informations about the image you want to check (sizes, offsets, cmdline, etc.) and all these infos will be saved in a text file (which will be deleted when you clear the folder - see point 1). This is handy if you don't...

Part 2 of Netflix’s Chilling Adventures of Sabrina keeps the Harry Potter influence going

Everyone who’s been enjoying the magician-in-training aspect of Netflix’s Chilling Adventures of Sabrina should be happy to know that the second half of the show’s first season doubles down on its debt to Harry Potter and Buffy the Vampire Slayer while also drawing some on Star Wars and The Lord of the Rings . One of the most enduring ideas popularized by George Lucas and J.R.R. Tolkien is that world-changing powers can easily be misused. In this latest Sabrina run, the heroine’s decision to sign her name in “The Book of the Beast” at the end of the season’s first half means she’s now one of the most capable witches on Earth, and those new abilities are changing her. Chilling Adventures debuted last October with 10 episodes, introducing... Continue reading… from The Verge - All Posts http://bit.ly/2OQyWSY via IFTTT

Change Wifi , BT , IMEI , Serial Number of any mtk android phone .

Intro : Hello guys i had used SP flash tool to flash stock rom on my micromax canvas a1 . After That i selected Format and Download ( normally we just download but i selected format and download ) and found flashed the rom . Now i noticed the serial number of the device was turned to 00000000 and imei number to invalid . So now i fixed the invalid IMEI number problem . ANd i am back with a tutorial on how to regain serial number back of you phone to regain warranty . How to FIX IMEI nUmber here => http://ift.tt/1xLplOr To check IMEI number dail *#06# To check Serial Number just connect your phone to PC ( usb debugging ) and type adb devices ( correct adb files needed ) You can also use Uncle mobile tool -> Device Information to check the serial number Using Different serial code for infinite warranty is not a good idea as there is serial code printed behind the phone. :P and its illeagal . Note : This post is for educational purpose only . Here i will be teaching you how to r...