#!/usr/bin/env python
#
# Very basic PyADB example
#

try:
    import sys
    from pyadb import ADB
except ImportError,e:
    # should never be reached
    print "[f] Required module missing. %s" % e.args[0]
    sys.exit(-1)

def main():
    # creates the ADB object
    adb = ADB()
    # IMPORTANT: You should supply the absolute path to ADB binary 
    if adb.set_adb_path('/home/chema/.android-sdks/platform-tools/adb') is True:
        print "Version: %s" % adb.get_version()
    else:
        print "Check ADB binary path"

if __name__ == "__main__":
    main()
    
#!/usr/bin/env python
#
# Very basic PyADB example
#

try:
    import sys
    from pyadb import ADB
except ImportError,e:
    # should never be reached
    print "[f] Required module missing. %s" % e.args[0]
    sys.exit(-1)

def main():
    # creates the ADB object
    adb = ADB()
    # IMPORTANT: You should supply the absolute path to ADB binary 
    if adb.set_adb_path('/home/chema/.android-sdks/platform-tools/adb') is True:
        print "Version: %s" % adb.get_version()
    else:
        print "Check ADB binary path"

if __name__ == "__main__":
    main()
    
#!/usr/bin/env python # # Very basic PyADB example # # should never be reached # creates the ADB object # IMPORTANT: You should supply the absolute path to ADB binary