Project

General

Profile

Graphical app for WiFi connection released [using external adapter]

Added by Fil Bergamo 9 months ago

Updated RepWifi apks:

Latest version: RepWifiApp_v0.5.apk
Signature file: RepWifiApp_v0.5.apk.sig
Source: https://git.replicant.us/contrib/Fil/RepWifiApp/tag/?h=v0.5

Release key

The fingerprint of the GPG key used to sign releases is:

2D36 719C A4B8 3C7A DD9D  33AE A02A 2F68 CD07 CEAD

Installation instructions for version v0.5:

1) Verify the apk:

gpg --verify RepWifiApp_v0.5.apk.sig RepWifiApp_v0.5.apk

Don't go on if signature verification fails!

2) Uninstall previous versions:

adb uninstall fil.libre.repwifiapp

3) Install the apk via:

adb install RepWifiApp_v0.5.apk

If step # 2 fails, it probably means that RepWifi is installed as a system app (i.e. it came pre-installed with Replicant)
If that's the case, only if simple uninstall failed, do the following in place of step # 2:

adb root
adb shell stop
adb shell
su
mount -o remount,rw /system
rm /system/app/RepWifi/RepWifi.apk
mount -o ro,remount /system
exit
exit
adb shell start

Now you can go on with step # 3 to install.

Happy hacking!

[ORIGINAL POST]:
Hi everyone,

I just released the first alpha version of my graphical application for managing wifi connection on Replicant.
source code is hosted on https://git.replicant.us/contrib/Fil/RepWifiApp/
I'm really a noob when it comes to git, so please feel free to point out anything I'm doing wrong.
It was my first commit to any project, ever, so please be patient and help me correct things!

For now, only Replicant 6.0 is supported.
Code for Replicant 4.2 is in a very primitive pre-testing state. Please be patient on that.
I stopped development for 4.2 after the first few test attempts, and turned to R6.0, because on my R4.2 device the situation was very unstable and testing was too stressful.
Support for R4.2 is coming, I promise, but first I will need to make a clean 4.2 installation on my device, hoping to make testing a little less cumbersome.

OTOH, I'm really satisfied about the stability under R6.0.
Everything works fine, featuring:
-network discovery
-connecting to WPA/WPA2 secured networks
-connecting to unsecured networks
-saving network passwords
-viewing and deleting saved network informations.

I'm thinking of a meaningful way to provide a compiled, ready to install, APK..
In the meanwhile, attached to this post is a "debug" APK, signed with my GPG key.
The fingerprint of my key is

2D36 719C A4B8 3C7A DD9D 33AE A02A 2F68 CD07 CEAD

You can import it using

gpg --recv-keys CD07CEAD

Please, verify the fingerprint before trusting any signature.
Also, note that my key should be signed by Paul Kocialkowski, so use that as an additional check.

Then download BOTH the apk AND the signature, and VERIFY it before installing.
To verify:

gpg --verify RepWifiApp.apk.sig RepWifiApp.apk

DO NOT INSTALL the apk if the verification fails!
To install the app, connect your device and type:

adb install RepWifiApp.apk

Everything should be now set up and working.
Connect the external wifi dongle, and follow the basic buttons the app provides!

Please, please, please, send feedback, of any kind!
I need to know how the app performs in the long run.
There are bugs, for sure, so please if you find any, report on them in this thread.
If you shall find that any useful feature is missing, please request it, and I'll do my best to include it in future releases!

Enjoy (alpha) libre WiFi connectivity and, as always..
Happy Hacking!

Fil

RepWifiApp.apk - The app's installation package (479 KB)

RepWifiApp.apk.sig - GPG signature of the APK (543 Bytes)

RepWifiApp_v0.5.apk.sig - Signature file (543 Bytes)

RepWifiApp_v0.5.apk - APK application's package (423 KB)


Replies (41)

RE: Graphical app for WiFi connection released [using external adapter] - Added by Fil Bergamo 6 months ago

Gian-Maria Daffré wrote:

Sorry for all the noise. It works now.

Problem was the low battery as mentioned in the issues here
https://redmine.replicant.us/projects/replicant/wiki/WifiAdapter

F-Droid not working tough, will have to look into it.

Thanks for the work and efforts put into this project!

Best,
Giammi

Hello,

I'm sorry I haven't been able to reply until now.
But I'm glad you found the documented Issue #1791 by yourself. Indeed, your case is probably related to that.
As for F-droid, that's another known Issue #1792.
I'm currently working on that, and I'm confident it will eventually be solved, so keep an eye on #1792!

