This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String getRawCpuinfo_old() { | |
String ret = ""; | |
InputStream in = null; | |
byte[] buf = new byte[4096]; | |
try { | |
String[] args = { | |
"/system/bin/cat", "/proc/cpuinfo" | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String getRawCpuinfo() { | |
String ret = ""; | |
FileReader fr = null; | |
char[] buf = new char[4096]; | |
try { | |
fr = new FileReader("/proc/cpuinfo"); | |
int len = fr.read(buf); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String getVersionName(Context context) { | |
String versionStr = "(none)"; | |
PackageManager pm = context.getPackageManager(); | |
try { | |
PackageInfo info = pm.getPackageInfo(context.getPackageName(), 0); | |
versionStr = info.versionName; | |
} catch (Exception e) { | |
// no mentenance... | |
} | |
return versionStr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String androidid = Secure.getString(getContentResolver(),Secure.ANDROID_ID); | |
String serialid = android.os.Build.SERIAL; | |
Log.i("test", androidid + "," + serialid); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Vold 2.0 fstab for tostab03 | |
####################### | |
## Regular device mount | |
## | |
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...> | |
## label - Label for the volume | |
## mount_point - Where the volume will be mounted | |
## part - Partition # (1 based), or 'auto' for first usable partition. | |
## <sysfs_path> - List of sysfs paths to source devices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Vold 2.0 fstab for Stingray | |
####################### | |
## Regular device mount | |
## | |
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...> | |
## label - Label for the volume | |
## mount_point - Where the volume will be mounted | |
## part - Partition # (1 based), or 'auto' for first usable partition. | |
## <sysfs_path> - List of sysfs paths to source devices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Vold 2.0 fstab for HTC Passion | |
# | |
## - San Mehat ([email protected]) | |
## | |
####################### | |
## Regular device mount | |
## | |
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...> | |
## label - Label for the volume |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File getTrueExternalStorageDirectory() { | |
final File standard = Environment.getExternalStorageDirectory(); | |
// SUMSUNG製品が他のどの製品よりも優れた独自仕様 | |
final File sd = new File(standard, "sd"); | |
final File ext = new File(standard, "external_sd"); | |
if (sd.exists() && sd.isDirectory()) | |
return sd; | |
else if (ext.exists() && ext.isDirectory()) | |
return ext; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String getPseudoStoragePath(){ | |
String storage_path; | |
if(Build.MODEL.equals("Xoom")){ | |
// XOOM専用w | |
storage_path = System.getenv("SECONDARY_STORAGE"); | |
}else{ | |
storage_path = System.getenv("EXTERNAL_STORAGE"); | |
} | |
return storage_path; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rootfs / rootfs ro,relatime 0 0 | |
tmpfs /dev tmpfs rw,relatime,mode=755 0 0 | |
devpts /dev/pts devpts rw,relatime,mode=600 0 0 | |
proc /proc proc rw,relatime 0 0 | |
sysfs /sys sysfs rw,relatime 0 0 | |
none /acct cgroup rw,relatime,cpuacct 0 0 | |
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0 | |
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0 | |
none /dev/cpuctl cgroup rw,relatime,cpu 0 0 | |
/dev/block/mtdblock3 /system yaffs2 ro,relatime 0 0 |
OlderNewer