<Android Development> Android Development Process Miscellaneous (1)

<Android Development> Android Development Process Miscellaneous (1)

1. View the Android source code version
1) When compiling the source code, the terminal will initially output and print:
PLATFORM_VERSION: 10.0
2) Directly view the source code file path "android/build/core/version_defaults.mk", and search for "PLATFORM_VERSION" in the file , whose value is the version number.
If it is Qualcomm source code, check the value of "PLATFORM_VERSION_LAST_STABLE".

2. Android version correspondence
Android 5.x (Lollipop) referred to as Android L version
Android 6.0 (MarshMallow) referred to as Android M version
Android 7.x (Nougat) referred to as Android N version
Android 8.x (Oreo) referred to as Android O version
Android 9.0 (Pie) Android P version
Android 10.0 (Q) Android Q version
Android 11.0 (R) Android R version

In adb mode, add: adb shell before the command line:
1. View the log
(1) View all logs: logcat or adb shell logcat
(2) View the error message log: logcat *:E or adb shell logcat *:E
(3) View The last n lines: logcat -T n or adb shell logcat -T n
2. Run apk on the command line
(1) Get the package name
adb shell pm list package -f
The above command can get the package name of all installed applications:
for example:
package :/system/app/VehicleExplorer/VehicleExplorer.apk=com.qualcomm.qti.vehicle.explorer
(2) Get the package name of the startup page
dump package package name
such as: adb shell dumpsys package com.qualcomm.qti.vehicle.explorer
through the above The command gets the name of the startup page, that is, the active page activity:

(3) Start
adb shell am start package name/start page

adb shell am start com.qualcomm.qti.vehicle.explorer/.SplashActivity

3. Push and pull the file
adb devices
adb root
adb remount (if it fails to run: adb disable-verity)
adb push The path of the file to be pushed receives the stored path

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324493992&siteId=291194637