Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed setWifiState and setDataState for API>19 #157

Closed
wants to merge 1 commit into from

Conversation

SrinivasanTarget
Copy link
Member

This will resolve appium/appium#5256 and this will continue in appium/appium-android-driver#147

@SrinivasanTarget
Copy link
Member Author

@imurchie @jlipps @TikhomirovSergey Please review. This fixes the API to work on all the Android API till API Level 23 (Tested from 19 to 23)

@@ -231,7 +231,6 @@ methods.sendTelnetCommand = async function (command) {
dataStream += data;
if (readyRegex.test(data)) {
res = dataStream.replace(readyRegex, "").trim();
res = _.last(res.trim().split('\n'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this the new Android studio does not work when auto launching the emulator. Is it causing problems?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes with gulp test i was not able to run my code on emulator.But still tested using the adb commands directly through terminal.That works on almost all Android APIs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may need to be more complex, then.

See #150

@imurchie
Copy link
Contributor

I think this should be two PRs, really. One dealing with the wifi/data, and the other making changes to the locale, language, etc. That one seems to need some justification for doing.

@SrinivasanTarget
Copy link
Member Author

@imurchie I see lot of changes related to locale,languages which are not related to this PR.I will resubmit the PR with all latest pull from upstream.Apologies for confusion.

@SrinivasanTarget
Copy link
Member Author

Raised here: #158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AndroidDriver.setNetworkConnection(networkConnectionSetting) is not working on Android 5.0 and above
2 participants