Aller au contenu | Aller au menu | Aller à la recherche


Android System.getProperties() System.getenv()

Le contenu des propriétés et des variables d’environnement du système sous Android.

Que contient mon téléphone en plus de ce que Android fournit systématiquement dans System ?

Properties p = System.getProperties();
//			p.list(System.out);
 
			Enumeration enuProp = p.propertyNames();
			while (enuProp.hasMoreElements()) {
				String propertyName = (String) enuProp.nextElement();
				String propertyValue = p.getProperty(propertyName);
				System.out.println(propertyName + ": " + propertyValue);
			}
 
			Log.d(TAG, "System.getProperties() - STOP");
 
			Log.d(TAG, "System.getenv() - START");
 
			Map map = System.getenv();
 
		    Set keys = map.keySet();
		    Iterator iterator = keys.iterator();
		    while (iterator.hasNext()) {
		    	String key = (String) iterator.next();
		    	String value = (String) map.get(key);
		    	System.out.println(key + ": " + value);
		    }
 
			Log.d(TAG, "System.getenv() - STOP");

HTC Desire

System.getProperties() - START
java.vm.version: 1.2.0
java.vendor.url: http://www.android.com/
java.vm.vendor.url: http://www.android.com/
user.dir: /
java.vm.name: Dalvik
java.home: /system
user.region: FR
javax.net.ssl.trustStore: /system/etc/security/cacerts.bks
java.runtime.name: Android Runtime
user.home: 
java.io.tmpdir: /sdcard
http.agent: Dalvik/1.2.0 (Linux; U; Android 2.2; HTC Desire Build/FRF91)
java.net.preferIPv6Addresses: true
java.version: 0
java.boot.class.path: /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/com.htc.framework.jar:/system/framework/com.htc.android.pimlib.jar:/system/framework/com.htc.android.easopen.jar:/system/framework/com.scalado.util.ScaladoUtil.jar
java.library.path: /system/lib
file.separator: /
java.specification.vendor: The Android Project
file.encoding: UTF-8
line.separator: 
java.vm.specification.version: 0.9
java.vm.specification.vendor: The Android Project
os.name: Linux
java.vm.vendor: The Android Project
path.separator: :
android.vm.dexfile: true
java.ext.dirs: 
java.class.path: .
os.version: 2.6.32.15-gf5a401c
java.specification.name: Dalvik Core Library
java.compiler: 
user.language: fr
user.name: 
os.arch: armv7l
java.runtime.version: 0.9
java.class.version: 46.0
java.vendor: The Android Project
java.vm.specification.name: Dalvik Virtual Machine Specification
java.specification.version: 0.9
System.getProperties() - STOP

System.getenv() - START
ANDROID_SOCKET_zygote: 11
ANDROID_BOOTLOGO: 1
EXTERNAL_STORAGE: /mnt/sdcard
ANDROID_ASSETS: /system/app
ASEC_MOUNTPOINT: /mnt/asec
PATH: /sbin:/system/sbin:/system/bin:/system/xbin
ANDROID_DATA: /data
BOOTCLASSPATH: /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/com.htc.framework.jar:/system/framework/com.htc.android.pimlib.jar:/system/framework/com.htc.android.easopen.jar:/system/framework/com.scalado.util.ScaladoUtil.jar
ANDROID_PROPERTY_WORKSPACE: 10,65536
ANDROID_ROOT: /system
LD_LIBRARY_PATH: /system/lib
System.getenv() - STOP

HTC HD2

System.getProperties() - START
java.vm.version: 1.6.0
android.icu.library.version: 4.6
java.vendor.url: http://www.android.com/
java.vm.vendor.url: http://www.android.com/
java.home: /system
java.vm.name: Dalvik
user.dir: /
user.region: FR
android.zlib.version: 1.2.7-motley
java.io.tmpdir: /sdcard
java.runtime.name: Android Runtime
user.home: 
http.agent: Dalvik/1.6.0 (Linux; U; Android 4.0.4; HTC HD2 Build/IMM76D)
java.boot.class.path: /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/filterfw.jar
java.version: 0
java.library.path: /vendor/lib:/system/lib
file.separator: /
java.specification.vendor: The Android Project
file.encoding: UTF-8
line.separator: 
java.vm.specification.version: 0.9
java.vm.specification.vendor: The Android Project
os.name: Linux
android.openssl.version: OpenSSL 1.0.0e 6 Sep 2011
java.vm.vendor: The Android Project
path.separator: :
java.class.path: .
java.ext.dirs: 
java.specification.name: Dalvik Core Library
os.version: 2.6.32-ics_tytung_HWA_r3.3
java.compiler: 
user.language: fr
user.name: 
os.arch: armv7l
java.runtime.version: 0.9
android.icu.unicode.version: 6.0
java.class.version: 50.0
java.vendor: The Android Project
java.vm.specification.name: Dalvik Virtual Machine Specification
java.specification.version: 0.9
System.getProperties() - STOP

