los15.1 bringup

This commit is contained in:
leonardo meitz 2018-05-16 22:48:20 +02:00
parent 37950a4927
commit be138c1f2e
17 changed files with 174 additions and 2274 deletions

View file

@ -23,6 +23,12 @@ TARGET_SPECIFIC_HEADER_PATH := $(VENDOR_PATH)/include
# CMHW # CMHW
BOARD_HARDWARE_CLASS += $(VENDOR_PATH)/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 # Custom RIL class
BOARD_RIL_CLASS := ../../../$(VENDOR_PATH)/ril BOARD_RIL_CLASS := ../../../$(VENDOR_PATH)/ril

View file

@ -1,3 +1,4 @@
# Audio # Audio
AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE := true AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE := true
BOARD_USES_ALSA_AUDIO := true BOARD_USES_ALSA_AUDIO := true
BOARD_USES_GENERIC_AUDIO := true

View file

@ -8,7 +8,9 @@ LOCAL_SRC_FILES := \
CameraWrapper.cpp CameraWrapper.cpp
LOCAL_SHARED_LIBRARIES := \ 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_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE := camera.msm8226 LOCAL_MODULE := camera.msm8226

View file

@ -66,8 +66,6 @@ camera_module_t HAL_MODULE_INFO_SYM = {
.set_callbacks = NULL, /* remove compilation warnings */ .set_callbacks = NULL, /* remove compilation warnings */
.get_vendor_tag_ops = NULL, /* remove compilation warnings */ .get_vendor_tag_ops = NULL, /* remove compilation warnings */
.open_legacy = 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 */ .reserved = {0}, /* remove compilation warnings */
}; };
@ -115,10 +113,10 @@ static char *camera_fixup_getparams(int id, const char *settings)
#endif #endif
// fix params here // fix params here
params.set(android::CameraParameters::KEY_SUPPORTED_ISO_MODES, iso_values[id]); params.set(KEY_SUPPORTED_ISO_MODES, iso_values[id]);
params.set(android::CameraParameters::KEY_EXPOSURE_COMPENSATION_STEP, "0.5"); params.set(KEY_EXPOSURE_COMPENSATION_STEP, "0.5");
params.set(android::CameraParameters::KEY_MIN_EXPOSURE_COMPENSATION, "-4"); params.set(KEY_MIN_EXPOSURE_COMPENSATION, "-4");
params.set(android::CameraParameters::KEY_MAX_EXPOSURE_COMPENSATION, "4"); params.set(KEY_MAX_EXPOSURE_COMPENSATION, "4");
/* If the vendor has HFR values but doesn't also expose that /* If the vendor has HFR values but doesn't also expose that
* this can be turned off, fixup the params to tell the Camera * 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 */ /* 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(); android::String8 strParams = params.flatten();
char *ret = strdup(strParams.string()); char *ret = strdup(strParams.string());
@ -156,30 +154,30 @@ static char *camera_fixup_setparams(struct camera_device *device, const char *se
params.dump(); params.dump();
#endif #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"); bool isVideo = recordingHint && !strcmp(recordingHint, "true");
if (isVideo) { if (isVideo) {
params.set(android::CameraParameters::KEY_DIS, android::CameraParameters::DIS_DISABLE); params.set(KEY_DIS, DIS_DISABLE);
params.set(android::CameraParameters::KEY_ZSL, android::CameraParameters::ZSL_OFF); params.set(KEY_ZSL, ZSL_OFF);
} else { } else {
params.set(android::CameraParameters::KEY_ZSL, android::CameraParameters::ZSL_ON); params.set(KEY_ZSL, ZSL_ON);
} }
// fix params here // fix params here
// No need to fix-up ISO_HJR, it is the same for userspace and the camera lib // No need to fix-up ISO_HJR, it is the same for userspace and the camera lib
if (params.get("iso")) { 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) 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) 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) 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) 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) 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(); android::String8 strParams = params.flatten();

View file

@ -14,9 +14,9 @@
* limitations under the License. * 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) * Display RGB intensity calibration (kcal)

View file

@ -14,9 +14,9 @@
* limitations under the License. * 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 * Disable capacitive keys

File diff suppressed because it is too large Load diff

View file

@ -7,10 +7,6 @@
"repository": "android_device_samsung_qcom-common", "repository": "android_device_samsung_qcom-common",
"target_path": "device/samsung/qcom-common" "target_path": "device/samsung/qcom-common"
}, },
{
"repository": "android_external_stlport",
"target_path": "external/stlport"
},
{ {
"repository": "android_external_sony_boringssl-compat", "repository": "android_external_sony_boringssl-compat",
"target_path": "external/sony/boringssl-compat" "target_path": "external/sony/boringssl-compat"

65
manifest.xml Normal file
View 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>

View file

@ -33,6 +33,13 @@ PRODUCT_PACKAGES += \
audio.r_submix.default \ audio.r_submix.default \
audio.usb.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 += \ PRODUCT_PACKAGES += \
libaudio-resampler \ libaudio-resampler \
libqcompostprocbundle \ libqcompostprocbundle \
@ -45,10 +52,11 @@ PRODUCT_PACKAGES += \
# Camera # Camera
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.camera.provider@2.4-impl \
camera.device@3.2-impl \
camera.vendor.msm8226 \ camera.vendor.msm8226 \
camera.msm8226 \ camera.msm8226 \
libboringssl-compat \ libboringssl-compat \
libstlport \
libxml2 \ libxml2 \
Snap Snap
@ -64,7 +72,12 @@ PRODUCT_PACKAGES += \
copybit.msm8226 \ copybit.msm8226 \
gralloc.msm8226 \ gralloc.msm8226 \
hwcomposer.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 # Ebtables
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
@ -108,6 +121,10 @@ PRODUCT_PACKAGES += \
libOmxVenc \ libOmxVenc \
libstagefrighthw libstagefrighthw
# DRM
PRODUCT_PACKAGES += \
android.hardware.drm@1.0-impl \
# Permissions # Permissions
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ 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/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 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 # Power
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.power@1.0-impl \
power.msm8226 power.msm8226
# Radio # Radio
@ -156,8 +201,11 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
dhcpcd.conf \ dhcpcd.conf \
hostapd \ hostapd \
wificond \
wpa_supplicant \ wpa_supplicant \
wpa_supplicant.conf wpa_supplicant.conf \
libwpa_client \
android.hardware.wifi@1.0-service
# Torch # Torch
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
@ -169,8 +217,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
libcurl \ libcurl \
libqsap_sdk \
libQWiFiSoftApCfg \
libwcnss_qmi \ libwcnss_qmi \
wcnss_service wcnss_service

View file

@ -50,6 +50,9 @@ on init
symlink /sdcard /storage/sdcard0 symlink /sdcard /storage/sdcard0
on fs 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 mount_all fstab.qcom
# Support Preload install apks # Support Preload install apks
@ -486,6 +489,13 @@ on boot
write /proc/sys/net/core/rmem_max 8388608 write /proc/sys/net/core/rmem_max 8388608
write /proc/sys/net/core/wmem_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 on charger
wait /dev/block/platform/msm_sdcc.1/by-name/system 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 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 service charger /sbin/healthd -c
class charger class charger
critical critical
seclabel u:r:healthd:s0 seclabel u:r:charger:s0
service ds_fmc_appd /system/bin/ds_fmc_appd -p "rmnet0" -D service ds_fmc_appd /system/bin/ds_fmc_appd -p "rmnet0" -D
class late_start class late_start
@ -547,7 +557,7 @@ service qcamerasvr /system/bin/mm-qcamera-daemon
service qmuxd /system/bin/qmuxd service qmuxd /system/bin/qmuxd
class main class main
user radio user radio
group radio audio bluetooth gps qcom_diag group radio audio bluetooth gps diag
service qseecomd /system/bin/qseecomd service qseecomd /system/bin/qseecomd
class core class core
@ -593,7 +603,7 @@ service wcnss-service /system/bin/wcnss_service
oneshot oneshot
# WPA # 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 \ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
-I/system/etc/wifi/p2p_supplicant_overlay.conf -N \ -I/system/etc/wifi/p2p_supplicant_overlay.conf -N \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
@ -609,19 +619,6 @@ service p2p_supplicant /system/bin/wpa_supplicant \
disabled disabled
oneshot 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 on property:init.svc.wpa_supplicant=stopped
stop dhcpcd stop dhcpcd
@ -681,10 +678,9 @@ on property:persist.radio.multisim.config=dsds
start ril-daemon start ril-daemon
start ril-daemon1 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 class main
socket rild2 stream 660 root radio user radio
socket rild-debug2 stream 660 radio system
user root
disabled 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

View file

@ -145,8 +145,8 @@
/dev/msm_sps 0660 system audio /dev/msm_sps 0660 system audio
/dev/msm_voicememo 0660 system audio /dev/msm_voicememo 0660 system audio
/dev/radio0 0640 fm_radio fm_radio /dev/radio0 0640 fm_radio fm_radio
/dev/smd3 0660 bluetooth net_bt_stack /dev/smd3 0660 bluetooth bluetooth
/dev/smd2 0660 bluetooth net_bt_stack /dev/smd2 0660 bluetooth bluetooth
/dev/ttyHSL0 0660 radio system /dev/ttyHSL0 0660 radio system
/dev/ttyHSL1 0660 system system /dev/ttyHSL1 0660 system system
/dev/mdm 0660 system radio /dev/mdm 0660 system radio

View file

@ -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:dir r_dir_perms;
allow rild radio_data_file:file r_file_perms; allow rild radio_data_file:file r_file_perms;
allow rild radio_data_file:lnk_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:dir rw_dir_perms;
allow rild system_app_data_file:file create_file_perms; #allow rild system_app_data_file:file create_file_perms;

View file

@ -1,3 +1,3 @@
allow ueventd sysfs_camera:file rw_file_perms; allow ueventd sysfs_camera:file rw_file_perms;
allow ueventd sysfs_vibeamp: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;

View file

@ -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:dir create_dir_perms;
allow vcs vcs_device:file create_file_perms; allow vcs vcs_device:file create_file_perms;
allow vcs vcs_device:fifo_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:dir r_dir_perms;
allow vcs firmware_file:file r_file_perms; allow vcs firmware_file:file r_file_perms;

View file

@ -1,3 +1,3 @@
allow wpa efs_file:dir search; #allow wpa efs_file:dir search;
allow wpa wifi_efs_file:file r_file_perms; #allow wpa wifi_efs_file:file r_file_perms;
allow wpa wifi_data_file:sock_file rw_file_perms; #allow wpa wifi_data_file:sock_file rw_file_perms;

View file

@ -2,6 +2,7 @@
dalvik.vm.dex2oat-swap=false dalvik.vm.dex2oat-swap=false
# Audio # Audio
persist.media.treble_omx=false
media.aac_51_output_enabled=true media.aac_51_output_enabled=true
mm.enable.smoothstreaming=true mm.enable.smoothstreaming=true
ro.qc.sdk.audio.fluencetype=none ro.qc.sdk.audio.fluencetype=none
@ -38,6 +39,7 @@ debug.composition.type=c2d
ro.opengles.version=196608 ro.opengles.version=196608
ro.qualcomm.cabl=0 ro.qualcomm.cabl=0
ro.sf.lcd_density=320 ro.sf.lcd_density=320
debug.hwui.use_buffer_age=false
# GPS # GPS
persist.gps.qc_nlp_in_use=1 persist.gps.qc_nlp_in_use=1