I have to provide some restriction on apk file while installing to the device and think off doing below restrictions:

1. .apk file should only install on a particular device, so when user tries to install it to some other device it should flash error saying "Not a correct device to install", so the use case is when user copy the apk file in his device and double click on it, it will check whether device is correct one to install or not, if no then it should not install and flash the above mentioned error.
2. provide password protection: when user double clicks on the apk file, it has to popup password field and user has to provide the correct password and it has to verify the password against the password which will be mentioned on manifest file.

Please provide me the solution with some examples.

Thanks,

Piks