Skip to content

Commit

Permalink
Add OnePlus5 CE device branch
Browse files Browse the repository at this point in the history
  • Loading branch information
agravelot committed Nov 27, 2017
1 parent cf4b97b commit 51fc28b
Show file tree
Hide file tree
Showing 4 changed files with 936 additions and 0 deletions.
166 changes: 166 additions & 0 deletions device/OnePlus5-ce/OnePlus5-ce.fos
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
#!/bin/bash
# Copyright 2016-2017 Antoine GRAVELOT
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Author : Nevax
#
# FreedomOS conf file

ZIP_NAME=FreedomOS-CE
# Select the architecture of your device, it will be used in the system patch (see ADD_SYSTEM_LIST bellow).
# It must coincide with the assets/system/$TARGET_ARCH
TARGET_ARCH=arm64
CODENAME=op5
DEVICE=OnePlus5
VERSION=3.0
# It will be used for the assert verification at the beginning of installation of the ROM.
ASSERT="OnePlus 5"

# Basically, it's just the name of the downloaded zip file without the ".zip" extension.
ROM_NAME=OnePlus5Oxygen_23_OTA_001_all_1711250301_383566dfb59245ce
ROM_LINK=http://oxygenos.oneplus.net.s3.amazonaws.com/$ROM_NAME.zip
# This MD5 is used for checking the integrity of the original rom.
ROM_MD5=d89cf84f47b4f6f0cfa268b243e67782

# OpenGapps
GAPPS_BUILD=true
GAPPS_ANDROID=8.0
GAPPS_PLATFORM=arm64
GAPPS_TYPE=nano
GAPPS_DATE=20171116
GAPPS_ZIP="open_gapps-${GAPPS_PLATFORM}-${GAPPS_ANDROID}-${GAPPS_TYPE}-${GAPPS_DATE}"
GAPPS_LINK="https://github.com/opengapps/${GAPPS_PLATFORM}/releases/download/${GAPPS_DATE}/${GAPPS_ZIP}.zip"
GAPPS_MD5=2d1832d333dac247fc4b5cee93a936c0

ARISE_BUILD=false

# Set Android version for selinux build script
ANDROID_VERSION=8
# Set the version of the aroma installer, this is not the version of FreedomOS!
# see assets/META-INF/aroma/$AROMA_VERSION
AROMA_VERSION=2.70
BUILD_METHOD=dat_to_dat
# SYSTEMIMAGE_PARTITION_SIZE is the size of your system partition, you can get this value in the TWRP source of your device.
# https://github.com/dianlujitao/android_device_oneplus_oneplus3/search?utf8=✓&q=BOARD_SYSTEMIMAGE_PARTITION_SIZE&type=Code
SYSTEMIMAGE_PARTITION_SIZE=3154116608

PATCH_SYSYEM=""

# Add BUSYBOX into the rom
BUILD_BUSYBOX=false

BOOTANIMATION=350

aroma_list="
common/*
1080p/*
oneplus3/*
"

# Files / folders to remove from the original stock image.
# You can easily debloat your rom from here.
CLEAN_SYSTEM_LIST="
app/BTtestmode
app/Duo
app/DMAgent
app/EngSpecialTest
app/EngineeringMode
app/FaceLock
app/GmailExchange
app/Hangouts
app/LogKitSdService
app/Music2
app/NFCTestMode
app/OEMLogKit
app/OPBugReport_Complete
app/OPPBugReport
app/OPBugReportLite
app/OPPush
app/OemAutoTestServer
app/SensorTestTool
app/Videos
app/WifiRfTestApk
bin/WifiLogger_app
bin/fmfactorytest
bin/fmfactorytestserver
bin/install-recovery.sh
bin/oemlogkit
etc/recovery-resource.dat
priv-app/CallLogBackup
priv-app/GmsCore
priv-app/GoogleFeedback
priv-app/GoogleServicesFramework
priv-app/OnePlusWizard
priv-app/OPDeviceManager
priv-app/SetupWizard
priv-app/Velvet
app/GoogleExtShareds
priv-app/AndroidPlatformServices
priv-app/ConfigUpdater
priv-app/GCS
priv-app/GmsCoreSetupPrebuilt
priv-app/GoogleBackupTransport
priv-app/GoogleContacts
priv-app/GoogleDialer
priv-app/GoogleExtServices
priv-app/GoogleOneTimeInitializer
priv-app/GooglePartnerSetup
priv-app/NexusLauncherPrebuilt
priv-app/Phonesky
priv-app/PrebuiltGmsCore
priv-app/StorageManagerGoogle
priv-app/TagGoogle
priv-app/Turbo
vendor/etc/in_apps
recovery-from-boot.p
"

# Add a secondary firmware files, like that it can be installed.
PATCH_FIRMWARE=""

# Set the files/folder you want to add to your system partition.
# The files are in the assets/system/$TARGET_ARCH/
ADD_SYSTEM_LIST="
app/Adaway
app/GoogleCamera
app/GoogleWallpapers
app/PixelIcons
app/PixelLauncher
app/Substratum
app/XposedInstaller
"

# Set the files/folder you want to add to your system partition.
# The files are in the assets/system/$TARGET_ARCH/
ADD_DATA_LIST=""

# tools to add to the rom, (/assets/tools/)
TOOLS_LIST="
arm64/busybox
common/adb.sh
common/addon
common/apps_remover.sh
common/clean.sh
common/fonts
common/fix_passwd.sh
common/gen_apps_list.sh
common/google_assistant.sh
common/google_dns.sh
common/kernel
common/log_folder.sh
common/magisk
common/save_logs.sh
common/supersu
common/wideband_wifi.sh
"
Loading

0 comments on commit 51fc28b

Please sign in to comment.