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:
committed by
Facebook GitHub Bot
parent
9df3437683
commit
a87b99cd3d
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user