System.getenv() - START
ANDROID_SOCKET_zygote: 10
ANDROID_BOOTLOGO: 1
EXTERNAL_STORAGE: /mnt/sdcard
ANDROID_ASSETS: /system/app
ANDROID_CACHE: /cache
ASEC_MOUNTPOINT: /mnt/asec
PATH: /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
LOOP_MOUNTPOINT: /mnt/obb
BOOTCLASSPATH: /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/filterfw.jar
SD_EXT_DIRECTORY: /sd-ext
ANDROID_DATA: /data
ANDROID_PROPERTY_WORKSPACE: 9,49152
ANDROID_ROOT: /system
LD_LIBRARY_PATH: /vendor/lib:/system/lib
System.getenv() - STOP

Samsung Galaxy S4 (GT-I9505)

System.getProperties() - START
java.vm.specification.vendor: The Android Project
java.vm.name: Dalvik
java.vm.specification.version: 0.9
java.vendor.url: http://www.android.com/
user.home: /
java.ext.dirs: 
java.specification.name: Dalvik Core Library
line.separator: 
file.encoding: UTF-8
java.runtime.version: 0.9
user.name: root
file.separator: /
java.compiler: 
java.library.path: /vendor/lib:/system/lib
os.version: 3.4.0-1567293
android.icu.unicode.version: 6.2
java.boot.class.path: /system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/webviewchromium.jar:/system/framework/sec_edm.jar:/system/framework/secocsp.jar:/system/framework/seccamera.jar:/system/framework/scrollpause.jar:/system/framework/stayrotation.jar:/system/framework/smartfaceservice.jar:/system/framework/commonimsinterface.jar:/system/framework/org.codeaurora.Performance.jar
java.vm.specification.name: Dalvik Virtual Machine Specification
java.version: 0
android.icu.library.version: 51.1.0.1
user.region: FR
os.name: Linux
java.class.path: .
os.arch: armv7l
java.io.tmpdir: /data/data/com.placeoweb.project/cache
android.zlib.version: 1.2.8.f-linuxfoundation-mods-v1
user.language: fr
java.specification.vendor: The Android Project
java.vm.version: 1.6.0
java.vm.vendor: The Android Project
java.vendor: The Android Project
http.agent: Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9505 Build/KOT49H)
android.icu.cldr.version: 23.0
android.openssl.version: OpenSSL 1.0.1e 11 Feb 2013
path.separator: :
java.runtime.name: Android Runtime
java.specification.version: 0.9
java.home: /system
java.vm.vendor.url: http://www.android.com/
user.dir: /
java.class.version: 50.0
System.getProperties() - STOP

System.getenv() - START
ANDROID_SOCKET_zygote: 10
EMULATED_STORAGE_SOURCE: /mnt/shell/emulated
SECONDARY_STORAGE: /storage/extSdCard
ANDROID_STORAGE: /storage
ANDROID_BOOTLOGO: 1
EXTERNAL_STORAGE: /storage/emulated/legacy
ANDROID_ASSETS: /system/app
ASEC_MOUNTPOINT: /mnt/asec
PATH: /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
LOOP_MOUNTPOINT: /mnt/obb
BOOTCLASSPATH: /system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/webviewchromium.jar:/system/framework/sec_edm.jar:/system/framework/secocsp.jar:/system/framework/seccamera.jar:/system/framework/scrollpause.jar:/system/framework/stayrotation.jar:/system/framework/smartfaceservice.jar:/system/framework/commonimsinterface.jar:/system/framework/org.codeaurora.Performance.jar
EMULATED_STORAGE_TARGET: /storage/emulated
KNOX_STORAGE: /data/knox/ext_sdcard
ANDROID_DATA: /data
ANDROID_PROPERTY_WORKSPACE: 9,0
ANDROID_ROOT: /system
LD_LIBRARY_PATH: /vendor/lib:/system/lib
VIBE_PIPE_PATH: /dev/pipes
System.getenv() - STOP

Ajouter un commentaire

Le code HTML est affiché comme du texte et les adresses web sont automatiquement transformées.

Fil des commentaires de ce billet