1. Firefly version¶
View the firmware version
In the Settings
Settings
–>About tablet
–>Firefly version
for example:
ROC-RK3399-PC+ HDMI+DP(Android) rk3399_roc_pc_plus/industry-71/V1.2.2008101849/98c828d3a1d2
2. Open developer options¶
Settings
–>About tablet
–>Build number
Click
Build number
at least 7 times
3. Use of ADB¶
3.1. Connect the device¶
3.1.1. USB way¶
The host connects to the device via USB. For details on how to connect, please refer to the WiKi Tutorial of the device.
USB Type A interface
Enable USB connection
Android7.1
Settings
–>USB
–>Connect to PC
Android10/Android11
Settings
–>Connected devices
–>Connect to PC
USB Type C interface (enabled by default)
3.1.2. Network way¶
The host connects to the device through the network (the host and the device are in the same LAN)
View the IP address of the device
Settings
–>About tablet
–>Status
->IP address
Connect to device via IP address
adb connect device_ip_address
3.2. Common commands¶
Query device
adb devices
Stop adb server
adb kill-server
Install the app
adb install path_to_apk
Copy files to device
adb push local remote
Copy files from device
adb pull remote local
Issue shell commands
adb [-d |-e | -s serial_number] shell shell_command
4. Log¶
4.1. Last Log¶
In the /sys/fs/pstore
directory of the device:
console-ramoops-0
: last_log The kernel log started last time, but only the logs with higher priority than the default log level are savedpmsg-ramoops-0
: Last user space log, android log
4.2. Log is automatically saved¶
4.2.1. Way one (recommended use)¶
Enable automatic log saving
Android7.1
Settings
–>Developer options
–>Android bug collector
Android10/Android11/Android12
Settings
–>System
–>Developer options
–>Android LogSave
reboot device
There are log related files in the
/data/logs
directory of the device (**Android 10 and above: **/data/vendor/logs
)android
: system logcatkernel
: kernel kmsg
4.2.2. Way two¶
Enable
Enable logging to save
Settings
–>Developer options
–>Enable logging to save
reboot device
There are log related files in the
/data/media/0/.LOGSAVE
directory of the devicexxxx_kmsg.log
: kernel kmsgxxxx_logcat.log
: system logcat
NOTE: Only supports Android 7.1
4.2.3. Way three¶
Enable
Android bug collector
Settings
–>Developer options
–>Android bug collector
reboot device
There are log related files in the
/data/media/0/rk_logs
directory of the deviceCOPY-COMPLETEB
means log has been copiedanr
means ANR filebugreport.log
means the bugreport filelogs
means logcat, kmsg after each bootpstore
means last_logtombstones
means tombstones file
NOTE: Only supports Android 7.1
5. Android system signature file¶
6. Timer switch¶
The device must have an RTC chip
RK808
HYM8563
Equipment is always powered
You can directly use cat and echo to operate the interface under /sys/class/rtc/rtc0
.
6.1. Set boot time¶
For example, set it to boot after 120 seconds
# Turn on regularly after 120 seconds
echo +120 > /sys/class/rtc/rtc0/wakealarm
# View boot time
cat /sys/class/rtc/rtc0/wakealarm
# Shut down
reboot -p
7. Use of NPU¶
CPU | Board |
---|---|
RK3399 | AIO-3399C(AI) |
RK3399Pro | AIO-3399Pro-JD4 |
RK3566 | ROC-RK3566-PC |
RK3568 | AIO-3568J, ROC-RK3568-PC |
RK3588 | ITX-3588J, ROC-RK3588S-PC |
8. Turn on the touch effect¶
Enable
Show taps
Android7.1
Settings
–>Developer options
–>Show taps
Android10/Android11/Android
Settings
–>System
–>Developer options
–>Show taps
Enable
Pointer location
Android7.1
Settings
–>Developer options
–>Pointer location
Android10/Android11/Android12
Settings
–>System
–>Developer options
–>Pointer location
9. Rockchip Encoder/Decoder¶
9.1. MediaCodec¶
Android’s MediaCodec calls the Rockchip Encoder/Decoder by default.
If you need native api, you can use MPP.
9.2. MPP¶
Media Process Platform (MPP) provided by Rockchip is a general media processing software platform for Rockchip chip series. For applications the MPP platform shields the complex lower-level processing related to chips. Its purpose is to shield the differences between different chips and provide a unified media process interface (MPI) to users.
Documents:
SDK/RKDocs/common/MPP/
Source Code: https://github.com/rockchip-linux/mpp