I'm trying get my app to get the name of every app on the device
Use PackageManager
and methods like getInstalledApplications()
.
The problem seems to be that /data isn't being recognized as a directory so rootDir.list() returns null.
No, the problem is that you do not have read access to /data
.
I have the following in my manifest
There is no such permission defined in Android.
What else do I have to do to get this to work ?
I presume that you can use I suggest that you use su
to run ls -R
or something like that.PackageManager
.