How to Compile Roms and kernel for op3 - OnePlus 3 Questions & Answers

Guyz how to Compile Roms or kernel for oneplus 3 and how port manufacturer rom for oneplus 3 ???

This wiki document explains very well how to build cyanogenmod 13 for the OnePlus 3:
https://wiki.cyanogenmod.org/w/Build_for_oneplus3
Instead of extracting the binary blobs from your device you can also clone the following repository:
https://github.com/TheMuppets/proprietary_vendor_oneplus
and copy the oneplus3 directory to ~/android/system/vendor/oneplus/
I did this just a few days ago on Ubuntu 16.04 x64.
Nice regards.
Michael

Can you please give me your WhatsApp no. .... where I can contact you....i need your help @michael

Feel free to ask any questions you might have in this thread. There is a higher chance that somebody will be able to give you further hints and guide you into the right direction.

::Michael:: said:
This wiki document explains very well how to build cyanogenmod 13 for the OnePlus 3:
https://wiki.cyanogenmod.org/w/Build_for_oneplus3
Instead of extracting the binary blobs from your device you can also clone the following repository:
https://github.com/TheMuppets/proprietary_vendor_oneplus
and copy the oneplus3 directory to ~/android/system/vendor/oneplus/
I did this just a few days ago on Ubuntu 16.04 x64.
Nice regards.
Michael
Click to expand...
Click to collapse
You're a new member here and already helpful.
You deserve your thanks.

Related

[Linux] [Windows] [Unix] OTools - One a0001

OTools​------------------------------------------------------------------​
OTools is an opensource toolkit for windows and linux that helps you manage your oppo or oneplus device.
Click to expand...
Click to collapse
Code:
This program has enough knowledge to brick your device, destroy your computer,
void warranties, eat cats and burn your flowers.
The developer disclaim every damange caused from the usage of this program.
Supported devices
------------------------------------------------------------------​
OnePlus One
Oppo Find 7(a/s)
Oppo Find 5
Oppo N1
Features
------------------------------------------------------------------​
User friendly gui
Management features
Backup and restore (adb)
Push and Pull files
Import camera photos
Install apk
Record Screen
Shell
Modding
Root
Unlock Bootloader
Lock Bootloader
Backup EFS
Flash zip files
Install roms (optional backup)
Flash boot.img files
Install recovery
Root Mode
Dipendecies
------------------------------------------------------------------​
ADB
FastBoot
XTerm (only for linux amd64)
Downloads
------------------------------------------------------------------​https://github.com/linuxxxxx/O-Tools
Sources
------------------------------------------------------------------​
Github - Master
Windows
Linux (amd64)
Unix / Linux
Notes
------------------------------------------------------------------​
It's fully written using qt (c++), some parts are written in bash (batch for windows), if you want to compile, just import the sources into qt
It's not avaible yet, I just got my opo, so NO ETA
It's based on my XiaomiTool
Contributions and suggestions are welcome
XDA:DevDB Information
OTools - An opensource Toolkit for Oppo and OnePlus devices , Tool/Utility for the ONEPLUS ONE
Contributors
linuxxxx
Source Code: https://github.com/linuxxxxx/O-Tools
Version Information
Status: Alpha
Created 2014-12-25
Last Updated 2015-01-16
Placeholders are not allowed on XDA. When are you going to fully release it with a downloadable file?
TiVON said:
Placeholders are not allowed on XDA. When are you going to fully release it with a downloadable file?
Click to expand...
Click to collapse
There are sources, if u cannot live without compile it, I've written WIP
Not really a placeholder as source code is given.
Thanks!
linuxxxx said:
There are sources, if u cannot live without compile it, I've written WIP
Click to expand...
Click to collapse
justmpm said:
Not really a placeholder as source code is given.
Thanks!
Click to expand...
Click to collapse
Ah yes! My sincere apologies!
I was a bit too quick in judging, sorry. It's just that I am used to "Super Hax0r Skillaas Tools" placeholder threads, so I was expecting this to be one too.
Missed it
Will compile this evening, and report back if anything didn't work out for me.
Alpha released for unix and linuxamd64 (on Linux you may need qtwidget to make it start)
There are bugs and missing features!!
@ windows users: the code is (almost) ready, I just have to find a PC (or setup a VM) where I can compile and test this
Can u port this tools for Yu Yureka
ela1103 said:
Can u port this tools for Yu Yureka
Click to expand...
Click to collapse
Add a device support is pretty easy, so maybe
linuxxxx said:
Add a device support is pretty easy, so maybe
Click to expand...
Click to collapse
Waiting for the YU Yureka

