ஏமர்எட், பேக்கன் மற்றும் எஃப்.பி 2¶
எல்சி நெக்சச் 5 (ஏமர்எட்), ஒன்பிளச் ஒன் (பேக்கன்) அல்லது ஃபேர்போன் 2 (எஃப்.பி 2) க்கான கர்னல் மற்றும் ஆண்ட்ராய்டு படத்தை எவ்வாறு உருவாக்குவது என்பதை இந்த பக்கம் ஆவணப்படுத்துகிறது.
Note
நீங்கள் பின்பற்றுமாறு நாங்கள் மிகவும் பரிந்துரைக்கிறோம் ஆலியம் போர்ட்டிங் வழிகாட்டி நீங்கள் ஒரு புதிய கருவியை கொண்டு வர விரும்பினால். இங்குள்ள படிகள் ஏமர்எட், பேக்கன் மற்றும் எஃப்.பி 2 க்கு மட்டுமே பொருத்தமானவை.
இந்த ஆவணம் உங்களுக்கு ஏற்கனவே ஆண்ட்ராய்டு அல்லது Halim ஐ உருவாக்குவது பற்றிய அறிவு இருப்பதாக கருதுகிறது. உங்கள் கருவியில் உபுண்டு டச் நிறுவப்பட்டுள்ளது என்றும் இது கருதுகிறது.
அமைக்கப்படுகிறது¶
ubp-5.1 போர்ட்களை உபுண்டு 16.04 ஐப் பயன்படுத்தி உருவாக்க வேண்டும். இந்த நோக்கத்திற்காக 16.04 அடிப்படையிலான கொள்கலன் அல்லது மெய்நிகர் இயந்திரம் பரிந்துரைக்கப்படுகிறது.
Let's get started by installing some build dependencies:
sudo dpkg --add-architecture i386 && sudo apt update
sudo apt install schedtool gcc g++ g++-multilib zlib1g-dev:i386 \
zip libxml2-utils bc python-launchpadlib phablet-tools
Create a directory for your ubp-5.1 source:
mkdir ~/ubp-5.1
cd ~/ubp-5.1
Next, we'll initialize the repository:
repo init -u https://github.com/ubports/android -b ubp-5.1-allthefixings --depth=1
Note
allthefixings கிளை வசதிக்காக வழங்கப்பட்டுள்ளது. இது இன்னும் கொஞ்சம் பதிவிறக்கம் செய்யப்பட்ட தரவின் செலவில் தற்போதைய UT சாதன போர்ட்கள் அனைத்தையும் மரத்தில் சேர்க்கிறது. நீங்கள் பதிவிறக்க உணர்திறன் உடையவராக இருந்தால், -b ubp-5.1 ஐப் பயன்படுத்தி துவக்கி, நீங்கள் விரும்பும் களஞ்சியங்களைத் தேர்ந்தெடுக்க build-scripts இல் உள்ள மேனிஃபெச்டைப் பயன்படுத்தவும்.
Finally, we'll download the source:
repo sync -j10 -c
கணம் மேலே and உருவாக்கு¶
With the மூலங்கள் downloaded, we need பெறுநர் கணம் மேலே our சூழல் and உருவாக்கு the images. Make sure you're in your ubp-5.1 directory பெறுநர் தொடரவும் through these steps.
First, bring in the default Android build environment:
source build/envsetup.sh
Run lunch and pick the appropriate combo for your device. The name of the combination should start with cm_, followed by the device name and ending with -userdebug:
lunch
With that done, the build can be started:
mka
Install the புதிய படம்¶
இப்போது உருவாக்கம் முடிந்துவிட்டதால், அதை கருவியில் ஒளிரச் செய்யலாம். குறிப்பு that அனைத்தும் of these கட்டளைகள் should be ஓடு இருந்து a முனையத்தில் which has been கணம் மேலே with source build/envsetup.sh and lunch பெறுநர் ensure the needed கருவிகள் அரே in your PATH.
We'll begin with the boot and recovery images. Boot your device into fastboot mode and run the following commands:
cout
fastboot flash boot boot.img
fastboot flash recovery recovery.img
இப்போது உங்கள் கர்னல் உருவாக்கம் விவேகமாக இருப்பதை உறுதிப்படுத்த உங்கள் கருவியை துவக்கவும். மீட்டெடுப்பதில் நீங்கள் துவக்க விரும்பலாம்.
To install your new build of the system image, use the replace-android-system script. It can be run as follows with your device attached:
./replace-android-system system.img