Loading services/java/com/android/server/pm/Installer.java +0 −21 Original line number Original line Diff line number Diff line Loading @@ -290,27 +290,6 @@ public final class Installer { return execute(builder.toString()); return execute(builder.toString()); } } /** * Clone all the package data directories from srcUserId to targetUserId. If copyData is true, * some of the data is also copied, otherwise just empty directories are created with the * correct access rights. * @param srcUserId user to copy the data directories from * @param targetUserId user to copy the data directories to * @param copyData whether the data itself is to be copied. If false, empty directories are * created. * @return success/error code */ public int cloneUserData(int srcUserId, int targetUserId, boolean copyData) { StringBuilder builder = new StringBuilder("cloneuserdata"); builder.append(' '); builder.append(srcUserId); builder.append(' '); builder.append(targetUserId); builder.append(' '); builder.append(copyData ? '1' : '0'); return execute(builder.toString()); } public boolean ping() { public boolean ping() { if (execute("ping") < 0) { if (execute("ping") < 0) { return false; return false; Loading Loading
services/java/com/android/server/pm/Installer.java +0 −21 Original line number Original line Diff line number Diff line Loading @@ -290,27 +290,6 @@ public final class Installer { return execute(builder.toString()); return execute(builder.toString()); } } /** * Clone all the package data directories from srcUserId to targetUserId. If copyData is true, * some of the data is also copied, otherwise just empty directories are created with the * correct access rights. * @param srcUserId user to copy the data directories from * @param targetUserId user to copy the data directories to * @param copyData whether the data itself is to be copied. If false, empty directories are * created. * @return success/error code */ public int cloneUserData(int srcUserId, int targetUserId, boolean copyData) { StringBuilder builder = new StringBuilder("cloneuserdata"); builder.append(' '); builder.append(srcUserId); builder.append(' '); builder.append(targetUserId); builder.append(' '); builder.append(copyData ? '1' : '0'); return execute(builder.toString()); } public boolean ping() { public boolean ping() { if (execute("ping") < 0) { if (execute("ping") < 0) { return false; return false; Loading