From f8eb3e125855ef827acd439136c3e53b06bee09a Mon Sep 17 00:00:00 2001 From: roynatech2544 Date: Thu, 21 Oct 2021 22:38:36 +0900 Subject: [PATCH] universal7885: Inital port to A20/A20e Addtitionally, Add device-specific trees as well Change-Id: Icbbc31c063b18bce3702d0b208a0aee78148a7c0 Signed-off-by: roynatech2544 --- README.md | 2 - a20/Android.mk | 7 + a20/AndroidProducts.mk | 2 + a20/BoardConfig.mk | 26 + a20/aosp_a20.mk | 13 + ...hardware.keymaster@4.0-service.samsung.xml | 11 + a20/configs/libnfc-sec-vendor.conf | 123 ++++ a20/device.mk | 29 + a20/extract-files.sh | 30 + a20/full_a20.mk | 26 + a20/lineage.dependencies | 7 + .../base/core/res/res/values/config.xml | 597 ++++++++++++++++++ .../base/core/res/res/values/dimens.xml | 6 + .../base/core/res/res/xml/power_profile.xml | 87 +++ a20/proprietary-files.txt | 19 + a20/recovery/recovery.fstab | 12 + a20/rootdir/Android.mk | 25 + a20/rootdir/etc/fstab.exynos7884B | 16 + a20/rootdir/etc/init.baseband.rc | 91 +++ a20/rootdir/etc/init.logcat.rc | 12 + a20/rootdir/etc/init.target.rc | 10 + a20/setup-makefiles.sh | 27 + a20e/Android.mk | 7 + a20e/AndroidProducts.mk | 2 + a20e/BoardConfig.mk | 26 + a20e/aosp_a20e.mk | 13 + ...hardware.keymaster@4.0-service.samsung.xml | 11 + a20e/configs/libnfc-sec-vendor.conf | 123 ++++ a20e/device.mk | 29 + a20e/extract-files.sh | 30 + a20e/full_a20e.mk | 27 + a20e/lineage.dependencies | 7 + .../base/core/res/res/values/config.xml | 597 ++++++++++++++++++ .../base/core/res/res/values/dimens.xml | 6 + .../base/core/res/res/xml/power_profile.xml | 87 +++ a20e/proprietary-files.txt | 19 + a20e/recovery/recovery.fstab | 12 + a20e/rootdir/Android.mk | 25 + a20e/rootdir/etc/fstab.exynos7884B | 16 + a20e/rootdir/etc/init.baseband.rc | 91 +++ a20e/rootdir/etc/init.logcat.rc | 12 + a20e/rootdir/etc/init.target.rc | 10 + a20e/setup-makefiles.sh | 27 + setup.sh | 12 + Android.bp => universal7885-common/Android.bp | 0 Android.mk => universal7885-common/Android.mk | 10 +- .../BoardConfigCommon.mk | 22 +- universal7885-common/README.md | 17 + .../bluetooth}/bdroid_buildcfg.h | 0 .../compatibility_matrix.xml | 0 .../configs}/audio_effects.xml | 0 .../configs}/audio_policy_configuration.xml | 0 .../configs}/libnfc-nci.conf | 0 .../configs}/nfcee_access.xml | 0 .../configs}/p2p_supplicant_overlay.conf | 0 .../configs}/permissions/platform-samsung.xml | 0 .../configs}/placeholder | 0 .../configs}/public.libraries.txt | 0 .../configs}/wpa_supplicant.conf | 0 .../configs}/wpa_supplicant_overlay.conf | 0 .../extract-files.sh | 4 +- .../include}/samsung_dtbh.h | 0 .../init}/Android.bp | 4 +- .../init/init_universal7884B.cpp | 0 .../libshims}/ASensorManager.cpp | 0 .../libshims}/Android.bp | 0 .../libshims}/CameraMetadata.cpp | 0 .../libshims}/CameraMetadata.h | 0 .../libshims}/CameraParameters.cpp | 0 .../libshims}/CameraParameters.h | 0 .../lineage.dependencies | 4 +- .../manifest.xml | 0 .../manifest_nfc.xml | 0 .../lineage/res/res/values/config.xml | 0 .../dialer/callrecord/res/values/config.xml | 0 .../base/core/res/res/values/config.xml | 0 .../SettingsLib/res/values/config.xml | 0 .../packages/SystemUI/res/values/config.xml | 0 .../packages/SystemUI/res/values/dimens.xml | 0 .../power}/Android.bp | 4 +- .../power}/Power.cpp | 0 {power => universal7885-common/power}/Power.h | 0 ...rdware.power@1.0-service.universal7884B.rc | 2 +- .../power}/include/samsung_power.h | 4 +- .../power}/service.cpp | 0 .../product.prop | 0 .../proprietary-files.txt | 22 +- .../recovery}/Android.bp | 2 +- .../recovery}/Android.mk | 4 +- .../recovery/init.recovery.exynos7884B.rc | 0 .../recovery}/recovery_updater.cpp | 4 +- .../releasetools.py | 2 +- .../rootdir}/Android.mk | 6 +- .../rootdir}/etc/fstab.enableswap | 0 .../rootdir/etc/init.exynos7884B.rc | 0 .../rootdir/etc/init.exynos7884B.usb.rc | 0 .../rootdir}/etc/ueventd.rc | 0 .../rootdir}/etc/wifi_sec.rc | 0 .../rro_overlays}/TetheringOverlay/Android.bp | 0 .../TetheringOverlay/AndroidManifest.xml | 2 +- .../TetheringOverlay/res/values/config.xml | 0 .../rro_overlays}/WifiOverlay/Android.bp | 0 .../WifiOverlay/AndroidManifest.xml | 2 +- .../WifiOverlay/res/values/config.xml | 0 .../sepolicy}/vendor/abox.te | 0 .../sepolicy}/vendor/adbd.te | 0 .../sepolicy}/vendor/apexd.te | 0 .../sepolicy}/vendor/app.te | 0 .../sepolicy}/vendor/bootanim.te | 0 .../sepolicy}/vendor/cbd.te | 0 .../sepolicy}/vendor/crash_dump.te | 0 .../sepolicy}/vendor/device.te | 0 .../sepolicy}/vendor/domain.te | 0 .../sepolicy}/vendor/file.te | 0 .../sepolicy}/vendor/file_contexts | 2 +- .../sepolicy}/vendor/fsck.te | 0 .../sepolicy}/vendor/genfs_contexts | 0 .../sepolicy}/vendor/gpsd.te | 0 .../sepolicy}/vendor/gpuservice.te | 0 .../sepolicy}/vendor/hal_audio_default.te | 0 .../sepolicy}/vendor/hal_bluetooth_default.te | 0 .../sepolicy}/vendor/hal_camera_default.te | 0 .../sepolicy}/vendor/hal_drm_clearkey.te | 0 .../sepolicy}/vendor/hal_drm_widevine.te | 0 .../vendor/hal_fingerprint_default.te | 0 .../vendor/hal_gatekeeper_default.te | 0 .../sepolicy}/vendor/hal_gnss_default.te | 0 .../vendor/hal_graphics_allocator_default.te | 0 .../vendor/hal_graphics_composer_default.te | 0 .../sepolicy}/vendor/hal_health_default.te | 0 .../sepolicy}/vendor/hal_light_default.te | 0 .../vendor/hal_lineage_fastcharge_default.te | 0 .../vendor/hal_lineage_touch_default.te | 0 .../sepolicy}/vendor/hal_memtrack_default.te | 0 .../sepolicy}/vendor/hal_nfc_default.te | 0 .../sepolicy}/vendor/hal_power_default.te | 0 .../sepolicy}/vendor/hal_sensors_default.te | 0 .../sepolicy}/vendor/hal_thermal_default.te | 0 .../sepolicy}/vendor/hal_vibrator_default.te | 0 .../sepolicy}/vendor/hal_wifi_default.te | 0 .../vendor/hal_wifi_hostapd_default.te | 0 .../sepolicy}/vendor/hwservice.te | 0 .../sepolicy}/vendor/hwservice_contexts | 0 .../sepolicy}/vendor/init.te | 0 .../sepolicy}/vendor/kernel.te | 0 .../sepolicy}/vendor/macloader.te | 0 .../sepolicy}/vendor/mediacodec.te | 0 .../sepolicy}/vendor/netd.te | 0 .../sepolicy}/vendor/nfc.te | 0 .../sepolicy}/vendor/platform_app.te | 0 .../sepolicy}/vendor/priv_app.te | 0 .../sepolicy}/vendor/property.te | 0 .../sepolicy}/vendor/property_contexts | 0 .../sepolicy}/vendor/radio.te | 0 .../sepolicy}/vendor/rild.te | 0 .../sepolicy}/vendor/secril_config_svc.te | 0 .../sepolicy}/vendor/surfaceflinger.te | 0 .../sepolicy}/vendor/system_app.te | 0 .../sepolicy}/vendor/system_server.te | 0 .../sepolicy}/vendor/tee.te | 0 .../sepolicy}/vendor/toolbox.te | 0 .../sepolicy}/vendor/ueventd.te | 0 .../sepolicy}/vendor/vendor_init.te | 0 .../sepolicy}/vendor/vold.te | 0 .../sepolicy}/vendor/wlbtd.te | 0 .../sepolicy}/vendor/zygote.te | 0 .../setup-makefiles.sh | 0 .../universal7885-common.mk | 18 +- .../vendor.prop | 0 169 files changed, 2440 insertions(+), 62 deletions(-) delete mode 100644 README.md create mode 100644 a20/Android.mk create mode 100644 a20/AndroidProducts.mk create mode 100644 a20/BoardConfig.mk create mode 100644 a20/aosp_a20.mk create mode 100644 a20/configs/android.hardware.keymaster@4.0-service.samsung.xml create mode 100644 a20/configs/libnfc-sec-vendor.conf create mode 100644 a20/device.mk create mode 100755 a20/extract-files.sh create mode 100644 a20/full_a20.mk create mode 100644 a20/lineage.dependencies create mode 100644 a20/overlay/frameworks/base/core/res/res/values/config.xml create mode 100644 a20/overlay/frameworks/base/core/res/res/values/dimens.xml create mode 100644 a20/overlay/frameworks/base/core/res/res/xml/power_profile.xml create mode 100644 a20/proprietary-files.txt create mode 100644 a20/recovery/recovery.fstab create mode 100644 a20/rootdir/Android.mk create mode 100644 a20/rootdir/etc/fstab.exynos7884B create mode 100644 a20/rootdir/etc/init.baseband.rc create mode 100644 a20/rootdir/etc/init.logcat.rc create mode 100644 a20/rootdir/etc/init.target.rc create mode 100755 a20/setup-makefiles.sh create mode 100644 a20e/Android.mk create mode 100644 a20e/AndroidProducts.mk create mode 100644 a20e/BoardConfig.mk create mode 100644 a20e/aosp_a20e.mk create mode 100644 a20e/configs/android.hardware.keymaster@4.0-service.samsung.xml create mode 100644 a20e/configs/libnfc-sec-vendor.conf create mode 100644 a20e/device.mk create mode 100755 a20e/extract-files.sh create mode 100644 a20e/full_a20e.mk create mode 100644 a20e/lineage.dependencies create mode 100644 a20e/overlay/frameworks/base/core/res/res/values/config.xml create mode 100644 a20e/overlay/frameworks/base/core/res/res/values/dimens.xml create mode 100644 a20e/overlay/frameworks/base/core/res/res/xml/power_profile.xml create mode 100644 a20e/proprietary-files.txt create mode 100644 a20e/recovery/recovery.fstab create mode 100644 a20e/rootdir/Android.mk create mode 100644 a20e/rootdir/etc/fstab.exynos7884B create mode 100644 a20e/rootdir/etc/init.baseband.rc create mode 100644 a20e/rootdir/etc/init.logcat.rc create mode 100644 a20e/rootdir/etc/init.target.rc create mode 100755 a20e/setup-makefiles.sh create mode 100755 setup.sh rename Android.bp => universal7885-common/Android.bp (100%) rename Android.mk => universal7885-common/Android.mk (89%) rename BoardConfigCommon.mk => universal7885-common/BoardConfigCommon.mk (83%) create mode 100644 universal7885-common/README.md rename {bluetooth => universal7885-common/bluetooth}/bdroid_buildcfg.h (100%) rename compatibility_matrix.xml => universal7885-common/compatibility_matrix.xml (100%) rename {configs => universal7885-common/configs}/audio_effects.xml (100%) rename {configs => universal7885-common/configs}/audio_policy_configuration.xml (100%) rename {configs => universal7885-common/configs}/libnfc-nci.conf (100%) rename {configs => universal7885-common/configs}/nfcee_access.xml (100%) rename {configs => universal7885-common/configs}/p2p_supplicant_overlay.conf (100%) rename {configs => universal7885-common/configs}/permissions/platform-samsung.xml (100%) rename {configs => universal7885-common/configs}/placeholder (100%) rename {configs => universal7885-common/configs}/public.libraries.txt (100%) rename {configs => universal7885-common/configs}/wpa_supplicant.conf (100%) rename {configs => universal7885-common/configs}/wpa_supplicant_overlay.conf (100%) rename extract-files.sh => universal7885-common/extract-files.sh (97%) rename {include => universal7885-common/include}/samsung_dtbh.h (100%) rename {init => universal7885-common/init}/Android.bp (91%) rename init/init_universal7904.cpp => universal7885-common/init/init_universal7884B.cpp (100%) rename {libshims => universal7885-common/libshims}/ASensorManager.cpp (100%) rename {libshims => universal7885-common/libshims}/Android.bp (100%) rename {libshims => universal7885-common/libshims}/CameraMetadata.cpp (100%) rename {libshims => universal7885-common/libshims}/CameraMetadata.h (100%) rename {libshims => universal7885-common/libshims}/CameraParameters.cpp (100%) rename {libshims => universal7885-common/libshims}/CameraParameters.h (100%) rename lineage.dependencies => universal7885-common/lineage.dependencies (87%) rename manifest.xml => universal7885-common/manifest.xml (100%) rename manifest_nfc.xml => universal7885-common/manifest_nfc.xml (100%) rename {overlay-lineage => universal7885-common/overlay-lineage}/lineage-sdk/lineage/res/res/values/config.xml (100%) rename {overlay-lineage => universal7885-common/overlay-lineage}/packages/apps/Dialer/java/com/android/dialer/callrecord/res/values/config.xml (100%) rename {overlay => universal7885-common/overlay}/frameworks/base/core/res/res/values/config.xml (100%) rename {overlay => universal7885-common/overlay}/frameworks/base/packages/SettingsLib/res/values/config.xml (100%) rename {overlay => universal7885-common/overlay}/frameworks/base/packages/SystemUI/res/values/config.xml (100%) rename {overlay => universal7885-common/overlay}/frameworks/base/packages/SystemUI/res/values/dimens.xml (100%) rename {power => universal7885-common/power}/Android.bp (88%) rename {power => universal7885-common/power}/Power.cpp (100%) rename {power => universal7885-common/power}/Power.h (100%) rename power/android.hardware.power@1.0-service.universal7904.rc => universal7885-common/power/android.hardware.power@1.0-service.universal7884B.rc (78%) rename {power => universal7885-common/power}/include/samsung_power.h (92%) rename {power => universal7885-common/power}/service.cpp (100%) rename product.prop => universal7885-common/product.prop (100%) rename proprietary-files.txt => universal7885-common/proprietary-files.txt (93%) rename {recovery => universal7885-common/recovery}/Android.bp (94%) rename {recovery => universal7885-common/recovery}/Android.mk (64%) rename recovery/init.recovery.exynos7904.rc => universal7885-common/recovery/init.recovery.exynos7884B.rc (100%) rename {recovery => universal7885-common/recovery}/recovery_updater.cpp (92%) rename releasetools.py => universal7885-common/releasetools.py (80%) rename {rootdir => universal7885-common/rootdir}/Android.mk (89%) rename {rootdir => universal7885-common/rootdir}/etc/fstab.enableswap (100%) rename rootdir/etc/init.exynos7904.rc => universal7885-common/rootdir/etc/init.exynos7884B.rc (100%) rename rootdir/etc/init.exynos7904.usb.rc => universal7885-common/rootdir/etc/init.exynos7884B.usb.rc (100%) rename {rootdir => universal7885-common/rootdir}/etc/ueventd.rc (100%) rename {rootdir => universal7885-common/rootdir}/etc/wifi_sec.rc (100%) rename {rro_overlays => universal7885-common/rro_overlays}/TetheringOverlay/Android.bp (100%) rename {rro_overlays => universal7885-common/rro_overlays}/TetheringOverlay/AndroidManifest.xml (98%) rename {rro_overlays => universal7885-common/rro_overlays}/TetheringOverlay/res/values/config.xml (100%) rename {rro_overlays => universal7885-common/rro_overlays}/WifiOverlay/Android.bp (100%) rename {rro_overlays => universal7885-common/rro_overlays}/WifiOverlay/AndroidManifest.xml (94%) rename {rro_overlays => universal7885-common/rro_overlays}/WifiOverlay/res/values/config.xml (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/abox.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/adbd.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/apexd.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/app.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/bootanim.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/cbd.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/crash_dump.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/device.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/domain.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/file.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/file_contexts (99%) rename {sepolicy => universal7885-common/sepolicy}/vendor/fsck.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/genfs_contexts (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/gpsd.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/gpuservice.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_audio_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_bluetooth_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_camera_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_drm_clearkey.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_drm_widevine.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_fingerprint_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_gatekeeper_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_gnss_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_graphics_allocator_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_graphics_composer_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_health_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_light_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_lineage_fastcharge_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_lineage_touch_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_memtrack_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_nfc_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_power_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_sensors_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_thermal_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_vibrator_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_wifi_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hal_wifi_hostapd_default.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hwservice.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/hwservice_contexts (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/init.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/kernel.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/macloader.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/mediacodec.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/netd.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/nfc.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/platform_app.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/priv_app.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/property.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/property_contexts (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/radio.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/rild.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/secril_config_svc.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/surfaceflinger.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/system_app.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/system_server.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/tee.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/toolbox.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/ueventd.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/vendor_init.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/vold.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/wlbtd.te (100%) rename {sepolicy => universal7885-common/sepolicy}/vendor/zygote.te (100%) rename setup-makefiles.sh => universal7885-common/setup-makefiles.sh (100%) rename universal7904-common.mk => universal7885-common/universal7885-common.mk (96%) rename vendor.prop => universal7885-common/vendor.prop (100%) diff --git a/README.md b/README.md deleted file mode 100644 index 5a42dca..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# android_device_samsung_a20-a20e -Device Tree for Samsung Galaxy A20/A20e. (SM-A205, SM-A202) diff --git a/a20/Android.mk b/a20/Android.mk new file mode 100644 index 0000000..d5cdd9b --- /dev/null +++ b/a20/Android.mk @@ -0,0 +1,7 @@ +LOCAL_PATH := $(call my-dir) + +ifneq ($(filter a20, $(TARGET_DEVICE)),) + +include $(call all-makefiles-under,$(LOCAL_PATH)) + +endif diff --git a/a20/AndroidProducts.mk b/a20/AndroidProducts.mk new file mode 100644 index 0000000..79f5667 --- /dev/null +++ b/a20/AndroidProducts.mk @@ -0,0 +1,2 @@ +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/aosp_a20.mk diff --git a/a20/BoardConfig.mk b/a20/BoardConfig.mk new file mode 100644 index 0000000..041f193 --- /dev/null +++ b/a20/BoardConfig.mk @@ -0,0 +1,26 @@ +DEVICE_PATH := device/samsung/a20 + +# Asserts +TARGET_OTA_ASSERT_DEVICE := a20,a20dd + +# Keymaster +TARGET_KEYMASTER_VARIANT := samsung + +# Kernel +TARGET_KERNEL_CONFIG := exynos7885-a20_permissive_defconfig + +# Display +TARGET_SCREEN_DENSITY := 411 + +# Partitions +BOARD_RECOVERYIMAGE_PARTITION_SIZE := 55574528 # 55MB +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4320133120 #4.02GB + +# Recovery +TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery/recovery.fstab + +# Sepolicy +BOARD_SEPOLICY_TEE_FLAVOR := teegris + +# Inherit common board flags +include device/samsung/universal7885-common/BoardConfigCommon.mk diff --git a/a20/aosp_a20.mk b/a20/aosp_a20.mk new file mode 100644 index 0000000..51d1c6d --- /dev/null +++ b/a20/aosp_a20.mk @@ -0,0 +1,13 @@ +$(call inherit-product, device/samsung/a20/full_a20.mk) + +# Inherit some common Lineage stuff. +$(call inherit-product, vendor/aosp/config/common_full_phone.mk) + +PRODUCT_NAME := aosp_a20 +TARGET_FACE_UNLOCK_SUPPORTED := true + +TARGET_SUPPORTS_GOOGLE_RECORDER := true +TARGET_INCLUDE_STOCK_ARCORE := true +TARGET_INCLUDE_LIVE_WALLPAPERS := true +# Set bootanimation resolution to 7200p +TARGET_BOOT_ANIMATION_RES := 720 diff --git a/a20/configs/android.hardware.keymaster@4.0-service.samsung.xml b/a20/configs/android.hardware.keymaster@4.0-service.samsung.xml new file mode 100644 index 0000000..6664462 --- /dev/null +++ b/a20/configs/android.hardware.keymaster@4.0-service.samsung.xml @@ -0,0 +1,11 @@ + + + android.hardware.keymaster + hwbinder + 4.0 + + IKeymasterDevice + default + + + diff --git a/a20/configs/libnfc-sec-vendor.conf b/a20/configs/libnfc-sec-vendor.conf new file mode 100644 index 0000000..94d6a56 --- /dev/null +++ b/a20/configs/libnfc-sec-vendor.conf @@ -0,0 +1,123 @@ +## --------------- Part-I : Configuration for Phone HW ----------------------------## +#################################################################################### +# I-1) Clock Source Information (AP direct 26MHz) +#################################################################################### +## Clock option for 26MHz PLL (0x12) +## Clock option for 19.2MHz PLL (0x11) +FW_CFG_CLK_SPEED=0x12 +#################################################################################### + + +## --------------- Part-II : Configuration for Chip / FW -------------------------## +#################################################################################### +# II-1) FW base address : +#################################################################################### +## FW Base Address for SEN82 (0x2000) +FW_BASE_ADDRESS=0x2000 +#################################################################################### +# II-2) Timing parameter +#################################################################################### +# WAKEUP_DELAY for eSE Model +# (Old F/W) 20ms : UICC, 80ms : eSE +# (After Star Model) 20ms : UICC, 20ms : eSE +#WAKEUP_DELAY=20 +#################################################################################### +# II-3) Firmware path +#################################################################################### +## F/W image for S3NRN82 +#FW_IMAGE="/vendor/firmware/nfc/sec_s3nrn82_firmware.bin" + +# for single SKU +FW_DIR_PATH="/vendor/firmware/nfc/" +FW_FILE_NAME="sec_s3nrn82_firmware.bin" + +#################################################################################### +# II-4) RF Register path +#################################################################################### +## RF Register for S3NRN82 +#RFREG_FILE="/vendor/etc/nfc/sec_s3nrn82_rfreg.bin" + +RF_DIR_PATH="/vendor/etc/nfc/" +RF_FILE_NAME="sec_s3nrn82_rfreg.bin" +## --------------- Part-III : Configuration for MW --------------------------------## +#################################################################################### +# III-1) Driver path +#################################################################################### +## Power driver +POWER_DRIVER="/dev/sec-nfc" +## Transport driver +TRANS_DRIVER="/dev/sec-nfc" + + +#################################################################################### +# III-2) Trace Level +#################################################################################### +## TRACE_LEVEL (0: only err, 1: and debug, 2: trace also) +## DATA TRACE level (0: not display, 1: simply, 2: all of data trace) +TRACE_LEVEL=2 +DATA_TRACE=2 + +#################################################################################### +# III-3) NFC Sleep Timing +#################################################################################### +# Set wait time to enter CLF sleep mode +SLEEP_TIMEOUT=1000 + + +#################################################################################### +# III-4) F/W Update Option +# F/W Update Option +# 0 : Download for different version +# 1 : Download for upper version +# 2 : Force Download +#################################################################################### +# 0 : Default value is "Download for different version" +FW_UPDATE_MODE=0 +#################################################################################### + + + + +############################################################################### +# Configure the default NfcA/IsoDep techology and protocol route. Can be +# either a secure element (e.g. 0x02) or the host (0x00) +DEFAULT_ROUTE=0x03 +############################################################################### +# Configure the single default SE to use. The default is to use the first +# SE that is detected by the stack. This value might be used when the phone +# supports multiple SE but you want to force it to use one of them +DEFAULT_OFFHOST_ROUTE=0x02 + +############################################################################### +# Choose the presence-check algorithm for type-4 tag. If not defined, the default value is 1. +# PRESENCE_CHECK_ALGORITHM=0 : [default] Automatic select for below 4 method. +# PRESENCE_CHECK_ALGORITHM=1 : Read Empty I block. +# PRESENCE_CHECK_ALGORITHM=2 : Sleep/Wakeup Command +# PRESENCE_CHECK_ALGORITHM=3 : Read binary for CH0(K version method) +# PRESENCE_CHECK_ALGORITHM=4 : Read binary for CH3 +# PRESENCE_CHECK_ALGORITHM=5 : ACK/NACK +# Default : No use (AUTO) +# For China Region : Use Method 3 +############################################################################### +PRESENCE_CHECK_ALGORITHM=5 + +############################################################################### +# Vendor Specific Proprietary Protocol & Discovery Configuration +# Set to 0xFF if unsupported +# byte[0] NCI_PROTOCOL_18092_ACTIVE +# byte[1] NCI_PROTOCOL_B_PRIME +# byte[2] NCI_PROTOCOL_DUAL +# byte[3] NCI_PROTOCOL_15693 +# byte[4] NCI_PROTOCOL_KOVIO +# byte[5] NCI_PROTOCOL_MIFARE +# byte[6] NCI_DISCOVERY_TYPE_POLL_KOVIO +# byte[7] NCI_DISCOVERY_TYPE_POLL_B_PRIME +# byte[8] NCI_DISCOVERY_TYPE_LISTEN_B_PRIME +NFA_PROPRIETARY_CFG={00, 81, 82, 80, 8A, 81, 70, 74, F4} +############################################################################### +# Extended APDU length for ISO_DEP. If not supported default length is 261 +# CHECK in VTS Test case +# ISO_DEP_MAX_TRANSCEIVE=0xFEFF +ISO_DEP_MAX_TRANSCEIVE=261 + +############### end of config ############################## diff --git a/a20/device.mk b/a20/device.mk new file mode 100644 index 0000000..5cddcf9 --- /dev/null +++ b/a20/device.mk @@ -0,0 +1,29 @@ +DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay + +# Inherit common device configuration +$(call inherit-product, device/samsung/universal7885-common/universal7885-common.mk) + +$(call inherit-product, vendor/samsung/a20/a20-vendor.mk) + +# Keymaster +PRODUCT_PACKAGES += \ + android.hardware.keymaster@4.0-service.samsung \ + libkeymaster4_1support.vendor + +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/android.hardware.keymaster@4.0-service.samsung.xml:$(TARGET_COPY_OUT_VENDOR)/etc/vintf/manifest/android.hardware.keymaster@4.0-service.samsung.xml + +# Image +#TARGET_PREBUILT_KERNEL := device/samsung/a20e/Image +#PRODUCT_COPY_FILES += \ + $(TARGET_PREBUILT_KERNEL):kernel + +# NFC +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/libnfc-sec-vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-sec-vendor.conf + +# Rootdir +PRODUCT_PACKAGES += \ + fstab.exynos7884B \ + init.target.rc \ + init.baseband.rc diff --git a/a20/extract-files.sh b/a20/extract-files.sh new file mode 100755 index 0000000..0b1c089 --- /dev/null +++ b/a20/extract-files.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# +# Copyright (C) 2019 The LineageOS Project +# +# 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. +# +# If we're being sourced by the common script that we called, +# stop right here. No need to go down the rabbit hole. +if [ "${BASH_SOURCE[0]}" != "${0}" ]; then + return +fi +set -e + +export DEVICE=a20 +export DEVICE_COMMON=universal7885-common +export VENDOR=samsung + +export DEVICE_BRINGUP_YEAR=2020 + +"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@" diff --git a/a20/full_a20.mk b/a20/full_a20.mk new file mode 100644 index 0000000..9a11ef8 --- /dev/null +++ b/a20/full_a20.mk @@ -0,0 +1,26 @@ +# Copyright (C) 2018 The LineageOS Project +# SPDX-License-Identifier: Apache-2.0 + +# Inherit from those products. Most specific first. +$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) + +# Inherit device configuration +$(call inherit-product, device/samsung/a20/device.mk) + +# Device identifier. This must come after all inclusions +PRODUCT_DEVICE := a20 +PRODUCT_NAME := full_a20 +PRODUCT_MODEL := SM-A205F +PRODUCT_BRAND := samsung +PRODUCT_MANUFACTURER := samsung + +PRODUCT_GMS_CLIENTID_BASE := android-samsung + +# Set BUILD_FINGERPRINT variable to be picked up by both system and vendor build.prop +BUILD_FINGERPRINT := "google/redfin/redfin:11/RQ3A.210805.001.A1/7474174:user/release-keys" + +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRIVATE_BUILD_DESC="redfin-user 11 RQ3A.210805.001.A1 7474174 release-keys" diff --git a/a20/lineage.dependencies b/a20/lineage.dependencies new file mode 100644 index 0000000..145e60e --- /dev/null +++ b/a20/lineage.dependencies @@ -0,0 +1,7 @@ + +[ + { + "repository": "android_device_samsung_universal7885-common", + "target_path": "device/samsung/universal7885-common" + } +] diff --git a/a20/overlay/frameworks/base/core/res/res/values/config.xml b/a20/overlay/frameworks/base/core/res/res/values/config.xml new file mode 100644 index 0000000..e86fc95 --- /dev/null +++ b/a20/overlay/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,597 @@ + + + true + true + false + M62,0l-3.8,0l-3.9,0.2l-3.9,0.4l-4,0.8l-3.9,1.2l-3.8,1.6l-3.7,2l-3.4,2.4l-3.1,2.8l-2.9,3l-2.7,3.1l-2.6,3.1 l-2.7,2.8C12.5,28,6.2,30.3,0,30.3c-6.3,0-12.5-2.3-17.5-6.8l-2.7-2.8l-2.6-3.1l-2.7-3.1l-2.9-3l-3.2-2.8 L-35,6.2l-3.7-2l-3.8-1.6l-3.9-1.2l-4-0.8L-54.3,0.2L-58.2,0L-62,0Z @dp + true + true + true + true + 2000 + 4000 + + 10 + 11 + 15 + 17 + 19 + 25 + 30 + 34 + 38 + 44 + 49 + 67 + 82 + 90 + 102 + 108 + 148 + 183 + 247 + 304 + 350 + 391 + 420 + 420 + 450 + 500 + 550 + 575 + 600 + + + 10 + 80 + 162 + 190 + 255 + + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 15 + 20 + 25 + 50 + 100 + 300 + 500 + 1000 + 1500 + 2000 + 3000 + 4000 + 4999 + 5000 + 10000 + 20000 + 30000 + 40000 + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 30 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + 41 + 42 + 43 + 44 + 45 + 46 + 47 + 48 + 49 + 50 + 51 + 52 + 53 + 54 + 55 + 56 + 57 + 58 + 59 + 60 + 61 + 62 + 63 + 64 + 65 + 66 + 67 + 68 + 69 + 70 + 71 + 72 + 73 + 74 + 75 + 76 + 77 + 78 + 79 + 80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 + 100 + 101 + 102 + 103 + 104 + 105 + 106 + 107 + 108 + 109 + 110 + 111 + 112 + 113 + 114 + 115 + 116 + 117 + 118 + 119 + 120 + 121 + 122 + 123 + 124 + 125 + 126 + 127 + 128 + 129 + 130 + 131 + 132 + 133 + 134 + 135 + 136 + 137 + 138 + 139 + 140 + 141 + 142 + 143 + 144 + 145 + 146 + 147 + 148 + 149 + 150 + 151 + 152 + 153 + 154 + 155 + 156 + 157 + 158 + 159 + 160 + 161 + 162 + 163 + 164 + 165 + 166 + 167 + 168 + 169 + 170 + 171 + 172 + 173 + 174 + 175 + 176 + 177 + 178 + 179 + 180 + 181 + 182 + 183 + 184 + 185 + 186 + 187 + 188 + 189 + 190 + 191 + 192 + 193 + 194 + 195 + 196 + 197 + 198 + 199 + 200 + 201 + 202 + 203 + 204 + 205 + 206 + 207 + 208 + 209 + 210 + 211 + 212 + 213 + 214 + 215 + 216 + 217 + 218 + 219 + 220 + 221 + 222 + 223 + 224 + 225 + 226 + 227 + 228 + 229 + 230 + 231 + 232 + 233 + 234 + 235 + 236 + 237 + 238 + 239 + 240 + 241 + 242 + 243 + 244 + 245 + 246 + 247 + 248 + 249 + 250 + 251 + 252 + 253 + 254 + 255 + + + 2 + 3 + 4 + 6 + 7 + 8 + 9 + 10 + 12 + 13 + 14 + 15 + 16 + 18 + 19 + 20 + 22 + 24 + 25 + 26 + 28 + 29 + 31 + 32 + 34 + 35 + 36 + 38 + 39 + 41 + 42 + 44 + 45 + 46 + 48 + 49 + 51 + 52 + 54 + 55 + 57 + 58 + 60 + 61 + 62 + 64 + 65 + 67 + 68 + 70 + 71 + 72 + 74 + 75 + 77 + 78 + 80 + 81 + 83 + 84 + 86 + 87 + 88 + 90 + 91 + 93 + 94 + 95 + 97 + 98 + 100 + 101 + 103 + 104 + 105 + 107 + 109 + 110 + 111 + 113 + 114 + 116 + 117 + 119 + 120 + 121 + 123 + 124 + 126 + 127 + 129 + 130 + 131 + 133 + 135 + 136 + 137 + 139 + 140 + 142 + 143 + 145 + 146 + 147 + 149 + 150 + 152 + 153 + 155 + 156 + 157 + 159 + 161 + 162 + 163 + 165 + 166 + 168 + 169 + 171 + 172 + 173 + 175 + 176 + 178 + 179 + 181 + 182 + 183 + 186 + 188 + 189 + 191 + 193 + 195 + 197 + 198 + 201 + 202 + 204 + 206 + 208 + 210 + 212 + 214 + 216 + 217 + 219 + 221 + 223 + 225 + 226 + 229 + 230 + 232 + 234 + 236 + 238 + 240 + 242 + 244 + 245 + 247 + 249 + 251 + 253 + 254 + 257 + 258 + 260 + 262 + 264 + 266 + 268 + 270 + 272 + 273 + 275 + 277 + 279 + 281 + 282 + 285 + 286 + 288 + 290 + 292 + 294 + 296 + 298 + 300 + 301 + 303 + 305 + 307 + 309 + 310 + 313 + 314 + 316 + 318 + 320 + 322 + 324 + 326 + 327 + 329 + 331 + 333 + 335 + 337 + 338 + 341 + 342 + 344 + 346 + 348 + 350 + 352 + 354 + 355 + 357 + 359 + 361 + 363 + 365 + 366 + 369 + 370 + 372 + 374 + 376 + 378 + 379 + 382 + 383 + 385 + 387 + 389 + 391 + 393 + 395 + 397 + 398 + 400 + 402 + 404 + 406 + 407 + 410 + 411 + 413 + 415 + 417 + 419 + 420 + + diff --git a/a20/overlay/frameworks/base/core/res/res/values/dimens.xml b/a20/overlay/frameworks/base/core/res/res/values/dimens.xml new file mode 100644 index 0000000..faac598 --- /dev/null +++ b/a20/overlay/frameworks/base/core/res/res/values/dimens.xml @@ -0,0 +1,6 @@ + + + 24.0dip + 31.0dip + 40px + diff --git a/a20/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/a20/overlay/frameworks/base/core/res/res/xml/power_profile.xml new file mode 100644 index 0000000..c7305a5 --- /dev/null +++ b/a20/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,87 @@ + + + 0 + 93 + 313 + 118 + 0.98 + 0.43 + 488 + 502 + 45 + 286 + 124 + 662 + 32 + 164 + 115 + + 7.3 + 7.3 + + + 6 + 2 + + + 1586000 + 1482000 + 1352000 + 1248000 + 1144000 + 1014000 + 902000 + 839000 + 757000 + 676000 + 546000 + 449000 + + + 50 + 43 + 34 + 28 + 24 + 18 + 15 + 13 + 11 + 10 + 7 + 6 + + + 1768000 + 1664000 + 1560000 + 1352000 + 1144000 + 936000 + + + 162 + 142 + 120 + 87 + 61 + 41 + + 3.79 + 23 + 4000 + 1 + 65 + 265 + + 0 + + 3600 + + .0002 + .002 + .02 + .2 + 2 + + diff --git a/a20/proprietary-files.txt b/a20/proprietary-files.txt new file mode 100644 index 0000000..bbd5d3d --- /dev/null +++ b/a20/proprietary-files.txt @@ -0,0 +1,19 @@ +vendor/lib64/libsensorlistener.so +vendor/lib64/hw/camera.exynos7884B.so +vendor/lib64/hw/sensors.universal7884B.so +vendor/lib64/libhwjpeg.so +vendor/lib64/libexynoscamera3.so +vendor/lib/libsensorlistener.so +vendor/lib/hw/camera.exynos7884B.so +vendor/lib/hw/sensors.universal7884B.so +vendor/lib/libhwjpeg.so +vendor/lib/libexynoscamera3.so +vendor/firmware/setfile_imx258.bin +vendor/firmware/setfile_3l6.bin +vendor/firmware/mfc_fw.bin +vendor/firmware/setfile_sr556.bin +vendor/firmware/fimc_is_rta.bin +vendor/firmware/nfc/sec_s3nrn82_firmware.bin +vendor/firmware/fimc_is_lib.bin +vendor/firmware/setfile_4ha_front.bin +vendor/firmware/dax_param.bin diff --git a/a20/recovery/recovery.fstab b/a20/recovery/recovery.fstab new file mode 100644 index 0000000..3ae8d8f --- /dev/null +++ b/a20/recovery/recovery.fstab @@ -0,0 +1,12 @@ +/dev/block/platform/13500000.dwmmc0/by-name/system /system ext4 ro,errors=panic wait,recoveryonly +/dev/block/platform/13500000.dwmmc0/by-name/vendor /vendor ext4 ro,errors=panic wait,recoveryonly +/dev/block/platform/13500000.dwmmc0/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check +/dev/block/platform/13500000.dwmmc0/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,usrquota,grpquota,fsync_mode=nobarrier,reserve_root=32768,resgid=5678 wait,check,forceencrypt=footer,quota,reservedsize=128m,length=-20480 +/dev/block/platform/13500000.dwmmc0/by-name/boot /boot emmc defaults defaults +/dev/block/platform/13500000.dwmmc0/by-name/recovery /recovery emmc defaults defaults +/dev/block/platform/13500000.dwmmc0/by-name/efs /mnt/vendor/efs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check +/dev/block/platform/13500000.dwmmc0/by-name/cpefs /mnt/vendor/cpefs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check,nofail +/dev/block/platform/13500000.dwmmc0/by-name/misc /misc emmc defaults defaults +/dev/block/platform/13500000.dwmmc0/by-name/hidden /preload ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic voldmanaged=preload:auto,check +/devices/platform/13550000.dwmmc2/mmc_host/mmc1* auto vfat defaults voldmanaged=sdcard:auto +/devices/platform/13600000.usb/13600000.dwc3* auto auto defaults voldmanaged=usb:auto diff --git a/a20/rootdir/Android.mk b/a20/rootdir/Android.mk new file mode 100644 index 0000000..220a064 --- /dev/null +++ b/a20/rootdir/Android.mk @@ -0,0 +1,25 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_MODULE := fstab.exynos7884B +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/$(LOCAL_MODULE) +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.target.rc +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/$(LOCAL_MODULE) +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.baseband.rc +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/$(LOCAL_MODULE) +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init +include $(BUILD_PREBUILT) diff --git a/a20/rootdir/etc/fstab.exynos7884B b/a20/rootdir/etc/fstab.exynos7884B new file mode 100644 index 0000000..f7b5ad9 --- /dev/null +++ b/a20/rootdir/etc/fstab.exynos7884B @@ -0,0 +1,16 @@ +# Android fstab file. +# +# The filesystem that contains the filesystem checker binary (typically /system) cannot +# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK + +# system and vendor partition will be early-mounted by kernel +# /dev/block/platform/13500000.dwmmc0/by-name/system /system ext4 ro wait +/dev/block/platform/13500000.dwmmc0/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check +/dev/block/platform/13500000.dwmmc0/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check,encryptable=footer,quota,reservedsize=128M,length=-20480 +/dev/block/platform/13500000.dwmmc0/by-name/efs /mnt/vendor/efs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check +/dev/block/platform/13500000.dwmmc0/by-name/misc /misc emmc defaults defaults + +# VOLD :: fstab.a20e +/dev/block/platform/13500000.dwmmc0/by-name/hidden /preload ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic voldmanaged=preload:auto,check +/devices/platform/13550000.dwmmc2/mmc_host/mmc1* auto vfat defaults voldmanaged=sdcard:auto +/devices/platform/13600000.usb/13600000.dwc3* auto auto defaults voldmanaged=usb:auto diff --git a/a20/rootdir/etc/init.baseband.rc b/a20/rootdir/etc/init.baseband.rc new file mode 100644 index 0000000..228eab4 --- /dev/null +++ b/a20/rootdir/etc/init.baseband.rc @@ -0,0 +1,91 @@ +on early-init + mkdir /mnt/vendor/cpefs 0771 radio system + +on init + symlink /dev/block/platform/13500000.dwmmc0/by-name/radio /dev/mbin0 + restorecon /dev/mbin0 + + write /proc/sys/net/core/netdev_max_backlog 5000 + + write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 6 + write /sys/class/net/rmnet1/queues/rx-0/rps_cpus 6 + write /sys/class/net/rmnet2/queues/rx-0/rps_cpus 6 + write /sys/class/net/rmnet3/queues/rx-0/rps_cpus 6 + write /sys/class/net/rmnet4/queues/rx-0/rps_cpus 6 + write /sys/class/net/rmnet5/queues/rx-0/rps_cpus 6 + write /sys/class/net/rmnet6/queues/rx-0/rps_cpus 6 + write /sys/class/net/rmnet7/queues/rx-0/rps_cpus 6 + +on fs && property:ro.boot.cpefs_wp=0 + wait /dev/block/platform/13500000.dwmmc0/by-name/cpefs + mount ext4 /dev/block/platform/13500000.dwmmc0/by-name/cpefs /mnt/vendor/cpefs nosuid nodev noatime noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic + mount none /mnt/vendor/cpefs /cpefs bind + restorecon_recursive /mnt/vendor/cpefs + chown radio system /mnt/vendor/cpefs + chmod 0771 /mnt/vendor/cpefs + +on fs && property:ro.boot.cpefs_wp=1 + wait /dev/block/platform/13500000.dwmmc0/by-name/cpefs + mount ext4 /dev/block/platform/13500000.dwmmc0/by-name/cpefs /mnt/vendor/cpefs ro nosuid nodev noatime noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic + mount none /mnt/vendor/cpefs /cpefs bind + restorecon_recursive /mnt/vendor/cpefs + chown radio system /mnt/vendor/cpefs + chmod 0771 /mnt/vendor/cpefs + +on post-fs-data + chown radio radio sys/devices/virtual/misc/multipdp/waketime + chmod 0660 /sys/devices/virtual/misc/umts_dm0/dm_state + chown radio system /sys/devices/virtual/misc/umts_dm0/dm_state + + # /efs/factory.prop for Dual / Single SIM settings + chown radio radio /mnt/vendor/efs/factory.prop + chmod 0600 /mnt/vendor/efs/factory.prop + +# Modem boot daemon +service cpboot-daemon /vendor/bin/cbd -d -tss310 -bm -mm -P platform/13500000.dwmmc0/by-name/radio + class main + user root + group radio cache inet misc audio sdcard_rw log sdcard_r shell system + seclabel u:r:cbd:s0 + +on property:ril.clatd.v4-rmnet0=up + write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet0/queues/rx-0/rps_cpus 2 + +on property:ril.clatd.v4-rmnet1=up + write /sys/class/net/rmnet1/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet1/queues/rx-0/rps_cpus 2 + +on property:ril.clatd.v4-rmnet2=up + write /sys/class/net/rmnet2/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet2/queues/rx-0/rps_cpus 2 + +on property:ril.clatd.v4-rmnet3=up + write /sys/class/net/rmnet3/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet3/queues/rx-0/rps_cpus 2 + +on property:ril.clatd.v4-rmnet4=up + write /sys/class/net/rmnet4/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet4/queues/rx-0/rps_cpus 2 + +on property:ril.clatd.v4-rmnet5=up + write /sys/class/net/rmnet5/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet5/queues/rx-0/rps_cpus 2 + +on property:ril.clatd.v4-rmnet6=up + write /sys/class/net/rmnet6/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet6/queues/rx-0/rps_cpus 2 + +on property:ril.clatd.v4-rmnet7=up + write /sys/class/net/rmnet7/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet7/queues/rx-0/rps_cpus 2 + +# SS/DS configuration +on property:ro.vendor.multisim.simslotcount=* + write /sys/module/modem_ctrl_ss310ap/parameters/ds_detect ${ro.vendor.multisim.simslotcount} + +on property:ro.vendor.multisim.simslotcount=1 + setprop persist.radio.multisim.config ss + +on property:ro.vendor.multisim.simslotcount=2 + setprop persist.radio.multisim.config dsds diff --git a/a20/rootdir/etc/init.logcat.rc b/a20/rootdir/etc/init.logcat.rc new file mode 100644 index 0000000..7a2bf15 --- /dev/null +++ b/a20/rootdir/etc/init.logcat.rc @@ -0,0 +1,12 @@ +service bootlogd /system/bin/logcat -b all -f /cache/boot.log + user root + group root + oneshot + disabled + +on early-init + rm /cache/boot.log + start bootlogd + +on property:sys.boot_completed=1 + stop bootlogd diff --git a/a20/rootdir/etc/init.target.rc b/a20/rootdir/etc/init.target.rc new file mode 100644 index 0000000..86c62a9 --- /dev/null +++ b/a20/rootdir/etc/init.target.rc @@ -0,0 +1,10 @@ +on init + # Reactivation Lock + symlink /dev/block/platform/13500000.dwmmc0/by-name/steady /dev/block/steady + + # Google FRP solution + symlink /dev/block/platform/13500000.dwmmc0/by-name/persistent /dev/block/persistent + +on boot + # Permissions for NAD + symlink /dev/block/platform/13500000.dwmmc0/by-name/nad_refer /dev/block/NAD_REFER diff --git a/a20/setup-makefiles.sh b/a20/setup-makefiles.sh new file mode 100755 index 0000000..0c8b627 --- /dev/null +++ b/a20/setup-makefiles.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# +# Copyright (C) 2019 The LineageOS Project +# +# 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. +# + +set -e + +# Required! +export DEVICE=a20e +export DEVICE_COMMON=universal7885-common +export VENDOR=samsung + +export DEVICE_BRINGUP_YEAR=2020 + +"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@" diff --git a/a20e/Android.mk b/a20e/Android.mk new file mode 100644 index 0000000..c38d2ab --- /dev/null +++ b/a20e/Android.mk @@ -0,0 +1,7 @@ +LOCAL_PATH := $(call my-dir) + +ifneq ($(filter a20e, $(TARGET_DEVICE)),) + +include $(call all-makefiles-under,$(LOCAL_PATH)) + +endif diff --git a/a20e/AndroidProducts.mk b/a20e/AndroidProducts.mk new file mode 100644 index 0000000..e2a2656 --- /dev/null +++ b/a20e/AndroidProducts.mk @@ -0,0 +1,2 @@ +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/aosp_a20e.mk diff --git a/a20e/BoardConfig.mk b/a20e/BoardConfig.mk new file mode 100644 index 0000000..eaee2d3 --- /dev/null +++ b/a20e/BoardConfig.mk @@ -0,0 +1,26 @@ +DEVICE_PATH := device/samsung/a20e + +# Asserts +TARGET_OTA_ASSERT_DEVICE := a20e,a20edd + +# Keymaster +TARGET_KEYMASTER_VARIANT := samsung + +# Kernel +TARGET_KERNEL_CONFIG := exynos7885-a20e_permissive_defconfig + +# Display +TARGET_SCREEN_DENSITY := 320 + +# Partitions +BOARD_RECOVERYIMAGE_PARTITION_SIZE := 55574528 # 55MB +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4320133120 #4.02GB + +# Recovery +TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery/recovery.fstab + +# Sepolicy +BOARD_SEPOLICY_TEE_FLAVOR := teegris + +# Inherit common board flags +include device/samsung/universal7885-common/BoardConfigCommon.mk diff --git a/a20e/aosp_a20e.mk b/a20e/aosp_a20e.mk new file mode 100644 index 0000000..95ff5b7 --- /dev/null +++ b/a20e/aosp_a20e.mk @@ -0,0 +1,13 @@ +$(call inherit-product, device/samsung/a20e/full_a20e.mk) + +# Inherit some common Lineage stuff. +$(call inherit-product, vendor/aosp/config/common_full_phone.mk) + +PRODUCT_NAME := aosp_a20e +TARGET_FACE_UNLOCK_SUPPORTED := true + +TARGET_SUPPORTS_GOOGLE_RECORDER := true +TARGET_INCLUDE_STOCK_ARCORE := true +TARGET_INCLUDE_LIVE_WALLPAPERS := true +# Set bootanimation resolution to 7200p +TARGET_BOOT_ANIMATION_RES := 720 diff --git a/a20e/configs/android.hardware.keymaster@4.0-service.samsung.xml b/a20e/configs/android.hardware.keymaster@4.0-service.samsung.xml new file mode 100644 index 0000000..6664462 --- /dev/null +++ b/a20e/configs/android.hardware.keymaster@4.0-service.samsung.xml @@ -0,0 +1,11 @@ + + + android.hardware.keymaster + hwbinder + 4.0 + + IKeymasterDevice + default + + + diff --git a/a20e/configs/libnfc-sec-vendor.conf b/a20e/configs/libnfc-sec-vendor.conf new file mode 100644 index 0000000..94d6a56 --- /dev/null +++ b/a20e/configs/libnfc-sec-vendor.conf @@ -0,0 +1,123 @@ +## --------------- Part-I : Configuration for Phone HW ----------------------------## +#################################################################################### +# I-1) Clock Source Information (AP direct 26MHz) +#################################################################################### +## Clock option for 26MHz PLL (0x12) +## Clock option for 19.2MHz PLL (0x11) +FW_CFG_CLK_SPEED=0x12 +#################################################################################### + + +## --------------- Part-II : Configuration for Chip / FW -------------------------## +#################################################################################### +# II-1) FW base address : +#################################################################################### +## FW Base Address for SEN82 (0x2000) +FW_BASE_ADDRESS=0x2000 +#################################################################################### +# II-2) Timing parameter +#################################################################################### +# WAKEUP_DELAY for eSE Model +# (Old F/W) 20ms : UICC, 80ms : eSE +# (After Star Model) 20ms : UICC, 20ms : eSE +#WAKEUP_DELAY=20 +#################################################################################### +# II-3) Firmware path +#################################################################################### +## F/W image for S3NRN82 +#FW_IMAGE="/vendor/firmware/nfc/sec_s3nrn82_firmware.bin" + +# for single SKU +FW_DIR_PATH="/vendor/firmware/nfc/" +FW_FILE_NAME="sec_s3nrn82_firmware.bin" + +#################################################################################### +# II-4) RF Register path +#################################################################################### +## RF Register for S3NRN82 +#RFREG_FILE="/vendor/etc/nfc/sec_s3nrn82_rfreg.bin" + +RF_DIR_PATH="/vendor/etc/nfc/" +RF_FILE_NAME="sec_s3nrn82_rfreg.bin" +## --------------- Part-III : Configuration for MW --------------------------------## +#################################################################################### +# III-1) Driver path +#################################################################################### +## Power driver +POWER_DRIVER="/dev/sec-nfc" +## Transport driver +TRANS_DRIVER="/dev/sec-nfc" + + +#################################################################################### +# III-2) Trace Level +#################################################################################### +## TRACE_LEVEL (0: only err, 1: and debug, 2: trace also) +## DATA TRACE level (0: not display, 1: simply, 2: all of data trace) +TRACE_LEVEL=2 +DATA_TRACE=2 + +#################################################################################### +# III-3) NFC Sleep Timing +#################################################################################### +# Set wait time to enter CLF sleep mode +SLEEP_TIMEOUT=1000 + + +#################################################################################### +# III-4) F/W Update Option +# F/W Update Option +# 0 : Download for different version +# 1 : Download for upper version +# 2 : Force Download +#################################################################################### +# 0 : Default value is "Download for different version" +FW_UPDATE_MODE=0 +#################################################################################### + + + + +############################################################################### +# Configure the default NfcA/IsoDep techology and protocol route. Can be +# either a secure element (e.g. 0x02) or the host (0x00) +DEFAULT_ROUTE=0x03 +############################################################################### +# Configure the single default SE to use. The default is to use the first +# SE that is detected by the stack. This value might be used when the phone +# supports multiple SE but you want to force it to use one of them +DEFAULT_OFFHOST_ROUTE=0x02 + +############################################################################### +# Choose the presence-check algorithm for type-4 tag. If not defined, the default value is 1. +# PRESENCE_CHECK_ALGORITHM=0 : [default] Automatic select for below 4 method. +# PRESENCE_CHECK_ALGORITHM=1 : Read Empty I block. +# PRESENCE_CHECK_ALGORITHM=2 : Sleep/Wakeup Command +# PRESENCE_CHECK_ALGORITHM=3 : Read binary for CH0(K version method) +# PRESENCE_CHECK_ALGORITHM=4 : Read binary for CH3 +# PRESENCE_CHECK_ALGORITHM=5 : ACK/NACK +# Default : No use (AUTO) +# For China Region : Use Method 3 +############################################################################### +PRESENCE_CHECK_ALGORITHM=5 + +############################################################################### +# Vendor Specific Proprietary Protocol & Discovery Configuration +# Set to 0xFF if unsupported +# byte[0] NCI_PROTOCOL_18092_ACTIVE +# byte[1] NCI_PROTOCOL_B_PRIME +# byte[2] NCI_PROTOCOL_DUAL +# byte[3] NCI_PROTOCOL_15693 +# byte[4] NCI_PROTOCOL_KOVIO +# byte[5] NCI_PROTOCOL_MIFARE +# byte[6] NCI_DISCOVERY_TYPE_POLL_KOVIO +# byte[7] NCI_DISCOVERY_TYPE_POLL_B_PRIME +# byte[8] NCI_DISCOVERY_TYPE_LISTEN_B_PRIME +NFA_PROPRIETARY_CFG={00, 81, 82, 80, 8A, 81, 70, 74, F4} +############################################################################### +# Extended APDU length for ISO_DEP. If not supported default length is 261 +# CHECK in VTS Test case +# ISO_DEP_MAX_TRANSCEIVE=0xFEFF +ISO_DEP_MAX_TRANSCEIVE=261 + +############### end of config ############################## diff --git a/a20e/device.mk b/a20e/device.mk new file mode 100644 index 0000000..f13d53f --- /dev/null +++ b/a20e/device.mk @@ -0,0 +1,29 @@ +DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay + +# Inherit common device configuration +$(call inherit-product, device/samsung/universal7885-common/universal7885-common.mk) + +$(call inherit-product, vendor/samsung/a20e/a20e-vendor.mk) + +# Keymaster +PRODUCT_PACKAGES += \ + android.hardware.keymaster@4.0-service.samsung \ + libkeymaster4_1support.vendor + +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/android.hardware.keymaster@4.0-service.samsung.xml:$(TARGET_COPY_OUT_VENDOR)/etc/vintf/manifest/android.hardware.keymaster@4.0-service.samsung.xml + +# Image +#TARGET_PREBUILT_KERNEL := device/samsung/a20e/Image +#PRODUCT_COPY_FILES += \ + $(TARGET_PREBUILT_KERNEL):kernel + +# NFC +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/libnfc-sec-vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-sec-vendor.conf + +# Rootdir +PRODUCT_PACKAGES += \ + fstab.exynos7884B \ + init.target.rc \ + init.baseband.rc diff --git a/a20e/extract-files.sh b/a20e/extract-files.sh new file mode 100755 index 0000000..18caaa1 --- /dev/null +++ b/a20e/extract-files.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# +# Copyright (C) 2019 The LineageOS Project +# +# 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. +# +# If we're being sourced by the common script that we called, +# stop right here. No need to go down the rabbit hole. +if [ "${BASH_SOURCE[0]}" != "${0}" ]; then + return +fi +set -e + +export DEVICE=a20e +export DEVICE_COMMON=universal7885-common +export VENDOR=samsung + +export DEVICE_BRINGUP_YEAR=2020 + +"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@" diff --git a/a20e/full_a20e.mk b/a20e/full_a20e.mk new file mode 100644 index 0000000..5c38957 --- /dev/null +++ b/a20e/full_a20e.mk @@ -0,0 +1,27 @@ +# Copyright (C) 2018 The LineageOS Project +# SPDX-License-Identifier: Apache-2.0 + +# Inherit from those products. Most specific first. +$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) + +# Inherit device configuration +$(call inherit-product, device/samsung/a20e/device.mk) + +# Device identifier. This must come after all inclusions +PRODUCT_DEVICE := a20e +PRODUCT_NAME := full_a20e +PRODUCT_MODEL := SM-A202K +PRODUCT_BRAND := samsung +PRODUCT_MANUFACTURER := samsung + +PRODUCT_GMS_CLIENTID_BASE := android-samsung + +# Set BUILD_FINGERPRINT variable to be picked up by both system and vendor build.prop +BUILD_FINGERPRINT := "google/redfin/redfin:11/RQ3A.210805.001.A1/7474174:user/release-keys" + +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRODUCT_NAME=a20ektt \ + PRIVATE_BUILD_DESC="redfin-user 11 RQ3A.210805.001.A1 7474174 release-keys" diff --git a/a20e/lineage.dependencies b/a20e/lineage.dependencies new file mode 100644 index 0000000..145e60e --- /dev/null +++ b/a20e/lineage.dependencies @@ -0,0 +1,7 @@ + +[ + { + "repository": "android_device_samsung_universal7885-common", + "target_path": "device/samsung/universal7885-common" + } +] diff --git a/a20e/overlay/frameworks/base/core/res/res/values/config.xml b/a20e/overlay/frameworks/base/core/res/res/values/config.xml new file mode 100644 index 0000000..e86fc95 --- /dev/null +++ b/a20e/overlay/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,597 @@ + + + true + true + false + M62,0l-3.8,0l-3.9,0.2l-3.9,0.4l-4,0.8l-3.9,1.2l-3.8,1.6l-3.7,2l-3.4,2.4l-3.1,2.8l-2.9,3l-2.7,3.1l-2.6,3.1 l-2.7,2.8C12.5,28,6.2,30.3,0,30.3c-6.3,0-12.5-2.3-17.5-6.8l-2.7-2.8l-2.6-3.1l-2.7-3.1l-2.9-3l-3.2-2.8 L-35,6.2l-3.7-2l-3.8-1.6l-3.9-1.2l-4-0.8L-54.3,0.2L-58.2,0L-62,0Z @dp + true + true + true + true + 2000 + 4000 + + 10 + 11 + 15 + 17 + 19 + 25 + 30 + 34 + 38 + 44 + 49 + 67 + 82 + 90 + 102 + 108 + 148 + 183 + 247 + 304 + 350 + 391 + 420 + 420 + 450 + 500 + 550 + 575 + 600 + + + 10 + 80 + 162 + 190 + 255 + + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 15 + 20 + 25 + 50 + 100 + 300 + 500 + 1000 + 1500 + 2000 + 3000 + 4000 + 4999 + 5000 + 10000 + 20000 + 30000 + 40000 + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 30 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + 41 + 42 + 43 + 44 + 45 + 46 + 47 + 48 + 49 + 50 + 51 + 52 + 53 + 54 + 55 + 56 + 57 + 58 + 59 + 60 + 61 + 62 + 63 + 64 + 65 + 66 + 67 + 68 + 69 + 70 + 71 + 72 + 73 + 74 + 75 + 76 + 77 + 78 + 79 + 80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 + 100 + 101 + 102 + 103 + 104 + 105 + 106 + 107 + 108 + 109 + 110 + 111 + 112 + 113 + 114 + 115 + 116 + 117 + 118 + 119 + 120 + 121 + 122 + 123 + 124 + 125 + 126 + 127 + 128 + 129 + 130 + 131 + 132 + 133 + 134 + 135 + 136 + 137 + 138 + 139 + 140 + 141 + 142 + 143 + 144 + 145 + 146 + 147 + 148 + 149 + 150 + 151 + 152 + 153 + 154 + 155 + 156 + 157 + 158 + 159 + 160 + 161 + 162 + 163 + 164 + 165 + 166 + 167 + 168 + 169 + 170 + 171 + 172 + 173 + 174 + 175 + 176 + 177 + 178 + 179 + 180 + 181 + 182 + 183 + 184 + 185 + 186 + 187 + 188 + 189 + 190 + 191 + 192 + 193 + 194 + 195 + 196 + 197 + 198 + 199 + 200 + 201 + 202 + 203 + 204 + 205 + 206 + 207 + 208 + 209 + 210 + 211 + 212 + 213 + 214 + 215 + 216 + 217 + 218 + 219 + 220 + 221 + 222 + 223 + 224 + 225 + 226 + 227 + 228 + 229 + 230 + 231 + 232 + 233 + 234 + 235 + 236 + 237 + 238 + 239 + 240 + 241 + 242 + 243 + 244 + 245 + 246 + 247 + 248 + 249 + 250 + 251 + 252 + 253 + 254 + 255 + + + 2 + 3 + 4 + 6 + 7 + 8 + 9 + 10 + 12 + 13 + 14 + 15 + 16 + 18 + 19 + 20 + 22 + 24 + 25 + 26 + 28 + 29 + 31 + 32 + 34 + 35 + 36 + 38 + 39 + 41 + 42 + 44 + 45 + 46 + 48 + 49 + 51 + 52 + 54 + 55 + 57 + 58 + 60 + 61 + 62 + 64 + 65 + 67 + 68 + 70 + 71 + 72 + 74 + 75 + 77 + 78 + 80 + 81 + 83 + 84 + 86 + 87 + 88 + 90 + 91 + 93 + 94 + 95 + 97 + 98 + 100 + 101 + 103 + 104 + 105 + 107 + 109 + 110 + 111 + 113 + 114 + 116 + 117 + 119 + 120 + 121 + 123 + 124 + 126 + 127 + 129 + 130 + 131 + 133 + 135 + 136 + 137 + 139 + 140 + 142 + 143 + 145 + 146 + 147 + 149 + 150 + 152 + 153 + 155 + 156 + 157 + 159 + 161 + 162 + 163 + 165 + 166 + 168 + 169 + 171 + 172 + 173 + 175 + 176 + 178 + 179 + 181 + 182 + 183 + 186 + 188 + 189 + 191 + 193 + 195 + 197 + 198 + 201 + 202 + 204 + 206 + 208 + 210 + 212 + 214 + 216 + 217 + 219 + 221 + 223 + 225 + 226 + 229 + 230 + 232 + 234 + 236 + 238 + 240 + 242 + 244 + 245 + 247 + 249 + 251 + 253 + 254 + 257 + 258 + 260 + 262 + 264 + 266 + 268 + 270 + 272 + 273 + 275 + 277 + 279 + 281 + 282 + 285 + 286 + 288 + 290 + 292 + 294 + 296 + 298 + 300 + 301 + 303 + 305 + 307 + 309 + 310 + 313 + 314 + 316 + 318 + 320 + 322 + 324 + 326 + 327 + 329 + 331 + 333 + 335 + 337 + 338 + 341 + 342 + 344 + 346 + 348 + 350 + 352 + 354 + 355 + 357 + 359 + 361 + 363 + 365 + 366 + 369 + 370 + 372 + 374 + 376 + 378 + 379 + 382 + 383 + 385 + 387 + 389 + 391 + 393 + 395 + 397 + 398 + 400 + 402 + 404 + 406 + 407 + 410 + 411 + 413 + 415 + 417 + 419 + 420 + + diff --git a/a20e/overlay/frameworks/base/core/res/res/values/dimens.xml b/a20e/overlay/frameworks/base/core/res/res/values/dimens.xml new file mode 100644 index 0000000..faac598 --- /dev/null +++ b/a20e/overlay/frameworks/base/core/res/res/values/dimens.xml @@ -0,0 +1,6 @@ + + + 24.0dip + 31.0dip + 40px + diff --git a/a20e/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/a20e/overlay/frameworks/base/core/res/res/xml/power_profile.xml new file mode 100644 index 0000000..c7305a5 --- /dev/null +++ b/a20e/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,87 @@ + + + 0 + 93 + 313 + 118 + 0.98 + 0.43 + 488 + 502 + 45 + 286 + 124 + 662 + 32 + 164 + 115 + + 7.3 + 7.3 + + + 6 + 2 + + + 1586000 + 1482000 + 1352000 + 1248000 + 1144000 + 1014000 + 902000 + 839000 + 757000 + 676000 + 546000 + 449000 + + + 50 + 43 + 34 + 28 + 24 + 18 + 15 + 13 + 11 + 10 + 7 + 6 + + + 1768000 + 1664000 + 1560000 + 1352000 + 1144000 + 936000 + + + 162 + 142 + 120 + 87 + 61 + 41 + + 3.79 + 23 + 4000 + 1 + 65 + 265 + + 0 + + 3600 + + .0002 + .002 + .02 + .2 + 2 + + diff --git a/a20e/proprietary-files.txt b/a20e/proprietary-files.txt new file mode 100644 index 0000000..bbd5d3d --- /dev/null +++ b/a20e/proprietary-files.txt @@ -0,0 +1,19 @@ +vendor/lib64/libsensorlistener.so +vendor/lib64/hw/camera.exynos7884B.so +vendor/lib64/hw/sensors.universal7884B.so +vendor/lib64/libhwjpeg.so +vendor/lib64/libexynoscamera3.so +vendor/lib/libsensorlistener.so +vendor/lib/hw/camera.exynos7884B.so +vendor/lib/hw/sensors.universal7884B.so +vendor/lib/libhwjpeg.so +vendor/lib/libexynoscamera3.so +vendor/firmware/setfile_imx258.bin +vendor/firmware/setfile_3l6.bin +vendor/firmware/mfc_fw.bin +vendor/firmware/setfile_sr556.bin +vendor/firmware/fimc_is_rta.bin +vendor/firmware/nfc/sec_s3nrn82_firmware.bin +vendor/firmware/fimc_is_lib.bin +vendor/firmware/setfile_4ha_front.bin +vendor/firmware/dax_param.bin diff --git a/a20e/recovery/recovery.fstab b/a20e/recovery/recovery.fstab new file mode 100644 index 0000000..3ae8d8f --- /dev/null +++ b/a20e/recovery/recovery.fstab @@ -0,0 +1,12 @@ +/dev/block/platform/13500000.dwmmc0/by-name/system /system ext4 ro,errors=panic wait,recoveryonly +/dev/block/platform/13500000.dwmmc0/by-name/vendor /vendor ext4 ro,errors=panic wait,recoveryonly +/dev/block/platform/13500000.dwmmc0/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check +/dev/block/platform/13500000.dwmmc0/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,usrquota,grpquota,fsync_mode=nobarrier,reserve_root=32768,resgid=5678 wait,check,forceencrypt=footer,quota,reservedsize=128m,length=-20480 +/dev/block/platform/13500000.dwmmc0/by-name/boot /boot emmc defaults defaults +/dev/block/platform/13500000.dwmmc0/by-name/recovery /recovery emmc defaults defaults +/dev/block/platform/13500000.dwmmc0/by-name/efs /mnt/vendor/efs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check +/dev/block/platform/13500000.dwmmc0/by-name/cpefs /mnt/vendor/cpefs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check,nofail +/dev/block/platform/13500000.dwmmc0/by-name/misc /misc emmc defaults defaults +/dev/block/platform/13500000.dwmmc0/by-name/hidden /preload ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic voldmanaged=preload:auto,check +/devices/platform/13550000.dwmmc2/mmc_host/mmc1* auto vfat defaults voldmanaged=sdcard:auto +/devices/platform/13600000.usb/13600000.dwc3* auto auto defaults voldmanaged=usb:auto diff --git a/a20e/rootdir/Android.mk b/a20e/rootdir/Android.mk new file mode 100644 index 0000000..220a064 --- /dev/null +++ b/a20e/rootdir/Android.mk @@ -0,0 +1,25 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_MODULE := fstab.exynos7884B +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/$(LOCAL_MODULE) +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.target.rc +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/$(LOCAL_MODULE) +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.baseband.rc +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/$(LOCAL_MODULE) +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init +include $(BUILD_PREBUILT) diff --git a/a20e/rootdir/etc/fstab.exynos7884B b/a20e/rootdir/etc/fstab.exynos7884B new file mode 100644 index 0000000..f7b5ad9 --- /dev/null +++ b/a20e/rootdir/etc/fstab.exynos7884B @@ -0,0 +1,16 @@ +# Android fstab file. +# +# The filesystem that contains the filesystem checker binary (typically /system) cannot +# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK + +# system and vendor partition will be early-mounted by kernel +# /dev/block/platform/13500000.dwmmc0/by-name/system /system ext4 ro wait +/dev/block/platform/13500000.dwmmc0/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check +/dev/block/platform/13500000.dwmmc0/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check,encryptable=footer,quota,reservedsize=128M,length=-20480 +/dev/block/platform/13500000.dwmmc0/by-name/efs /mnt/vendor/efs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check +/dev/block/platform/13500000.dwmmc0/by-name/misc /misc emmc defaults defaults + +# VOLD :: fstab.a20e +/dev/block/platform/13500000.dwmmc0/by-name/hidden /preload ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic voldmanaged=preload:auto,check +/devices/platform/13550000.dwmmc2/mmc_host/mmc1* auto vfat defaults voldmanaged=sdcard:auto +/devices/platform/13600000.usb/13600000.dwc3* auto auto defaults voldmanaged=usb:auto diff --git a/a20e/rootdir/etc/init.baseband.rc b/a20e/rootdir/etc/init.baseband.rc new file mode 100644 index 0000000..228eab4 --- /dev/null +++ b/a20e/rootdir/etc/init.baseband.rc @@ -0,0 +1,91 @@ +on early-init + mkdir /mnt/vendor/cpefs 0771 radio system + +on init + symlink /dev/block/platform/13500000.dwmmc0/by-name/radio /dev/mbin0 + restorecon /dev/mbin0 + + write /proc/sys/net/core/netdev_max_backlog 5000 + + write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 6 + write /sys/class/net/rmnet1/queues/rx-0/rps_cpus 6 + write /sys/class/net/rmnet2/queues/rx-0/rps_cpus 6 + write /sys/class/net/rmnet3/queues/rx-0/rps_cpus 6 + write /sys/class/net/rmnet4/queues/rx-0/rps_cpus 6 + write /sys/class/net/rmnet5/queues/rx-0/rps_cpus 6 + write /sys/class/net/rmnet6/queues/rx-0/rps_cpus 6 + write /sys/class/net/rmnet7/queues/rx-0/rps_cpus 6 + +on fs && property:ro.boot.cpefs_wp=0 + wait /dev/block/platform/13500000.dwmmc0/by-name/cpefs + mount ext4 /dev/block/platform/13500000.dwmmc0/by-name/cpefs /mnt/vendor/cpefs nosuid nodev noatime noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic + mount none /mnt/vendor/cpefs /cpefs bind + restorecon_recursive /mnt/vendor/cpefs + chown radio system /mnt/vendor/cpefs + chmod 0771 /mnt/vendor/cpefs + +on fs && property:ro.boot.cpefs_wp=1 + wait /dev/block/platform/13500000.dwmmc0/by-name/cpefs + mount ext4 /dev/block/platform/13500000.dwmmc0/by-name/cpefs /mnt/vendor/cpefs ro nosuid nodev noatime noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic + mount none /mnt/vendor/cpefs /cpefs bind + restorecon_recursive /mnt/vendor/cpefs + chown radio system /mnt/vendor/cpefs + chmod 0771 /mnt/vendor/cpefs + +on post-fs-data + chown radio radio sys/devices/virtual/misc/multipdp/waketime + chmod 0660 /sys/devices/virtual/misc/umts_dm0/dm_state + chown radio system /sys/devices/virtual/misc/umts_dm0/dm_state + + # /efs/factory.prop for Dual / Single SIM settings + chown radio radio /mnt/vendor/efs/factory.prop + chmod 0600 /mnt/vendor/efs/factory.prop + +# Modem boot daemon +service cpboot-daemon /vendor/bin/cbd -d -tss310 -bm -mm -P platform/13500000.dwmmc0/by-name/radio + class main + user root + group radio cache inet misc audio sdcard_rw log sdcard_r shell system + seclabel u:r:cbd:s0 + +on property:ril.clatd.v4-rmnet0=up + write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet0/queues/rx-0/rps_cpus 2 + +on property:ril.clatd.v4-rmnet1=up + write /sys/class/net/rmnet1/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet1/queues/rx-0/rps_cpus 2 + +on property:ril.clatd.v4-rmnet2=up + write /sys/class/net/rmnet2/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet2/queues/rx-0/rps_cpus 2 + +on property:ril.clatd.v4-rmnet3=up + write /sys/class/net/rmnet3/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet3/queues/rx-0/rps_cpus 2 + +on property:ril.clatd.v4-rmnet4=up + write /sys/class/net/rmnet4/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet4/queues/rx-0/rps_cpus 2 + +on property:ril.clatd.v4-rmnet5=up + write /sys/class/net/rmnet5/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet5/queues/rx-0/rps_cpus 2 + +on property:ril.clatd.v4-rmnet6=up + write /sys/class/net/rmnet6/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet6/queues/rx-0/rps_cpus 2 + +on property:ril.clatd.v4-rmnet7=up + write /sys/class/net/rmnet7/queues/rx-0/rps_cpus 4 + write /sys/class/net/v4-rmnet7/queues/rx-0/rps_cpus 2 + +# SS/DS configuration +on property:ro.vendor.multisim.simslotcount=* + write /sys/module/modem_ctrl_ss310ap/parameters/ds_detect ${ro.vendor.multisim.simslotcount} + +on property:ro.vendor.multisim.simslotcount=1 + setprop persist.radio.multisim.config ss + +on property:ro.vendor.multisim.simslotcount=2 + setprop persist.radio.multisim.config dsds diff --git a/a20e/rootdir/etc/init.logcat.rc b/a20e/rootdir/etc/init.logcat.rc new file mode 100644 index 0000000..7a2bf15 --- /dev/null +++ b/a20e/rootdir/etc/init.logcat.rc @@ -0,0 +1,12 @@ +service bootlogd /system/bin/logcat -b all -f /cache/boot.log + user root + group root + oneshot + disabled + +on early-init + rm /cache/boot.log + start bootlogd + +on property:sys.boot_completed=1 + stop bootlogd diff --git a/a20e/rootdir/etc/init.target.rc b/a20e/rootdir/etc/init.target.rc new file mode 100644 index 0000000..86c62a9 --- /dev/null +++ b/a20e/rootdir/etc/init.target.rc @@ -0,0 +1,10 @@ +on init + # Reactivation Lock + symlink /dev/block/platform/13500000.dwmmc0/by-name/steady /dev/block/steady + + # Google FRP solution + symlink /dev/block/platform/13500000.dwmmc0/by-name/persistent /dev/block/persistent + +on boot + # Permissions for NAD + symlink /dev/block/platform/13500000.dwmmc0/by-name/nad_refer /dev/block/NAD_REFER diff --git a/a20e/setup-makefiles.sh b/a20e/setup-makefiles.sh new file mode 100755 index 0000000..0c8b627 --- /dev/null +++ b/a20e/setup-makefiles.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# +# Copyright (C) 2019 The LineageOS Project +# +# 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. +# + +set -e + +# Required! +export DEVICE=a20e +export DEVICE_COMMON=universal7885-common +export VENDOR=samsung + +export DEVICE_BRINGUP_YEAR=2020 + +"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@" diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..850b500 --- /dev/null +++ b/setup.sh @@ -0,0 +1,12 @@ +cd ../.. +git clone git@github.com:eurekadevelopment/android_vendor_samsung_a20_r.git vendor/samsung -b master +#git clone git@github.com:eurekadevelopment/android_device_samsung_a20_r.git device/samsung +git clone git@github.com:eurekadevelopment/android_hardware_samsung.git hardware/samsung -b AOSP-11 +rm -rf hardware/custom +git clone git@github.com:eurekadevelopment/Eureka-Kernel-Exynos7885-Q-R.git kernel/samsung/exynos7885 --depth=1 -b R7.5_rom +git clone https://github.com/lineageos/android_hardware_samsung_nfc hardware/samsung/nfc +git clone https://github.com/lineageos/android_hardware_samsung_slsi_libbt hardware/samsung_slsi/libbt +git clone https://github.com/lineageos/android_hardware_samsung_slsi_scsc_wifibt_wifi_hal hardware/samsung_slsi/scsc_wifibt/wifi_hal +git clone https://github.com/lineageos/android_hardware_samsung_slsi_scsc_wifibt_wpa_supplicant_lib hardware/samsung_slsi/scsc_wifibt/wpa_supplicant_lib +git clone https://github.com/lineageos/android_device_samsung_slsi_sepolicy device/samsung_slsi/sepolicy +git clone https://github.com/LineageOS/android_hardware_lineage_interfaces.git hardware/lineage/interfaces diff --git a/Android.bp b/universal7885-common/Android.bp similarity index 100% rename from Android.bp rename to universal7885-common/Android.bp diff --git a/Android.mk b/universal7885-common/Android.mk similarity index 89% rename from Android.mk rename to universal7885-common/Android.mk index 8703bd7..42d4e88 100644 --- a/Android.mk +++ b/universal7885-common/Android.mk @@ -1,6 +1,6 @@ LOCAL_PATH := $(call my-dir) -ifneq ($(filter m20lte m30lte a40 a30, $(TARGET_DEVICE)),) +ifneq ($(filter a20 a20e $(TARGET_DEVICE)),) include $(call all-makefiles-under,$(LOCAL_PATH)) @@ -9,15 +9,15 @@ include $(CLEAR_VARS) LIBGLES_MALI_LIBRARY := /vendor/lib/egl/libGLES_mali.so LIBGLES_MALI64_LIBRARY := /vendor/lib64/egl/libGLES_mali.so -VULKAN_SYMLINK := $(TARGET_OUT_VENDOR)/lib/hw/vulkan.universal7904.so +VULKAN_SYMLINK := $(TARGET_OUT_VENDOR)/lib/hw/vulkan.universal7884B.so $(VULKAN_SYMLINK): $(LOCAL_INSTALLED_MODULE) - @echo "Creating lib/hw/vulkan.universal7904.so symlink: $@" + @echo "Creating lib/hw/vulkan.universal7884B.so symlink: $@" @mkdir -p $(dir $@) $(hide) ln -sf $(LIBGLES_MALI_LIBRARY) $@ -VULKAN64_SYMLINK := $(TARGET_OUT_VENDOR)/lib64/hw/vulkan.universal7904.so +VULKAN64_SYMLINK := $(TARGET_OUT_VENDOR)/lib64/hw/vulkan.universal7884B.so $(VULKAN64_SYMLINK): $(LOCAL_INSTALLED_MODULE) - @echo "Creating lib64/hw/vulkan.universal7904.so symlink: $@" + @echo "Creating lib64/hw/vulkan.universal7884B.so symlink: $@" @mkdir -p $(dir $@) $(hide) ln -sf $(LIBGLES_MALI64_LIBRARY) $@ diff --git a/BoardConfigCommon.mk b/universal7885-common/BoardConfigCommon.mk similarity index 83% rename from BoardConfigCommon.mk rename to universal7885-common/BoardConfigCommon.mk index ffd6cf9..8edd183 100644 --- a/BoardConfigCommon.mk +++ b/universal7885-common/BoardConfigCommon.mk @@ -1,11 +1,11 @@ -COMMON_PATH := device/samsung/universal7904-common +COMMON_PATH := device/samsung/universal7885-common BOARD_VENDOR := samsung # Platform -TARGET_BOARD_PLATFORM := universal7904 -TARGET_SOC := exynos7904 -TARGET_BOOTLOADER_BOARD_NAME := universal7904 +TARGET_BOARD_PLATFORM := universal7885 +TARGET_SOC := exynos7884B +TARGET_BOOTLOADER_BOARD_NAME := universal7885 TARGET_NO_BOOTLOADER := true TARGET_NO_RADIOIMAGE := true @@ -14,15 +14,13 @@ TARGET_ARCH := arm64 TARGET_ARCH_VARIANT := armv8-a TARGET_CPU_ABI := arm64-v8a TARGET_CPU_ABI2 := -TARGET_CPU_VARIANT := generic -TARGET_CPU_VARIANT_RUNTIME := cortex-a53 +TARGET_CPU_VARIANT := cortex-a53 TARGET_2ND_ARCH := arm TARGET_2ND_ARCH_VARIANT := armv8-a TARGET_2ND_CPU_ABI := armeabi-v7a TARGET_2ND_CPU_ABI2 := armeabi -TARGET_2ND_CPU_VARIANT := generic -TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a53 +TARGET_2ND_CPU_VARIANT := cortex-a53 # Bluetooth BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(COMMON_PATH)/bluetooth @@ -36,7 +34,7 @@ BUILD_BROKEN_VINTF_PRODUCT_COPY_FILES := true TARGET_CAMERA_BOOTTIME_TIMESTAMP := true # Display -TARGET_SCREEN_DENSITY := 420 +TARGET_SCREEN_DENSITY := 280 # Filesystem TARGET_USERIMAGES_USE_EXT4 := true @@ -47,14 +45,14 @@ BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 TARGET_SPECIFIC_HEADER_PATH := $(COMMON_PATH)/include # Init -TARGET_INIT_VENDOR_LIB := //$(COMMON_PATH):libinit_universal7904 +TARGET_INIT_VENDOR_LIB := //$(COMMON_PATH):libinit_universal7884B # Kernel BOARD_KERNEL_IMAGE_NAME := Image BOARD_KERNEL_BASE := 0x10000000 BOARD_KERNEL_PAGESIZE := 2048 BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 -TARGET_KERNEL_SOURCE := kernel/samsung/universal7904 +TARGET_KERNEL_SOURCE := kernel/samsung/universal7884B TARGET_KERNEL_CLANG_COMPILE := true # HIDL @@ -83,7 +81,7 @@ TARGET_VENDOR_PROP += $(COMMON_PATH)/vendor.prop BOARD_HAS_DOWNLOAD_MODE := true # Releasetools -TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_universal7904 +TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_universal7884B TARGET_RELEASETOOLS_EXTENSIONS := $(COMMON_PATH) # RIL diff --git a/universal7885-common/README.md b/universal7885-common/README.md new file mode 100644 index 0000000..0137b1e --- /dev/null +++ b/universal7885-common/README.md @@ -0,0 +1,17 @@ +# Device Tree for Samsung Galaxy A20/A20e (SM-A205, SM-A202) +## Specs + +| Component | Specification | +| :---------------------- | :-------------------------------- | +| Chipset | Exynos 7884B | +| Memory | 3 GB | +| Storage | 32GB | +| Battery | 2900 mAh (non-removable) | +| Dimensions | 158.4 x 74.7 x 7.8 mm | +| Display | 720 x 1560 pixels, 19.5:9, 268PPI | +| Release Date | 2019 April | + +## Device Picture + +![Galaxy A20](https://fdn2.gsmarena.com/vv/bigpic/samsung-galaxy-a20e.jpg "Galaxy A20e") + diff --git a/bluetooth/bdroid_buildcfg.h b/universal7885-common/bluetooth/bdroid_buildcfg.h similarity index 100% rename from bluetooth/bdroid_buildcfg.h rename to universal7885-common/bluetooth/bdroid_buildcfg.h diff --git a/compatibility_matrix.xml b/universal7885-common/compatibility_matrix.xml similarity index 100% rename from compatibility_matrix.xml rename to universal7885-common/compatibility_matrix.xml diff --git a/configs/audio_effects.xml b/universal7885-common/configs/audio_effects.xml similarity index 100% rename from configs/audio_effects.xml rename to universal7885-common/configs/audio_effects.xml diff --git a/configs/audio_policy_configuration.xml b/universal7885-common/configs/audio_policy_configuration.xml similarity index 100% rename from configs/audio_policy_configuration.xml rename to universal7885-common/configs/audio_policy_configuration.xml diff --git a/configs/libnfc-nci.conf b/universal7885-common/configs/libnfc-nci.conf similarity index 100% rename from configs/libnfc-nci.conf rename to universal7885-common/configs/libnfc-nci.conf diff --git a/configs/nfcee_access.xml b/universal7885-common/configs/nfcee_access.xml similarity index 100% rename from configs/nfcee_access.xml rename to universal7885-common/configs/nfcee_access.xml diff --git a/configs/p2p_supplicant_overlay.conf b/universal7885-common/configs/p2p_supplicant_overlay.conf similarity index 100% rename from configs/p2p_supplicant_overlay.conf rename to universal7885-common/configs/p2p_supplicant_overlay.conf diff --git a/configs/permissions/platform-samsung.xml b/universal7885-common/configs/permissions/platform-samsung.xml similarity index 100% rename from configs/permissions/platform-samsung.xml rename to universal7885-common/configs/permissions/platform-samsung.xml diff --git a/configs/placeholder b/universal7885-common/configs/placeholder similarity index 100% rename from configs/placeholder rename to universal7885-common/configs/placeholder diff --git a/configs/public.libraries.txt b/universal7885-common/configs/public.libraries.txt similarity index 100% rename from configs/public.libraries.txt rename to universal7885-common/configs/public.libraries.txt diff --git a/configs/wpa_supplicant.conf b/universal7885-common/configs/wpa_supplicant.conf similarity index 100% rename from configs/wpa_supplicant.conf rename to universal7885-common/configs/wpa_supplicant.conf diff --git a/configs/wpa_supplicant_overlay.conf b/universal7885-common/configs/wpa_supplicant_overlay.conf similarity index 100% rename from configs/wpa_supplicant_overlay.conf rename to universal7885-common/configs/wpa_supplicant_overlay.conf diff --git a/extract-files.sh b/universal7885-common/extract-files.sh similarity index 97% rename from extract-files.sh rename to universal7885-common/extract-files.sh index 11624d8..f7041dc 100755 --- a/extract-files.sh +++ b/universal7885-common/extract-files.sh @@ -25,7 +25,7 @@ function blob_fixup { vendor/lib*/libhifills.so) grep -q libunwindstack.so "$2" || "$PATCHELF" --add-needed "libunwindstack.so" "$2" ;; - vendor/lib*/hw/camera.exynos7904.so) + vendor/lib*/hw/camera.exynos7884B.so) "$PATCHELF" --replace-needed "libcamera_client.so" "libcamera_metadata_helper.so" "$2" "$PATCHELF" --replace-needed "libgui.so" "libgui_vendor.so" "$2" ;; @@ -36,7 +36,7 @@ function blob_fixup { vendor/lib*/libsensorlistener.so) grep -q libshim_sensorndkbridge.so "$2" || "$PATCHELF" --add-needed "libshim_sensorndkbridge.so" "$2" ;; - vendor/lib*/libwrappergps.so | vendor/lib/hw/audio.primary.exynos7904.so) + vendor/lib*/libwrappergps.so | vendor/lib/hw/audio.primary.exynos7884B.so) "$PATCHELF" --replace-needed "libvndsecril-client.so" "libsecril-client.so" "$2" ;; esac diff --git a/include/samsung_dtbh.h b/universal7885-common/include/samsung_dtbh.h similarity index 100% rename from include/samsung_dtbh.h rename to universal7885-common/include/samsung_dtbh.h diff --git a/init/Android.bp b/universal7885-common/init/Android.bp similarity index 91% rename from init/Android.bp rename to universal7885-common/init/Android.bp index 6a34f38..c112531 100644 --- a/init/Android.bp +++ b/universal7885-common/init/Android.bp @@ -13,10 +13,10 @@ // limitations under the License. cc_library_static { - name: "libinit_universal7904", + name: "libinit_universal7884B", recovery_available: true, shared_libs: ["libbase"], - srcs: ["init_universal7904.cpp"], + srcs: ["init_universal7884B.cpp"], include_dirs: [ "system/core/base/include", "system/core/init" diff --git a/init/init_universal7904.cpp b/universal7885-common/init/init_universal7884B.cpp similarity index 100% rename from init/init_universal7904.cpp rename to universal7885-common/init/init_universal7884B.cpp diff --git a/libshims/ASensorManager.cpp b/universal7885-common/libshims/ASensorManager.cpp similarity index 100% rename from libshims/ASensorManager.cpp rename to universal7885-common/libshims/ASensorManager.cpp diff --git a/libshims/Android.bp b/universal7885-common/libshims/Android.bp similarity index 100% rename from libshims/Android.bp rename to universal7885-common/libshims/Android.bp diff --git a/libshims/CameraMetadata.cpp b/universal7885-common/libshims/CameraMetadata.cpp similarity index 100% rename from libshims/CameraMetadata.cpp rename to universal7885-common/libshims/CameraMetadata.cpp diff --git a/libshims/CameraMetadata.h b/universal7885-common/libshims/CameraMetadata.h similarity index 100% rename from libshims/CameraMetadata.h rename to universal7885-common/libshims/CameraMetadata.h diff --git a/libshims/CameraParameters.cpp b/universal7885-common/libshims/CameraParameters.cpp similarity index 100% rename from libshims/CameraParameters.cpp rename to universal7885-common/libshims/CameraParameters.cpp diff --git a/libshims/CameraParameters.h b/universal7885-common/libshims/CameraParameters.h similarity index 100% rename from libshims/CameraParameters.h rename to universal7885-common/libshims/CameraParameters.h diff --git a/lineage.dependencies b/universal7885-common/lineage.dependencies similarity index 87% rename from lineage.dependencies rename to universal7885-common/lineage.dependencies index cded759..ffa7d12 100644 --- a/lineage.dependencies +++ b/universal7885-common/lineage.dependencies @@ -24,7 +24,7 @@ "target_path": "hardware/samsung_slsi/scsc_wifibt/wpa_supplicant_lib" }, { - "repository": "android_kernel_samsung_universal7904", - "target_path": "kernel/samsung/universal7904" + "repository": "android_kernel_samsung_universal7884B", + "target_path": "kernel/samsung/universal7884B" } ] diff --git a/manifest.xml b/universal7885-common/manifest.xml similarity index 100% rename from manifest.xml rename to universal7885-common/manifest.xml diff --git a/manifest_nfc.xml b/universal7885-common/manifest_nfc.xml similarity index 100% rename from manifest_nfc.xml rename to universal7885-common/manifest_nfc.xml diff --git a/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml b/universal7885-common/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml similarity index 100% rename from overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml rename to universal7885-common/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml diff --git a/overlay-lineage/packages/apps/Dialer/java/com/android/dialer/callrecord/res/values/config.xml b/universal7885-common/overlay-lineage/packages/apps/Dialer/java/com/android/dialer/callrecord/res/values/config.xml similarity index 100% rename from overlay-lineage/packages/apps/Dialer/java/com/android/dialer/callrecord/res/values/config.xml rename to universal7885-common/overlay-lineage/packages/apps/Dialer/java/com/android/dialer/callrecord/res/values/config.xml diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/universal7885-common/overlay/frameworks/base/core/res/res/values/config.xml similarity index 100% rename from overlay/frameworks/base/core/res/res/values/config.xml rename to universal7885-common/overlay/frameworks/base/core/res/res/values/config.xml diff --git a/overlay/frameworks/base/packages/SettingsLib/res/values/config.xml b/universal7885-common/overlay/frameworks/base/packages/SettingsLib/res/values/config.xml similarity index 100% rename from overlay/frameworks/base/packages/SettingsLib/res/values/config.xml rename to universal7885-common/overlay/frameworks/base/packages/SettingsLib/res/values/config.xml diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/universal7885-common/overlay/frameworks/base/packages/SystemUI/res/values/config.xml similarity index 100% rename from overlay/frameworks/base/packages/SystemUI/res/values/config.xml rename to universal7885-common/overlay/frameworks/base/packages/SystemUI/res/values/config.xml diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/universal7885-common/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml similarity index 100% rename from overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml rename to universal7885-common/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml diff --git a/power/Android.bp b/universal7885-common/power/Android.bp similarity index 88% rename from power/Android.bp rename to universal7885-common/power/Android.bp index 279688d..72e02ba 100644 --- a/power/Android.bp +++ b/universal7885-common/power/Android.bp @@ -15,7 +15,7 @@ // cc_binary { - name: "android.hardware.power@1.0-service.universal7904", + name: "android.hardware.power@1.0-service.universal7884B", srcs: [ "Power.cpp", @@ -37,7 +37,7 @@ cc_binary { static_libs: ["libc++fs"], vendor: true, - init_rc: ["android.hardware.power@1.0-service.universal7904.rc"], + init_rc: ["android.hardware.power@1.0-service.universal7884B.rc"], relative_install_path: "hw", } diff --git a/power/Power.cpp b/universal7885-common/power/Power.cpp similarity index 100% rename from power/Power.cpp rename to universal7885-common/power/Power.cpp diff --git a/power/Power.h b/universal7885-common/power/Power.h similarity index 100% rename from power/Power.h rename to universal7885-common/power/Power.h diff --git a/power/android.hardware.power@1.0-service.universal7904.rc b/universal7885-common/power/android.hardware.power@1.0-service.universal7884B.rc similarity index 78% rename from power/android.hardware.power@1.0-service.universal7904.rc rename to universal7885-common/power/android.hardware.power@1.0-service.universal7884B.rc index 6d2343f..c75509d 100644 --- a/power/android.hardware.power@1.0-service.universal7904.rc +++ b/universal7885-common/power/android.hardware.power@1.0-service.universal7884B.rc @@ -1,4 +1,4 @@ -service vendor.power-hal-1-0 /vendor/bin/hw/android.hardware.power@1.0-service.universal7904 +service vendor.power-hal-1-0 /vendor/bin/hw/android.hardware.power@1.0-service.universal7884B class hal user system group system diff --git a/power/include/samsung_power.h b/universal7885-common/power/include/samsung_power.h similarity index 92% rename from power/include/samsung_power.h rename to universal7885-common/power/include/samsung_power.h index e04eaa3..25e8c79 100644 --- a/power/include/samsung_power.h +++ b/universal7885-common/power/include/samsung_power.h @@ -28,12 +28,12 @@ static const std::vector cpuSysfsPaths = { "/sys/devices/system/cpu/cpu0", - "/sys/devices/system/cpu/cpu4" + "/sys/devices/system/cpu/cpu6" }; static const std::vector cpuInteractivePaths = { "/sys/devices/system/cpu/cpu0/cpufreq/interactive", - "/sys/devices/system/cpu/cpu4/cpufreq/interactive" + "/sys/devices/system/cpu/cpu6/cpufreq/interactive" }; #endif // SAMSUNG_POWER_H diff --git a/power/service.cpp b/universal7885-common/power/service.cpp similarity index 100% rename from power/service.cpp rename to universal7885-common/power/service.cpp diff --git a/product.prop b/universal7885-common/product.prop similarity index 100% rename from product.prop rename to universal7885-common/product.prop diff --git a/proprietary-files.txt b/universal7885-common/proprietary-files.txt similarity index 93% rename from proprietary-files.txt rename to universal7885-common/proprietary-files.txt index 01cc68b..54f0148 100644 --- a/proprietary-files.txt +++ b/universal7885-common/proprietary-files.txt @@ -13,7 +13,7 @@ vendor/firmware/AP_AUDIO_SLSI.bin vendor/firmware/Tfa9896.cnt vendor/firmware/calliope_dram.bin vendor/firmware/calliope_sram.bin -vendor/lib/hw/audio.primary.exynos7904.so +vendor/lib/hw/audio.primary.exynos7884B.so vendor/lib/libSamsungPostProcessConvertor.so vendor/lib/lib_SamsungRec_07001.so vendor/lib/lib_SoundAlive_SRC384_ver320.so @@ -62,8 +62,8 @@ vendor/lib64/vendor.samsung.hardware.gnss@2.0.so # Graphics - from a40ser-user-11-RP1A.200720.012-A405FMPUU3CUC2-release-keys vendor/lib/egl/libGLES_mali.so|e896a3569f8bea7b9a90ce1f1e950a1b867ba231 -vendor/lib/hw/gralloc.exynos7904.so|97b13d67846e02cde1ae30a2038fbec98af7b2ae -vendor/lib/hw/hwcomposer.exynos7904.so|9b640bcd9c0979b1ec789b529c2a95c0a279227b +vendor/lib/hw/gralloc.exynos7884B.so|97b13d67846e02cde1ae30a2038fbec98af7b2ae +vendor/lib/hw/hwcomposer.exynos7884B.so|9b640bcd9c0979b1ec789b529c2a95c0a279227b vendor/lib/libExynosHWCService.so|50a1b9595633329e4c0624e397e1b216d0456559 vendor/lib/libGrallocWrapper.so|4eff4bbab8c50d0279d8d9145c6973857a16ce0e vendor/lib/libacryl.so|4a8f4231e8410d8b8c2832e4979c7f48043ceb21 @@ -75,8 +75,8 @@ vendor/lib/libexynosutils.so|a90530792e1770ece7fa44f93e93718b793e684e vendor/lib/libexynosv4l2.so|57d0db2e3507a38afab238cfee0e44ec003426ef vendor/lib/libion_exynos.so|f28943bc24020fb65dd495e21f733630fff57c38 vendor/lib64/egl/libGLES_mali.so|53f913b5e7246e52a578fe98aa813cb49ac81d83 -vendor/lib64/hw/gralloc.exynos7904.so|19e91edba29f573deb26806c9b441386f9784fdd -vendor/lib64/hw/hwcomposer.exynos7904.so|3e7f45dc2f672d00b245e396a3072414aabfc61b +vendor/lib64/hw/gralloc.exynos7884B.so|19e91edba29f573deb26806c9b441386f9784fdd +vendor/lib64/hw/hwcomposer.exynos7884B.so|3e7f45dc2f672d00b245e396a3072414aabfc61b vendor/lib64/libExynosHWCService.so|415ef33aa77b5cb9ad15b424ab3e0a4b3f300b83 vendor/lib64/libGrallocWrapper.so|4a8a89ac339f23f14fcb22e0188f22299cb9c618 vendor/lib64/libexynosgraphicbuffer.so|2580755e3d276c158c1f08deeeae2eec7467a58c @@ -89,8 +89,8 @@ vendor/lib64/libexynosv4l2.so|fb66b93ad867a47d48da44a804d6c4514cbb5713 vendor/lib64/libion_exynos.so|bff127f0d989e6c756dd8cff40847ee5b7560447 # Lights -vendor/lib/hw/lights.universal7904.so -vendor/lib64/hw/lights.universal7904.so +vendor/lib/hw/lights.universal7884B.so +vendor/lib64/hw/lights.universal7884B.so # Media vendor/etc/media_codecs.xml @@ -98,8 +98,8 @@ vendor/etc/media_codecs_performance.xml vendor/etc/media_profiles_V1_0.xml # Memtrack - from a40ser-user-11-RP1A.200720.012-A405FMPUU3CUC2-release-keys -vendor/lib/hw/memtrack.exynos7904.so|bbd3a762209fd02e159bd501e6b7dd3e1dedd0a4 -vendor/lib64/hw/memtrack.exynos7904.so|417811e22c3f40e13d0b8b15510a25b997f6eba6 +vendor/lib/hw/memtrack.exynos7884B.so|bbd3a762209fd02e159bd501e6b7dd3e1dedd0a4 +vendor/lib64/hw/memtrack.exynos7884B.so|417811e22c3f40e13d0b8b15510a25b997f6eba6 # OMX vendor/lib/libExynosOMX_Core.so @@ -176,8 +176,8 @@ vendor/lib/libyasalgo.so vendor/lib64/libyasalgo.so # Thermal -vendor/lib/hw/thermal.universal7904.so -vendor/lib64/hw/thermal.universal7904.so +vendor/lib/hw/thermal.universal7884B.so +vendor/lib64/hw/thermal.universal7884B.so # Wifi vendor/bin/hw/macloader diff --git a/recovery/Android.bp b/universal7885-common/recovery/Android.bp similarity index 94% rename from recovery/Android.bp rename to universal7885-common/recovery/Android.bp index 04602c2..7b1d8fb 100644 --- a/recovery/Android.bp +++ b/universal7885-common/recovery/Android.bp @@ -15,7 +15,7 @@ // cc_library_static { - name: "librecovery_updater_universal7904", + name: "librecovery_updater_universal7884B", srcs: [ "recovery_updater.cpp", ], diff --git a/recovery/Android.mk b/universal7885-common/recovery/Android.mk similarity index 64% rename from recovery/Android.mk rename to universal7885-common/recovery/Android.mk index 8f7d8f3..42258b6 100644 --- a/recovery/Android.mk +++ b/universal7885-common/recovery/Android.mk @@ -1,9 +1,9 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.exynos7904.rc +LOCAL_MODULE := init.recovery.exynos7884B.rc LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.exynos7904.rc +LOCAL_SRC_FILES := init.recovery.exynos7884B.rc LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT) include $(BUILD_PREBUILT) diff --git a/recovery/init.recovery.exynos7904.rc b/universal7885-common/recovery/init.recovery.exynos7884B.rc similarity index 100% rename from recovery/init.recovery.exynos7904.rc rename to universal7885-common/recovery/init.recovery.exynos7884B.rc diff --git a/recovery/recovery_updater.cpp b/universal7885-common/recovery/recovery_updater.cpp similarity index 92% rename from recovery/recovery_updater.cpp rename to universal7885-common/recovery/recovery_updater.cpp index c1e522f..352f297 100644 --- a/recovery/recovery_updater.cpp +++ b/universal7885-common/recovery/recovery_updater.cpp @@ -46,6 +46,6 @@ Value *VerifyBootloader(const char *name, State *state, return StringValue(std::to_string(ret)); } -void Register_librecovery_updater_universal7904() { - RegisterFunction("universal7904.verify_bootloader_min", VerifyBootloader); +void Register_librecovery_updater_universal7884B() { + RegisterFunction("universal7884B.verify_bootloader_min", VerifyBootloader); } diff --git a/releasetools.py b/universal7885-common/releasetools.py similarity index 80% rename from releasetools.py rename to universal7885-common/releasetools.py index dc89f10..62ab505 100644 --- a/releasetools.py +++ b/universal7885-common/releasetools.py @@ -22,5 +22,5 @@ def FullOTA_Assertions(info): m = re.search(r'require\s+version-bootloader-min\s*=\s*(\S+)', android_info) if m: bootloader_version = m.group(1) - cmd = ('assert(universal7904.verify_bootloader_min("{}") == "1" || abort("ERROR: This package requires Android 10 or 11 based firmware. Please upgrade firmware and retry!"););').format(bootloader_version) + cmd = ('assert(universal7884B.verify_bootloader_min("{}") == "1" || abort("ERROR: This package requires Android 10 or 11 based firmware. Please upgrade firmware and retry!"););').format(bootloader_version) info.script.AppendExtra(cmd) diff --git a/rootdir/Android.mk b/universal7885-common/rootdir/Android.mk similarity index 89% rename from rootdir/Android.mk rename to universal7885-common/rootdir/Android.mk index d99b8fd..032912c 100644 --- a/rootdir/Android.mk +++ b/universal7885-common/rootdir/Android.mk @@ -9,7 +9,7 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC) include $(BUILD_PREBUILT) include $(CLEAR_VARS) -LOCAL_MODULE := init.exynos7904.rc +LOCAL_MODULE := init.exynos7884B.rc LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := ETC LOCAL_SRC_FILES := etc/$(LOCAL_MODULE) @@ -17,7 +17,7 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init include $(BUILD_PREBUILT) include $(CLEAR_VARS) -LOCAL_MODULE := init.exynos7904.usb.rc +LOCAL_MODULE := init.exynos7884B.usb.rc LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := ETC LOCAL_SRC_FILES := etc/$(LOCAL_MODULE) @@ -25,7 +25,7 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init include $(BUILD_PREBUILT) include $(CLEAR_VARS) -LOCAL_MODULE := ueventd.exynos7904.rc +LOCAL_MODULE := ueventd.exynos7884B.rc LOCAL_MODULE_STEM := ueventd.rc LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := ETC diff --git a/rootdir/etc/fstab.enableswap b/universal7885-common/rootdir/etc/fstab.enableswap similarity index 100% rename from rootdir/etc/fstab.enableswap rename to universal7885-common/rootdir/etc/fstab.enableswap diff --git a/rootdir/etc/init.exynos7904.rc b/universal7885-common/rootdir/etc/init.exynos7884B.rc similarity index 100% rename from rootdir/etc/init.exynos7904.rc rename to universal7885-common/rootdir/etc/init.exynos7884B.rc diff --git a/rootdir/etc/init.exynos7904.usb.rc b/universal7885-common/rootdir/etc/init.exynos7884B.usb.rc similarity index 100% rename from rootdir/etc/init.exynos7904.usb.rc rename to universal7885-common/rootdir/etc/init.exynos7884B.usb.rc diff --git a/rootdir/etc/ueventd.rc b/universal7885-common/rootdir/etc/ueventd.rc similarity index 100% rename from rootdir/etc/ueventd.rc rename to universal7885-common/rootdir/etc/ueventd.rc diff --git a/rootdir/etc/wifi_sec.rc b/universal7885-common/rootdir/etc/wifi_sec.rc similarity index 100% rename from rootdir/etc/wifi_sec.rc rename to universal7885-common/rootdir/etc/wifi_sec.rc diff --git a/rro_overlays/TetheringOverlay/Android.bp b/universal7885-common/rro_overlays/TetheringOverlay/Android.bp similarity index 100% rename from rro_overlays/TetheringOverlay/Android.bp rename to universal7885-common/rro_overlays/TetheringOverlay/Android.bp diff --git a/rro_overlays/TetheringOverlay/AndroidManifest.xml b/universal7885-common/rro_overlays/TetheringOverlay/AndroidManifest.xml similarity index 98% rename from rro_overlays/TetheringOverlay/AndroidManifest.xml rename to universal7885-common/rro_overlays/TetheringOverlay/AndroidManifest.xml index 795355e..8bd682e 100644 --- a/rro_overlays/TetheringOverlay/AndroidManifest.xml +++ b/universal7885-common/rro_overlays/TetheringOverlay/AndroidManifest.xml @@ -1,5 +1,5 @@ diff --git a/rro_overlays/TetheringOverlay/res/values/config.xml b/universal7885-common/rro_overlays/TetheringOverlay/res/values/config.xml similarity index 100% rename from rro_overlays/TetheringOverlay/res/values/config.xml rename to universal7885-common/rro_overlays/TetheringOverlay/res/values/config.xml diff --git a/rro_overlays/WifiOverlay/Android.bp b/universal7885-common/rro_overlays/WifiOverlay/Android.bp similarity index 100% rename from rro_overlays/WifiOverlay/Android.bp rename to universal7885-common/rro_overlays/WifiOverlay/Android.bp diff --git a/rro_overlays/WifiOverlay/AndroidManifest.xml b/universal7885-common/rro_overlays/WifiOverlay/AndroidManifest.xml similarity index 94% rename from rro_overlays/WifiOverlay/AndroidManifest.xml rename to universal7885-common/rro_overlays/WifiOverlay/AndroidManifest.xml index b142b17..6050442 100644 --- a/rro_overlays/WifiOverlay/AndroidManifest.xml +++ b/universal7885-common/rro_overlays/WifiOverlay/AndroidManifest.xml @@ -15,7 +15,7 @@ --> diff --git a/rro_overlays/WifiOverlay/res/values/config.xml b/universal7885-common/rro_overlays/WifiOverlay/res/values/config.xml similarity index 100% rename from rro_overlays/WifiOverlay/res/values/config.xml rename to universal7885-common/rro_overlays/WifiOverlay/res/values/config.xml diff --git a/sepolicy/vendor/abox.te b/universal7885-common/sepolicy/vendor/abox.te similarity index 100% rename from sepolicy/vendor/abox.te rename to universal7885-common/sepolicy/vendor/abox.te diff --git a/sepolicy/vendor/adbd.te b/universal7885-common/sepolicy/vendor/adbd.te similarity index 100% rename from sepolicy/vendor/adbd.te rename to universal7885-common/sepolicy/vendor/adbd.te diff --git a/sepolicy/vendor/apexd.te b/universal7885-common/sepolicy/vendor/apexd.te similarity index 100% rename from sepolicy/vendor/apexd.te rename to universal7885-common/sepolicy/vendor/apexd.te diff --git a/sepolicy/vendor/app.te b/universal7885-common/sepolicy/vendor/app.te similarity index 100% rename from sepolicy/vendor/app.te rename to universal7885-common/sepolicy/vendor/app.te diff --git a/sepolicy/vendor/bootanim.te b/universal7885-common/sepolicy/vendor/bootanim.te similarity index 100% rename from sepolicy/vendor/bootanim.te rename to universal7885-common/sepolicy/vendor/bootanim.te diff --git a/sepolicy/vendor/cbd.te b/universal7885-common/sepolicy/vendor/cbd.te similarity index 100% rename from sepolicy/vendor/cbd.te rename to universal7885-common/sepolicy/vendor/cbd.te diff --git a/sepolicy/vendor/crash_dump.te b/universal7885-common/sepolicy/vendor/crash_dump.te similarity index 100% rename from sepolicy/vendor/crash_dump.te rename to universal7885-common/sepolicy/vendor/crash_dump.te diff --git a/sepolicy/vendor/device.te b/universal7885-common/sepolicy/vendor/device.te similarity index 100% rename from sepolicy/vendor/device.te rename to universal7885-common/sepolicy/vendor/device.te diff --git a/sepolicy/vendor/domain.te b/universal7885-common/sepolicy/vendor/domain.te similarity index 100% rename from sepolicy/vendor/domain.te rename to universal7885-common/sepolicy/vendor/domain.te diff --git a/sepolicy/vendor/file.te b/universal7885-common/sepolicy/vendor/file.te similarity index 100% rename from sepolicy/vendor/file.te rename to universal7885-common/sepolicy/vendor/file.te diff --git a/sepolicy/vendor/file_contexts b/universal7885-common/sepolicy/vendor/file_contexts similarity index 99% rename from sepolicy/vendor/file_contexts rename to universal7885-common/sepolicy/vendor/file_contexts index 627a8c8..6ed3a6c 100644 --- a/sepolicy/vendor/file_contexts +++ b/universal7885-common/sepolicy/vendor/file_contexts @@ -108,7 +108,7 @@ /(vendor|system/vendor)/bin/hw/macloader u:object_r:macloader_exec:s0 /(vendor|system/vendor)/bin/mcDriverDaemon u:object_r:tee_exec:s0 -/(vendor|system/vendor)/bin/hw/android\.hardware\.power@[0-9]\.[0-9]-service\.universal7904 u:object_r:hal_power_default_exec:s0 +/(vendor|system/vendor)/bin/hw/android\.hardware\.power@[0-9]\.[0-9]-service\.universal7884B u:object_r:hal_power_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@[0-9]\.[0-9]-service\.samsung u:object_r:hal_vibrator_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.drm@[0-9]\.[0-9]-service\.clearkey u:object_r:hal_drm_clearkey_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.drm@[0-9]\.[0-9]-service\.widevine u:object_r:hal_drm_widevine_exec:s0 diff --git a/sepolicy/vendor/fsck.te b/universal7885-common/sepolicy/vendor/fsck.te similarity index 100% rename from sepolicy/vendor/fsck.te rename to universal7885-common/sepolicy/vendor/fsck.te diff --git a/sepolicy/vendor/genfs_contexts b/universal7885-common/sepolicy/vendor/genfs_contexts similarity index 100% rename from sepolicy/vendor/genfs_contexts rename to universal7885-common/sepolicy/vendor/genfs_contexts diff --git a/sepolicy/vendor/gpsd.te b/universal7885-common/sepolicy/vendor/gpsd.te similarity index 100% rename from sepolicy/vendor/gpsd.te rename to universal7885-common/sepolicy/vendor/gpsd.te diff --git a/sepolicy/vendor/gpuservice.te b/universal7885-common/sepolicy/vendor/gpuservice.te similarity index 100% rename from sepolicy/vendor/gpuservice.te rename to universal7885-common/sepolicy/vendor/gpuservice.te diff --git a/sepolicy/vendor/hal_audio_default.te b/universal7885-common/sepolicy/vendor/hal_audio_default.te similarity index 100% rename from sepolicy/vendor/hal_audio_default.te rename to universal7885-common/sepolicy/vendor/hal_audio_default.te diff --git a/sepolicy/vendor/hal_bluetooth_default.te b/universal7885-common/sepolicy/vendor/hal_bluetooth_default.te similarity index 100% rename from sepolicy/vendor/hal_bluetooth_default.te rename to universal7885-common/sepolicy/vendor/hal_bluetooth_default.te diff --git a/sepolicy/vendor/hal_camera_default.te b/universal7885-common/sepolicy/vendor/hal_camera_default.te similarity index 100% rename from sepolicy/vendor/hal_camera_default.te rename to universal7885-common/sepolicy/vendor/hal_camera_default.te diff --git a/sepolicy/vendor/hal_drm_clearkey.te b/universal7885-common/sepolicy/vendor/hal_drm_clearkey.te similarity index 100% rename from sepolicy/vendor/hal_drm_clearkey.te rename to universal7885-common/sepolicy/vendor/hal_drm_clearkey.te diff --git a/sepolicy/vendor/hal_drm_widevine.te b/universal7885-common/sepolicy/vendor/hal_drm_widevine.te similarity index 100% rename from sepolicy/vendor/hal_drm_widevine.te rename to universal7885-common/sepolicy/vendor/hal_drm_widevine.te diff --git a/sepolicy/vendor/hal_fingerprint_default.te b/universal7885-common/sepolicy/vendor/hal_fingerprint_default.te similarity index 100% rename from sepolicy/vendor/hal_fingerprint_default.te rename to universal7885-common/sepolicy/vendor/hal_fingerprint_default.te diff --git a/sepolicy/vendor/hal_gatekeeper_default.te b/universal7885-common/sepolicy/vendor/hal_gatekeeper_default.te similarity index 100% rename from sepolicy/vendor/hal_gatekeeper_default.te rename to universal7885-common/sepolicy/vendor/hal_gatekeeper_default.te diff --git a/sepolicy/vendor/hal_gnss_default.te b/universal7885-common/sepolicy/vendor/hal_gnss_default.te similarity index 100% rename from sepolicy/vendor/hal_gnss_default.te rename to universal7885-common/sepolicy/vendor/hal_gnss_default.te diff --git a/sepolicy/vendor/hal_graphics_allocator_default.te b/universal7885-common/sepolicy/vendor/hal_graphics_allocator_default.te similarity index 100% rename from sepolicy/vendor/hal_graphics_allocator_default.te rename to universal7885-common/sepolicy/vendor/hal_graphics_allocator_default.te diff --git a/sepolicy/vendor/hal_graphics_composer_default.te b/universal7885-common/sepolicy/vendor/hal_graphics_composer_default.te similarity index 100% rename from sepolicy/vendor/hal_graphics_composer_default.te rename to universal7885-common/sepolicy/vendor/hal_graphics_composer_default.te diff --git a/sepolicy/vendor/hal_health_default.te b/universal7885-common/sepolicy/vendor/hal_health_default.te similarity index 100% rename from sepolicy/vendor/hal_health_default.te rename to universal7885-common/sepolicy/vendor/hal_health_default.te diff --git a/sepolicy/vendor/hal_light_default.te b/universal7885-common/sepolicy/vendor/hal_light_default.te similarity index 100% rename from sepolicy/vendor/hal_light_default.te rename to universal7885-common/sepolicy/vendor/hal_light_default.te diff --git a/sepolicy/vendor/hal_lineage_fastcharge_default.te b/universal7885-common/sepolicy/vendor/hal_lineage_fastcharge_default.te similarity index 100% rename from sepolicy/vendor/hal_lineage_fastcharge_default.te rename to universal7885-common/sepolicy/vendor/hal_lineage_fastcharge_default.te diff --git a/sepolicy/vendor/hal_lineage_touch_default.te b/universal7885-common/sepolicy/vendor/hal_lineage_touch_default.te similarity index 100% rename from sepolicy/vendor/hal_lineage_touch_default.te rename to universal7885-common/sepolicy/vendor/hal_lineage_touch_default.te diff --git a/sepolicy/vendor/hal_memtrack_default.te b/universal7885-common/sepolicy/vendor/hal_memtrack_default.te similarity index 100% rename from sepolicy/vendor/hal_memtrack_default.te rename to universal7885-common/sepolicy/vendor/hal_memtrack_default.te diff --git a/sepolicy/vendor/hal_nfc_default.te b/universal7885-common/sepolicy/vendor/hal_nfc_default.te similarity index 100% rename from sepolicy/vendor/hal_nfc_default.te rename to universal7885-common/sepolicy/vendor/hal_nfc_default.te diff --git a/sepolicy/vendor/hal_power_default.te b/universal7885-common/sepolicy/vendor/hal_power_default.te similarity index 100% rename from sepolicy/vendor/hal_power_default.te rename to universal7885-common/sepolicy/vendor/hal_power_default.te diff --git a/sepolicy/vendor/hal_sensors_default.te b/universal7885-common/sepolicy/vendor/hal_sensors_default.te similarity index 100% rename from sepolicy/vendor/hal_sensors_default.te rename to universal7885-common/sepolicy/vendor/hal_sensors_default.te diff --git a/sepolicy/vendor/hal_thermal_default.te b/universal7885-common/sepolicy/vendor/hal_thermal_default.te similarity index 100% rename from sepolicy/vendor/hal_thermal_default.te rename to universal7885-common/sepolicy/vendor/hal_thermal_default.te diff --git a/sepolicy/vendor/hal_vibrator_default.te b/universal7885-common/sepolicy/vendor/hal_vibrator_default.te similarity index 100% rename from sepolicy/vendor/hal_vibrator_default.te rename to universal7885-common/sepolicy/vendor/hal_vibrator_default.te diff --git a/sepolicy/vendor/hal_wifi_default.te b/universal7885-common/sepolicy/vendor/hal_wifi_default.te similarity index 100% rename from sepolicy/vendor/hal_wifi_default.te rename to universal7885-common/sepolicy/vendor/hal_wifi_default.te diff --git a/sepolicy/vendor/hal_wifi_hostapd_default.te b/universal7885-common/sepolicy/vendor/hal_wifi_hostapd_default.te similarity index 100% rename from sepolicy/vendor/hal_wifi_hostapd_default.te rename to universal7885-common/sepolicy/vendor/hal_wifi_hostapd_default.te diff --git a/sepolicy/vendor/hwservice.te b/universal7885-common/sepolicy/vendor/hwservice.te similarity index 100% rename from sepolicy/vendor/hwservice.te rename to universal7885-common/sepolicy/vendor/hwservice.te diff --git a/sepolicy/vendor/hwservice_contexts b/universal7885-common/sepolicy/vendor/hwservice_contexts similarity index 100% rename from sepolicy/vendor/hwservice_contexts rename to universal7885-common/sepolicy/vendor/hwservice_contexts diff --git a/sepolicy/vendor/init.te b/universal7885-common/sepolicy/vendor/init.te similarity index 100% rename from sepolicy/vendor/init.te rename to universal7885-common/sepolicy/vendor/init.te diff --git a/sepolicy/vendor/kernel.te b/universal7885-common/sepolicy/vendor/kernel.te similarity index 100% rename from sepolicy/vendor/kernel.te rename to universal7885-common/sepolicy/vendor/kernel.te diff --git a/sepolicy/vendor/macloader.te b/universal7885-common/sepolicy/vendor/macloader.te similarity index 100% rename from sepolicy/vendor/macloader.te rename to universal7885-common/sepolicy/vendor/macloader.te diff --git a/sepolicy/vendor/mediacodec.te b/universal7885-common/sepolicy/vendor/mediacodec.te similarity index 100% rename from sepolicy/vendor/mediacodec.te rename to universal7885-common/sepolicy/vendor/mediacodec.te diff --git a/sepolicy/vendor/netd.te b/universal7885-common/sepolicy/vendor/netd.te similarity index 100% rename from sepolicy/vendor/netd.te rename to universal7885-common/sepolicy/vendor/netd.te diff --git a/sepolicy/vendor/nfc.te b/universal7885-common/sepolicy/vendor/nfc.te similarity index 100% rename from sepolicy/vendor/nfc.te rename to universal7885-common/sepolicy/vendor/nfc.te diff --git a/sepolicy/vendor/platform_app.te b/universal7885-common/sepolicy/vendor/platform_app.te similarity index 100% rename from sepolicy/vendor/platform_app.te rename to universal7885-common/sepolicy/vendor/platform_app.te diff --git a/sepolicy/vendor/priv_app.te b/universal7885-common/sepolicy/vendor/priv_app.te similarity index 100% rename from sepolicy/vendor/priv_app.te rename to universal7885-common/sepolicy/vendor/priv_app.te diff --git a/sepolicy/vendor/property.te b/universal7885-common/sepolicy/vendor/property.te similarity index 100% rename from sepolicy/vendor/property.te rename to universal7885-common/sepolicy/vendor/property.te diff --git a/sepolicy/vendor/property_contexts b/universal7885-common/sepolicy/vendor/property_contexts similarity index 100% rename from sepolicy/vendor/property_contexts rename to universal7885-common/sepolicy/vendor/property_contexts diff --git a/sepolicy/vendor/radio.te b/universal7885-common/sepolicy/vendor/radio.te similarity index 100% rename from sepolicy/vendor/radio.te rename to universal7885-common/sepolicy/vendor/radio.te diff --git a/sepolicy/vendor/rild.te b/universal7885-common/sepolicy/vendor/rild.te similarity index 100% rename from sepolicy/vendor/rild.te rename to universal7885-common/sepolicy/vendor/rild.te diff --git a/sepolicy/vendor/secril_config_svc.te b/universal7885-common/sepolicy/vendor/secril_config_svc.te similarity index 100% rename from sepolicy/vendor/secril_config_svc.te rename to universal7885-common/sepolicy/vendor/secril_config_svc.te diff --git a/sepolicy/vendor/surfaceflinger.te b/universal7885-common/sepolicy/vendor/surfaceflinger.te similarity index 100% rename from sepolicy/vendor/surfaceflinger.te rename to universal7885-common/sepolicy/vendor/surfaceflinger.te diff --git a/sepolicy/vendor/system_app.te b/universal7885-common/sepolicy/vendor/system_app.te similarity index 100% rename from sepolicy/vendor/system_app.te rename to universal7885-common/sepolicy/vendor/system_app.te diff --git a/sepolicy/vendor/system_server.te b/universal7885-common/sepolicy/vendor/system_server.te similarity index 100% rename from sepolicy/vendor/system_server.te rename to universal7885-common/sepolicy/vendor/system_server.te diff --git a/sepolicy/vendor/tee.te b/universal7885-common/sepolicy/vendor/tee.te similarity index 100% rename from sepolicy/vendor/tee.te rename to universal7885-common/sepolicy/vendor/tee.te diff --git a/sepolicy/vendor/toolbox.te b/universal7885-common/sepolicy/vendor/toolbox.te similarity index 100% rename from sepolicy/vendor/toolbox.te rename to universal7885-common/sepolicy/vendor/toolbox.te diff --git a/sepolicy/vendor/ueventd.te b/universal7885-common/sepolicy/vendor/ueventd.te similarity index 100% rename from sepolicy/vendor/ueventd.te rename to universal7885-common/sepolicy/vendor/ueventd.te diff --git a/sepolicy/vendor/vendor_init.te b/universal7885-common/sepolicy/vendor/vendor_init.te similarity index 100% rename from sepolicy/vendor/vendor_init.te rename to universal7885-common/sepolicy/vendor/vendor_init.te diff --git a/sepolicy/vendor/vold.te b/universal7885-common/sepolicy/vendor/vold.te similarity index 100% rename from sepolicy/vendor/vold.te rename to universal7885-common/sepolicy/vendor/vold.te diff --git a/sepolicy/vendor/wlbtd.te b/universal7885-common/sepolicy/vendor/wlbtd.te similarity index 100% rename from sepolicy/vendor/wlbtd.te rename to universal7885-common/sepolicy/vendor/wlbtd.te diff --git a/sepolicy/vendor/zygote.te b/universal7885-common/sepolicy/vendor/zygote.te similarity index 100% rename from sepolicy/vendor/zygote.te rename to universal7885-common/sepolicy/vendor/zygote.te diff --git a/setup-makefiles.sh b/universal7885-common/setup-makefiles.sh similarity index 100% rename from setup-makefiles.sh rename to universal7885-common/setup-makefiles.sh diff --git a/universal7904-common.mk b/universal7885-common/universal7885-common.mk similarity index 96% rename from universal7904-common.mk rename to universal7885-common/universal7885-common.mk index eff7e65..95dcbe6 100644 --- a/universal7904-common.mk +++ b/universal7885-common/universal7885-common.mk @@ -1,8 +1,8 @@ # Call proprietary blob setup -$(call inherit-product, vendor/samsung/universal7904-common/universal7904-common-vendor.mk) +$(call inherit-product, vendor/samsung/universal7885-common/universal7885-common-vendor.mk) # Dalvik -$(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk) +$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk) # Audio TARGET_EXCLUDES_AUDIOFX := true @@ -34,8 +34,8 @@ PRODUCT_COPY_FILES += \ hardware/samsung_slsi/libbt/conf/bt_vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf # Boot animation -TARGET_SCREEN_HEIGHT := 2340 -TARGET_SCREEN_WIDTH := 1080 +TARGET_SCREEN_HEIGHT := 1560 +TARGET_SCREEN_WIDTH := 720 # Camera PRODUCT_PACKAGES += \ @@ -86,9 +86,9 @@ PRODUCT_PACKAGES += \ # Init PRODUCT_PACKAGES += \ fstab.enableswap \ - init.exynos7904.rc \ - init.exynos7904.usb.rc \ - ueventd.exynos7904.rc \ + init.exynos7884B.rc \ + init.exynos7884B.usb.rc \ + ueventd.exynos7884B.rc \ wifi_sec.rc # Light @@ -160,7 +160,7 @@ PRODUCT_COPY_FILES += \ # Power PRODUCT_PACKAGES += \ - android.hardware.power@1.0-service.universal7904 + android.hardware.power@1.0-service.universal7884B # Protobuf PRODUCT_PACKAGES += \ @@ -174,7 +174,7 @@ PRODUCT_COPY_FILES += \ # Recovery PRODUCT_PACKAGES += \ fastbootd \ - init.recovery.exynos7904.rc + init.recovery.exynos7884B.rc # Renderscript PRODUCT_PACKAGES += \ diff --git a/vendor.prop b/universal7885-common/vendor.prop similarity index 100% rename from vendor.prop rename to universal7885-common/vendor.prop