Skip to content

Instantly share code, notes, and snippets.

View mhaseebkhan's full-sized avatar

Haseeb Khan mhaseebkhan

View GitHub Profile
@mhaseebkhan
mhaseebkhan / UDID.m
Last active January 11, 2017 05:48
Get UDID with AirWatch MDM
// UDID is no longer available in iOS 6+ due to security / privacy reasons. It can't be retreived the old way
// even when AirWatch MDM is used, because, the APIs are not available.
// However, in order to find more info from AirWatch for the enrolled device and the associated user, we need
// to have UDID, Serial Number or Mac Address which can't be accessed directly either.
// During the installation process, AirWatch pushes a profile and certificate to the user's device which
// contains the UDID.
// This operates on the assumption that AirWatch is configured to push the UDID to the device during the
# Create kpdev user
useradd kpdev
# Install rvm for system
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
# First you need to add all users that will be using rvm to 'rvm' group,
# and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.