Created
December 5, 2019 06:09
-
-
Save jianbin91/43748093a3efce155ace8da6f419ed22 to your computer and use it in GitHub Desktop.
set android language as english with auto.js
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
auto (); | |
console.log("begin start"); | |
toast ("hello world cool"); | |
// waitForActivity("com.android.settings.LanguageSettings") | |
openDev = function () { | |
app.startActivity({ | |
action: "android.intent.action.VIEW", //此处可为其他值 | |
packageName: "com.android.settings", | |
className: "com.android.settings.Settings$DevelopmentSettingsActivity" | |
//此处可以加入其他内容,如data、extras | |
}); | |
} | |
openDev2 = function () { | |
app.startActivity({ | |
action: "android.settings.LOCALE_SETTINGS", //此处可为其他值 | |
}); | |
} | |
openDev2(); | |
while(!click("English")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment