User Tools

Site Tools


android

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
android [2020/06/08 16:41] jrsetiandroid [2021/02/04 22:22] (current) – [Galaxy S8/9/10 Get SNOOP file] jrseti
Line 52: Line 52:
   adb install tomato_project_signed.apk   adb install tomato_project_signed.apk
      
-===Debug over wifi====+====Debug over wifi====
  
 Follow directions at: https://futurestud.io/tutorials/how-to-debug-your-android-app-over-wifi-without-root Follow directions at: https://futurestud.io/tutorials/how-to-debug-your-android-app-over-wifi-without-root
Line 69: Line 69:
   watch -n 1 adb connect <IP address of your device>:5555   watch -n 1 adb connect <IP address of your device>:5555
      
-===Get BtSnoop logfile===+====Get BtSnoop logfile====
  
   DATE=`date +%d%m%y_%H%M%S`   DATE=`date +%d%m%y_%H%M%S`
   #echo $DATE   #echo $DATE
   FILENAME=btsnoop_hci.$DATE.log   FILENAME=btsnoop_hci.$DATE.log
 +  JSON_FILENAME=btsnoop_hci.$DATE.json
   #echo $FILENAME   #echo $FILENAME
   mkdir -p logs   mkdir -p logs
Line 80: Line 81:
   cd temp   cd temp
   adb bugreport > BUG_REPORT.txt >/dev/null 2>/dev/null   adb bugreport > BUG_REPORT.txt >/dev/null 2>/dev/null
-  unzip *.zip+  unzip *.zip  >/dev/null 2>/dev/null
   cp FS/data/misc/bluetooth/logs/btsnoop_hci.log ../$FILENAME >/dev/null 2>/dev/null   cp FS/data/misc/bluetooth/logs/btsnoop_hci.log ../$FILENAME >/dev/null 2>/dev/null
   cd ..   cd ..
   rm -rf temp   rm -rf temp
-   +  echo "The btsnoop logfile is logs/$FILENAME" 
-  echo "The btsnoop logfile is logs/{$FILENAME}"+  tshark -T json -r $FILENAME >$JSON_FILENAME 
 +  echo "The btsnoop JSON logfile is logs/$JSON_FILENAME" 
 + 
 +====Galaxy S8/9/10 Get SNOOP file==== 
 + 
 +This is tested and verified working for S8, S9, S10+ Android 8.0 through to 9.1: 
 + 
 +Input "*#9900#" (there is an asteriks in there) in the dial pad. An engineer mode menu will pop up. Click "Run DUMPSTATE/LOGCAT/". Wait. It may take several minutes for this to generate logs. Click "Copy To sdcard..." or "Copy to ext sdcard"
  
 +/sdcard/logs will contain an extensive dump of system logs /sdcard/logs/bluetooth/ will contain your timestamped btsnoop_hci_ log files
  
android.1591634518.txt.gz · Last modified: 2020/06/08 16:41 by jrseti