On a computer, , open command prompt and navigate to the location you installed the SDK. Default is %USERPROFILE%\AppData\Local\Android\sdk\platform-tools Run the following command to initialize ADB:
adb start-server
With a new (or factory reset) Lollipop Android device, go through the setup wizard WITHOUT adding a Google account. If you accidentally added an account, simply remove the account from the Settings app once you finish the setup wizard.
Once the setup wizard is done and you’re on your device’s home screen
Go to Settings
Go to “About device” (Might be named slightly different)
Click the “Build number” field 7 times. This will turn on “Developer options”
Go back to Settings
Go to “Developer options”
Scroll down and enable “USB debugging”
Plug the device into computer
Your device might prompt you with a trust dialog. Click accept.
On the computer, run the following command to install the latest Android SM app you downloaded onto your device:
adb install AndroidSM.apk
Once installed, run the following command to set Systems Manager as the device owner of the device: