Skip to content
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
1 change: 1 addition & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ BOARD_SEPOLICY_UNION += \
surfaceflinger.te \
system_app.te \
system_server.te \
tee.te \
wcnss_service.te \
ueventd.te \
usb_uicc_daemon.te \
Expand Down
26 changes: 26 additions & 0 deletions carbon.dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"remote": "cm",
"repository": "Cyanogenmod/android_device_oppo_common",
"target_path": "device/oppo/common",
"revision": "cm-12.1"
},
{
"remote": "cm",
"repository": "Cyanogenmod/android_device_qcom_common",
"target_path": "device/qcom/common",
"revision": "cm-12.1"
},
{
"remote": "gh",
"repository": "Grarak/android_kernel_oneplus_msm8994",
"target_path": "kernel/oneplus/msm8994",
"revision": "cm-12.1"
},
{
"remote": "td",
"repository": "proprietary_vendor_oneplus",
"target_path": "vendor/oneplus",
"revision": "cm-12.1"
}
]
5 changes: 3 additions & 2 deletions cm.mk → carbon.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright (C) 2015 The CyanogenMod Project
# Copyright (C) 2015 The Carbon Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -14,8 +15,8 @@

$(call inherit-product, device/oneplus/oneplus2/full_oneplus2.mk)

# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/common_full_phone.mk)
# Inherit some common Carbon stuff.
$(call inherit-product, vendor/carbon/config/common_phone.mk)

# Inherit oneplus2-specific vendor tree
$(call inherit-product-if-exists, vendor/oneplus/oneplus2/oneplus2-vendor.mk)
2 changes: 1 addition & 1 deletion full_oneplus2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit from oneplus2 device
$(call inherit-product, device/oneplus/oneplus2/device.mk)

PRODUCT_NAME := cm_oneplus2
PRODUCT_NAME := carbon_oneplus2
PRODUCT_DEVICE := oneplus2
PRODUCT_MANUFACTURER := OnePlus
PRODUCT_MODEL := oneplus2
Expand Down
2 changes: 1 addition & 1 deletion init/init_oneplus2.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *boar
UNUSED(msm_ver);
UNUSED(board_type);

rc = property_get("ro.cm.device", device);
rc = property_get("ro.carbon.device", device);
if (!rc || !ISMATCH(device, "oneplus2"))
return;

Expand Down
2 changes: 0 additions & 2 deletions rootdir/etc/init.qcom.usb.rc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ service qcom-usb-sh /system/bin/sh /init.qcom.usb.sh

# MTP
on property:sys.usb.config=mtp
setprop sys.usb.cdrom /system/etc/usb_drivers.iso
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 2A70
write /sys/class/android_usb/android0/idProduct F003
Expand All @@ -56,7 +55,6 @@ on property:sys.usb.config=mtp

on property:sys.usb.config=mtp,adb
stop adbd
setprop sys.usb.cdrom /system/etc/usb_drivers.iso
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 2A70
write /sys/class/android_usb/android0/idProduct 9011
Expand Down
2 changes: 2 additions & 0 deletions sepolicy/device.te
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
type adspd_device, dev_type;

type drm_block_device, dev_type;

type efs_block_device, dev_type;
type mdm_helper_device, dev_type;
type fingerprint_device, dev_type;
Expand Down
4 changes: 4 additions & 0 deletions sepolicy/system_server.te
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
allow system_server proc_touchpanel:file rw_file_perms;
allow system_server proc_touchpanel:dir { search };

allow system_server persist_file:dir rw_dir_perms;
allow system_server sensors_persist_file:dir search;
allow system_server sensors_persist_file:file r_file_perms;

# timerfd
allow system_server rtc_device:chr_file rw_file_perms;

Expand Down
7 changes: 7 additions & 0 deletions sepolicy/tee.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
allow tee drm_block_device:blk_file rw_file_perms;

allow tee vfat:dir search;
allow tee vfat:file read;
allow tee vfat:file open;
allow tee vfat:file getattr;

3 changes: 0 additions & 3 deletions vendorsetup.sh

This file was deleted.