Thread: Connman hacking
View Single Post
Halftux's Avatar
Posts: 878 | Thanked: 2,535 times | Joined on Feb 2012 @ Germany
#1
On Sailfish there is this connman, so for me I heard it the first time. However it seems this is not the only place where connman is used.

Here is some info:
https://01.org/connman
https://wiki.archlinux.org/index.php/ConnMan
http://www.embedded-computing.com/iot/the-connman

Source code:
https://git.merproject.org/mer-core/connman
https://git.merproject.org/mer-core/libconnman-qt
https://github.com/sailfishos/sailfi...lugin-iptables

Example Internet connection through USB:
https://together.jolla.com/question/...n-through-usb/

Looking through our forum I found these bt on and off dbus commands.

https://talk.maemo.org/showpost.php?...33&postcount=4

And you can use the same for wifi and gps too. Just replace the stars with wifi, gps or bluetooth.
on
Code:
dbus-send --system --print-reply --dest=net.connman /net/connman/technology/*** net.connman.Technology.SetProperty string:"Powered" variant:boolean:true
off
Code:
dbus-send --system --print-reply --dest=net.connman /net/connman/technology/*** net.connman.Technology.SetProperty string:"Powered" variant:boolean:false
Ok so far nothing new. What I really would like to know is the control of dhcp and iptables. If somebody know something it would be wounderful.

I looked in the cmst gui for connman and gave it a try. So it is a standard qt widget application so there is not so much to expect only problems and ugly look. But after a little tweeking it is working. I think partially so far I didn't test everything. So I removed the systray and replaced one combobox with listwidget.
So it is worth to look into the source code from cmst if you are interested in connman. Will add my not fully tested experimental binary. Be aware that this app runs as root!!!!

Maybe more to come in the future.
Attached Images
  
Attached Files
File Type: rpm cmst-1.1.19-1.armv7hl.rpm (332.6 KB, 79 views)

Last edited by Halftux; 2019-03-11 at 20:53. Reason: added more links
 

The Following 6 Users Say Thank You to Halftux For This Useful Post: