01-Android_Common_System_Customization

H618 Android 12.0 is an official TV system compatible with TV-version apps. Installing tablet or phone apps may cause compatibility issues.


TV Launcher

Enable the corresponding PRODUCT_PACKAGES for the TV launcher:

--- a/vendor/aw/homlet/homlet.mk
+++ b/vendor/aw/homlet/homlet.mk
@@ -16,12 +16,12 @@ PRODUCT_PACKAGES += \
     DragonSN  \
     GalleryTV

-#PRODUCT_PACKAGES += \
+PRODUCT_PACKAGES += \
     TvLauncher \
     TvSettings

-PRODUCT_PACKAGES += \
+PRODUCT_PACKAGES += \
       Launcher3 \
+#PRODUCT_PACKAGES += \
       Launcher3 \
        Settings \
        SystemUI

APK Path:


Tablet Launcher

Enable the corresponding PRODUCT_PACKAGES for the tablet launcher:

APK Path:


APP/File Compilation Issues

Android uses lazy compilation. Directly replacing files may not trigger recompilation. Solutions:

  1. make installclean

  2. Delete specific files:

  3. Modify compilation conditions (e.g., filenames or APK names).


Default Screen Orientation

Modify the default display orientation by editing:

Change:


Logo Replacement Path:


Boot Animation

Supported formats: bootanimation.mp4 (higher priority) or bootanimation.zip.

Modification Path:

Example Configuration:

  • For bootanimation.zip:

  • For bootanimation.mp4:

Note: The first boot after flashing will show the default Android animation. Reboot to apply the custom animation.


Default Language

Method 1: Modify persist.sys.locale in:

Example:

Method 2: Adjust persist.sys.country and persist.sys.language:

Method 3: Set PRODUCT_LOCALES in:

Options:

Value
Description

en_US

English

zh_CN

Chinese


Pre-installing Third-party Apps

Steps:

  1. Place your APK and Android.bp/Android.mk in:

  2. Example Android.mk:

  3. Example Android.bp:

  4. Add the app to vendor/aw/homlet/homlet.mk:


Auto-start APP on Boot

Launcher Method

Add the following to AndroidManifest.xml:

Override existing launchers using:

  • Android.bp:

  • Android.mk:

Background Broadcast Method

  1. Add permissions and a broadcast receiver to AndroidManifest.xml:

  2. Implement the receiver:

  3. Pre-install the app to /system/priv-app/ (see Pre-installing Third-party Apps).


APK Push to priv-app


APP Signature Files

Signature Paths:


Special Permission Issues

If privileged permissions are missing, modify:

Example fix:


Full Rebuild Not Effective

Clean before rebuilding:


HDMI Fixed Resolution

HDMI TX Attributes:


ADB Functions

USB ADB Connection

  1. Connect the device via USB.

  2. Install drivers if unrecognized (see screenshots below).

  3. Run adb shell to connect.

Network ADB

  1. Enable TCP/IP mode:

  2. Auto-start TCP/IP on boot:

ADB Screen Casting

Use tools from:


Screen Rotation

Use ADB commands:

Last updated