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)

  • Open network ADB

  • 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 saved

  • pmsg-ramoops-0: Last user space log, android log

4.2. Log is automatically saved

4.2.2. Way two

  • Open “Developer Options”

  • 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 device

    • xxxx_kmsg.log: kernel kmsg

    • xxxx_logcat.log: system logcat

NOTE: Only supports Android 7.1

4.2.3. Way three

  • Open “Developer Options”

  • 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 device

    • COPY-COMPLETEB means log has been copied

    • anr means ANR file

    • bugreport.log means the bugreport file

    • logs means logcat, kmsg after each boot

    • pstore means last_log

    • tombstones means tombstones file

NOTE: Only supports Android 7.1

5. Android system signature file

5.1. Cloud storage


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

  • Open “Developer Options”

  • 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.