Please, feel free to ask for further assistance if you need so.

Happy hacking,

Fil

RE: Graphical app for WiFi connection released [using external adapter] - Added by Gian-Maria Daffré 6 months ago

Fil Bergamo wrote:

Hello,

I'm sorry I haven't been able to reply until now.

No problem.

But I'm glad you found the documented Issue #1791 by yourself. Indeed, your case is probably related to that.

Yes, most probably this is the problem. Battery at 10% gave no network list, at 50% no problems.
What might be misleading is also the amount of charge shown on the icon in the status
bar and the real charge amount, shown e.g. after a reboot.

As for F-droid, that's another known Issue #1792.
I'm currently working on that, and I'm confident it will eventually be solved, so keep an eye on #1792!

Yes, saw that one and will keep an eye on it.

Please, feel free to ask for further assistance if you need so.

No questions at the moment. Thanks for your good work.

Best,
Giammi

RE: Graphical app for WiFi connection released [using external adapter] - Added by Wolfgang Wiedmeyer 5 months ago

Ports of Replicant 6.0 for the Galaxy Note and Galaxy Nexus are almost finished. I did some testing with a Wi-Fi adapter. The Galaxy Note is very similar to the S2 and uses the same kernel sources as S2, S3 and Note 2. Due to its large battery, I had hoped that the Note would perform better than the S2 and possibly even better than the S3, but the results are a mixed bag. It can work very well for some time, but it can also be very unstable, similar to the S2, but possibly worse. The battery I have might not be the best as its a second-hand device. This probably contributes to the issues.

Improvements for the S2 performance will very likely also help the Galaxy Note. Another reason for the issues could be that RepWifi fails to wake the dongle from sleep state in some cases. Running ifconfig wlan0 up is maybe not enough in such cases and native code is necessary that directly talks to the driver. Enabling more debugging options in the kernel could also bring more light to this.

Dongles don't yet work with the Galaxy Nexus. It uses different kernel sources with a different driver for the internal Wi-Fi chip.I haven't really looked into it. My guess is that the driver for the internal Wi-Fi chip hijacks the wlan0 interface and thus prevents the dongle from working. It should be possible to fix the driver so the ath9k driver and the driver for the internal chip can coexist. The "hijacking" could also already happen in the Wi-Fi HAL.

RE: Graphical app for WiFi connection released [using external adapter] - Added by Gu W 5 months ago

Hey,

