QA SoftVision Team/Mobile/Pandaboard setup: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 58: Line 58:
  Add the following line to the file replacing username with actual username:
  Add the following line to the file replacing username with actual username:
  SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d102", MODE="0666", OWNER="<username>"
  SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d102", MODE="0666", OWNER="<username>"
=== ADB commands that may help ===
* Unlock the screen
adb shell input keyevent 82
* Reboot device
adb reboot
* Superuser shell
adb shell
su
* Launch an app/ launch the SUTAgent
adb shell am start -a android.intent.action.MAIN -n com.mozilla.SUTAgentAndroid/.SUTAgentAndroid
* Open the Apps tab from the Settings menu
adb shell am start -a android.settings.APPLICATION_SETTINGS
* Device log and screenshot access - Screenshot UI accessed using Ctrl + S
ddms
* Sqlite3 insert
sqlite3 -batch /data/data/com.android.browser/databases/browser.db 'insert into bookmarks(title,url,bookmark) values ("b1","www.b1.com",1);'
=== Using the SUTAgent ===
* Create a SUTAgent.ini.tmpl file (a template file)
* In the file write the configuration similar to:
[Registration Server]
IPAddr = <Your pc ipaddress>
PORT = 20742
HARDWARE = Android Board
POOL = GENERAL
* Update the SUTAgent.ini file
adb push SUTAgent.ini.tmpl /data/data/com.mozilla.SUTAgentAndroid/files/SUTAgent.ini
* Restart the device
* Make sure the SUTAgentAndroid apk was started and get the IP of the device from it
* Telnet to the device to access the SUTAgent commands
telnet <device ip> 20701
* Run "help" for a list of commands
*'''Note'''
** The SUTAgent is available only if the device is in the same network as the pc
Confirmed users
905

edits

Navigation menu