Loading services/core/java/com/android/server/pm/PackageManagerShellCommand.java +8 −3 Original line number Original line Diff line number Diff line Loading @@ -3445,9 +3445,14 @@ class PackageManagerShellCommand extends ShellCommand { // Remove the first arg "art" and forward to ART module. // Remove the first arg "art" and forward to ART module. String[] args = getAllArgs(); String[] args = getAllArgs(); args = Arrays.copyOfRange(args, 1, args.length); args = Arrays.copyOfRange(args, 1, args.length); try (var in = ParcelFileDescriptor.dup(getInFileDescriptor()); var out = ParcelFileDescriptor.dup(getOutFileDescriptor()); var err = ParcelFileDescriptor.dup(getErrFileDescriptor())) { return LocalManagerRegistry.getManagerOrThrow(ArtManagerLocal.class) return LocalManagerRegistry.getManagerOrThrow(ArtManagerLocal.class) .handleShellCommand(getTarget(), getInFileDescriptor(), getOutFileDescriptor(), .handleShellCommand(getTarget(), in, out, err, args); getErrFileDescriptor(), args); } catch (IOException e) { throw new IllegalStateException(e); } } } private static String checkAbiArgument(String abi) { private static String checkAbiArgument(String abi) { Loading Loading
services/core/java/com/android/server/pm/PackageManagerShellCommand.java +8 −3 Original line number Original line Diff line number Diff line Loading @@ -3445,9 +3445,14 @@ class PackageManagerShellCommand extends ShellCommand { // Remove the first arg "art" and forward to ART module. // Remove the first arg "art" and forward to ART module. String[] args = getAllArgs(); String[] args = getAllArgs(); args = Arrays.copyOfRange(args, 1, args.length); args = Arrays.copyOfRange(args, 1, args.length); try (var in = ParcelFileDescriptor.dup(getInFileDescriptor()); var out = ParcelFileDescriptor.dup(getOutFileDescriptor()); var err = ParcelFileDescriptor.dup(getErrFileDescriptor())) { return LocalManagerRegistry.getManagerOrThrow(ArtManagerLocal.class) return LocalManagerRegistry.getManagerOrThrow(ArtManagerLocal.class) .handleShellCommand(getTarget(), getInFileDescriptor(), getOutFileDescriptor(), .handleShellCommand(getTarget(), in, out, err, args); getErrFileDescriptor(), args); } catch (IOException e) { throw new IllegalStateException(e); } } } private static String checkAbiArgument(String abi) { private static String checkAbiArgument(String abi) { Loading