Skip to content

Commit d9d7c5f

Browse files
committed
Remove now-unnecessary 'echo' wrapper in ADB cert script
1 parent 6da9bac commit d9d7c5f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/interceptors/android/adb-commands.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,8 @@ export async function injectSystemCertificate(
311311
# Apps inherit the Zygote's mounts at startup, so we inject here to ensure all newly
312312
# started apps will see these certs straight away:
313313
for Z_PID in "$ZYGOTE_PID" "$ZYGOTE64_PID"; do
314-
# We use 'echo' below to trim spaces
315314
if [ -n "$Z_PID" ]; then
316-
nsenter --mount=/proc/$(echo $Z_PID)/ns/mnt -- \
315+
nsenter --mount=/proc/$Z_PID/ns/mnt -- \
317316
/bin/mount --bind /system/etc/security/cacerts /apex/com.android.conscrypt/cacerts
318317
fi
319318
done

0 commit comments

Comments
 (0)