Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oneplus6/9.0.0 #54

Open
wants to merge 4 commits into
base: oneplus3/6.0.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
ANNOUNCEMENT
===
When we launched the OnePlus 3, we started a very interesting tradition, Zero Day sources for our devices. Since then, every device has launched with them.

With the project treble in place, we think the AOSP(Qualcomm) device tree is not as useful or important as it used to be,

based on conversations we had with our dev community and the fact that we have only made few changes on AOSP(Qualcomm BSP) device tree, we will not be releasing AOSP device trees for future devices, the community can get the baseline from our device and get the source code from Qualcomm.

We always have had a great community of developers working on our devices, and we will continue providing support to our dev community, you can always get in touch with our team on GitHub

The kernel device-tree will be made available on GitHub and our Dev community working on one plus devices will have access on day one of the releases of the new devices.

Downloading the Source
===
1. Repo sync all code with default.xml
`repo init -u git://github.com/OnePlusOSS/android.git -b oneplus3/6.0.1`
`repo init -u git://github.com/OnePlusOSS/android.git -b oneplus6/9.0.0`
`repo sync`
2. Root your device
3. Pull the necessary libraries from your device by executing the script `pull_library.sh`
4. After pull_library.sh be executed, a directory named "vendor" should be generated. Copy this directory to root of project.
3. Pull all files from vendor partition
4. After all files pulled, copy these files to vendor/oneplus/vendor.

Building the System
===
Expand All @@ -15,17 +27,18 @@ Initialize the environment with the envsetup.sh script. git a
**[Choose a Target]**
Choose which target to build with lunch.
`$ lunch`
enter **25** for msm8996-userdebug
enter **26** for msm8996-user
enter 47. sdm845-userdebug
**[Build the code]**
Build everything with make. GNU make can handle parallel tasks with a -jN argument.
`$ make -j4`
**[Flash a Device]**
Let device enter fastboot mode, run
`$ adb reboot bootloader`
Once the device is in fastboot mode, run
`$ fastboot --disable-verity flash vbmeta vbmeta.img`
`$ fastboot flash boot boot.img`
`$ fastboot flash system system.img`
`$ fastboot flash system system.img`
`$ fastboot flash system vendor.img`
If you want flash new /data partition, run
`$ fastboot flash userdata userdata.img`

Loading