[OnePlus 2 Android Development] pranavthombare:
Code:

#include
/*
* I am not responsible for bricked devices, dead SD cards, thermonuclear
* war, or the current economic crisis caused by you following these
* directions. YOU are choosing to make these modificiations, and
* if you point your finger at me for messing up your device, I will
* laugh at you.
*/

INTRODUCTION

This is LegendROM now for Oneplus 2. We started our journey from Oneplus one and continued our work for Oneplus 3/3T and Oneplus X. It's time to bring this ROM for Oneplus 2.

Telegram Group of LegendROM:- https://telegram.me/LegendROM_OP2

FEATURES

Legend Settings:-

Legend Tweaks Organized

Double tap to sleep anywhere on lockscreen

Smart Pulldown

Three fingers swipe to screenshot

Screenshot Delay

Partial Screenshot Feature (Long press screenshot button in power menu to take partial ss)

Ability to hide superuser status bar icon

Network Traffic Indicator

Network Traffic indicator Hide Arrow Only

Show charging current & voltage on Lockscreen (EXPERIMENTAL)

CPU info overlay

OMS-7:-

OMS-7 Support Added

OMS-7 Bootanimation support Added

OMS-7 font support Added

QS Tiles:-

Sound Tile

Reboot/Recovery Tile

Volume panel Tile

Screenshot Tile

Sync Tile

Caffeine Tile

Prebuilt Apps:-

ViPER4Android 2.5.0.5

Google Keyboard

Swe Browser v54

Some Fix:-

Fixed Network traffic indicator in white and black UI

unpinning with nav bar bug solved

power button ends call fixed

clock and date is now clickable in statusbar

Other Features:-

Changelog Added in ROM

Google Nexus Audio Files

Added LR ASCII art to recovery

Substratum Dashboard

SuperSu Dashboad

Unknown Sources ON by default

Enabled Dev options by default

Livedisplay is Off by default

Enabled Advance Reboot by default

Stock Apps That Removed:-

Gello

AudioFX

Optimization:-

SDCLANG-3.8 Added

Cleaned up Older once and Dexpreopt

Legend Settings:-

Custom QS Header Images

QS columns count configurable

Portrait/Landscape QS mod

Small QS tiles are scrollable

Dashboard Tile layout config

Wakelock blocker

Power + Volume up to Screen record or Partial screenshot

Bluetooth Battery Status when available (experimental)

Longpress Settings Button in Status Bar for Legend settings

Pixel-ify:-

Pixel Lancer Added

Google Wallpaper Added

Pixel Accent

Updated Recents FAB Icon and color to Pixel Blue

Updated Recents Memory Bar color to Pixel Blue

Updated Power Menu volume selector color to Pixel Blue

Updated Legend Settings to Pixel Blue

Updated Gboard Theme to pixel blue

Pixel Icons:-

Use Round Icons

Updated DocumentsUI, EmergencyInfo, StorageManager, Settings, Dialer Icons

Substratum:-

ThemeSafety: Introduce App Crash Intent

Updated PackageInstaller, Contacts, PhoneCommon, ExactCalculator, Dialer, ContactsCommon to work without any error with any Substratum Theme

Other Fixes and Features:-

Flashlight is now brighter

CIFS and NTFS module is now enabled

Custom Tile App Added

Disabled Ambient Display by default

Updated Substratum Dashboard Icon

Magisk Manager Dashboard Added

Materialize MediaProvider Icon

New Power Menu Airplane Icon

Disabled package verifier by default

Fixed TaskManager Running Services

UPDATE 14.1

Updated Pixel Launcher O-3743572

Google Wallpaper google-wallpaper-picker-1-0-149781330

LTE Tile Added

Pixel Navbar Animation is removed (just for now will add it later and pixel Navbar is till there just animation removed)

Fixed Navbar Home button not getting themed

Fixed Bootanimation Themeable with Substratum

Fixed Font Themeable with Substratum

Updated with Latest LineageOs Source

Don't forget to checkout Updated Gallery

UPDATE 15.0

->Merged 7.1.2_r2

->Synchronize codes for OxygenOS 3.5.8

Legend Settings:-

->Notification Ticker Added

->Allow Ticker to show music track info on new track being played

->Added Location to Easy toggle

->Apply Data tile quick toggle behavior also to mini tiles bar

QS Tile:-

->Live Display Tile Added

->Advanced Location Tile Added

->Location Tile: High accuracy state Icon Added

Other Stuff:-

->Pixel Navbar Animation toggle Added

->Task Manager FC Fixed Finally

->Removed Advanced Reboot from developer Options

->Removed Trebuchet Launcher

SQLite:-

->Upgraded SQLite to 3.18.0

Substratum:-

->Hold volume up during boot to disable all overlays

->Themes: Expose Keyboard Shortcuts Dialog

->Expose Screenshot flash and background colors

UPDATE 16.0

->Android-7.1.2_r8 Merged

->Dark Theme Added (Experimental)

->Fixed Compatibility with Custom Battery Icons Of Some Themes

->Recents Memory Bar Improved

