libera/#maemo/ Tuesday, 2021-02-02

KotCzarnyhttps://www.cnx-software.com/2021/02/02/mutantc-v3-open-hardware-diy-umpc-works-with-raspberry-pi-and-compatible-sbcs/07:50
KotCzarnypop some 3g usb modem, and voila!07:50
MaxdamantusWhy does QR code scanning suck so much?07:57
MaxdamantusKeep having trouble trying to scan the COVID tracer codes on the bus here using mBarcode, but it seems to work if I take a photo instead, then display the photo on a large screen at home and again use mBarcode to scan that.07:59
MaxdamantusmBarcode is unable to scan that exact photo. Neither is a recent version of `zbarimg` or `zxing`.07:59
MaxdamantusExample image: https://maxdamantus.eu.org/qrfail.jpg08:03
KotCzarnymaybe photo app uses some smart algos to stabilize image08:08
KotCzarnywhile app isnt that good at it08:08
MaxdamantusMaybe, but mBarcode/zbarimg can't even find the QR code in the image produced by the photo app.08:09
MaxdamantusI suspect there's some colour correction that happens by showing the image again from an LCD.08:10
Maxdamantusmaybe random values of individual pixels are throwing the algorithm off.08:11
KotCzarnymake it b&w and check if it changes anything?08:14
Maxdamantusafaict zbar already converts it to greyscale.08:18
KotCzarnyconvert to 2 colors b&w08:18
KotCzarnyanyway, might be too noisy for app08:19
KotCzarnytry zooming before taking pic?08:20
MaxdamantusmBarcode doesn't seem to let you zoom. It's always zoomed in.08:22
MaxdamantusWill probably have to add some debugging to zbar to figure out what it's actually struggling on.08:23
KotCzarnytoo few pixels for the app to work on, i guess08:24
sicelonice to see a number of people still using N900 as daily :)11:04
siceloMaxdamantus: the 'app' has a website? i'm trying to understand how you would use N900 here, assuming the barcode scanning would have worked11:05
Maxdamantussicelo: the QR code represents some base64-encoded JSON which contains information identifying the location, including a unique "gln" number.11:09
Maxdamantussicelo: and I figured out from the Android app the URL where hashes of glns with positive cases are published.11:10
KotCzarnysicelo: you can always write app yourself, that takes qr data from that site and redirect to proper url11:10
KotCzarnys/site/qr/11:10
infobotKotCzarny meant: sicelo: you can always write app yourself, that takes qr data from that qr and redirect to proper url11:10
Maxdamantusso just have to log those entries along with timestamps, then occasionally poll that URL to see if I'm a close contact.11:10
KotCzarnythe whole point of n900 is hackability11:11
MaxdamantusThe app doesn't send data to a website. It just logs it locally and checks against the known cases as explained above.11:11
MaxdamantusIt was simple enough creating an mBarcode plugin to just append that JSON and current timestamp to a log, and the checking part will also be easy.11:12
sicelothat's nice! *me likey11:12
sicelothe android device was using Android version less than 7 (or 8?)? I noticed that after 7 or 8, mitmproxy doesn't work to get API calls an Android app makes, since it seems those version enforce certificate pinning11:15
siceloor there's newer/better way to get around that, which i don't yet know of :)11:15
KotCzarnysquid + manually added cert ?11:16
MaxdamantusThat will presumably have the same problem as mitmproxy.11:16
MaxdamantusSince it's still not using the pinned public key.11:17
MaxdamantusFrom what I understand of certificate pinning, pinning itself is probably a bad idea.11:25
MaxdamantusI suspect if they're doing something reasonable, it's probably just changing the set of trusted certificates.11:25
Maxdamantusie, only trusting a particular certificate, or only trusting certificates with particular public keys.11:25
Maxdamantus"pinning" to me sounds like where a key is set by a protocol, rather than provided as part of the OS/application, just like any "trusted" certificates are provided.11:27
MaxdamantusThe question is just whether you're able to add your own trusted certificate/key. If it's using Android's default trusted certificates, I suspect that's a yes because you can probably add your own CA cert to be trusted, but if it's bundling its own cert and only trusting that, you'd need to replace that bundled cert.11:28
siceloi also don't remember the details now, but iirc the apps contain some cert for sure11:35
MaxdamantusRight, so it just trusts its own cert instead of the Android-provided certs.11:37
Maxdamantus(which imo is a reasonable thing to do sometimes)11:37
KotCzarnyedit the binary to insert own cert?11:38
siceloyes11:42
siceloa bigger job :p11:42
siceloif you have older android, and the app works there, that's the quickest way around it. a rooted device also can help (but my Sprint S7 is unrootable)11:45
halftuxjuiceme: I found the association rules for maemo e.V. it is in our wiki http://wiki.maemo.org/MaemoCommunity_eV I forgot about it. There you could find the rules about voting, and also a regular agenda of a meeting it looks like the last meeting was in 201718:48
siceloyeah :(18:52
sicelonice to see you here btw - slight nitpick - why the html emails?18:53
halftuxnot all were html only the replies I think sorry for that18:55
halftuxI think if we would like to keep this e.V. we should act fast...18:58
sicelo+118:59
halftuxsicelo: do you have a droid 4 (XT894)?19:35
siceloyes :)19:42
halftuxand leste running fine? I wasn't able to get this kexecboot running :( Tried also different fastboot version. You did the same procedure from wiki?19:44
siceloyes it's working fine (although these days i'm playing more with plain debian+sway on my N900 instead)19:47
siceloi used the same procedure. there's also #maemo-leste if you want to join. you'll get quicker help there19:48
halftuxoh I see. Never tried sway. Which debian version?19:49
sicelosid19:49
siceloat what point do you get issues with the droid 4 procedure?19:51
siceloi'll move to debian on the droid 4 at some point since it's better/faster hardware - i just did it on N900 just for fun initially -just to see if wayland would really run on it19:52
halftuxit looks everything fine only that I get no sign that kexecboot kicks in and is booting from sdcard19:52
halftuxso it boots everytime to android :(19:53
sicelook. but do you see the kexecboot menu? i guess from your comment, no19:53
halftuxno19:54
siceloso i think the uSD card is fine. your issue is somewhere with kexecboot.19:55
halftuxfastboot reports no error but I have the feeling that the bootloader is not replaced and I flashed this allow-mbmloader before19:55
siceloi did this procedure more than a year ago, so i have forgotten some stuff. but i would recommend joinig #maemo-leste. they'll help19:58
halftuxWhen I have some time I will try it again and therefore I will join maemo-leste channel...19:59
sicelocool :)19:59
siceloleste runs really well on it (droid 4)19:59
sicelothere are still a few issues here and there, but some refer to it as the Leste 'flagship'20:00
halftuxI can imagine and I would really like to tried it20:00
halftuxtry20:00
siceloi actually wanted to port some of the programs you maintain for Fremantle, e.g. cutenews - then sway happened and i got distracted20:02
halftuxfor development it is also better to have different screen sizes. For the N900 I was so lasy that I everytime choosed a fixed resolution20:02
siceloLeste uses Qt5, which is quite nice, since more s/w can run20:02
halftuxyes I tried already things in VM and N900 with leste. I can also use there things which I developed in qt5 (widgets) for sailfish20:06
sicelomaybe you would like to upload them to the Leste repos as well - it's open access20:07
halftuxI think qt5 package needs still some fine tuning for leste (last time I tried, already long ago), but it is really time consuming to fix/expand qt5, I have the feeling everytime when I have some time I start from the beginning to analyse the source code. I uploaded already one application to leste repos. When I got this droid 4 running I suppose more will follow.20:15
sicelooh great!20:20
siceloheh, i just tried running mutter/wayland on N900. working good it seems - of course it's not full-blown gnome20:20
parazydhalftux: You might get more support in #maemo-leste btw ;)23:14

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!