[Android-tools-devel] getting `android update sdk` working

Chirayu Desai chirayudesai1 at gmail.com
Fri Jul 1 14:27:56 UTC 2016


On Thu, Jun 30, 2016 at 2:43 PM Hans-Christoph Steiner <hans at at.or.at>
wrote:

>
> There are many packages that are used as part of the Android SDK that
> will be very difficult for us to package and distribute any time soon.
> Things like the emulator "system-images".  I think we need to support
> them, and make them easy to install with the Debian packages.  I can see
> two ways to do this:
>
> 1. make separate "contrib" installer packages for each system-image,
> e.g. "Intel x86 Atom System Image 24r4" aka sysimg_x86-24_r04.zip, like
> google-android-ndk-installer

If we could write a script to automate updates to the debian package as
upstream updates, it could be a small one time effort with much less work
required in the future.
It could take a repository xml as input.

>


> 2. make an ANDROID_HOME in /var/lib/android-sdk with symlinks to the
> stuff provided by the Debian packages, e.g.
> /var/lib/android-sdk/build-tools/23.0.3, and then write permissions to
> an 'android-sdk' group so that users can add themselves to that group,
> then run `/var/lib/android-sdk/tools/android update sdk` to get other
> bits from Google.
>
There is one thing here, users can also add their own custom repository
xmls. So we might need to add the group even if we go for the first option
to allow users to download their own things (I remember using it in the
past for preparing CyanogenMod emulator images.)
Or perhaps those could be downloaded to some other part, if the android
tool supports that.

>
> I'm not sure which is the better path.  The first one seems to be
> simpler, since everything would be a Debian package.


> .hc
>
> _______________________________________________
> Android-tools-devel mailing list
> Android-tools-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/android-tools-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/android-tools-devel/attachments/20160701/4e5fe5ba/attachment.html>


More information about the Android-tools-devel mailing list