Trex2017

compile roms for lenovo vibe P1m

В этой теме 5 сообщений

make account in google cloud platform
go to https://cloud.google.com
go to free trial section
fill up necessary things
also fill the credit card part with mastercard or visacard detailes(they won't charge you until the free trail free money got over and still they will ask you about it)
after this your console will open up

making vm instance
go to vm instance and make a new one
setup about 4core 15gb ram and 100gb storage with ubuntu 16.10
and in this click on the the bar and this will openup a terminal like thing on your browser

prepairing the instance for build
type sudo su ( always do this after opening the server )
mkdir #foldername (replace this with your name or rom name , you may need to delete this folder after each compiling)
NB:don't compile dirctly on home folder
git clone https://github.com/ScriBt/ScriBt.git scripts
cd scripts
./ROM.sh
this will openup ScriBt user interface in this go to option 5 and install all tools
install java inoption to inside tools , in this choose 1.8.0 it is needed for  nougat
close it ones it comlplete
cd ..

now you have to go to your compiling folder
cd $foldername

now sync the rom  source
go to platform manifest of your rom's git
for example i will use dot os

initialize the repo
repo init -u git://github.com/DotOS/manifest.git -b dot-n

start sync
repo sync -f -j8 --force-sync --no-clone-bundle
this will take about 30m in the server

clone device sources

kernel tree - git clone https://github.com/darklord4822/android_kernel_lenovo_P1m.git -b master kernel/lenovo/P1m

vendor tree - git clone https://github.com/z3r0c00l-2k/android_vendor_lenovo_P1m.git -b n vendor/lenovo/P1m

device tree - git clone https://github.com/T-rex2017/android_device_lenovo_P1m.git -b dot device/lenovo/P1m
( i edit my device tree in the git and clone it.you may do the same)

now you have to apply patches

cd device/lenovo/P1m/patches
bash apply-patches.sh
cd ../../../../

setting up things for compiling
( enter these one by one)
export CCACHE_DIR=./.ccache
ccache -C
export USE_CCACHE=1
export CCACHE_COMPRESS=1
prebuilts/misc/linux-x86/ccache/ccache -M 50G
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"
./prebuilts/sdk/tools/jack-admin kill-server
./prebuilts/sdk/tools/jack-admin start-server
export USE_NINJA=false

. build/envsetup.sh
lunch $rom_$device-userdebug
brunch &rom_$device-userdebug

prepairing device tree

https://github.com/T-rex2017/android_device_lenovo_P1m
some edited device tree for diffrent roms are avilable here 
check the changes i made
for the roms i havn't added got to their git and check official devices device tree changes and do the same

always choose nougat in branch inside git , changes needed for n and o are diffrent
compiling may give errors i will add some common errors soon

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Thanks for this tutorial, I will definitely try it. I have a Linux PC myself so I guess I can skip first two parts, right?

1 пользователю понравился пост

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
32 минуты назад, jari_45 сказал:

Thanks for this tutorial, I will definitely try it. I have a Linux PC myself so I guess I can skip first two parts, right?

Even if you have a PC you still need about a 1gbps data connection to download about 30-50gb of data and 100gb of storage with a non intrepted power supply and a day or two to just compile on rom

So I recommend going for Google cloud platfotm

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
22 hours ago, jari_45 said:

Thanks for this tutorial, I will definitely try it. I have a Linux PC myself so I guess I can skip first two parts, right?

Yes please make available new roms for lenovo vibe p1m. Thank you for your support. 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

why don't you try 

i don't have access to gcp now

if anyone willing to help msg me in person https://t.me/Trex2017

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Для публикации сообщений создайте учётную запись или авторизуйтесь

Вы должны быть пользователем, чтобы оставить комментарий

Создать учетную запись

Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!


Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.


Войти

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу