Re: Why ddmlib moved to prebuilts?

410 views
Skip to first unread message

Tor Norbye

unread,
Jan 18, 2013, 1:08:15 PM1/18/13
to adt...@googlegroups.com
Don't worry, there source code is all still there, we just moved it from one git repository to another, all still within https://android-review.googlesource.com/#/

It's now developed under tools/base/ instead of under sdk/. We've been gradually moving tools source code over to tools/, which you should be able to build without building a whole SDK (emulator image etc). We're not quite done. But in the mean time, you can build and contribute to ddmlib.

Here's the CL which copied the code over:

We've since moved some of the code around; e.g. ddmlib was moved from ddms/libs/ddmlib to the top level, etc.

-- Tor



On Fri, Jan 18, 2013 at 9:16 AM, SeongJae Park <sj38...@gmail.com> wrote:
Hello, I have found that ddmlib have been moved from sdk/ddms/libs/ddmlib to prebuilts by commit 11e58451(01/12/2013).

So, I have some question about this change and future plan.
1. What's the reason of this change?
2. Will ddmlib's license be changed?
3. Can't I get and use ddmlib's source code anymore?
4. Can't I contribute to ddmlib anymore?

Thanks and Regards.
SeongJae Park.

Raphaël Moll

unread,
Jan 18, 2013, 1:43:46 PM1/18/13
to adt...@googlegroups.com
Note that if your last repo sync didn't bring you tools/base, try something like this:
$ repo init -g all,-notdefault,tools
$ repo sync

Once you sync sdk.git and tools/base.git, in Eclipse just remove your existing ddmlib project and import the one from tools/base/ddmlib. Same thing for IntellJ and I think we have an iml for it in the new repo. If you need to change/contribute the source, make sure to do it in the new repo.

Note that the ddms app is still in sdk.git and now relies on the prebuilts/devtools/ddmlib jar. If you change the tools/base/ddmlib source, you can regenerate a new prebuilt jar for ddms like this:
$ cd prebuilts/devtools
$ ./update_jars.sh ddmlib -f

Hope this helps
R/

SeongJae Park

unread,
Jan 19, 2013, 4:44:30 AM1/19/13
to adt...@googlegroups.com
Thank you very much for your kind and useful answer, Tor, and Raphael.

I now understood the policy and got success to sync tools/base by Raphael's assistance.

Currently, I have no patch for contribution to ddmlib. But, your answers would help me in future contribution.

Thank you very much, again.
Have a nice day :)

Mario Santana

unread,
Apr 30, 2014, 11:54:43 AM4/30/14
to adt...@googlegroups.com
Hi, this thread has been very useful for me but I still have one issue:

I built ddmlib source code using: ./update_jars.sh –f -o ddmlib

Then new .jars are created over prebuilt/devtools/tools/lib/ddmlib/ however I dint see my changes reflected,

Looking in the make log, I found:

host Prebuilt: ddmlib-prebuilt (out/host/common/obj/JAVA_LIBRARIES/ddmlib-prebuilt_intermediates/ddmlib-prebuilt.jar)

Install: out/host/linux-x86/framework/ddmlib-prebuilt.jar

And ddmlib.jar is different to ddmlib-prebuilt.jar, even trying to replace the ddmlib-prebuilt.jar by ddmlib.jar im not seeing any change. 

So my main question is how I can update the source code of ddmlib and see it reflected?

Siva Velusamy

unread,
Apr 30, 2014, 12:11:15 PM4/30/14
to adt...@googlegroups.com
What are you trying to achieve? Do you want to:
- update ddmlib used in DDMS?
- update ddmlib used in Monitor/ADT?
- update ddmlib used in Studio?
> --
> You received this message because you are subscribed to the Google Groups
> "adt-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to adt-dev+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Mario Santana

unread,
Apr 30, 2014, 2:40:47 PM4/30/14
to adt...@googlegroups.com
To update ddmlib used in DDMS.
Reply all
Reply to author
Forward
0 new messages