Loading core/java/android/os/Build.java +27 −1 Original line number Diff line number Diff line Loading @@ -76,12 +76,38 @@ public class Build { public static final String SERIAL = getString("ro.serialno"); /** * A list of ABIs (in priority) order supported by this device. * An ordered list of ABIs supported by this device. The most preferred ABI is the first * element in the list. * * See {@link #SUPPORTED_32_BIT_ABIS} and {@link #SUPPORTED_64_BIT_ABIS}. * * @hide */ public static final String[] SUPPORTED_ABIS = getString("ro.product.cpu.abilist").split(","); /** * An ordered list of <b>32 bit</b> ABIs supported by this device. The most preferred ABI * is the first element in the list. * * See {@link #SUPPORTED_ABIS} and {@link #SUPPORTED_64_BIT_ABIS}. * * @hide */ public static final String[] SUPPORTED_32_BIT_ABIS = getString("ro.product.cpu.abilist32") .split(","); /** * An ordered list of <b>64 bit</b> ABIs supported by this device. The most preferred ABI * is the first element in the list. * * See {@link #SUPPORTED_ABIS} and {@link #SUPPORTED_32_BIT_ABIS}. * * @hide */ public static final String[] SUPPORTED_64_BIT_ABIS = getString("ro.product.cpu.abilist64") .split(","); /** Various version strings. */ public static class VERSION { /** Loading core/java/android/os/Process.java +0 −10 Original line number Diff line number Diff line Loading @@ -707,16 +707,6 @@ public class Process { return primaryZygoteState; } // TODO: Get rid of this. This is a temporary workaround until all the // compilation related pieces for the dual zygote stack are ready. // b/3647418. if (System.getenv("ANDROID_SOCKET_" + SECONDARY_ZYGOTE_SOCKET) == null) { Log.e(LOG_TAG, "Forcing app to primary zygote, secondary unavailable (ABI= " + abi + ")"); // Should be : // throw new ZygoteStartFailedEx("Unsupported zygote ABI: " + abi); return primaryZygoteState; } // The primary zygote didn't match. Try the secondary. if (secondaryZygoteState == null || secondaryZygoteState.isClosed()) { secondaryZygoteState = ZygoteState.connect(SECONDARY_ZYGOTE_SOCKET, Loading services/java/com/android/server/pm/Installer.java +16 −5 Original line number Diff line number Diff line Loading @@ -201,7 +201,7 @@ public final class Installer { return execute(builder.toString()); } public int dexopt(String apkPath, int uid, boolean isPublic) { public int dexopt(String apkPath, int uid, boolean isPublic, String instructionSet) { StringBuilder builder = new StringBuilder("dexopt"); builder.append(' '); builder.append(apkPath); Loading @@ -209,10 +209,13 @@ public final class Installer { builder.append(uid); builder.append(isPublic ? " 1" : " 0"); builder.append(" *"); // No pkgName arg present builder.append(' '); builder.append(instructionSet); return execute(builder.toString()); } public int dexopt(String apkPath, int uid, boolean isPublic, String pkgName) { public int dexopt(String apkPath, int uid, boolean isPublic, String pkgName, String instructionSet) { StringBuilder builder = new StringBuilder("dexopt"); builder.append(' '); builder.append(apkPath); Loading @@ -221,6 +224,8 @@ public final class Installer { builder.append(isPublic ? " 1" : " 0"); builder.append(' '); builder.append(pkgName); builder.append(' '); builder.append(instructionSet); return execute(builder.toString()); } Loading @@ -235,19 +240,23 @@ public final class Installer { return execute(builder.toString()); } public int movedex(String srcPath, String dstPath) { public int movedex(String srcPath, String dstPath, String instructionSet) { StringBuilder builder = new StringBuilder("movedex"); builder.append(' '); builder.append(srcPath); builder.append(' '); builder.append(dstPath); builder.append(' '); builder.append(instructionSet); return execute(builder.toString()); } public int rmdex(String codePath) { public int rmdex(String codePath, String instructionSet) { StringBuilder builder = new StringBuilder("rmdex"); builder.append(' '); builder.append(codePath); builder.append(' '); builder.append(instructionSet); return execute(builder.toString()); } Loading Loading @@ -334,7 +343,7 @@ public final class Installer { } public int getSizeInfo(String pkgName, int persona, String apkPath, String libDirPath, String fwdLockApkPath, String asecPath, PackageStats pStats) { String fwdLockApkPath, String asecPath, String instructionSet, PackageStats pStats) { StringBuilder builder = new StringBuilder("getsize"); builder.append(' '); builder.append(pkgName); Loading @@ -348,6 +357,8 @@ public final class Installer { builder.append(fwdLockApkPath != null ? fwdLockApkPath : "!"); builder.append(' '); builder.append(asecPath != null ? asecPath : "!"); builder.append(' '); builder.append(instructionSet); String s = transaction(builder.toString()); String res[] = s.split(" "); Loading services/java/com/android/server/pm/PackageManagerService.java +235 −93 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
core/java/android/os/Build.java +27 −1 Original line number Diff line number Diff line Loading @@ -76,12 +76,38 @@ public class Build { public static final String SERIAL = getString("ro.serialno"); /** * A list of ABIs (in priority) order supported by this device. * An ordered list of ABIs supported by this device. The most preferred ABI is the first * element in the list. * * See {@link #SUPPORTED_32_BIT_ABIS} and {@link #SUPPORTED_64_BIT_ABIS}. * * @hide */ public static final String[] SUPPORTED_ABIS = getString("ro.product.cpu.abilist").split(","); /** * An ordered list of <b>32 bit</b> ABIs supported by this device. The most preferred ABI * is the first element in the list. * * See {@link #SUPPORTED_ABIS} and {@link #SUPPORTED_64_BIT_ABIS}. * * @hide */ public static final String[] SUPPORTED_32_BIT_ABIS = getString("ro.product.cpu.abilist32") .split(","); /** * An ordered list of <b>64 bit</b> ABIs supported by this device. The most preferred ABI * is the first element in the list. * * See {@link #SUPPORTED_ABIS} and {@link #SUPPORTED_32_BIT_ABIS}. * * @hide */ public static final String[] SUPPORTED_64_BIT_ABIS = getString("ro.product.cpu.abilist64") .split(","); /** Various version strings. */ public static class VERSION { /** Loading
core/java/android/os/Process.java +0 −10 Original line number Diff line number Diff line Loading @@ -707,16 +707,6 @@ public class Process { return primaryZygoteState; } // TODO: Get rid of this. This is a temporary workaround until all the // compilation related pieces for the dual zygote stack are ready. // b/3647418. if (System.getenv("ANDROID_SOCKET_" + SECONDARY_ZYGOTE_SOCKET) == null) { Log.e(LOG_TAG, "Forcing app to primary zygote, secondary unavailable (ABI= " + abi + ")"); // Should be : // throw new ZygoteStartFailedEx("Unsupported zygote ABI: " + abi); return primaryZygoteState; } // The primary zygote didn't match. Try the secondary. if (secondaryZygoteState == null || secondaryZygoteState.isClosed()) { secondaryZygoteState = ZygoteState.connect(SECONDARY_ZYGOTE_SOCKET, Loading
services/java/com/android/server/pm/Installer.java +16 −5 Original line number Diff line number Diff line Loading @@ -201,7 +201,7 @@ public final class Installer { return execute(builder.toString()); } public int dexopt(String apkPath, int uid, boolean isPublic) { public int dexopt(String apkPath, int uid, boolean isPublic, String instructionSet) { StringBuilder builder = new StringBuilder("dexopt"); builder.append(' '); builder.append(apkPath); Loading @@ -209,10 +209,13 @@ public final class Installer { builder.append(uid); builder.append(isPublic ? " 1" : " 0"); builder.append(" *"); // No pkgName arg present builder.append(' '); builder.append(instructionSet); return execute(builder.toString()); } public int dexopt(String apkPath, int uid, boolean isPublic, String pkgName) { public int dexopt(String apkPath, int uid, boolean isPublic, String pkgName, String instructionSet) { StringBuilder builder = new StringBuilder("dexopt"); builder.append(' '); builder.append(apkPath); Loading @@ -221,6 +224,8 @@ public final class Installer { builder.append(isPublic ? " 1" : " 0"); builder.append(' '); builder.append(pkgName); builder.append(' '); builder.append(instructionSet); return execute(builder.toString()); } Loading @@ -235,19 +240,23 @@ public final class Installer { return execute(builder.toString()); } public int movedex(String srcPath, String dstPath) { public int movedex(String srcPath, String dstPath, String instructionSet) { StringBuilder builder = new StringBuilder("movedex"); builder.append(' '); builder.append(srcPath); builder.append(' '); builder.append(dstPath); builder.append(' '); builder.append(instructionSet); return execute(builder.toString()); } public int rmdex(String codePath) { public int rmdex(String codePath, String instructionSet) { StringBuilder builder = new StringBuilder("rmdex"); builder.append(' '); builder.append(codePath); builder.append(' '); builder.append(instructionSet); return execute(builder.toString()); } Loading Loading @@ -334,7 +343,7 @@ public final class Installer { } public int getSizeInfo(String pkgName, int persona, String apkPath, String libDirPath, String fwdLockApkPath, String asecPath, PackageStats pStats) { String fwdLockApkPath, String asecPath, String instructionSet, PackageStats pStats) { StringBuilder builder = new StringBuilder("getsize"); builder.append(' '); builder.append(pkgName); Loading @@ -348,6 +357,8 @@ public final class Installer { builder.append(fwdLockApkPath != null ? fwdLockApkPath : "!"); builder.append(' '); builder.append(asecPath != null ? asecPath : "!"); builder.append(' '); builder.append(instructionSet); String s = transaction(builder.toString()); String res[] = s.split(" "); Loading
services/java/com/android/server/pm/PackageManagerService.java +235 −93 File changed.Preview size limit exceeded, changes collapsed. Show changes