Example #1
0
        public void SetInstallLocation(AdbInstallLocation location, AdbToolSettings settings = null)
        {
            // set-install-location location
            if (settings == null)
            {
                settings = new AdbToolSettings();
            }

            var builder = new ProcessArgumentBuilder();

            AddSerial(settings.Serial, builder);

            builder.Append("shell");
            builder.Append("pm");

            builder.Append("set-install-location");
            builder.Append(((int)location).ToString());

            var output = new List <string>();

            RunAdb(settings, builder, out output);
        }
        public static void PmSetInstallLocation(this ICakeContext context, AdbInstallLocation location, AdbToolSettings settings = null)
        {
            var t = GetAdbTool(context);

            t.SetInstallLocation(location, settings);
        }