mkdir ~/one
cd ~/one
git config --global user.email "[email protected]"
git config --global user.name "login"
repo init -u https://github.com/OneExperience/android.git -b android-8.1.0
repo sync --current-branch --no-tags --no-clone-bundle --optimized-fetch --force-broken --force-sync -j16
If you want to create OneExperience Rom for your Device,then you to create these two files in device tree:
# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) -- only for 64bit phones
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit from device
$(call inherit-product, device/<path>/device.mk) -- path to main device makefile
# Inherit common product files.
$(call inherit-product, vendor/one/config/common_full_phone.mk)
# Set those variables here to overwrite the inherited values.
BOARD_VENDOR :=
PRODUCT_BRAND :=
PRODUCT_DEVICE :=
PRODUCT_NAME := one_device
PRODUCT_MANUFACTURER :=
PRODUCT_MODEL :=
TARGET_VENDOR :=
[
{
"repository": "android_kernel_<name>",
"target_path": "kernel/path"
},
{
"repository": "proprietary_vendor_<name>",
"target_path": "vendor/path"
},
{
"repository": "android_device_<name>-common"
"target_path": "device/path"
}
]
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4000m"
. build/envsetup.sh
lunch one_$device-userdebug
make bacon-jx