delete

Delete this thread
Well, i suddenly visited Mipad sub-forum on XDA and i saw this...
What? You just rename repository from android_device_nvidia_shieldtablet to android_device_xiaomi_mocha...
And it is ALL what you did ???? OMG. No comments. Facepalm.
So i spent 1 hour of my life to make a mocha bring up.
https://github.com/vickdu31/android_device_xiaomi_mocha/pull/1/files
Also you should merge commits which will update selinux to kernel sources.
+ Do not forget about upstream patches.
Cherry-pick it from
https://github.com/CyanogenMod/android_kernel_nvidia_shieldtablet
If YOU continue do nothing, you will receive no result.
tank0412 said:
Well, i suddenly visited Mipad sub-forum on XDA and i saw this...
What? You just rename repository from android_device_nvidia_shieldtablet to android_device_xiaomi_mocha...
And it is ALL what you did ???? OMG. No comments. Facepalm.
So i spent 1 hour of my life to make a mocha bring up.
https://github.com/vickdu31/android_device_xiaomi_mocha/pull/1/files
Also you should merge commits which will update selinux to kernel sources.
+ Do not forget about upstream patches.
Cherry-pick it from
https://github.com/CyanogenMod/android_kernel_nvidia_shieldtablet
If YOU continue do nothing, you will receive no result.
Click to expand...
Click to collapse
Don't blame him. There is a will and intention of him to cook a rom. Everybody needs help and everybody was a beginner.
Yeah I have been pretty busy at school and other stuff so I don't have time, and still I have to learn couple things, I pulled the request, thanks.
I did this in this time : http://gbatemp.net/threads/release-haxchi-installer-1-1-noob-friendly.448890/
I think there is no big hurry and I am really busy at the moment, my point is to get more people working and ofcourse I have to start working on it asap !
There are people working
They just don't open a thread without having done anything because that's not really development
Harrynowl said:
There are people working
They just don't open a thread without having done anything because that's not really development
Click to expand...
Click to collapse
Can't find anyone working on it.. Is there any thread, forum or group or anything where people work ? Even on github I didnt find anything
vickdu31 said:
Can't find anyone working on it.. Is there any thread, forum or group or anything where people work ? Even on github I didnt find anything
Click to expand...
Click to collapse
Yes, it could be great to join your effort to not repeat same work.
Regards.
vickdu31 said:
Can't find anyone working on it.. Is there any thread, forum or group or anything where people work ? Even on github I didnt find anything
Click to expand...
Click to collapse
@Harrynowl is working as far as I know. I'm too but very busy lately.
Status !!?
vickdu31 said:
I create this thread to gather all potential developpers to join me and try to build a CM13.0 (at least a build that boot) for our Mi Pad.
I don't have much experience or knowledge yet but who knows, maybe we can get bootable build soon or later.
To all users : Do not expect anything from this thread in a while.
Current situation :
Just created the device tree from Nexus and Xiaomi sources.
To do right now :
- Totally modify the Device Tree (this is from nexus 9)
- Modify kernel to be able to try to even build something
Here are the device tree :
Device Tree (from cm13 Nexus 9) : https://github.com/vickdu31/android_device_xioami_mocha
Kernel Tree (from Xiaomi KK) : https://github.com/vickdu31/android_kernel_xiaomi_mocha
Vendor Tree (old Xiaomi KK) : https://github.com/vickdu31/android_vendor_xiaomi_mocha
I think I cannot do everything all by myself within 6+ month so any help is very welcome just as pull requests.
XDA:DevDB Information
working on Mi Pad, ROM for the Xiaomi Mi Pad
Contributors
vickdu31
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.10.x
Based On: CyanogenMod
Version Information
Status: Testing
Created 2016-11-21
Last Updated 2016-11-26
Click to expand...
Click to collapse
Any progress to look forward to ?
Required help
Can some one guide me through the process of building the rom i already downloaded the cm 13 source. Searched many forums but not able to understand the process how to build for mocha @tank0412 @vickdu31 @Harrynowl
Rohit99 said:
Can some one guide me through the process of building the rom i already downloaded the cm 13 source. Searched many forums but not able to understand the process how to build for mocha @tank0412 @vickdu31 @Harrynowl
Click to expand...
Click to collapse
OMG.
Are you seriously?
. build/envsetup.sh
lunch
*enter number of mochas lunch combo"
You cannot build with these device sources because they are broken
Error while building
tank0412 said:
OMG.
Are you seriously?
. build/envsetup.sh
lunch
*enter number of mochas lunch combo"
Click to expand...
Click to collapse
Got this error while building using command
Code:
brunch mocha
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:234: *** Can not locate config makefile for product "cm_mocha". Stop.
Device mocha not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for mocha not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:234: *** Can not locate config makefile for product "cm_mocha". Stop.
** Don't have a product spec for: 'cm_mocha'
** Do you have the right repo manifest?
Click to expand...
Click to collapse
added repos in local_manifest.xml and roomservice.xml
Update :
i was able to brunch but stuck at this error
make: *** No rule to make target 'kernel/xiaomi/mocha/arch/arm/configs/cyanogenmod_mocha_defconfig', needed by '/home/uttara/rom/script/out/target/product/mocha/obj/KERNEL_OBJ/.config'. Stop.
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
@tank0412 please help
Rohit99 said:
Got this error while building using command
Code:
brunch mocha
added repos in local_manifest.xml and roomservice.xml
Update :
i was able to brunch but stuck at this error
@tank0412 please help
Click to expand...
Click to collapse
OMG. Are you seriously?
Put kernel sources to 'kernel/xiaomi/mocha/
It was writtent in the error!
No comments....
And rename defconfig of mocha to cyanogenmod_mocha_defconfig
tank0412 said:
OMG. Are you seriously?
Put kernel sources to 'kernel/xiaomi/mocha/
It was writtent in the error!
No comments....
And rename defconfig of mocha to cyanogenmod_mocha_defconfig
Click to expand...
Click to collapse
@tank0412 I'm very sorry for disturbing you this is my first build so please help, should i rename tegra_defconfig bcoz there is no file named defconfig
Rohit99 said:
@tank0412 I'm very sorry for disturbing you this is my first build so please help, should i rename tegra_defconfig bcoz there is no file named defconfig
Click to expand...
Click to collapse
Oh, GOD.
Check this:
https://github.com/vickdu31/android_kernel_xiaomi_mocha/pull/1/files
And turn on logic
Im working on other projects now, I don't have time at all, I can pull commits, I was thinking about closing this thread but since we can talk I can keep it open, but a discusion thread would be more apropriate
vickdu31 said:
Im working on other projects now, I don't have time at all, I can pull commits, I was thinking about closing this thread but since we can talk I can keep it open, but a discusion thread would be more apropriate
Click to expand...
Click to collapse
@vickdu31 you can close the thread i have created a new thread CM13

