For automated testing (using Hudson) I have a script that generates a bunch of emulators for many combinations of Android OS version, screen resolution, screen density and language.
This works fine, except for the language part.
我需要找到一种办法,自动改变本地的安乐系统。 在这方面,我可以认为,为了优先起见:
- Extracting/editing/repacking a QEMU image directly before starting the emulator
- Running some sort of system-locale-changing APK on the emulator after startup
- Changing the locale settings on the emulator filesystem after startup
- Changing the locale settings in some SQLite DB on the emulator after startup
- Running a key sequence (via the emulator s telnet interface) that would open the settings app and change the locale
- Manually starting the emulator for each platform version, changing the locale by hand in the settings, saving it and archiving the images for later deployment
任何想法,无论是通过上述方法还是通过其他方式,都能够做到?
你们是否知道系统是否坚持/利用当地环境?
Solution:
Thanks to dtmilano s info about the relevant properties, and some further investigation on my part, I came up with a solution even better and simpler than all the ideas above!
我将他的回答与细节作了更新。