libera/#maemo-leste/ Saturday, 2022-12-17

Wizzuphttps://twitter.com/jkepler/status/160313792356991795310:28
Wizzupfreemangordon: I guess we try to store this in cal, and it just doesn't work on other devices10:29
freemangordonright10:30
freemangordonwe have to come-up with CAL replacement10:30
freemangordonor teach libcal to use some file if CAL partition is not available10:31
freemangordonI think this is more sane10:31
freemangordonwe can just use nandsim and call it a day10:32
Wizzupnandsim on microsd?10:34
freemangordonnandsim on a loopback10:34
freemangordonor, have a dedicated uSD partition10:35
Wizzupwould this be encrypted, or, what's the idea here?10:35
freemangordonI guess having file is better10:35
Wizzupdoes the n900 contain a hash of the lock code?10:35
Wizzupon cal?10:35
freemangordonyes10:35
Wizzupand I guess it can just be read out?10:36
freemangordonyes10:36
Wizzupok10:36
freemangordonthe point is emulating CAL is not having to rewrite a couple of libs10:36
freemangordonalso, before replacing CAL we have to come up with a replacement :)10:36
freemangordonlike - where to store the data?10:37
WizzupI've made this: https://github.com/maemo-leste/bugtracker/issues/684 - let's discuss in irc and summarise there10:37
Wizzupwhere is cal used, other than for lock codes?10:37
Wizzuplike, what other data is stored10:37
freemangordonsome certificates, iirc10:38
freemangordonbattery calibration data10:38
freemangordonwlan calibration10:38
freemangordonBT/wlan mac addresses10:38
freemangordondevice/os data (device type, os release, etc)10:39
freemangordonor, we can do nandsim specific per device10:40
freemangordonand reuse some of the android partitions, somehow10:40
WizzupI don't think we want to re-use android partitions10:40
WizzupI'd much prefer loopback to any physical partition reuse10:40
freemangordonloopback on a file on abdroid partition was my idea10:41
freemangordon*android10:41
freemangordonthat way reinstalling leste will not lead to data loss10:41
freemangordonals, we shall choose android partition in such a way that reionstalling android will not wipe it as well10:42
Wizzupis data loss really a problem is you reinstall leste?10:43
WizzupI always found it kinda of crazy that lock code could live through fremantle flashing10:43
WizzupI don't think the lock code should live through a reinstall10:43
Wizzupin any case I think we agree on loopback10:44
freemangordonWizzup: the point of lock code surviving reflash is that it is a security feature that shall not be easily removed, like, if the device is stolen10:45
freemangordonso it makes perfect sense to me to survive10:45
freemangordonso, nandsim+loopback on file?10:46
freemangordonbtw, IIRC nandsim can do loopback on its own10:46
freemangordonno need to do loopN10:46
freemangordonnot 100% sure though10:46
WizzupI don't think it makes sense since it's easy to reflash any/all android devices and partitions10:48
freemangordoneven recovery partition?10:48
Wizzupbtw, I don't think our current wlan calibration saves things to cal, just to disk10:49
Wizzup(which is probably not a bad thing)10:49
Wizzupfreemangordon: probably depends on the device10:49
freemangordonwell, on n900 CAL wln calibration is something written during the production10:49
Wizzupyeah, we do it on first boot10:49
freemangordonok, we can at least try to come-up with something that is persistent across reinstalls10:51
Wizzupif we end up only storing the lock code in it, I'm not sure if it really matters that much10:52
freemangordonwe can store battery calibration data as well10:52
freemangordonbut yeah10:53
freemangordonthe other option is to get rid of libcal10:53
freemangordonfor lockcode at least10:53
siceloandroid partition doesn't sound like good idea. there's pinephone10:54
freemangordonso?10:55
siceloit doesn't have android partition. someday someone might port librem5 too10:55
freemangordonby "android partition" I mean any partition that was created by the manufacturer on either eMMC or nand or whatever internal storage10:55
Wizzupfreemangordon: there is just mmc that it flashed by anyone on pinephone10:56
Wizzupso there's no well defined structure or anything10:56
freemangordonI think all of the devices have some partition that is dedicated to storing persistent data10:56
Wizzupbut if we don't actually want the lock code to persist, why bother?10:57
freemangordonwell, don;t know then10:57
freemangordonbut, we want to10:57
WizzupI don't :D10:57
sicelo:-P10:57
freemangordonotherwise it is more or less useless10:57
WizzupI've read some horror stories online about people having to use john to unlock their fremantle device10:57
Wizzupthat they bought online10:57
Wizzupfreemangordon: this is not true, the lock code prevents people from getting immediate access to your phone10:58
freemangordonthat's the point10:58
Wizzupand to your data, rather10:58
freemangordonnot only10:58
siceloWizzup I agree that lock code should persist if possible10:58
freemangordonit should make it as hard as possible10:58
Wizzupit's all 'easy mode' at this point10:58
Wizzupeven for the n900 there are relatively easy known ways to defeat it10:58
freemangordonit is not, if you have encrypted fs10:58
Wizzupin any case for the threat model we can disregard nand and libcal, as they add nothing there10:59
freemangordonBTW, maybe we shall integrate lockcode with encryptfs10:59
WizzupI don't think a digit code is strong enough for fs encryption11:00
freemangordonI think it just protects the keys anyway11:00
Wizzupmaybe as a way to unlock the real password/key11:00
freemangordonyes11:00
Wizzupin any case I have doubts as to whether we want to keep libcal if it's just for lock code, if we're going to look at FDE eventually, we probably do something more simple11:02
Wizzupat the same time we have to be careful with how we more forward, if we for example implement lock code now by saving it to some /etc/ file, then any future changes might lock users out of their device11:03
Wizzuphow we move*11:03
Wizzupthis might be too much of a distraction too, atm :)11:03
sicelofde is a good goal for the future, yes. it's the modern way to secure things, and users expect it11:04
Wizzupwonder if we want the system data to separate from that11:30
Wizzupprobably not I guess11:30
Wizzupif it was me I'd want to add plausible deniability11:31
siceloWizzup: btw the GH issue you made is a duplicate of https://github.com/maemo-leste/bugtracker/issues/354. might make sense to close 354 in favor of the new one12:21
Wizzuphm12:22
Wizzupposted that it's similar12:27
Wizzupdidn't close yet12:27
norayrheh, i found some battery i ordered a couple of years ago for droid4. and it seems in not bad shape.13:11
norayri charged it fully yesterday and it said in the evening it'll work for 28 hours.13:11
norayri left it overnight without charge, turned on.13:11
norayrand now it has 57% of charge.13:12
norayrthat other battery would already be dead.13:12
norayrnow, since this is a 'new' battery should i leave it till it dies to calibrate?13:12
norayrit is painful to see batteries die.13:12
norayr(btw droid3 under android leaves for 3 or maybe 5 days without charge)13:15
Wizzupno surprise there since we don't do OFF mode13:17
Wizzup(yet)13:18
Wizzupuvos: I think my d4 gets warmer when left on charger on 6.1, did you notice any diff?13:24
uvosWizzup: no13:49
uvosWizzup: i also have it charge at 1000mA so it allways gets pretty warm13:49
uvos5 days on android is pretty poor for d4 at least13:53
uvosbut i gues d3 has smaller and older battery13:53
norayr> since we don't do OFF mode15:32
norayrthat would be incompatible with running chats right? i prefer chats.15:32
norayrfolks shell i let the battery die since it is now put in droid4? for calibration?15:32
uvosnorayr: no off mode is not suspend15:55
uvosits simply not supported in the mainline kernel15:55
uvosotherwise form a user perspective its exactly the same as RET15:56
uvosit just takes more energy and time to enter/exit off so it only makes sense if the device is less busy than for RET15:56
uvosandroid dose not use suspend, this was only true on the very first android devices (htc dream/ magic) and some chineese socs.15:59
siceloret/off + suspend ... i suppose that would mean one charge cycle per month :p16:18
norayrbut i don't know what is RET. :/23:07

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