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 \
SystemUIAPK 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:
make installcleanDelete specific files:
Modify compilation conditions (e.g., filenames or APK names).
Default Screen Orientation
Modify the default display orientation by editing:
Change:
Boot Logo
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:
en_US
English
zh_CN
Chinese
Pre-installing Third-party Apps
Steps:
Place your APK and
Android.bp/Android.mkin:Example
Android.mk:Example
Android.bp: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
Add permissions and a broadcast receiver to
AndroidManifest.xml:Implement the receiver:
Pre-install the app to
/system/priv-app/(see Pre-installing Third-party Apps).
APK Push to priv-app
priv-appAPP 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
Connect the device via USB.
Install drivers if unrecognized (see screenshots below).
Run
adb shellto connect.
Network ADB
Enable TCP/IP mode:
Auto-start TCP/IP on boot:
ADB Screen Casting
Use tools from:
Screen Rotation
Use ADB commands:
Last updated