->Fixed WiFi QS in The Off State while Entering The Detail View

->Improved Scrolling For TaskManager list

->Ambient Display is Turned Off By default

->Trebuchet Added Back

->CustomTiles Removed

->Legend Browser - v59.0.3071.2814652 Added

->DuckDuckGo Search Added Added

->Malware Domains Filter Added

->Privacy Filter Added

->Ad Filter Added

->Updated to latest oos sources.

->Added aptX support

Update 16.1

->Added HAL3

->Added OxygenOS Camera

->Added Kcal

->Added fastcharge drivers

->Bumped up the image quality to 100%

->Enabled 60fps recording

->Increased volume through speaker and earpiece

->Improved HSPA perf

->Stability improvement

Update 17.0

->Fixed network drops

->Merged Android-7.1.2_r17

->Merged June Security Patch

Legend Settings:-

->Force Heads-up for dialer Added

->OmniJaws Added

->Statusbar Weather Added

->Lockscreen Weather Added

Other Features:-

->Date customization Added

->PA Solid Battery circle style Added

->Pattern Dots Visibility Toggle Added

->Camera Sound Toggle Added

->Restart SystemUI Added

->Recents Task Locking Added

->Real-Time scheduling Added which makes UI Smoother

->Enabled power save config of system apps

->More Animation speed steps Added (0.75 and 1.25)

->Compass Tile Added

->Always show screen on time

Prebuilt Updates:-

->Updated effect sound and Pixel Sounds

->Google's new alarm sounds Added

->Updated Pixel Launcher To Latest

Some Fixes and Modifications:-

->Scroll Velocitytracker Modified

->Made Recents Memory bar Update bit more often

->Fixed SystemUI FC due to Google Assistant

->Fixed lag when opening an entry from the Settings Left Drawer

->Fixed Network Indicator not showing arrows when data saver is Enabled

->Hide Network Indicator when not Connected To Network

->Fixed Right Lockscreen Shortcuts

Update 17.1

->Updated to 3.6.0 sources

->Updated camera to OP5 version

->Removed Oneplus gallery

->Better media scanning speeds

->Added OP5 camera Libs

Update 18.0

Changelog 18.0:-

->Merged Android-7.1.2_r29

->Merged August Security Patch

Legend Settings:-

->Added Configurable Keyguard alpha(change lockscreen alpha color) and Keyguard Bouncer alpha(change lockscreen security alpha color)

->Added Carrier label Customization

->Added Sensor block per-package

->Added MTP Dirty Hack

Prebuilt:-

->Switched bootanimation to Pixel OOS

->Added Magisk v13.3

->Added Viper4Arise (Deuteronomy) Removed Viper4Android

->Added Lawnchair and Removed Pixel Launcher

->Added OTA support

->Updated Gboard to 6.4.16.162469584

->Updated Google Wallpaper to 1.1.153125266

Buttons Misc:-

->Added Pocket Judge

->Added Accidental Touch

QS Tiles:-

->Add/Remove QS Tile with one click

->Adb Over Network tile Added

->AmbientDisplay tile Added

->LiveDisplay tile Updated

->Location tile is now default comes with default tiles

Other Stuff:-

->Added VoLTE icon

->Improved Dark Theme

->Added About LegendROM Team in about phone

->Added LegendROM Banner

->Pixel-ify Expanded Desktop

->Added Hack to watch Youtube videos in 1440p

->Added Fast charging support

->Enabled 2.4Ghz channel bonding

->Added KCAL support

Update 19.0 (Final Nougat Build)

-October security patch merged

-KRACK vulnerability patches added from lineage

Legend Settings:

- Added toggle to Disable media art on Lockscreen

- Added toggle to hide alarm, date and clock on Lockscreen

- Added toggle to hide the Auto brightness icon in brightness slider

Prebuilt:

- Updated Magisk to 14.0

- Updated Lawnchair

Other Stuff:

- Added ColorEngine

- Added bootup Boost

- Added Mirror Selfie option in Snap Camera

- Fixed Navbar back button

- Removed Inbuilt Dark Theme

- Synced with Latest Lineage

Kernel:

-Made changes in adreno_idler

-Improved charging speed

INSTRUCTIONS

1. Wipe data, cache, system, and dalvik cache

2. Flash ROM and Gapps(of your choice, tested with open gapps pico and working)

3.Reboot

DOWNLOADS

https://androidfilehost.com/?fid=817906626617940785

If you like my work then feel free to spare a cup of coffee for me by donating.

http://paypal.me/pranavthombare

CREDITS

Thanks to [MENTION=6304619]MZO[/MENTION] for guiding me to add HAL3

XOS team

[MENTION=7681940]Subham[/MENTION] for the network drop fix

[MENTION=4171555]kunalshah912[/MENTION] for helping me when I was new to this device

XDA:DevDB Information

LegendROM, ROM for the OnePlus 2

Contributors

pranavthombare, jhalayashraj

Source Code: https://github.com/LegendROM-N/

ROM OS Version: 7.x Nougat

Version Information

Status: Stable

Created 2017-04-06

Last Updated 2017-06-05