mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
los15.1 bringup
This commit is contained in:
parent
37950a4927
commit
be138c1f2e
17 changed files with 174 additions and 2274 deletions
|
@ -23,6 +23,12 @@ TARGET_SPECIFIC_HEADER_PATH := $(VENDOR_PATH)/include
|
|||
# CMHW
|
||||
BOARD_HARDWARE_CLASS += $(VENDOR_PATH)/cmhw
|
||||
|
||||
TARGET_USES_LEGACY_ADB_INTERFACE :=true
|
||||
|
||||
#HIDL
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(VENDOR_PATH)/manifest.xml:system/vendor/manifest.xml
|
||||
|
||||
# Custom RIL class
|
||||
BOARD_RIL_CLASS := ../../../$(VENDOR_PATH)/ril
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# Audio
|
||||
AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE := true
|
||||
BOARD_USES_ALSA_AUDIO := true
|
||||
BOARD_USES_GENERIC_AUDIO := true
|
||||
|
|
|
@ -8,7 +8,9 @@ LOCAL_SRC_FILES := \
|
|||
CameraWrapper.cpp
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libhardware liblog libcamera_client libutils
|
||||
libhardware liblog libcamera_client libutils libdl \
|
||||
android.hidl.token@1.0-utils \
|
||||
android.hardware.graphics.bufferqueue@1.0
|
||||
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
|
||||
LOCAL_MODULE := camera.msm8226
|
|
@ -66,8 +66,6 @@ camera_module_t HAL_MODULE_INFO_SYM = {
|
|||
.set_callbacks = NULL, /* remove compilation warnings */
|
||||
.get_vendor_tag_ops = NULL, /* remove compilation warnings */
|
||||
.open_legacy = NULL, /* remove compilation warnings */
|
||||
.set_torch_mode = NULL, /* remove compilation warnings */
|
||||
.init = NULL, /* remove compilation warnings */
|
||||
.reserved = {0}, /* remove compilation warnings */
|
||||
};
|
||||
|
||||
|
@ -115,10 +113,10 @@ static char *camera_fixup_getparams(int id, const char *settings)
|
|||
#endif
|
||||
|
||||
// fix params here
|
||||
params.set(android::CameraParameters::KEY_SUPPORTED_ISO_MODES, iso_values[id]);
|
||||
params.set(android::CameraParameters::KEY_EXPOSURE_COMPENSATION_STEP, "0.5");
|
||||
params.set(android::CameraParameters::KEY_MIN_EXPOSURE_COMPENSATION, "-4");
|
||||
params.set(android::CameraParameters::KEY_MAX_EXPOSURE_COMPENSATION, "4");
|
||||
params.set(KEY_SUPPORTED_ISO_MODES, iso_values[id]);
|
||||
params.set(KEY_EXPOSURE_COMPENSATION_STEP, "0.5");
|
||||
params.set(KEY_MIN_EXPOSURE_COMPENSATION, "-4");
|
||||
params.set(KEY_MAX_EXPOSURE_COMPENSATION, "4");
|
||||
|
||||
/* If the vendor has HFR values but doesn't also expose that
|
||||
* this can be turned off, fixup the params to tell the Camera
|
||||
|
@ -132,7 +130,7 @@ static char *camera_fixup_getparams(int id, const char *settings)
|
|||
}
|
||||
|
||||
/* Enforce video-snapshot-supported to true */
|
||||
params.set(android::CameraParameters::KEY_VIDEO_SNAPSHOT_SUPPORTED, "true");
|
||||
params.set(KEY_VIDEO_SNAPSHOT_SUPPORTED, "true");
|
||||
|
||||
android::String8 strParams = params.flatten();
|
||||
char *ret = strdup(strParams.string());
|
||||
|
@ -156,30 +154,30 @@ static char *camera_fixup_setparams(struct camera_device *device, const char *se
|
|||
params.dump();
|
||||
#endif
|
||||
|
||||
const char *recordingHint = params.get(android::CameraParameters::KEY_RECORDING_HINT);
|
||||
const char *recordingHint = params.get(KEY_RECORDING_HINT);
|
||||
bool isVideo = recordingHint && !strcmp(recordingHint, "true");
|
||||
|
||||
if (isVideo) {
|
||||
params.set(android::CameraParameters::KEY_DIS, android::CameraParameters::DIS_DISABLE);
|
||||
params.set(android::CameraParameters::KEY_ZSL, android::CameraParameters::ZSL_OFF);
|
||||
params.set(KEY_DIS, DIS_DISABLE);
|
||||
params.set(KEY_ZSL, ZSL_OFF);
|
||||
} else {
|
||||
params.set(android::CameraParameters::KEY_ZSL, android::CameraParameters::ZSL_ON);
|
||||
params.set(KEY_ZSL, ZSL_ON);
|
||||
}
|
||||
|
||||
// fix params here
|
||||
// No need to fix-up ISO_HJR, it is the same for userspace and the camera lib
|
||||
if (params.get("iso")) {
|
||||
const char *isoMode = params.get(android::CameraParameters::KEY_ISO_MODE);
|
||||
const char *isoMode = params.get(KEY_ISO_MODE);
|
||||
if (strcmp(isoMode, "ISO100") == 0)
|
||||
params.set(android::CameraParameters::KEY_ISO_MODE, "100");
|
||||
params.set(KEY_ISO_MODE, "100");
|
||||
else if (strcmp(isoMode, "ISO200") == 0)
|
||||
params.set(android::CameraParameters::KEY_ISO_MODE, "200");
|
||||
params.set(KEY_ISO_MODE, "200");
|
||||
else if (strcmp(isoMode, "ISO400") == 0)
|
||||
params.set(android::CameraParameters::KEY_ISO_MODE, "400");
|
||||
params.set(KEY_ISO_MODE, "400");
|
||||
else if (strcmp(isoMode, "ISO800") == 0)
|
||||
params.set(android::CameraParameters::KEY_ISO_MODE, "800");
|
||||
params.set(KEY_ISO_MODE, "800");
|
||||
else if (strcmp(isoMode, "ISO1600") == 0)
|
||||
params.set(android::CameraParameters::KEY_ISO_MODE, "1600");
|
||||
params.set(KEY_ISO_MODE, "1600");
|
||||
}
|
||||
|
||||
android::String8 strParams = params.flatten();
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.cyanogenmod.hardware;
|
||||
package org.lineageos.hardware;
|
||||
|
||||
import org.cyanogenmod.internal.util.FileUtils;
|
||||
import org.lineageos.internal.util.FileUtils;
|
||||
|
||||
/*
|
||||
* Display RGB intensity calibration (kcal)
|
|
@ -14,9 +14,9 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.cyanogenmod.hardware;
|
||||
package org.lineageos.hardware;
|
||||
|
||||
import org.cyanogenmod.internal.util.FileUtils;
|
||||
import org.lineageos.internal.util.FileUtils;
|
||||
|
||||
/*
|
||||
* Disable capacitive keys
|
File diff suppressed because it is too large
Load diff
|
@ -7,10 +7,6 @@
|
|||
"repository": "android_device_samsung_qcom-common",
|
||||
"target_path": "device/samsung/qcom-common"
|
||||
},
|
||||
{
|
||||
"repository": "android_external_stlport",
|
||||
"target_path": "external/stlport"
|
||||
},
|
||||
{
|
||||
"repository": "android_external_sony_boringssl-compat",
|
||||
"target_path": "external/sony/boringssl-compat"
|
||||
|
|
65
manifest.xml
Normal file
65
manifest.xml
Normal file
|
@ -0,0 +1,65 @@
|
|||
<manifest version="1.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.graphics.allocator</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>IAllocator</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.wifi</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IWifi</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.wifi.supplicant</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>ISupplicant</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.configstore</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>ISurfaceFlingerConfigs</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.graphics.mapper</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>IMapper</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.nfc</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>INfc</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.ir</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IConsumerIr</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</manifest>
|
56
msm8226.mk
56
msm8226.mk
|
@ -33,6 +33,13 @@ PRODUCT_PACKAGES += \
|
|||
audio.r_submix.default \
|
||||
audio.usb.default
|
||||
|
||||
# Also Audio
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.audio@2.0-impl \
|
||||
android.hardware.audio.effect@2.0-impl \
|
||||
android.hardware.broadcastradio@1.0-impl \
|
||||
android.hardware.soundtrigger@2.0-impl
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
libaudio-resampler \
|
||||
libqcompostprocbundle \
|
||||
|
@ -45,10 +52,11 @@ PRODUCT_PACKAGES += \
|
|||
|
||||
# Camera
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.camera.provider@2.4-impl \
|
||||
camera.device@3.2-impl \
|
||||
camera.vendor.msm8226 \
|
||||
camera.msm8226 \
|
||||
libboringssl-compat \
|
||||
libstlport \
|
||||
libxml2 \
|
||||
Snap
|
||||
|
||||
|
@ -64,7 +72,12 @@ PRODUCT_PACKAGES += \
|
|||
copybit.msm8226 \
|
||||
gralloc.msm8226 \
|
||||
hwcomposer.msm8226 \
|
||||
memtrack.msm8226
|
||||
memtrack.msm8226 \
|
||||
android.hardware.graphics.allocator@2.0-impl \
|
||||
android.hardware.graphics.allocator@2.0-service \
|
||||
android.hardware.graphics.composer@2.1-impl \
|
||||
android.hardware.graphics.mapper@2.0-impl \
|
||||
android.hardware.memtrack@1.0-impl
|
||||
|
||||
# Ebtables
|
||||
PRODUCT_PACKAGES += \
|
||||
|
@ -108,6 +121,10 @@ PRODUCT_PACKAGES += \
|
|||
libOmxVenc \
|
||||
libstagefrighthw
|
||||
|
||||
# DRM
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.drm@1.0-impl \
|
||||
|
||||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
|
||||
|
@ -133,8 +150,36 @@ PRODUCT_COPY_FILES += \
|
|||
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
|
||||
frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml
|
||||
|
||||
# GPS HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
gps.msm8226 \
|
||||
android.hardware.gnss@1.0-impl
|
||||
|
||||
# Sensor HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.sensors@1.0-impl
|
||||
|
||||
|
||||
# Bluetooth
|
||||
PRODUCT_PACKAGES += \
|
||||
libbt-vendor \
|
||||
android.hardware.bluetooth@1.0-impl
|
||||
|
||||
# Keymaster HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.keymaster@3.0-impl
|
||||
|
||||
# Vibrator
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.vibrator@1.0-impl
|
||||
|
||||
# USB HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.usb@1.0-service
|
||||
|
||||
# Power
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.power@1.0-impl \
|
||||
power.msm8226
|
||||
|
||||
# Radio
|
||||
|
@ -156,8 +201,11 @@ PRODUCT_PACKAGES += \
|
|||
PRODUCT_PACKAGES += \
|
||||
dhcpcd.conf \
|
||||
hostapd \
|
||||
wificond \
|
||||
wpa_supplicant \
|
||||
wpa_supplicant.conf
|
||||
wpa_supplicant.conf \
|
||||
libwpa_client \
|
||||
android.hardware.wifi@1.0-service
|
||||
|
||||
# Torch
|
||||
PRODUCT_PACKAGES += \
|
||||
|
@ -169,8 +217,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
|||
|
||||
PRODUCT_PACKAGES += \
|
||||
libcurl \
|
||||
libqsap_sdk \
|
||||
libQWiFiSoftApCfg \
|
||||
libwcnss_qmi \
|
||||
wcnss_service
|
||||
|
||||
|
|
|
@ -50,6 +50,9 @@ on init
|
|||
symlink /sdcard /storage/sdcard0
|
||||
|
||||
on fs
|
||||
wait /dev/block/platform/soc.0/${ro.boot.bootdevice}
|
||||
symlink /dev/block/platform/soc.0/${ro.boot.bootdevice} /dev/block/bootdevice
|
||||
|
||||
mount_all fstab.qcom
|
||||
|
||||
# Support Preload install apks
|
||||
|
@ -486,6 +489,13 @@ on boot
|
|||
write /proc/sys/net/core/rmem_max 8388608
|
||||
write /proc/sys/net/core/wmem_max 8388608
|
||||
|
||||
# Wifi firmware reload path
|
||||
chmod 0660 /sys/module/wlan/parameters/fwpath
|
||||
chown wifi wifi /sys/module/wlan/parameters/fwpath
|
||||
|
||||
# Mark wifi driver as unloaded - "ok" indicates loaded
|
||||
setprop wlan.driver.status not_ok
|
||||
|
||||
on charger
|
||||
wait /dev/block/platform/msm_sdcc.1/by-name/system
|
||||
mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system ro barrier=1
|
||||
|
@ -505,7 +515,7 @@ service audiod /system/bin/audiod
|
|||
service charger /sbin/healthd -c
|
||||
class charger
|
||||
critical
|
||||
seclabel u:r:healthd:s0
|
||||
seclabel u:r:charger:s0
|
||||
|
||||
service ds_fmc_appd /system/bin/ds_fmc_appd -p "rmnet0" -D
|
||||
class late_start
|
||||
|
@ -547,7 +557,7 @@ service qcamerasvr /system/bin/mm-qcamera-daemon
|
|||
service qmuxd /system/bin/qmuxd
|
||||
class main
|
||||
user radio
|
||||
group radio audio bluetooth gps qcom_diag
|
||||
group radio audio bluetooth gps diag
|
||||
|
||||
service qseecomd /system/bin/qseecomd
|
||||
class core
|
||||
|
@ -593,7 +603,7 @@ service wcnss-service /system/bin/wcnss_service
|
|||
oneshot
|
||||
|
||||
# WPA
|
||||
service p2p_supplicant /system/bin/wpa_supplicant \
|
||||
service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
|
||||
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
|
||||
-I/system/etc/wifi/p2p_supplicant_overlay.conf -N \
|
||||
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
|
||||
|
@ -609,19 +619,6 @@ service p2p_supplicant /system/bin/wpa_supplicant \
|
|||
disabled
|
||||
oneshot
|
||||
|
||||
service wpa_supplicant /system/bin/wpa_supplicant \
|
||||
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
|
||||
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
|
||||
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
|
||||
# we will start as root and wpa_supplicant will switch to user wifi
|
||||
# after setting up the capabilities required for WEXT
|
||||
# user wifi
|
||||
# group wifi inet keystore
|
||||
class main
|
||||
socket wpa_wlan0 dgram 660 wifi wifi
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:init.svc.wpa_supplicant=stopped
|
||||
stop dhcpcd
|
||||
|
||||
|
@ -681,10 +678,9 @@ on property:persist.radio.multisim.config=dsds
|
|||
start ril-daemon
|
||||
start ril-daemon1
|
||||
|
||||
service ril-daemon1 /system/bin/rild -l /system/lib/libsec-ril-dsds.so -c 2
|
||||
service ril-daemon1 /vendor/bin/hw/rild -l /system/lib/libsec-ril-dsds.so -c 2
|
||||
class main
|
||||
socket rild2 stream 660 root radio
|
||||
socket rild-debug2 stream 660 radio system
|
||||
user root
|
||||
user radio
|
||||
disabled
|
||||
group radio cache inet misc audio log qcom_diag system drmrpc sdcard_r sdcard_rw shell
|
||||
group radio cache inet misc audio log system drmrpc sdcard_r sdcard_rw shell wakelock
|
||||
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
|
||||
|
|
|
@ -145,8 +145,8 @@
|
|||
/dev/msm_sps 0660 system audio
|
||||
/dev/msm_voicememo 0660 system audio
|
||||
/dev/radio0 0640 fm_radio fm_radio
|
||||
/dev/smd3 0660 bluetooth net_bt_stack
|
||||
/dev/smd2 0660 bluetooth net_bt_stack
|
||||
/dev/smd3 0660 bluetooth bluetooth
|
||||
/dev/smd2 0660 bluetooth bluetooth
|
||||
/dev/ttyHSL0 0660 radio system
|
||||
/dev/ttyHSL1 0660 system system
|
||||
/dev/mdm 0660 system radio
|
||||
|
|
|
@ -3,6 +3,6 @@ allow rild self:capability { dac_override dac_read_search };
|
|||
allow rild radio_data_file:dir r_dir_perms;
|
||||
allow rild radio_data_file:file r_file_perms;
|
||||
allow rild radio_data_file:lnk_file r_file_perms;
|
||||
allow rild system_app_data_file:dir rw_dir_perms;
|
||||
allow rild system_app_data_file:file create_file_perms;
|
||||
#allow rild system_app_data_file:dir rw_dir_perms;
|
||||
#allow rild system_app_data_file:file create_file_perms;
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
allow ueventd sysfs_camera:file rw_file_perms;
|
||||
allow ueventd sysfs_vibeamp:file rw_file_perms;
|
||||
allow ueventd vcs_device:chr_file create_file_perms;
|
||||
#allow ueventd vcs_device:chr_file create_file_perms;
|
||||
|
|
|
@ -13,9 +13,9 @@ allow vcs vcs_data_file:file create_file_perms;
|
|||
allow vcs vcs_device:dir create_dir_perms;
|
||||
allow vcs vcs_device:file create_file_perms;
|
||||
allow vcs vcs_device:fifo_file create_file_perms;
|
||||
allow vcs vcs_device:chr_file create_file_perms;
|
||||
#allow vcs vcs_device:chr_file create_file_perms;
|
||||
|
||||
allow vcs tee_device:chr_file rw_file_perms;
|
||||
#allow vcs tee_device:chr_file rw_file_perms;
|
||||
|
||||
allow vcs firmware_file:dir r_dir_perms;
|
||||
allow vcs firmware_file:file r_file_perms;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
allow wpa efs_file:dir search;
|
||||
allow wpa wifi_efs_file:file r_file_perms;
|
||||
allow wpa wifi_data_file:sock_file rw_file_perms;
|
||||
#allow wpa efs_file:dir search;
|
||||
#allow wpa wifi_efs_file:file r_file_perms;
|
||||
#allow wpa wifi_data_file:sock_file rw_file_perms;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
dalvik.vm.dex2oat-swap=false
|
||||
|
||||
# Audio
|
||||
persist.media.treble_omx=false
|
||||
media.aac_51_output_enabled=true
|
||||
mm.enable.smoothstreaming=true
|
||||
ro.qc.sdk.audio.fluencetype=none
|
||||
|
@ -38,6 +39,7 @@ debug.composition.type=c2d
|
|||
ro.opengles.version=196608
|
||||
ro.qualcomm.cabl=0
|
||||
ro.sf.lcd_density=320
|
||||
debug.hwui.use_buffer_age=false
|
||||
|
||||
# GPS
|
||||
persist.gps.qc_nlp_in_use=1
|
||||
|
|
Loading…
Reference in a new issue