javascript plugin Error : このプラグインで利用できない命令または文字列が入っています。
javascript plugin Error : このプラグインで利用できない命令または文字列が入っています。

setprop と getprop


※上記の広告は60日以上更新のないWIKIに表示されています。更新することで広告が下部へ移動します。

Android に強く関連する設定(プロパティ)は、setprop コマンドによって設定できる。設定した内容は、 getprop で確認できる。Android のアプリは、System.getProperty() と System.setProperty() によって、同様の操作ができるらしい。

一部のアプリは、システム上の情報を読み取って、機種判別を行い起動制限を行っている場合がある。恐らく、setprop で情報を書き換えることで、起動制限の回避ができる可能性がある。

実行方法

getprop <property name>
setprop <property name> <property value>

getprop (POV v1.07.4) の実行結果

# getprop
[ro.secure]: [0]
[ro.allow.mock.location]: [1]
[ro.debuggable]: [1]
[persist.service.adb.enable]: [1]
[persist.tegra.dpy5.mode.width]: [1920]
[persist.tegra.dpy5.mode.height]: [1080]
[EXTERNAL_STORAGE_MOUNT]: [/mnt/sdcard]
[ro.opengles.version]: [131072]
[ro.factorytest]: [0]
[ro.serialno]: []
[ro.bootmode]: [unknown]
[ro.baseband]: [unknown]
[ro.carrier]: [unknown]
[ro.bootloader]: [unknown]
[ro.hardware]: [nvidia]
[ro.revision]: [0]
[mbm.gps.config.gps_ctrl]: [/dev/cdc-wdm0]
[mbm.gps.config.gps_nmea]: [/dev/ttyACM2]
[mbm.gps.config.gps_pref_mode]: [MEGPS]
[mbm.gps.config.supl.enable_ni]: [yes]
[mbm.gps.config.supl.username]: [test]
[mbm.gps.config.supl.password]: [test]
[ro.kernel.gps.data]: [/dev/ttyUSB3]
[ro.kernel.gps.ctl]: [/dev/ttyUSB4]
[ro.build.id]: [FRF91]
[ro.build.display.id]: [harmony-eng 2.2 FRF91 20110105.135338 test-keys]
[ro.build.version.incremental]: [20110105.135338]
[ro.build.version.sdk]: [8]
[ro.build.version.codename]: [REL]
[ro.build.version.release]: [2.2]
[ro.build.date]: [三  1月  5 13:54:27 CST 2011]
[ro.build.date.utc]: [1294206867]
[ro.build.type]: [eng]
[ro.build.user]: [derek]
[ro.build.host]: [derek-server]
[ro.build.tags]: [test-keys]
[ro.product.model]: [TAB-TEGRA-10-1]
[ro.product.brand]: [nvidia]
[ro.product.name]: [harmony]
[ro.product.device]: [harmony]
[ro.product.board]: [harmony]
[ro.product.cpu.abi]: [armeabi-v7a]
[ro.product.cpu.abi2]: [armeabi]
[ro.product.manufacturer]: [nvidia]
[ro.product.locale.language]: [en]
[ro.product.locale.region]: [US]
[ro.wifi.channels]: []
[ro.board.platform]: [tegra]
[ro.build.product]: [harmony]
[ro.build.description]: [harmony-eng 2.2 FRF91 20110105.135338 test-keys]
[ro.build.fingerprint]: [nvidia/harmony/harmony/harmony:2.2/FRF91/20110105.135338:eng/test-keys]
[ro.config.notification_sound]: [OnTheHunt.ogg]
[ro.config.alarm_alert]: [Alarm_Classic.ogg]
[media.stagefright.enable-player]: [true]
[media.stagefright.enable-meta]: [true]
[media.stagefright.enable-scan]: [true]
[media.stagefright.enable-http]: [true]
[ro.config.sync]: [no]
[ro.media.dec.vid.wmv.enabled]: [1]
[ro.media.dec.aud.wma.enabled]: [1]
[ro.media.enc.hprof.file.format]: [3gp]
[ro.media.enc.hprof.aud.hz]: [44100]
[ro.media.enc.hprof.aud.ch]: [2]
[ro.media.enc.hprof.codec.aud]: [aac]
[ro.media.enc.hprof.aud.bps]: [128000]
[ro.browser.useragent]: [1]
[persist.service.mount.umsauto]: [1]
[ro.setupwizard.mode]: [OPTIONAL]
[net.bt.name]: [Android]
[net.change]: [net.dnschange]
[dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
[persist.sys.country]: [JP]
[persist.sys.language]: [ja]
[persist.sys.timezone]: [Asia/Tokyo]
[persist.sys.localevar]: []
[persist.tegra.nvlog.level]: [4]
[ro.FOREGROUND_APP_ADJ]: [0]
[ro.VISIBLE_APP_ADJ]: [1]
[ro.SECONDARY_SERVER_ADJ]: [2]
[ro.BACKUP_APP_ADJ]: [2]
[ro.HOME_APP_ADJ]: [4]
[ro.HIDDEN_APP_MIN_ADJ]: [7]
[ro.CONTENT_PROVIDER_ADJ]: [14]
[ro.EMPTY_APP_ADJ]: [15]
[ro.FOREGROUND_APP_MEM]: [1536]
[ro.VISIBLE_APP_MEM]: [2048]
[ro.SECONDARY_SERVER_MEM]: [4096]
[ro.BACKUP_APP_MEM]: [4096]
[ro.HOME_APP_MEM]: [4096]
[ro.HIDDEN_APP_MEM]: [5120]
[ro.CONTENT_PROVIDER_MEM]: [5632]
[ro.EMPTY_APP_MEM]: [6144]
[net.tcp.buffersize.default]: [4096,87380,110208,4096,16384,110208]
[net.tcp.buffersize.wifi]: [4095,87380,110208,4096,16384,110208]
[net.tcp.buffersize.umts]: [4094,87380,110208,4096,16384,110208]
[net.tcp.buffersize.edge]: [4093,26280,35040,4096,16384,35040]
[net.tcp.buffersize.gprs]: [4092,8760,11680,4096,8760,11680]
[init.svc.console]: [running]
[init.svc.servicemanager]: [running]
[init.svc.vold]: [running]
[init.svc.netd]: [running]
[init.svc.debuggerd]: [running]
[init.svc.ril-daemon-e]: [stopped]
[init.svc.ril-daemon-h]: [running]
[init.svc.zygote]: [running]
[init.svc.media]: [running]
[init.svc.dbus]: [running]
[init.svc.installd]: [running]
[init.svc.keystore]: [running]
[init.svc.nvrm_daemon]: [running]
[init.svc.dhcpcd_usb0]: [stopped]
[init.svc.otad]: [running]
[wifi.interface]: [wlan0]
[init.svc.adbd]: [running]
[dhcp.usb0.pid]: [921]
[init.svc.bootanim]: [stopped]
[sys.settings_system_version]: [1]
[hw.keyboards.65536.devname]: [qwerty]
[net.hostname]: [android_9774d56d682e549c]
[hw.keyboards.65540.devname]: [gpio-keys]
[dev.bootcomplete]: [1]
[wlan.driver.status]: [ok]
[init.svc.wpa_supplicant]: [running]
[gsm.sim.operator.numeric]: []
[gsm.sim.operator.alpha]: []
[gsm.sim.operator.iso-country]: []
[gsm.sim.state]: [UNKNOWN]
[gsm.current.phone-type]: [1]
[gsm.operator.alpha]: []
[gsm.operator.numeric]: []
[gsm.operator.iso-country]: []
[gsm.operator.isroaming]: [false]
[dhcp.wlan0.result]: [ok]
[init.svc.dhcpcd]: [running]
[dhcp.wlan0.pid]: [2408]
[dhcp.wlan0.reason]: [BOUND]
[ro.runtime.firstboot]: [1295655919402]
[dhcp.wlan0.dns1]: [192.168.13.1]
[net.dns1]: [192.168.13.1]
[dhcp.wlan0.dns2]: []
[net.dns2]: []
[dhcp.wlan0.dns3]: []
[net.dns3]: []
[dhcp.wlan0.dns4]: []
[net.dns4]: []
[dhcp.wlan0.ipaddress]: [192.168.13.7]
[dhcp.wlan0.gateway]: [192.168.13.1]
[dhcp.wlan0.mask]: [255.255.255.0]
[dhcp.wlan0.leasetime]: [172800]
[dhcp.wlan0.server]: [192.168.13.1]
[net.dnschange]: [4]
[adb.connected]: [1]
[sys.settings_secure_version]: [4]

参照

http://letsgoustc.spaces.live.com/?_c11_BlogPart_pagedir=Last&_c11_BlogPart_BlogPart=blogview&_c=BlogPart&partqs=cat%3DGoogle%2520Android
http://rxwen.wordpress.com/2010/01/07/android-property-system/
|新しいページ|検索|ページ一覧|RSS|@ウィキご利用ガイド | 管理者にお問合せ
|ログイン|