Commit Graph

77 Commits

Author SHA1 Message Date
Raphael
340a79b590 SDK Updater: fix repository.xml to read as binary, not text
to let the XML decoder handle the charset decoding.
2009-06-17 13:35:39 -07:00
Raphael
624222750d SDK Updater: addon id is name+vendor, lower case 2009-06-15 16:35:41 -07:00
Raphael
e073146af3 SDK Updater: update all existing local archives, license click through. 2009-06-15 13:48:50 -07:00
Raphael
18a6ab32be SDK Updater: provide a "force http" setting.
Note that the setting operates on every source by converting
the https:// links into http:// before fetching the sources
or the archives.

This also reorganize some things: the RepoSourceAdapter now
takes the UpdaterData as parameter (so both Adapters work the
same) and the label/contentProviders are nested classes instead
of static classes. Cleanup some stuff that was no longer useful
such as the RepoSources.TaskFactory (it's in UpdaterData already).

With this change I can install from the dl site over http at home!
2009-06-11 21:45:07 -07:00
Raphael
f3eed7385c SDK Updater: SettingsController that handles the settings.
There is not any longer any logic in the SettingsPage,
it is handled now by a "SettingsControllers" which is
available via UpdaterData. The page only takes care of
notifying the controller via a callback when settings
have changed in the UI.
2009-06-11 18:14:11 -07:00
Android (Google) Code Review
c390708d03 Merge change 3868 into donut
* changes:
  ADT #1909458: fix 'android update project': "build.xml is too old"
2009-06-11 11:55:36 -07:00
Android (Google) Code Review
134c84ab62 Merge change 3856 into donut
* changes:
  SDK Updater: fix install in new directory.
2009-06-11 10:24:54 -07:00
Raphael
bd13b6ce02 ADT #1909458: fix 'android update project': "build.xml is too old" 2009-06-10 21:33:38 -07:00
Android (Google) Code Review
3aa7f5d637 Merge change 3848 into donut
* changes:
  SDK Updater: Revamp ITaskMonitor to be able to create sub monitors.
2009-06-10 19:49:47 -07:00
Raphael
9888f2038e SDK Updater: fix install in new directory.
Also change the getenv hack so that multiple sources
can be specified, separated by ;
2009-06-10 19:35:50 -07:00
Raphael
b399193542 SDK Updater: Revamp ITaskMonitor to be able to create sub monitors.
This allows us to nest tasks that share the same
progress task dialog..
2009-06-10 18:33:45 -07:00
Android (Google) Code Review
04d87fc25f Merge change 3770 into donut
* changes:
  Add SdkManager#reloadSdk().
2009-06-10 17:11:57 -07:00
Xavier Ducrohet
086594ceab Add SdkManager#reloadSdk(). 2009-06-10 14:49:02 -07:00
Raphael
61df13dec4 ADT #1856119: 'android update project' can now update sub-projects. 2009-06-10 11:34:08 -07:00
Raphael
9be7c5b712 SDK Updater: Support local archives
- Change Archive to have a "isLocal" mode.
  - In local mode, Archive.getLocalOsPath gives the install folder.
  - In remote mode, Archive.getUrl gives the download URL.
- Implement delete on local archive.
- Started refreshing all sources. Need to revamp the progress
  dialog to share it accross methods first.
2009-06-09 22:09:34 -07:00
Android (Google) Code Review
12dcaef692 Merge change 3546 into donut
* changes:
  SDK Updater: fix repo URL
2009-06-09 14:22:49 -07:00
Android (Google) Code Review
bc61b566c8 Merge change 3545 into donut
* changes:
  SDK Updater: fix for new archives.
2009-06-09 14:22:40 -07:00
Raphael
986d8a082e SDK Updater: fix repo URL 2009-06-08 21:52:05 -07:00
Raphael
fea501be73 SDK Updater: fix for new archives.
Fix for detecting MacOS platforms correctly.

Fix to account for new archives with a root folder
(the root folder is ignored).

Display why archives are not compatible (print
which OS was not compatible.)
2009-06-08 21:47:04 -07:00
Xavier Ducrohet
66c2833c5d Add menu + bigger icons for MacOS. Also added name to shell (macos also) 2009-06-08 18:35:29 -07:00
Android (Google) Code Review
34fb7ecf1b Merge change 3345 into donut
* changes:
  SDK Updater: Add optional license elements to XML schema.
2009-06-08 13:27:35 -07:00
Android (Google) Code Review
defc3d14e1 Merge change 3407 into donut
* changes:
  SDK updater: refactor install into Archive.
2009-06-08 13:24:37 -07:00
Raphael
4d18cb21f2 SDK updater: refactor install into Archive. 2009-06-05 19:46:34 -07:00
Android (Google) Code Review
5589930805 Merge change 3342 into donut
* changes:
  Add revision to Android targets.
2009-06-05 17:02:04 -07:00
Xavier Ducrohet
9d5a88398e Add revision to Android targets.
The add-on use the "revision" property of the manifest (if it does not
exists, it looks for the old deprecated "version" property).
The platform uses the ro.build.version.incremental which is only an integer
for builds from the build servers.
Local builds contain <buildtype>.<username>.<date>.<time>. For those will
use the date.
2009-06-05 16:59:53 -07:00
Raphael
21c57d743a SDK Updater: Add optional license elements to XML schema. 2009-06-05 14:01:10 -07:00
Raphael
f5803d7d18 SDK Updater: add comments to the XML Schema.
This patch also moves the checksumType at the bottom
so that the main sdk-repository element definition
be the first thing in the file.
2009-06-05 10:59:56 -07:00
Raphael
f555bd3bff SDK Updater: Unzip archives.
This adds the following:
- unzip archives
- if dest dir already exists (typicaly update case),
  unzips in a temp dir then swap dirs then delete
  the old install. In case of error, the old archive
  has not been lost.
- computes stats for download: percentage, speed, time left.
- compute percent for install, on top of progress bar.

The install code will need to move somewhere
out of the window. I think I'll put in the Archive
itself with the window just looping on all archives
and doing some progress bar bookeeping.
2009-06-03 23:08:05 -07:00
Raphael
b997c230db SDK Updater: fix download URL, fix checksum computation. 2009-06-02 22:12:01 -07:00
Android (Google) Code Review
3c502eb060 Merge changes 2853,2885 into donut
* changes:
  Misc updates on the Sdklib.
  Export all ADT packages.
2009-06-02 11:56:59 -07:00
Xavier Ducrohet
b10ffbaf3d Misc updates on the Sdklib.
- moved some code around
- made the constant in IAndroidTarget actual constant (they were not final)
2009-06-01 17:16:07 -07:00
Raphael
2382dd7514 SDK Updater: parse local packages, download and install remote packages.
The install phase is still work in progress.
The local part needs to display descriptions.
Buttons callback are generally not implemented yet.
2009-06-01 11:38:51 -07:00
Android (Google) Code Review
3276b8e868 Merge change 2384 into donut
* changes:
  SDK Updater: display properties of sources and packages.
2009-05-22 17:20:35 -07:00
Raphael
f864c1bf93 SDK Updater: display properties of sources and packages. 2009-05-22 16:51:51 -07:00
Xavier Ducrohet
dc10c2e5a3 Update 'android update adb' to the new file format for 3rd USB Vendor IDs.
The new file format is simply 1 ID per line, no need for a count value.
Lines starting with '#' are comments and therefore ignored.
2009-05-22 15:47:13 -07:00
Android (Google) Code Review
0db48f76fb Merge change 2360 into donut
* changes:
  Make 'android update adb' write the USB vendor IDs in hexa.
2009-05-22 14:11:30 -07:00
Xavier Ducrohet
774ac9a0dc Make 'android update adb' write the USB vendor IDs in hexa. 2009-05-22 13:47:07 -07:00
Android (Google) Code Review
906e6529fc Merge change 2300 into donut
* changes:
  SDK Updater: some refactoring and some new features.
2009-05-22 12:30:35 -07:00
Raphael
1c7b811fe4 SDK Updater: some refactoring and some new features.
The refactoring part involves moving as much as possible stuff
in SdkLib/internal/repository.

The UI has moved in SdkUiLib/internal/repository except a specific
public wrapper for calling the Sdk Updater window.

There are also a bunch of new classes to handle the internal
structures: Package is the base type and to match the XML element
names we have PlatformPackage, AddonPackage, DocPackage and
ToolPackage.

All headers have been fixed.
2009-05-22 11:31:50 -07:00
Xavier Ducrohet
0064943f50 Moved updateAdb into SdkManager and updated with new adb_usb.ini format.
New format is: 1 number per line. First number is vendor ID count, followed
by  the vendor IDs themselves. Comment lines starting with # accepted.
2009-05-21 18:11:36 -07:00
Xavier Ducrohet
4817a2b5b3 Add support for USB Vendor ID in the add-ons.
The add-on manifest can now declare a USB vendor ID with the line
   usb-vendor=<id>
The ID must be a 16 hexadecimal value in the format 0xABCD.

The 'android' tool now has a new command 'android upate abd' that will create
a file called 'adb_usb.ini' in ~/.android/
This file will be read by adb to add support to those new vendor IDs.
2009-05-20 18:06:15 -07:00
Raphael
08226b31f8 SDK Updater: Fetch source XML, display them in tree.
There's a notion of an asynchronous task with a progress bar & status UI.
That's still just experimental. Will need some refactoring, etc.
2009-05-20 11:58:16 -07:00
Raphael
17c674d105 ADT #1844909: Tweak XML schema, add more tests.
Change XML schema to allow for empty <libs>, e.g. one can create
and add-on that doesn't declare any extra lib.
However enforce that <archives> contains at least one <archive>
element to prevent someone from declaring a download element
that cannot actually be downloaded.

Added a couple tests for validation of empty documents.
2009-05-15 12:46:02 -07:00
Raphael
0837619559 ADT #1844909: Move sdk-repository XSD and tests from SdkManager to SdkLib. 2009-05-14 19:48:53 -07:00
Xavier Ducrohet
68d017af64 Move some classes that have non ready APIs to internal packages
- com.android.sdklib.avd -> com.android.sdklib.internal.avd
- com.android.sdklib.project -> com.android.sdklib.internal.project
2009-05-13 15:00:01 -07:00
Raphael
816ba073c6 ADT #1825491: Provide default choices for <uses-library>
We currently hardcode a list in the PlatformTarget and propagate
it to the UI via the AndroidTargetParser. This way we can later
decide to actually get the info from some kind of manifest.
2009-05-04 15:37:40 -07:00
Raphael
b7327498cb ADT #1820114: Provide a quick UI to edit AVD.
This is temporary and will be replaced once we get the standalone AVD UI.
2009-04-29 11:29:55 -07:00
Raphael
5a3361ddb5 Fix ADT#1807821: -f option ignored when avd dir already existed.
Also fixed an NPE when parsing some invalid AVDs.
2009-04-28 12:54:47 -07:00
Xavier Ducrohet
1d2e8e7de7 AI 146983: am: CL 146980 Fix the display of the target hash string when displaying unresolved target errors.
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146983
2009-04-20 14:11:22 -07:00
Xavier Ducrohet
2eeb203c31 AI 146778: am: CL 146776 fix NPE in AvdManager
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146778
2009-04-18 12:02:53 -07:00