@@ -42116,7 +42116,7 @@ class SDKManager {
42116
42116
};
42117
42117
const commandString = `${this.sdkManagerPath} ${args.join(" ")}`;
42118
42118
console.log(`[command]${commandString}`);
42119
- const exitCode = await exec.exec(`"${this.sdkManagerPath}"`, args, options);
42119
+ const exitCode = await exec.exec("sudo", [ `"${this.sdkManagerPath}"`, ... args] , options);
42120
42120
if (exitCode !== 0) {
42121
42121
throw new Error(`'${commandString}' has finished with exit code '${exitCode}'`);
42122
42122
}
@@ -47557,15 +47557,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
47557
47557
Object.defineProperty(exports, "__esModule", { value: true });
47558
47558
const cache = __importStar(__webpack_require__(692));
47559
47559
const core = __importStar(__webpack_require__(470));
47560
- const exec = __importStar(__webpack_require__(986));
47561
47560
const os = __importStar(__webpack_require__(87));
47562
47561
const sdk_manager_1 = __webpack_require__(857);
47563
47562
const utils_1 = __webpack_require__(611);
47564
- const patchUbuntuPermissions = async (androidHome) => {
47565
- core.startGroup("Patch permissions for $ANDROID_HOME on Ubuntu");
47566
- await exec.exec("sudo", ["chmod", "-R", "a+rwx", androidHome]);
47567
- core.endGroup();
47568
- };
47569
47563
const restoreCache = async (sdkmanager, foundPackage) => {
47570
47564
core.startGroup("Trying to restore package from cache...");
47571
47565
const cacheKey = utils_1.getPackageCacheKey(foundPackage);
@@ -47595,9 +47589,6 @@ const run = async () => {
47595
47589
throw new Error("ANDROID_HOME env variable is not defined");
47596
47590
}
47597
47591
const sdkmanager = new sdk_manager_1.SDKManager(androidHome);
47598
- if (os.platform() === "linux") {
47599
- await patchUbuntuPermissions(androidHome);
47600
- }
47601
47592
core.startGroup("Getting list of available components");
47602
47593
const allPackages = await sdkmanager.getAllPackagesInfo();
47603
47594
core.endGroup();
0 commit comments