Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bbc06b36 authored by html6405's avatar html6405
Browse files

Initial changes for LineageOS 16.0

parent bea34018
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -15,4 +15,4 @@
#
#


PRODUCT_MAKEFILES := \
PRODUCT_MAKEFILES := \
    $(LOCAL_DIR)/n8000.mk
    $(LOCAL_DIR)/lineage_n8000.mk
+11 −8
Original line number Original line Diff line number Diff line
@@ -3,17 +3,19 @@ PRODUCT_RELEASE_NAME := n8000


# Inherit device configuration
# Inherit device configuration
$(call inherit-product, device/samsung/n8000/n8000.mk)
$(call inherit-product, device/samsung/n8000/n8000.mk)
$(call inherit-product, device/samsung/n80xx-common/n80xx-common.mk)
$(call inherit-product, device/samsung/smdk4412-common/common.mk)


# Inherit from the common Open Source product configuration
# Inherit from the common Open Source product configuration
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)

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


# Boot animation
# Boot animation
TARGET_SCREEN_HEIGHT := 1024
TARGET_SCREEN_HEIGHT := 1024
TARGET_SCREEN_WIDTH := 600
TARGET_SCREEN_WIDTH := 600


# Inherit some common stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)

# Device identifier. This must come after all inclusions
# Device identifier. This must come after all inclusions
PRODUCT_DEVICE := n8000
PRODUCT_DEVICE := n8000
PRODUCT_NAME := lineage_n8000
PRODUCT_NAME := lineage_n8000
@@ -25,5 +27,6 @@ PRODUCT_MANUFACTURER := samsung
PRODUCT_BUILD_PROP_OVERRIDES += \
PRODUCT_BUILD_PROP_OVERRIDES += \
		PRODUCT_NAME=p4noterfxx \
		PRODUCT_NAME=p4noterfxx \
		TARGET_DEVICE=p4noterf \
		TARGET_DEVICE=p4noterf \
	BUILD_FINGERPRINT="samsung/p4noterfxx/p4noterf:4.4.2/KOT49H/N8000XXUDPB1:user/release-keys" \
		PRIVATE_BUILD_DESC="p4noterfxx-user 4.4.2 KOT49H N8000XXUDPB1 release-keys"
		PRIVATE_BUILD_DESC="p4noterfxx-user 4.4.2 KOT49H N8000XXUDPB1 release-keys"

BUILD_FINGERPRINT := samsung/p4noterfxx/p4noterf:4.4.2/KOT49H/N8000XXUDPB1:user/release-keys
 No newline at end of file
+5 −18
Original line number Original line Diff line number Diff line
@@ -18,27 +18,14 @@ $(call inherit-product, device/samsung/n80xx-common/n80xx-common.mk)


LOCAL_PATH := device/samsung/n8000
LOCAL_PATH := device/samsung/n8000



DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay


# Rootdir
# Rootdir
PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
    device/samsung/n8000/rootdir/init.target.rc:root/init.target.rc
    device/samsung/n8000/rootdir/init.target.rc:root/init.target.rc \

    $(LOCAL_PATH)/rootdir/init.target.usb.rc:root/init.target.usb.rc
# These are the hardware-specific features
PRODUCT_COPY_FILES += \
    frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
    frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
    frameworks/native/data/etc/android.software.sip.xml:system/etc/permissions/android.software.sip.xml \

# RIL
PRODUCT_PROPERTY_OVERRIDES += \
    mobiledata.interfaces=pdp0,gprs,ppp0,rmnet0,rmnet1 \
    ro.ril.hsxpa=1 \
    ro.ril.gprsclass=10

PRODUCT_PACKAGES += \
	libsecril-client-sap \
	SamsungServiceMode


$(call inherit-product-if-exists, vendor/samsung/n8000/n8000-vendor.mk)
$(call inherit-product-if-exists, vendor/samsung/n8000/n8000-vendor.mk)

# Vendor properties
-include $(LOCAL_PATH)/vendor_prop.mk
 No newline at end of file
