01-Android_Common_System_Customization
Android Environment Setup
cd android
source build/envsetup.sh
lunch ceres_c3-userdebugDeveloper Mode
Steps to Enable:
Settings -> About tablet -> Tap "Build number" 7 times -> "Developer mode activated"
Developer Options Path:
Settings -> System -> Developer options
APP/File Compilation Not Taking Effect
Due to Android's lazy compilation, directly replacing files may not trigger rebuilds. Solutions:
make installcleanrm out/target/product/apollo-p2/xxx/xxxModify compilation conditions (e.g., filename or APK name changes).
Screen Rotation via ADB
Use these commands to rotate the screen:
Boot Logo Replacement
Path:
Requirements:
Format: 32-bit BMP
Resolution: Lower than the screen's native resolution
Boot Animation Customization
Default Replacement
Supported formats: bootanimation.mp4 (higher priority) or bootanimation.zip.
Default Animation Path:
Copy Path Configuration:
Modify android/device/softwinner/ceres-c3/ceres_c3.mk:
Note: MP4 animations will show the default Android logo on first boot. Reboot to apply changes.
Live Replacement
Creating bootanimation.zip
bootanimation.zipFile Structure:
desc.txt Configuration:
Compression Instructions:
Windows: Use "Store" compression level.
Linux:
zip -0qry bootanimation.zip *.txt part0/ part1/
Boot Sound
Add Audio.wav to the part0 directory and include audio_conf.txt in the root.
Launcher Customization
Source Path:
Compile Launcher APK:
Disable Search Bar:
Default Language Settings
Set via persist.sys.locale:
Modify device/softwinner/apollo/apollo_p2.mk:
Override Country/Language:
Locale Priority: Defined in frameworks/base/core/jni/AndroidRuntime.cpp.
Integrating Third-Party Apps
Example for test.apk:
Android.mk:
Android.bp:
Add to Build:
Auto-Start Apps on Boot
Method 1: Set as Launcher
Add to AndroidManifest.xml:
Method 2: Boot Broadcast Receiver
AndroidManifest.xml:
Receiver Code:
Preinstall to /system/priv-app/:
ADB Screen Cast
Tool Path:
5-DevelopmentTools/ADB Screen Cast

DPI Configuration
Modify Default DPI:
Command Line:
FAQ
1. Headphones Always Detected
The driver defaults to headphone mode for speaker functionality. To revert:

Last updated