Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2646] Android: Support passing customized launch params to Android emulator

GitHub Issuen/a
TypeNew Feature
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2013-10-19T01:08:44.000+0000
Affected Version/sRelease 1.7.2
Fix Version/s2013 Sprint 21, 2013 Sprint 21 Core, Release 3.2.0
ComponentsAndroid, Tooling
Labelsandroid, androidbuild, ay-verified, cb-verified, launch, module_android
ReporterAlan Leard
AssigneeChris Barber
Created2011-04-15T03:25:45.000+0000
Updated2017-03-09T01:02:58.000+0000

Description

Developers would like to have the ability to add custom launch parameters to the android emulator such as setting a HTTP proxy. Here is one example of the parameters they would like to be able to include:
  # start the emulator
        emulator_cmd = [
            self.sdk.get_emulator(),
            '-avd',
            avd_name,
            '-port',
            '5560',
            '-sdcard',
            self.sdcard,
            '-logcat',
            "'*:d *'",
            '-no-boot-anim',

'-http-proxy',

'http://127.0.0.1:8888',

'-partition-size', '128' # in between nexusone and droid ]
Reference HD Tickets: http://appc.me/c/APP-364571 http://appc.me/c/EPH-39417-198

Comments

  1. Stephen Tramer 2011-04-15

    Assigning to Don for triage.

  2. Alan Leard 2011-08-09

    Needs a discussion among Platform Team to determine specs for this feature. Aiming for discussion in September.
  3. Ingo Muschenetz 2012-03-11

    How does this ticket relate to TIMOB-7393?
  4. Chris Barber 2013-10-18

    This is now in the new Android build and can be set via a CLI plugin hook. Someday we may expose it via the tiapp.xml. To test, in your project, create the directory /plugins/test/1.0/hooks/test.js, then put the following in it:
       exports.cliVersion = '>=3.2';
       
       exports.init = function (logger, config, cli) {
       	cli.on('build.android.startEmulator', {
       		pre: function (data, next) {
       			logger.log('[FUNCTION-PRE-HOOK] build.android.startEmulator'.magenta);
       			data.args[1].scale = '.25';
       			next();
       		}
       	});
       };
       
  5. Allen Yeung 2013-10-19

    PR: https://github.com/appcelerator/titanium_mobile/pull/4781
  6. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source