File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/cli-hermes/src/profileHermes Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -66,12 +66,11 @@ export async function downloadProfile(
66
66
67
67
logger . debug ( 'Internal commands run to pull the file:' ) ;
68
68
69
- // Copy the file from device's data to sdcard, then pull the file to a temp directory
70
- execSyncWithLog ( `adb shell run-as ${ packageName } cp cache/${ file } /sdcard` ) ;
71
-
72
69
// If --raw, pull the hermes profile to dstPath
73
70
if ( raw ) {
74
- execSyncWithLog ( `adb pull /sdcard/${ file } ${ dstPath } ` ) ;
71
+ execSyncWithLog (
72
+ `adb shell run-as ${ packageName } cat cache/${ file } > ${ dstPath } /${ file } ` ,
73
+ ) ;
75
74
logger . success ( `Successfully pulled the file to ${ dstPath } /${ file } ` ) ;
76
75
}
77
76
@@ -80,8 +79,9 @@ export async function downloadProfile(
80
79
const osTmpDir = os . tmpdir ( ) ;
81
80
const tempFilePath = path . join ( osTmpDir , file ) ;
82
81
83
- execSyncWithLog ( `adb pull /sdcard/${ file } ${ tempFilePath } ` ) ;
84
-
82
+ execSyncWithLog (
83
+ `adb shell run-as ${ packageName } cat cache/${ file } > ${ tempFilePath } ` ,
84
+ ) ;
85
85
// If path to source map is not given
86
86
if ( ! sourcemapPath ) {
87
87
// Get or generate the source map
You can’t perform that action at this time.
0 commit comments