+0 −6
Original line number Original line Diff line number Diff line
@@ -63,12 +63,6 @@
        <item>"wlan0"</item>
        <item>"wlan0"</item>
    </string-array>
    </string-array>


    <!-- List of regexpressions describing the interface (if any) that represent tetherable
         bluetooth interfaces.  If the device doesn't want to support tethering over bluetooth this
         should be empty. -->
    <string-array translatable="false" name="config_tether_bluetooth_regexs">
        <item>"bnep\\d"</item>
    </string-array>
        
        
    <!-- Allow the menu hard key to be disabled in LockScreen on some devices -->
    <!-- Allow the menu hard key to be disabled in LockScreen on some devices -->
    <bool name="config_disableMenuKeyInLockScreen">true</bool>   
    <bool name="config_disableMenuKeyInLockScreen">true</bool>   
+36 −34
Original line number Original line Diff line number Diff line
import /init.target.usb.rc

on init
on init
    export LD_SHIM_LIBS /system/lib/libsec-ril.so|libsamsung_symbols.so
    export LD_SHIM_LIBS /system/lib/libsec-ril.so|libsamsung_symbols.so


    # cpu freq
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/boost_freq
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/boost_freq
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/boost_lock_time
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/boost_lock_time
@@ -13,7 +14,6 @@ on init
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/cpucore_table
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/cpucore_table
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/down_differential
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/down_differential
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/dvfs_debug
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/dvfs_debug
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/freq_for_responsiveness
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/freq_step
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/freq_step
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_1_1
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_1_1
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_2_0
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_2_0
@@ -30,14 +30,23 @@ on init
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_4_0
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_4_0
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/ignore_nice_load
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/ignore_nice_load
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/io_is_busy
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/io_is_busy
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/min_cpu_lock
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/min_cpu_lock
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/sampling_down_factor
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/sampling_rate
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/sampling_rate
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/sampling_rate_min

    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/up_nr_cpus
on boot
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold
    # Flash storage isn't a good entropy source, and only causes
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold_at_min_freq
    # locking overhead in the kernel. Turn it off.
    write /sys/block/mmcblk0/queue/add_random 0
    write /sys/block/mmcblk1/queue/add_random 0

    # Swapping 1 page at a time is ok
    write /proc/sys/vm/page-cluster 0
    write /proc/sys/vm/swappiness 100

    # increase read-ahead value to 256 kb
    write /sys/block/mmcblk0/queue/read_ahead_kb 256


on post-fs-data
on post-fs-data


@@ -89,34 +98,27 @@ on property:init.svc.macloader=stopped
    chown system root /data/.rev
    chown system root /data/.rev
    chmod 0666 /data/.rev
    chmod 0666 /data/.rev


on fs
    # zram
    swapon_all /fstab.smdk4x12

on boot
on boot
# cbd
service cpboot-daemon /system/bin/cbd -d
    class main
    user root
    group radio cache inet misc audio sdcard_rw log
    seclabel u:r:cpboot-daemon:s0


# serial keyboard daemon
# serial keyboard daemon
service sec_keyboard /system/bin/sec_keyboard /dev/ttySAC2
service sec_keyboard /system/vendor/bin/sec_keyboard /dev/ttySAC2
	class core
	class core
	group system
	group system
	seclabel u:r:sec_keyboard:s0
	seclabel u:r:sec_keyboard:s0


#cbd
service cpboot-daemon /system/bin/cbd -d -p7
    class main
    user root
    group radio cache inet misc audio sdcard_rw log sdcard_r
    seclabel u:r:cpboot-daemon:s0

# Start GPS daemon
# Start GPS daemon
service gps-daemon /system/bin/sh /system/vendor/bin/gps_daemon.sh
service gps-daemon /vendor/bin/glgps
    class main
    class main
    socket gps seqpacket 0660 gps system
    socket gps seqpacket 0660 gps system
    user gps
    user gps
    group system inet sdcard_rw gps
    group system wakelock inet sdcard_rw sdcard_r
    seclabel u:r:glgps:s0

# TVout
#service TvoutService_C /system/vendor/bin/bintvoutservice
#     class main
#     user system
#     group graphics

#on property:ro.tvout.enable=false
#     stop TvoutService_C
 No newline at end of file
Loading