SailfishOS For Redmi Note 5/ Redmi Note 5 Pro

When will sailfishos ever appear? I love Linux/GNU and I want to see this OS on whyred
If you port it.
Not worth it. Not enough people will use it
Yes! I also love GNU / Linux and would also like Sailfishos / Ubports / Halium / PlasmaMobile on whyred to porting! The only pity is that they did not post the LOS 14.1 Device tree. In Messages Dev LOS 14.1 not answer Probably you need to build the device tree yourself. Since halium max version base Android 7.1, sailfish os is base Android 8.1 Experimental / Unstable (.
Not worth it. Not enough people will use it
Click to expand...
Click to collapse
Well so what? GNU / Linux desktops run 2% of users, but you can still use There are drivers, there is stability, there is software.
On smartphones, Complicated this is , but other OSes are still possible. Snapdragon SoC features allow. Looking for a device tree, Halium, enough time and straight arms.
TITANIST26 said:
Yes! I also love GNU / Linux and would also like Sailfishos / Ubports / Halium / PlasmaMobile on whyred to porting! The only pity is that they did not post the LOS 14.1 Device tree. In Messages Dev LOS 14.1 not answer Probably you need to build the device tree yourself. Since halium max version base Android 7.1, sailfish os is base Android 8.1 Experimental / Unstable (.
Well so what? GNU / Linux desktops run 2% of users, but you can still use There are drivers, there is stability, there is software.
On smartphones, Complicated this is , but other OSes are still possible. Snapdragon SoC features allow. Looking for a device tree, Halium, enough time and straight arms.
Click to expand...
Click to collapse
We have lineageos 14.1
https://www.google.com/amp/s/forum..../development/rom-lineageos-14-1-t3765529/amp/
I think its a pretty good idea. Just because some people don't use them doesn't mean its useless.
Sailfish is already present for redmi note 5 / 5 plus. It would be a great addition for our note 5 pro too
a2p1k02 said:
We have lineageos 14.1
Click to expand...
Click to collapse
Need not assembled ROM * .zip, and you need to have a device tree, branch cm-14.1 (device_xiaomi_whyred, kernel_xiaomi_whyred, vendor_xiaomi_whyred on Github). And it is not there, only lineage 15.1. I will try to collect lineage
karan5chaos said:
reply
Click to expand...
Click to collapse
I did not find the https://forum.xda-developers.com/chef-central/android/how-to-build-lineageos-14-1-t3551484 instruction for building specific files for the device tree and google too not found. Found the old for cm 11 or others do not describe a sufficiently assembly system. Help me find this guide!
I think people have ported sailfish using lineage 15.1 as well. Did you check maemo.org? I'm sure you will find the required guide there.
After a long search still found mer-hybris 15.1. I put the command repo sync to download the source SFOS about 13 gb (at a speed of 4 Mbit/s) tomorrow is downloaded and I will continue porting.
TITANIST26 said:
After a long search still found mer-hybris 15.1. I put the command repo sync to download the source SFOS about 13 gb (at a speed of 4 Mbit/s) tomorrow is downloaded and I will continue porting.
Click to expand...
Click to collapse
You are my hero !
Thank you so much for your efforts and persistence. It's because of members like your this community is thriving. I will gladly be a tester and report back issues and feedback if any.
karan5chaos said:
Reply
Click to expand...
Click to collapse
I think you know how to resume the ragged download source repo.
After repo sync, --fetch-submodules prints:
error: in `sync --fetch-submodules`: revision lineage-15.1 in LineageOS / android_kernel_xiaomi_sdm660 not found
Proceeding from the fact that the Internet is a little unstable, "warning, fatal" were pouring into the terminal. To stop this, I pressed ctrl + c. but it was necessary ctrl + z (suspend the process)
How to fix?
PS: In a few days, I will have a better internet connection.
PPS: Question is closed, I looked in google, I found a similar case
https://stackoverflow.com/questions/51466608/multiple-android-repo-sync-fatal-errors
TITANIST26 said:
I think you know how to resume the ragged download source repo.
After repo sync, --fetch-submodules prints:
error: in `sync --fetch-submodules`: revision lineage-15.1 in LineageOS / android_kernel_xiaomi_sdm660 not found
Proceeding from the fact that the Internet is a little unstable, "warning, fatal" were pouring into the terminal. To stop this, I pressed ctrl + c. but it was necessary ctrl + z (suspend the process)
How to fix?
PS: In a few days, I will have a better internet connection.
PPS: Question is closed, I looked in google, I found a similar case
https://stackoverflow.com/questions/51466608/multiple-android-repo-sync-fatal-errors
Click to expand...
Click to collapse
I think the question at stack overflow did mention some fix in second answer. Did you try that ?

General Manifest FIle

Hello Fellow developer and programmer, I'm building a custom by using Ressurection Remix as a base, While I'm initializing the repo an error occurred, How to solve that. The Error is repo is not reccoginzsed as an internal or external command, I have installed the repo, thanks for the reading the post
LMGTFY - Let Me Google That For You
For all those people who find it more convenient to bother you with their question rather than to Google it for themselves.
bfy.tw
Deadshot0x7 said:
Hello Fellow developer and programmer, I'm building a custom by using Ressurection Remix as a base, While I'm initializing the repo an error occurred, How to solve that. The Error is repo is not reccoginzsed as an internal or external command, I have installed the repo, thanks for the reading the post
Click to expand...
Click to collapse
Download repo and make executable. Basic stuff man. Google as suggested above.
William.trem said:
Download repo and make executable. Basic stuff man. Google as suggested above.
Click to expand...
Click to collapse
thanks btw I'm new to custom rom
Deadshot0x7 said:
thanks btw I'm new to custom rom
Click to expand...
Click to collapse
I'm working on porting one myself. Repo is available within the Ubuntu apt-get repository. That can be a simpler way to install. However I'd suggest the curl & chmod method method for the latest binary as well as getting good experience.
Source control tools | Android Open Source Project
source.android.com
Downloading the Source | Android Open Source Project
source.android.com
2 sec to google
Follow the instructions to add the repository, then do an initial repo sync, I hope you have plenty of drive space cos some roms can take up many GB
The manifest instructions even link you to the guide for setting up git and repo
Ubuntu is usually the best platform for this, it might work in Windows subsystem for Linux but I've never tried so couldn't tell you.
Haven't built a rom for a while but you used to add device tree urls in .repo/local_manifests/roomservice.xml, it's probably still done the same way. (.repo is a hidden folder by default so, in Ubuntu, you would press CTRL+H to get it to show up)
If you don't know how to install repo then you will likely need to do a LOT of reading before you can even think of firing off a build.
djsubterrain said:
Follow the instructions to add the repository, then do an initial repo sync, I hope you have plenty of drive space cos some roms can take up many GB
The manifest instructions even link you to the guide for setting up git and repo
Ubuntu is usually the best platform for this, it might work in Windows subsystem for Linux but I've never tried so couldn't tell you.
Haven't built a rom for a while but you used to add device tree urls in .repo/local_manifests/roomservice.xml, it's probably still done the same way. (.repo is a hidden folder by default so, in Ubuntu, you would press CTRL+H to get it to show up)
If you don't know how to install repo then you will likely need to do a LOT of reading before you can even think of firing off a build.
Click to expand...
Click to collapse
Currently having success within WSL v1 Ubuntu.

[ROM][UNOFFICIAL][10] e/OS 0.22 q for Motorola One xt1941-4

Following this thread, I recently built e/OS 0.22q for Motorola One xt1941-4 (deen). Please refer to https://e.foundation/e-os/ to learn more about e/OS.
After several weeks of usage this ROM seems to be very useful. Find the zip file with the images of the Andoid 10 version here. Unzip and flash using adb and fastboot. Please use at your own risk!
I used the following repos in my local manifest:
https://github.com/electimon/device_motorola_deen, branch Lineage-17.1
https://github.com/electimon/vendor_motorola_deen, branch Lineage-17.1
https://github.com/100Daisy/android_kernel_motorola_deen, branch android-10-release-qpks30.54-22-13
In addition, I included
https://github.com/LineageOS/android_system_qcom, branch Lineage-17.1
which is obviously needed by some stuff from vendor. Vendor files are from 2019, so if someone could provide a more recent repo, I would be glad to know (last stock rom provided by Motorola is from October 2021)
All credits go to the creators of the LineageOS 17.1 port (link to thread at the top of this post)! Very good job guys!
Works just fine, thanks.
LSV12 said:
Works just fine, thanks.
Click to expand...
Click to collapse
Thanks!
Hi! can you make a tutorial to install this rom? i'm new at the custom roms and idk how to install, and sorry for my bad english, i'm brazillian
01nick07 said:
Hi! can you make a tutorial to install this rom? i'm new at the custom roms and idk how to install, and sorry for my bad english, i'm brazillian
Click to expand...
Click to collapse
I'm sorry, but I have no time and I am not good at making tutorials at all. Please refer to the thread referenced at the beginning of the initial post. There you should find all necessary information. If this is not enough, do some more searching and reading on XDA. If you still feel uncomfortable, stay with the stock rom.
Nice work. You succeeded where I failed
I'm trying to build on top of Q to build a e/os 0.23-R version (I see you actually managed to do this). Are you willing to share your sources (here/github) or just a hint on how to build it?
I tried to compile, but I'm stopped at the beginning of the repo-sync for a duplicate manifest.xml
Thank you.
PS: One thing I stumbled upon and managed to fix is the new way e/os manages the prebuilt apk with git lfs
The build will fail unless these apks are downloaded in a separate step. Here's the relevant info from the docs:
Those building using traditional repo sync method refer android_prebuilts_prebuiltapks_lfs 3
You will have to install git-lfs
sudo apt-get install git-lfs
After completing a repo sync, you will have to run
repo forall -c 'git lfs pull'
xdadevc said:
Nice work. You succeeded where I failed
I'm trying to build on top of Q to build a e/os 0.23-R version (I see you actually managed to do this). Are you willing to share your sources (here/github) or just a hint on how to build it?
I tried to compile, but I'm stopped at the beginning of the repo-sync for a duplicate manifest.xml
Thank you.
PS: One thing I stumbled upon and managed to fix is the new way e/os manages the prebuilt apk with git lfs
The build will fail unless these apks are downloaded in a separate step. Here's the relevant info from the docs:
Those building using traditional repo sync method refer android_prebuilts_prebuiltapks_lfs 3
You will have to install git-lfs
sudo apt-get install git-lfs
After completing a repo sync, you will have to run
repo forall -c 'git lfs pull'
Click to expand...
Click to collapse
Thanks! I wrote a report on the endeavour, where you will find almost everything of what I know.
Motorola One (xt1941-4) „deen“: How to build e/OS 0.22 – Herr Elling
fusselbart.de
Please note that I am not a ROM programmer, nor maintainer, and most of the build process is black box to me. However, I will try to build e/os 1.x after summer...
HerrElling said:
Thanks! I wrote a report on the endeavour, where you will find almost everything of what I know.
Motorola One (xt1941-4) „deen“: How to build e/OS 0.22 – Herr Elling
fusselbart.de
Please note that I am not a ROM programmer, nor maintainer, and most of the build process is black box to me. However, I will try to build e/os 1.x after summer...
Click to expand...
Click to collapse
I read your article and managed to follow it and compile my own e/os. I'm also not an android developer. I did some kernel work in the early days, around Android 2.0 but my path diverged and now I'm completely lost.
Let's keep in touch. If you restart your efforts, I'll be happy to contribute. Meanwhile I'll try my best to get some info from the e/os forums and (pray) the lineageos residual devs.

Categories

Resources