In iOS devices, all user applications are located in /var/mobile/Applications
directory, and each app has a unique random uuid as its directory name, for instance:
/var/mobile/Applications/15FD62FD-2BEB-4C1E-A9B8-BC93E5C721CC
the uuid is 15FD62FD-2BEB-4C1E-A9B8-BC93E5C721CC
.
Now I want to get the directory by application's bundle identifier, my solution is enumerate the /var/mobile/Applications
directory, get the bundle identifier from Info.plist
and check.
This solution is rather slow, is there any quicker way to do this?
e.g. if there is a plist that records the bundle id to uuid mapping, then I can read that file to avoid directory enumeration.