cd android
source build/envsetup.sh
lunch ceres_c3-userdebug
Developer 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 installclean
rm out/target/product/apollo-p2/xxx/xxx
Modify compilation conditions (e.g., filename or APK name changes).
Screen Rotation via ADB
Use these commands to rotate the screen:
# 0° (Default)
adb shell settings put system user_rotation 0
# 90°
adb shell settings put system user_rotation 1
# 180°
adb shell settings put system user_rotation 2
# 270°
adb shell settings put system user_rotation 3
# For ZIP
PRODUCT_COPY_FILES += $(LOCAL_PATH)/media/bootanimation.zip:system/media/bootanimation.zip
# For MP4
PRODUCT_COPY_FILES += $(LOCAL_PATH)/media/bootanimation.mp4:system/media/bootanimation.mp4
Note: MP4 animations will show the default Android logo on first boot. Reboot to apply changes.
800 480 15 # Width, Height, FPS
p 1 0 part0 # Play part0 once
p 0 0 part1 # Loop part1 until boot completes
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:
android/packages/apps/Launcher3/
Compile Launcher APK:
cd android/
. build/envsetup.sh
lunch ceres_c3-userdebug
BUILD_NUMBER=ido-a133 m Launcher3QuickStepGo -j32
Disable Search Bar:
--- a/android/packages/apps/Launcher3/src/com/android/launcher3/config/BaseFlags.java
+++ b/android/packages/apps/Launcher3/src/com/android/launcher3/config/BaseFlags.java
@@ -68,7 +68,7 @@ abstract class BaseFlags {
public static final boolean LAUNCHER3_PROMISE_APPS_IN_ALL_APPS = false;
// Enable moving the QSB on the 0th screen of the workspace
- public static final boolean QSB_ON_FIRST_SCREEN = true;
+ public static final boolean QSB_ON_FIRST_SCREEN = false;
Default Language Settings
Set via persist.sys.locale:
Modify device/softwinner/apollo/apollo_p2.mk:
public class MyReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {
Intent i = new Intent(context, MainActivity.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(i);
}
}
}