Commit Graph

141 Commits

Author SHA1 Message Date
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
Raphael Moll
08bb0ab656 AI 146771: am: CL 146770 ADT #1797369 fix error "ant windows: com.android.ant.SetupTask cannot be found"
The path in local.properties should be double-backslashed.
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 146771
2009-04-18 11:56:49 -07:00
Xavier Ducrohet
08ceafea54 AI 146740: am: CL 146692 Clean up the output of "android list targets" and fix the image.sysdir.# to only be present if the image folders really contain *.img files.
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146740
2009-04-17 11:21:13 -07:00
Xavier Ducrohet
62ca2ce538 AI 146739: am: CL 146689 Broken AVDs are now loaded by default, and we provide a way to fix one (new) type of error (wrong paths to the system image)
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146739
2009-04-17 11:18:24 -07:00
Xavier Ducrohet
56565ee9f0 AI 146024: am: CL 146023 Make the add-on implement getPath for IAndroidTarget.SAMPLES (only if the add-on actually has samples) (BUG #1781751)
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146024
2009-04-13 18:40:32 -07:00
Raphael Moll
1bb311cc2f AI 145985: am: CL 145929 ADT #1781076: fix missing \n in "android delete avd"
Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 145985
2009-04-13 18:26:49 -07:00
Raphael Moll
bcc63a634a AI 145468: am: CL 145083 ADT #1777728: fix NPE when AVD list is empty
Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 145468
2009-04-09 14:10:03 -07:00
Xavier Ducrohet
89f2842e04 AI 145098: am: CL 144938 Fix the classpath container cache for project targeting add-ons (bug #1775936).
Also renamed the container for add-ons to include the base platform name (so that at least a version is displayed).
  Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 145098
2009-04-08 13:36:48 -07:00
Raphael Moll
1edcab4738 AI 143883: am: CL 143881 AVD #1703143: delete AVDs not loaded correctly.
This covers the case where an AVD has an invalid target
  or is missing its AVD folder or the config.ini in it.
  Made some cosmetic cleanup too.
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 143883
2009-03-31 17:23:46 -07:00
Raphael Moll
361030c1d8 AI 143808: am: CL 143754 SdkManager: list unknown AVDs and why they didn't load.
Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 143808
2009-03-31 15:10:16 -07:00
Xavier Ducrohet
5303d5c523 AI 143270: am: CL 143149 Make ADT look for javadoc in docs/reference for the optional libraries (to match the base docs).
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 143270
2009-03-27 20:37:00 -07:00
Raphael Moll
77708b2fd0 AI 143223: am: CL 143034 ADT #1738834: Properly validate project name, package name and
activity name for "create project".
  Also validate AVD name for "create avd".
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 143223
2009-03-27 19:13:58 -07:00
Xavier Ducrohet
9c03440f19 Automated import from //branches/donutburger/...@140697,140697 2009-03-24 18:15:02 -07:00
The Android Open Source Project
6ffae015b4 auto import from //branches/cupcake_rel/...@140373 2009-03-18 17:39:43 -07:00
The Android Open Source Project
243d18eb22 auto import from //branches/cupcake/...@137873 2009-03-11 12:11:54 -07:00
The Android Open Source Project
edd86fdaa9 auto import from //depot/cupcake/@136594 2009-03-05 14:34:30 -08:00
The Android Open Source Project
52d4c30ca5 auto import from //depot/cupcake/@135843 2009-03-03 19:29:09 -08:00
The Android Open Source Project
d4aee0c0ca auto import from //depot/cupcake/@135843 2009-03-03 18:28:16 -08:00
The Android Open Source Project
d2f2b1d7b7 auto import from //depot/cupcake/@132589 2009-03-03 14:03:58 -08:00
The Android Open Source Project
b8747bc7b1 auto import from //depot/cupcake/@137055 2009-03-02 22:54:20 -08:00
The Android Open Source Project
74a996a2c7 auto import from //branches/cupcake/...@132569 2009-02-20 07:38:28 -08:00
The Android Open Source Project
ff4b5f241f auto import from //branches/cupcake/...@132276 2009-02-19 10:57:29 -08:00
The Android Open Source Project
87a88c4f03 auto import from //branches/cupcake/...@131421 2009-02-13 12:57:48 -08:00
The Android Open Source Project
e3c5766074 auto import from //branches/cupcake/...@130745 2009-02-10 15:43:58 -08:00
The Android Open Source Project
7b53e39377 auto import from //branches/cupcake/...@127101 2009-01-20 14:03:55 -08:00
The Android Open Source Project
b8d704a517 auto import from //branches/cupcake/...@126645 2009-01-15 16:12:07 -08:00
The Android Open Source Project
95cf464c5a auto import from //branches/cupcake/...@125939 2009-01-09 17:51:19 -08:00
The Android Open Source Project
e943f2fd8e Code drop from //branches/cupcake/...@124589 2008-12-17 18:04:04 -08:00