Skip to content

Instantly share code, notes, and snippets.


Lionel Duboeuf lduboeuf

View GitHub Profile
View QML Profile messaging-app
sudo apt install qt5-qmltooling-plugins
DESKTOP_FILE_HINT=/usr/share/applications/messaging-app.desktop messaging-app -qmljsdebugger=port:1234
on QtCreator:
Create a remote device, device ip
Create a kit with that device
Analyze-> QML Profiler -> select the "device" kit and set port to 1234
View messaging-app freeze
0x0000007fb32e8c70 in syscall () from /lib/aarch64-linux-gnu/
#1 0x0000007fb35c3244 in QBasicMutex::lockInternal() ()
from /usr/lib/aarch64-linux-gnu/
#2 0x0000007fb35c32bc in QMutex::lock() ()
from /usr/lib/aarch64-linux-gnu/
#3 0x0000007fb37bbe44 in QObject::isSignalConnected(QMetaMethod const&) const
() from /usr/lib/aarch64-linux-gnu/
#4 0x0000007f9babd7c0 in QtContacts::QContactManager::disconnectNotify(QMetaMethod const&) () from /usr/lib/aarch64-linux-gnu/
#5 0x0000007fb37c5124 in QObject::~QObject() ()
from /usr/lib/aarch64-linux-gnu/
View emblem counter via dbus
to get:
dbus-send --session --print-reply \
--dest=com.canonical.Unity.Launcher \
/com/canonical/Unity/Launcher/dialer_2Dapp \
org.freedesktop.DBus.Properties.Get \
string:com.canonical.Unity.Launcher.Item \
to set:
View debug lomiri-push-client
log_level to debug
View gist:51bc1ed1e675fc2090818bdd6174ee5b
Add this env var to the exe
View gist:6c4b1177d0984297ed6818c2521f78b8
gdbus call --session --dest com.ubuntu.Postal --object-path /com/ubuntu/Postal/dekko2_2edekkoproject --method com.ubuntu.Postal.Post dekko2.dekkoproject_dekko \
'"{\"message\": \"foobar\", \"notification\":{\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'
Avec son:
gdbus call --session --dest com.ubuntu.Postal --object-path /com/ubuntu/Postal/dekko2_2edekkoproject --method com.ubuntu.Postal.Post dekko2.dekkoproject_dekko \
'"{\"message\": \"foobar\", \"notification\":{\"sound\": \"test.ogg\",\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'
DEBUG push client:
/etc/xdg/ubuntu-push-client/config.json -> log level = debug
View gist:6318ee3eb4b3cb63645b017e99e9a33b
Music app can't play imported file.
The File is well copied but no entry in MediaStore db.
watch inotify events:
inotifywait -rme modify,attrib,move,close_write,create,delete,delete_self /home/phablet/Music/Imported/2021/09/03
QFile::rename + QFile::copy ( actual content-hub code contentItem.cpp/move method )
/home/phablet/Music/Imported/2021/09/03/ CREATE 094451-pikatchu.wav
/home/phablet/Music/Imported/2021/09/03/ MODIFY 094451-pikatchu.wav
/home/phablet/Music/Imported/2021/09/03/ MODIFY 094451-pikatchu.wav
View gist:5b473336a8e4f51bff3fe80c2721e36b
ssh into device
sudo mount -o rw,remount /
cd /usr/share/unity8/....
sudo nano ....
restart unity8
lduboeuf / log debug ofono Ubuntu Touch
Last active Aug 13, 2021
ofono debug logs Ubuntu Touch
View log debug ofono Ubuntu Touch
debug ofono:
sudo mount -o remount,rw /
sudo service ofono stop
Add `-d *` to the exec line in /etc/init/ofono.override => `exec ofonod -d *`
sudo service ofono start
It logs to `syslog`
If not possible to edit `ofono.override`,
Drop the files /userdata/.writable_image and /userdata/.writable_device_image
lduboeuf / test ofono dial
Last active Jun 15, 2020
test ofono dial fail
View test ofono dial
#this test fails on my N5 devel:
#Pre-requisit: access UT device on terminal ( adb or ssh )
#lanch this commands in UT:
#check the "object path" property from:
dbus-send --system --print-reply --dest=org.ofono / org.ofono.Manager.GetModems
#WARNING: those commands effectively interact with modem and trigger a call/hangup