пятница, 15 марта 2013 г.

Multiuser Android SDK install

Android SDK doesn't support multi user install unlike Eclipse. But I did it like package manager. How? Read here.

Download SDK from this page (select Use an existing IDE to download only SDK without Eclipse) and unzip the archive to /opt/ for example and rename to android-sdk or don't, but next I'll name this folder android-sdk.

The first - execute it to allow only root to use SDK:
chown -R root:root /opt/android-sdk/
Next let's give other users the same rights (read, execute, but not write)
chmod -R o=u-w /opt/android-sdk/
Now everybody can use it, but only root (or users throught sudo) can install or delete something. It's simillar to package manager.

You should redo it after every install through SDK tools or shouldn't because it'll use rights like this for every new installed file. I don't understand it completely, fix me in the comments.

Комментариев нет:

Отправить комментарий