Skip to content

Instantly share code, notes, and snippets.

@arbo77
Created August 10, 2012 23:32
Show Gist options
  • Save arbo77/3318956 to your computer and use it in GitHub Desktop.
Save arbo77/3318956 to your computer and use it in GitHub Desktop.
Android SL4A DHCP Client List for LG P350
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