模拟器都是安卓系统,雷电,逍遥,夜神,蓝叠模拟器等等,我们在Android中通常有三种方式置和获取属性: 1、Native代码2、Java代码3、Shell脚本;Android提供了命令行工具setprop和getprop来设置和获取属性,他们可以在脚本中被使用,这里我们获取逍遥模拟器的系统信息,便于我们去写中控。每种模拟器的返回信息,不完全相同,参考看一下雷电的:
getprop导出雷电模拟器Android系统的build.prop信息
[app.setupwizard.disable]: [0]
[dalvik.vm.appimageformat]: [lz4]
[dalvik.vm.dex2oat-Xms]: [64m]
[dalvik.vm.dex2oat-Xmx]: [512m]
[dalvik.vm.dexopt-flags]: [m=y]
[dalvik.vm.heapgrowthlimit]: [192m]
[dalvik.vm.heapmaxfree]: [8m]
[dalvik.vm.heapminfree]: [512k]
[dalvik.vm.heapsize]: [256m]
[dalvik.vm.heapstartsize]: [16m]
[dalvik.vm.heaptargetutilization]: [0.75]
[dalvik.vm.image-dex2oat-Xms]: [64m]
[dalvik.vm.image-dex2oat-Xmx]: [64m]
[dalvik.vm.isa.x86.features]: [default]
[dalvik.vm.isa.x86.variant]: [x86]
[dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
[dalvik.vm.usejit]: [true]
[dalvik.vm.usejitprofiles]: [true]
[debug.atrace.tags.enableflags]: [0]
[debug.force_rtl]: [0]
[dev.bootcomplete]: [1]
[gsm.current.phone-type]: [1]
[work.type]: [Unknown]
[gsm.operator.alpha]: [China Mobile GSM]
[gsm.operator.iso-country]: [cn]
[gsm.operator.isroaming]: [false]
[gsm.operator.numeric]: [46000]
[gsm.sim.operator.alpha]: [China Mobile GSM]
[gsm.sim.operator.iso-country]: [cn]
[gsm.sim.operator.numeric]: [46000]
[gsm.sim.state]: [READY]
[gsm.version.baseband]: [G9300ZCU2API3]
[gsm.version.ril-impl]: [android reference-ril 1.0]
[init.svc.adbd]: [running]
[init.svc.audioserver]: [running]
[init.svc.bootanim]: [stopped]
[init.svc.cameraserver]: [running]
[init.svc.console]: [running]
[init.svc.debuggerd]: [running]
[init.svc.drm]: [running]
[init.svc.gatekeeperd]: [running]
[init.svc.healthd]: [running]
[init.svc.installd]: [running]
[init.svc.keystore]: [running]
[init.svc.lmkd]: [running]
[init.svc.logd]: [running]
[init.svc.logd-reinit]: [stopped]
[init.svc.media]: [running]
[init.svc.mediacodec]: [running]
[init.svc.mediadrm]: [running]
[init.svc.mediaextractor]: [running]
[init.svc.nativebridge]: [stopped]
[d]: [running]
[init.svc.ril-daemon]: [running]
[init.svc.run]: [running]
[init.svc.servicemanager]: [running]
[init.svc.su_daemon]: [running]
[init.svc.surfaceflinger]: [running]
[init.svc.systemd]: [running]
[init.svc.ueventd]: [running]
[init.svc.vold]: [running]
[init.svc.wpa_supplicant]: [running]
[init.svc.zygote]: [running]
[keyguard.no_require_sim]: [true]
[locale_keyboard]: [en,zh,nl,hi,in,ja,ko,ms,fa,pl,ro,th,ur,vi,tl,km,my,lo]
[net.bt.name]: [Android]
[net.change]: [net.dns2]
[net.dns1]: [fe80::1%wlan0]
[net.dns2]: [192.168.3.1]
[net.hostname]: [android-2c98da8b87c40cde]
[net.qtaguid_enabled]: [0]
[net.tcp.default_init_rwnd]: [60]
[persist.service.adb.enable]: []
[persist.sys.country]: [CN]
[persist.sys.dalvik.vm.lib.2]: [libart.so]
[persist.sys.gps.lpp]: []
[persist.sys.language]: [zh]
[persist.sys.locale]: [zh-CN]
[persist.sys.nativebridge]: [1]
[persist.sys.profiler_ms]: [0]
[persist.sys.strictmode.disable]: [1]
[persist.sys.strictmode.visual]: [0]
[persist.sys.timezone]: [Asia/Shanghai]
[persist.sys.usb.config]: [none]
[persist.sys.webview.vmsize]: [151052512]
[pm.dexopt.ab-ota]: [speed-profile]
[pm.dexopt.bg-dexopt]: [speed-profile]
[pm.dexopt.boot]: [verify-profile]
[pm.dexopt.core-app]: [speed]
[pm.dexopt.first-boot]: [interpret-only]
[pm.dexopt.forced-dexopt]: [speed]
[pm.dexopt.install]: [interpret-only]
[pm.dexopt.nsys-library]: [speed]
[pm.dexopt.shared-apk]: [speed]
[rild.libargs]: [-d /dev/ttyS0]
[rild.libpath]: [/system/lib/libreference-ril.so]
[ro.adb.secure]: [1]
[ro.alarm.volume.adjustable]: [true]
[ro.allow.mock.location]: [0]
[ro.baseband]: [unknown]
[ro.board.platform]: [gmin]
[ro.boot.console]: [tty0]
[ro.boot.hardware]: [intel]
[ro.bootimage.build.date]: [Thu Jul 30 15:05:25 CST ]
[ro.bootimage.build.date.utc]: [1596092725]
[ro.bootloader]: [uboot]
[ro.bootmode]: [fastboot]
[ro.build.characteristics]: [tablet]
[ro.build.date]: [Thu Jul 30 15:05:25 CST ]
[ro.build.date.utc]: [1596092725]
[ro.build.description]: [OPPO-user 7.1.2 1130.276299 release-keys]
[ro.build.display.id]: [OPPO-user 7.1.2 1130.276299 release-keys]
[ro.build.fingerprint]: [OPPO/OPPO/PCRT00:7.1.2/1130.376229:user/release-keys]
[ro.build.flavor]: [PCRT00]
[ro.build.host]: [se.infra]
[ro.build.id]: [N2G48H]
[ro.build.product]: [PCRT00]
[ro.build.tags]: [release-keys]
[ro.build.type]: [user]
[ro.build.user]: [OPPO]
[ro.build.version.all_codenames]: [REL]
[ro.build.version.base_os]: []
[ro.build.version.codename]: [REL]
[ro.build.version.incremental]: [rel.se.infra.2030.150525]
[ro.build.version.preview_sdk]: [0]
[ro.build.version.release]: [7.1.2]
[ro.build.version.sdk]: [25]
[ro.build.version.security_patch]: [-10-05]
[ro.carrier]: [unknown]
[ro.channel]: [7c8b0000]
[.android.dataroaming]: [true]
[.google.locationfeatures]: [1]
[ro.config.alarm_alert]: [Alarm_Classic.ogg]
[ro.config.notification_sound]: [pixiedust.ogg]
[ro.config.ringtone]: [Ring_Synth_04.ogg]
[ro.config.sync]: [yes]
[ro.crypto.fuse_sdcard]: [true]
[ro.crypto.state]: [unencrypted]
[ro.dalvik.vm.isa.arm]: [x86]
[ro.dalvik.vm.native.bridge]: [libnb.so]
[ro.debuggable]: [0]
[ro.device.caps.acc]: [on]
[ro.device.caps.bat]: [on]
[ro.device.caps.cam]: [on]
[ro.device.caps.did]: [on]
[ro.device.caps.gps]: [on]
[ro.device.caps.rmt]: [on]
[ro.device.caps.scr]: [on]
[ro.device_owner]: [false]
[ro.enable.native.bridge.exec]: [1]
[ro.hardware]: [qcom]
[ro.hav]: [1]
[ro.hw.mainkeys]: [1]
[ro.opengles.version]: [196608]
[ro.product.board]: [SM7250-AB-]
[ro.product.brand]: [OPPO]
[ro.product.cpu.abi]: [x86]
[ro.product.cpu.abilist]: [x86,armeabi-v7a,armeabi]
[ro.product.cpu.abilist32]: [x86,armeabi-v7a,armeabi]
[ro.product.cpu.abilist64]: []
[ro.product.device]: [PCRT00]
[ro.product.locale]: [en-US]
[ro.product.manufacturer]: [OPPO]
[ro.product.model]: [PCRT00]
[ro.product.name]: [PCRT00]
[ro.radio.noril]: [no]
[ro.radio.use-ppp]: [no]
[ro.render]: [1]
[ro.revision]: [0]
[ro.ril.gprsclass]: [10]
[ro.ril.hsxpa]: [1]
[ro.runtime.firstboot]: [1622000115692]
[ro.secure]: [1]
[ro.serialno]: [34503917]
[ro.sf.lcd_density]: [133]
[ro.simulated.phone]: [false]
[ro.version]: [7.5.2]
[ro.wifi.channels]: []
[ro.zygote]: [zygote64_32]
[security.perf_harden]: [1]
[selinux.reload_policy]: [1]
[service.bootanim.exit]: [1]
[status.battery.level]: [5]
[status.battery.level_raw]: [50]
[status.battery.level_scale]: [9]
[status.battery.state]: [Slow]
[sys.boot_completed]: [1]
[sys.logbootcomplete]: [1]
[sys.media.vdec.drop]: [0]
[sys.sysctl.extra_free_kbytes]: [2812]
[sys.sysctl.tcp_def_init_rwnd]: [60]
[sys.usb.config]: [none]
[sys.usb.configfs]: [0]
[sys.usb.state]: [none]
[testing.mediascanner.skiplist]: [/storage/emulated/0/Android/]
[vold.has_adoptable]: [0]
[vold.post_fs_data_done]: [1]
[wifi.interface]: [wlan0]
[wifi.interface.mac]: [c0:ef:58:d2:95:97]
[wlan.driver.status]: [ok]