List of usage examples for android.os Build SUPPORTED_64_BIT_ABIS
String[] SUPPORTED_64_BIT_ABIS
To view the source code for android.os Build SUPPORTED_64_BIT_ABIS.
Click Source Link
From source file:org.namelessrom.devicecontrol.device.DeviceInformationGeneralFragment.java
@Override public void onActivityCreated(final Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); addPreferencesFromResource(R.xml.device_information_general); final Device device = Device.get(); // Platform//from www . j a v a 2s. c o m PreferenceCategory category = (PreferenceCategory) findPreference("platform"); addPreference(category, KEY_PLATFORM_VERSION, R.string.version, device.platformVersion).setSelectable(true); // selectable because of the easter egg addPreference(category, "platform_id", R.string.build_id, device.platformId); addPreference(category, "platform_type", R.string.type, device.platformType); addPreference(category, "platform_tags", R.string.tags, device.platformTags); addPreference(category, "platform_build_date", R.string.build_date, device.platformBuildType); // Runtime category = (PreferenceCategory) findPreference("runtime"); addPreference(category, "vm_library", R.string.type, device.vmLibrary); addPreference(category, "vm_version", R.string.version, device.vmVersion); // Device category = (PreferenceCategory) findPreference("device_information"); // TODO: save / restore / check --> ANDROID ID addPreference(category, KEY_ANDROID_ID, R.string.android_id, device.androidId); addPreference(category, "device_manufacturer", R.string.manufacturer, device.manufacturer); addPreference(category, "device_model", R.string.model, device.model); addPreference(category, "device_product", R.string.product, device.product); addPreference(category, "device_board", R.string.board, device.board); addPreference(category, "device_bootloader", R.string.bootloader, device.bootloader); addPreference(category, "device_radio_version", R.string.radio_version, device.radio); // eMMC category = (PreferenceCategory) findPreference("emmc"); addPreference(category, "emmc_name", R.string.name, Emmc.get().getName()); addPreference(category, "emmc_cid", R.string.emmc_cid, Emmc.get().getCid()); addPreference(category, "emmc_mid", R.string.emmc_mid, Emmc.get().getMid()); addPreference(category, "emmc_rev", R.string.emmc_rev, Emmc.get().getRev()); addPreference(category, "emmc_date", R.string.emmc_date, Emmc.get().getDate()); String tmp = Emmc.get().canBrick() ? getString(R.string.emmc_can_brick_true) : getString(R.string.emmc_can_brick_false); tmp = String.format("%s\n%s", tmp, getString(R.string.press_learn_more)); addPreference(category, "emmc_can_brick", R.string.emmc_can_brick, tmp).setSelectable(true); // Processor category = (PreferenceCategory) findPreference("processor"); final String cpuAbi = getString(R.string.cpu_abi); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { final int bitResId = Build.SUPPORTED_64_BIT_ABIS.length == 0 ? R.string.bit_32 : R.string.bit_64; addPreference(category, "cpu_bit", R.string.arch, getString(bitResId)); for (int i = 0; i < Build.SUPPORTED_ABIS.length; i++) { addPreference(category, String.format("cpu_abi%s", i + 1), cpuAbi + String.valueOf(i + 1), Build.SUPPORTED_ABIS[i]); } } else { //noinspection deprecation addPreference(category, "cpu_abi", cpuAbi, Build.CPU_ABI); //noinspection deprecation addPreference(category, "cpu_abi2", cpuAbi + "2", Build.CPU_ABI2); } new CpuInfoTask(category).execute(); // Kernel category = (PreferenceCategory) findPreference("kernel"); new KernelInfoTask(category).execute(); // Memory category = (PreferenceCategory) findPreference("memory"); new MemoryInfoTask(category).execute(); if (category.getPreferenceCount() == 0) { getPreferenceScreen().removePreference(category); } }