On Thu, Jan 20, 2011 at 3:29 AM, David Turner <[email protected]> wrote:
> On Wed, Jan 19, 2011 at 7:06 AM, freakingtux <[email protected]>
>> If like expected in Case-1 and Case-2 I make changes to the Android
>> platform do I need to delivery a new SDK so people
>> can develop it or can I somehow decouple the delivery of a platform and
>> the sdk?
>
> I think it is possible to make the SDK tools point to a custom repository of
> platform images, but I don't remember the details.

>From inspecting the code it should be possible by declaring an
environment variable  called SDK_UPDATER_URLS before the Android
manager gets called. The default non user repository however remains.
this allows to add "non user" source that are allowed to install
platforms.



/UpdaterWindowImpl.java
   private void setupSources() {
        RepoSources sources = mUpdaterData.getSources();
        sources.add(new
RepoSource(SdkRepository.URL_GOOGLE_SDK_REPO_SITE, false
/*userSource*/));

        // SDK_UPDATER_URLS is a semicolon-separated list of URLs that
can be used to
        // seed the SDK Updater list for full repositories.
        String str = System.getenv("SDK_UPDATER_URLS");
        if (str != null) {
            String[] urls = str.split(";");
            for (String url : urls) {
                if (url != null && url.length() > 0) {
                    RepoSource s = new RepoSource(url, false /*userSource*/);
                    if (!sources.hasSource(s)) {
                        sources.add(s);
                    }
                }
            }
        }
Greetings

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to