$(dev) is selected according to the motherboard CPU.
K1/K1B - rk356x
K3 - rk3562
K8 - rk3588
Modify Display Orientation via ADB
// 0°
(ADB)$ adb shell settings put system user_rotation 0
// 90°
(ADB)$ adb shell settings put system user_rotation 1
// 180°
(ADB)$ adb shell settings put system user_rotation 2
// 270°
(ADB)$ adb shell settings put system user_rotation 3
Modify Touch Orientation
4. Default Hide Status Bar
The latest firmware can be controlled by naming or sending broadcasts from an app.
Hide the navigation bar via the command line.
$ am broadcast -a android.intent.action.HIDE_STATUSBAR_BAR
Show the navigation bar via the command line.
$ am broadcast -a android.intent.action.SHOW_STATUSBAR_BAR
The APK for testing app broadcasts is located under the network drive:
To modify the default hiding of the status bar in Android 13:
--- a/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java
+++ b/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java
@@ -952,6 +952,8 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces {
mRegisterStatusBarResult = result;
createAndAddWindows(result);
+ hideStatusBar();
if (mWallpaperSupported) {
// Make sure we always have the most current wallpaper info.
To modify the default prohibition of status bar pull-down in Android 13:
--- a/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
+++ b/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
@@ -536,10 +536,12 @@ public class CommandQueue extends IStatusBar.Stub implements
// TODO(b/118592525): add multi-display support if needed.
public boolean panelsEnabled() {
- final int disabled1 = getDisabled1(mDisplayTracker.getDefaultDisplayId());
- final int disabled2 = getDisabled2(mDisplayTracker.getDefaultDisplayId());
- return (disabled1 & StatusBarManager.DISABLE_EXPAND) == 0
- && (disabled2 & StatusBarManager.DISABLE2_NOTIFICATION_SHADE) == 0;
+ return false;
+ // final int disabled1 = getDisabled1(mDisplayTracker.getDefaultDisplayId());
+ // final int disabled2 = getDisabled2(mDisplayTracker.getDefaultDisplayId());
+ // return (disabled1 & StatusBarManager.DISABLE_EXPAND) == 0
+ // && (disabled2 & StatusBarManager.DISABLE2_NOTIFICATION_SHADE) == 0;
+
}
5. Default Hide Navigation Bar
The latest firmware can be controlled by naming or sending broadcasts from an app.
Hide the navigation bar via the command line.
$ am broadcast -a android.intent.action.HIDE_NAVIGATION_BAR
Show the navigation bar via the command line.
$ am broadcast -a android.intent.action.SHOW_NAVIGATION_BAR
The APK for testing app broadcasts is located under the network drive:
To modify the default hiding of the navigation bar in Android 13:
--- a/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java
+++ b/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java
@@ -952,6 +952,8 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces {
mRegisterStatusBarResult = result;
createAndAddWindows(result);
+ hideNavigation();
if (mWallpaperSupported) {
// Make sure we always have the most current wallpaper info.
To use gesture navigation by default in Android 13:
--- a/device/rockchip/rk356x/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/device/rockchip/rk356x/overlay/frameworks/base/core/res/res/values/config.xml
@@ -61,7 +61,7 @@
0: 3 button mode (back, home, overview buttons)
1: 2 button mode (back, home buttons + swipe up for overview)
2: gestures only for back, home and overview -->
- <integer name="config_navBarInteractionMode">0</integer>
+ <integer name="config_navBarInteractionMode">2</integer>
<bool name="config_swipe_up_gesture_setting_available">true</bool>
</resources>
6. Embed Third-Party APPs
Refer to Settings2.apk.
Place your APK and Android.bp in rk-android13.0\vendor\rockchip\common\apps\Settings2.
$ vim build/target/product/full_base.mk
PRODUCT_LOCALES := en_US
Option
Description
en_US
English
zh_CN
Chinese
9. Default Time Zone
[To be supplemented]
10. Default Never Sleep
$ vim device/rockchip/rk356x/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
<integer name="def_screen_off_timeout">2147483647</integer>
11. Default Disable Lock Screen
$ vim frameworks/base/packages/SettingsProvider/res/values/defaults.xml
<bool name="def_lockscreen_disabled">true</bool>