Created
August 10, 2012 23:32
-
-
Save arbo77/3318956 to your computer and use it in GitHub Desktop.
Android SL4A DHCP Client List for LG P350
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android | |
| droid = android.Android() | |
| title = 'DHCP Client List' | |
| droid.dialogCreateAlert(title) | |
| clients = [] | |
| fp = open("/data/misc/dhcp/dnsmasq.leases","r") | |
| for line in fp.readlines(): | |
| s = line.split(" ") | |
| clients.append(s[2]) | |
| droid.dialogSetItems(clients) | |
| droid.dialogShow() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment