Skip to content

Conversation

@atm1504
Copy link
Member

@atm1504 atm1504 commented Jun 13, 2019

Fixes #1743
Fixes #2268

Changes:
Fixed the error that prevented the app to connect the smart speaker to open wifi.
Now users can connect to open wifi simply by clicking next in the wifi password prompt.

Screenshots for the change:
ezgif com-video-to-gif

@auto-label auto-label bot added the fix label Jun 13, 2019
@atm1504
Copy link
Member Author

atm1504 commented Jun 13, 2019

@norbusan
Copy link
Member

I asked for access via my gmail account to the apk, thanks

@atm1504
Copy link
Member Author

atm1504 commented Jun 14, 2019

I asked for access via my gmail account to the apk, thanks

I have updated the link. Please check now. It won't ask for permission. Sorry for the inconvenience caused.

@atm1504
Copy link
Member Author

atm1504 commented Jun 14, 2019

Apk:
app-fdroid-debug.apk.zip

@norbusan
Copy link
Member

@atm1504 same with the .apk from the zip. I unzipped it, downloaded it via dropbox to my phone, and tried to install it using x-plore (fs manager, I use often for isntalling apks).

This is Android 9, Huawei Mate 10 Pro.

@iamareebjamal
Copy link
Member

@norbusan What failed while installing?

@norbusan
Copy link
Member

@iamareebjamal How can I know? It starts installing, and then sqitches to a screen "Installation has failed" ...

@iamareebjamal
Copy link
Member

@atm1504 Have you given unsigned APK?

@atm1504
Copy link
Member Author

atm1504 commented Jun 15, 2019

@atm1504 Have you given unsigned APK?

No

@norbusan
Copy link
Member

Hmmm, strange. Any tip how one can debug that?

@atm1504
Copy link
Member Author

atm1504 commented Jun 15, 2019

Can you please try out a different package installer other than the one you are using now. : )

@norbusan
Copy link
Member

Re-downloaded the zip, tried with Huawei's "Files", and then again with Firefox downloader ... all with the same effect.

@iamareebjamal
Copy link
Member

iamareebjamal commented Jun 15, 2019

@atm1504 Come on, there is a single package manager on Android, there is no other option. You've got to know that

Did you download and try installing yourself?

@atm1504
Copy link
Member Author

atm1504 commented Jun 15, 2019

@atm1504 Come on, there is a single package manager on Android, there is no other option. You've got to know that

Did you download and try installing yourself?

Yes, I did so. It worked fine in both of the devices that I used.

@ci-reporter
Copy link

ci-reporter bot commented Jun 17, 2019

The build is failing

✨ Good work on this PR so far! ✨ Unfortunately, the Circle CI build is failing as of 75ce24f. Here's the output:

Run Tests
> Task :app:preBuild UP-TO-DATE

I'm sure you can fix it! If you need help, don't hesitate to ask a maintainer of the project!


Failed build for c3cac80
Run Tests
> Task :app:preBuild UP-TO-DATE

This comment was automagically generated by ci-reporter. If you see a problem, open an issue here.

@ci-reporter
Copy link

ci-reporter bot commented Jun 17, 2019

The build is failing

✨ Good work on this PR so far! ✨ Unfortunately, the Circle CI build is failing as of c3cac80. Here's the output:

Run Tests
> Task :app:preBuild UP-TO-DATE

I'm sure you can fix it! If you need help, don't hesitate to ask a maintainer of the project!


This comment was automagically generated by ci-reporter. If you see a problem, open an issue here.

Copy link
Member

@iamareebjamal iamareebjamal left a comment

Choose a reason for hiding this comment

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

If you are suffering from fever, the doctor doesn't kill you to end the disease

@iamareebjamal
Copy link
Member

The change in this PR has no relation to the issue it is solving

@atm1504
Copy link
Member Author

atm1504 commented Jun 18, 2019

The change in this PR has no relation to the issue it is solving

I debugged the code. The error was mentioning about failing to connect because of clear text communication. Google search reveals that it occurs because of local connections. And we cannot use https in local, we always have http. To overcome this error, we need to take a special permission in manifest. That is what I added. Also, I faced similar issue in an app of my college and solved that in the same way. The app works on intranet of campus (http connection?)

@iamareebjamal
Copy link
Member

The error you mentioned only happens on P+ Android devices. Is it working on lower versions.

Secondly, the solution is to whitelist IPs and not allow cleartext communication by default

@atm1504
Copy link
Member Author

atm1504 commented Jun 18, 2019

The error you mentioned only happens on P+ Android devices. Is it working on lower versions.

Secondly, the solution is to whitelist IPs and not allow cleartext communication by default

I did found the error in oreo also.

Okk, so u mean what i should do is that only allow those particular ip's to have clear text communication, rather then allowing all.

@atm1504
Copy link
Member Author

atm1504 commented Jun 19, 2019

@iamareebjamal @batbrain7 @arundhati24 please review it.

<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">10.0.0.1:5000</domain>
<domain includeSubdomains="true">ipinfo.io</domain>
<domain includeSubdomains="true">api.duckduckgo.com</domain>
Copy link
Member

Choose a reason for hiding this comment

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

Remove last 2, replace with https

@iamareebjamal
Copy link
Member

Have you now verified that it is working?

@atm1504
Copy link
Member Author

atm1504 commented Jun 19, 2019

Apk: app-fdroid-debug.apk.zip

@iamareebjamal I have tested this apk, after the change, it's working now.

@atm1504
Copy link
Member Author

atm1504 commented Jun 20, 2019

@iamareebjamal @batbrain7 @arundhati24 please review it. I cannot move further with pr #2267 until this is merged. : )

@atm1504 atm1504 mentioned this pull request Jun 20, 2019
@iamareebjamal iamareebjamal merged commit 6fe2e14 into fossasia:development Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Communication to ipinfo.io is not permitted by network policy To allow the WiFi config to not have a password for networks without a password

3 participants