Removed useless code

I added code that looked through packages on the device while trying to figure out the Package Manager's API. This has now been removed.