Remove child_process from kaios-allocation, kaios-ram, uiqr

Summary:
Changelog: Remove child_process usage  from kaios-allocation, kaios-ram plugins
Facebok:
Remove child_process usage from uiqr plugin

Reviewed By: mweststrate

Differential Revision: D32881860

fbshipit-source-id: 4270aaf28808baee399e263a6a7528f20242784f
This commit is contained in:
Andrey Goncharov
2021-12-10 06:34:37 -08:00
committed by Facebook GitHub Bot
parent 9df3437683
commit a87b99cd3d
7 changed files with 9 additions and 16 deletions

View File

@@ -25,7 +25,7 @@ import {
} from 'recharts';
import adb from 'adbkit';
import {exec} from 'promisify-child-process';
import {getFlipperLib} from 'flipper-plugin';
const PALETTE = [
'#FFD700',
@@ -81,7 +81,7 @@ export default class KaiOSGraphs extends FlipperDevicePlugin<State, any, any> {
async init() {
try {
await exec('adb root');
await getFlipperLib().removeNodeAPI.childProcess.exec('adb root');
} catch (e) {
console.error('Error obtaining root on the device', e);
}