Adb Commands
Adb Commands
Always be sure that the USB Role is set to Device mode. Open your command prompt
and start to programming.
Pull Data
adb devices %% Android device is recognized by PC
adb root
adb shell %% command used to communicate with the android device
(radio), allows: install/Uninstall apps, transfer files and reboot the device)
su %% Always run “su” after running “adb shell”, is a utility to
give user permission to run system commands.
cd c:\user\directory %% open chosen directory
adb pull /data/logs %% that’s responsible to pull data and put it into the chosen
directory
ls /data/logs/ %% it’s shows all logs in the radio
We also can be requested to pull a different data, Ex: ANR
ls /data/ chosen data %% Choose a request data
After pull the data, write
exit
If the radio be in a really bad state, we have to restart it. So, to reboot and run a recovery
kenel at the radio. After the rebooting, A black screen will appear in the radio.
adb reboot recovery %factory resert
Kernel Logging
Adb shell
Dmesg > /sdcard/dmesg_log.txt % include the file
ls/sdcard/ % see if was included
exist
Pulling the kernel logs
adb root
cd c:\user\ % open chosen directory
adb pull /sdcard/dmesg_log.txt % pull data
Now the data is on the chosen directory, check it. It’s necessary to remove the file.
adb shell
rm /sdcard/dmesg_log.txt
ls /sdcard/ % see if was removed
There is many IPC communication channels some of them are dedicated. The command
to choose the required channel is:
enabletrace(#) > /dev/ipcdebug % # - replace the channel here. It is not so simple, if
necessary ask more information about it.
LOGCAT
Required for almost all issues, contains four separate buffers (physical memory storage,
temporarily). Main, event, radio, system and crash data’s. Also stored as “aplogs” in
/data/logs saves last 100 MB, because it is lower than aplogs. If not all aplogs was
necessary the Harman time can request the logcat’s.
adb shell
logcat > /sdcard/logcat_logs.txt
ls /sdcard/
exit
HLOGUTILS
It is a Harman internal utility to control the verbosity of ceratin features or tags in
logcat.
hlogutil –i tags % info level (the navd is set to info)
hlogutil –t NAVD –l VERBOSE % change navd tag to verbose
logcat | grep NAVD % to capture log (either send it to a file in sdcard).
DUMPSYS DATA
It provides key information regarding certain services/state of the unit. The frequently
used commands:
dumpsys meminfo
dumpsys diskstats
dumpsys packages
dumpsys features
dumpsys location
Additional Item
There is a powerful tools to helps the diagnose tests, it’s called screencopy. To allows
the screencopy access, you should type the following commands:
adb devices
Adb root
After that, just open the screencopy executable. That’s really powerful because It can be
used like a test method, if the screencopy works it means that the problem is on the
LVDC cable or display (we are going to see more about it).
Using the screencopy:
Apps Menu -> Engineering Mode
There you can see the software version number, also the serial number.
There is a software; called AxB, softcore on firmwareHubEmulator. Software to reduce
the bluebox, using the NEC flasher mode (Still need more information’s about it).
TIPS FOR DIAGNOSING ISSUES
Display Issues
If there is an issue with the display, check if the backlight is visible during ing on.
- If visible then CAN BUS issues or video signal issue from LVDS can be culprits;
- If not visible then power is not being supplied to the display or maybe
defective.
Screen copy is a powerful tool to determine if HU is sending proper video image to the
display.
- ADB connection must be available with HU;
- Run screencpy batch file;
- If image is able to be shown on laptop than black dispay issue could reside with
LVDS cable, improper sseding at contact points, bent pins or display.
RVC issues