termux-wifi-connectionstate missing permission ACCESS_FINE_LOCATION to report right BSSID and SSID out of the box on Android 9
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
First of all, thank you for your work on this impressive piece of software - I really appreciate it!
Problem description
Executing termux-wifi-connectionstate on a fresh install of termux on Android 9 (Pie) does not yield the correct BSSID and SSID values, but 02:00:00:00:00:00 as BSSID and some placeholder value (something like "HIDDEN"); after some reading, I assumed a missing permission problem.
I then ran termux-location, granted the permission ACCESS_FINE_LOCATION through the dialog, and retried termux-wifi-connectionstate, which now produced the right values for BSSID and SSID. I therefore assume that for proper operation of termux-wifi-connectionstate out-of-the-box, the permission has to be requested here as well.
Steps to reproduce
- Do a clean install of termux & termux-api; possibly, revoking an existing permission ACCESS_FINE_LOCATION might suffice.
- Execute termux-wifi-connectionstate while connected to a WLAN with known BSSID and SSID values and compare them to the output.
Expected behavior
- On a fresh install / missing permission on Android 9 (Pie), a permission dialog on ACCESS_FINE_LOCATION such as with termux-location, and correct BSSID & SSID values when the permission is granted out-of-the-box, without having to know about and execute the termux-location workaround to obtain the permission.
Additional information
$ termux-info
Updatable packages:
busybox/stable 1.30.1-2 aarch64 [upgradable from: 1.30.1-1]
ca-certificates/stable 20190515 all [upgradable from: 20190124]
dpkg/stable 1.19.4-3 aarch64 [upgradable from: 1.19.4-2]
libandroid-support/stable 24-6 aarch64 [upgradable from: 24-5]
libiconv/stable 1.16 aarch64 [upgradable from: 1.15-3]
ncurses/stable 6.1.20181117-5 aarch64 [upgradable from: 6.1.20181117-3]
readline/stable 8.0-2 aarch64 [upgradable from: 8.0]
Subscribed repositories:
https://dl.bintray.com/grimler/science-packages-24 science/stable
https://dl.bintray.com/grimler/game-packages-24 games/stable
https://dl.bintray.com/termux/termux-packages-24 stable/main
System information:
Linux localhost 3.18.120-perf #1 SMP PREEMPT Tue Apr 2 00:01:47 CST 2019 aarch64 Android
Termux-packages arch:
aarch64
Android version:
9
Device manufacturer:
HMD Global
Device model:
TA-1021
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue on Android 9 with a fresh Termux and termux-api installation, running termux-wifi-connectionstate while connected to a known WLAN. Compare its permission behavior with termux-location, then verify that the command reports the correct BSSID and SSID after the location permission is granted without using the workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100