I just stumbled upon this app ( https://play.google.com/store/apps/details?id=de.draisberghof.pppwidget3 ), which is for connecting a USB modem to an Android device. Here the developer writes:

Regarding the last point: modems often draw more power than tablets or phones can deliver. Even if they do with full battery, there may be instabilities if the battery is drained.

I use a cheap OTG Y cable which can employ any generic micro USB power adapter to 'inject' power to the modem while plugged in. Much less drain on the battery !!

Maybe this would be a simple (and maybe even the proper) way to circumvent the battery problem with the external WiFi?

RE: Graphical app for WiFi connection released [using external adapter] - Added by Wolfgang Wiedmeyer 5 months ago

Yes, Tiberiu from Technoethical already mentioned to me that an Y OTG cable provides the best stability. I added a note to the WifiAdapter page.

RE: Graphical app for WiFi connection released [using external adapter] - Added by Tim Suggs 5 months ago

I apologize if this is the wrong place to ask this, but is there currently a way to connect using a hidden SSID in RepWifi? I did not see an option to do so.

RE: Graphical app for WiFi connection released [using external adapter] - Added by Fil Bergamo 5 months ago

Tim Suggs wrote:

I apologize if this is the wrong place to ask this, but is there currently a way to connect using a hidden SSID in RepWifi? I did not see an option to do so.

Hi!

You don't need to apologize, you're in the right place.
Sorry for the late reply.. I've been cut away from the internet for the last 4 weeks..

Currently, there's no way to connect to hidden SSIDs via RepWifi graphical app...
But your need is a nice suggestion. I took note, and will work on including this feature in a next release.

Meanwhile, you could have a look at the scripts
See the wiki page for how to use them.

You could just edit a couple of lines, and manually enter the SSID of the network you want to connect to, instead of having the scripts search for publicized ones.
OR, instead of using select_netwokrk.sh, you could directly use connect.sh providing the SSID and password as arguments, this way:

bash connect.sh "YOUR_HIDDEN_SSID" "YourPassword"

Please, feel free to ask for more info if you need!

Happy hacking,

Fil

RE: Graphical app for WiFi connection released [using external adapter] - Added by Xan VFR 4 months ago

I just bought Technoethical's N150 adapter + OTG and as there's no option to connect to hidden networks yet, I tried showing my hidden network and connected to it. Made it hidden again and when I go to "Manage networks" it's all data there. Would it be an acceptable solution to add a Connect button below wifi data? Would it work?

Another app I guess has issues with no network data enabled is Kontalk. I disabled network data in my S3 while trying RepWifi, restarted Kontalk's messaging center while connected via WiFi and couldn't see any contact's connection updates. I'll report this to Kontalk.

Thank you all guys for your excellent work which gets us one step closer to mobile freedom!

RE: Graphical app for WiFi connection released [using external adapter] - Added by pete mars 3 months ago

Thanks for the brilliant work guys.

This was working great until yesterday when it just stopped working. The app connects to wifi but there seems to be no network activity. No web pages will load and I can't connect with other apps despite RepWifi saying I am connected. I tried deleting the profile and reconnecting but still no joy. The dongle works fine on my Trisquel distro so I don't think it's a problem there.

I also tried connecting through reverse tethering as per the wiki. Again, everything seemed to be connected properly but I got the same response as with the wifi dongle.

I have tried with cellular data on and off.

Has anyone had this before? I am happy to post logs if this helps.

Thanks
Pete

RE: Graphical app for WiFi connection released [using external adapter] - Added by Fil Bergamo 3 months ago

pete mars wrote:

This was working great until yesterday when it just stopped working. The app connects to wifi but there seems to be no network activity. No web pages will load and I can't connect with other apps despite RepWifi saying I am connected.

Hi Pete!

I was expecting someone to point out RepWifi's suddenly not working.
I experienced the same and got myself irritated in trying to debug the cause.

The answer is plain simple:
DNS.
Not very wisely, I put some hard-coded dns addresses into RepWifi, which were two OpenNIC dns servers.
Unfortunately, those servers went down, so no name is being resolved by RepWifi. That's why you're experiencing that misbehaviour.
(BTW, I'm finding that lately OpenNIC servers are performing quite badly in general..)

I'm currently working on major upgrades for RepWifi, which I'll be able to release in a couple of days (hopefully)..
One of the new features will be the ability to manually change DNS servers.

In the meantime, a possible temporary workaround is the following:
To be repeated every time RepWifi connects to an Access Point
1) open a terminal window (default terminal will do), and type the following, after RepWifi has connected:

su
ndc resolver setnetdns 1 <a-working-dns-IP-here> <another-working-dns-IP-here>

Note that "su" is needed, in order to get root privileges, to be able to execute network-related commands.

If you encounter any other difficulties, please let me know.
I'll do my best to try and help!

Please, stay tuned for the upcoming RepWifi release!

RE: Graphical app for WiFi connection released [using external adapter] - Added by pete mars 3 months ago

Brilliant!

Thanks for that, it seems to work for me.

I look forward to the update.

Many many thanks
Pete

RE: Graphical app for WiFi connection released [using external adapter] - Added by Fil Bergamo 3 months ago

Hey folks!

RepWifi version v0.5 is released!
Many new features are included: refer to the changelog

Instructions and APKs are reported on the original post

Happy Hacking!

Fil

RE: Graphical app for WiFi connection released [using external adapter] - Added by pete mars 3 months ago

Brilliant, thanks. It works a charm.

Just to note, the line:

rm /system/app/RepWifi.apk

needed to be:

rm /system/app/RepWifi/RepWifi.apk

for me.

Thanks, Pete

RE: Graphical app for WiFi connection released [using external adapter] - Added by Fil Bergamo 3 months ago

pete mars wrote:

Just to note, the line:

[...]

needed to be:

[...]

Yup! You're right! Sorry, my bad!
I corrected it ;)

RE: Graphical app for WiFi connection released [using external adapter] - Added by Jeremy Rand 2 months ago

Fil Bergamo wrote:

Many new features are included: refer to the changelog

I suspect you intended a different URL for this link.

RE: Graphical app for WiFi connection released [using external adapter] - Added by Fil Bergamo 2 months ago

Jeremy Rand wrote:

Fil Bergamo wrote:

Many new features are included: refer to the changelog

I suspect you intended a different URL for this link.

Indeed!
Thanks for pointing out!
Edited the link, now it's really pointing to the changelog.

Thanks!

(26-41/41)