This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import dbus | |
from gi.repository import GLib | |
from dbus.mainloop.glib import DBusGMainLoop | |
best_connectivity="lte" | |
lowest_connectivity="gsm" | |
sim_slot="/ril_0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#logs | |
journalctl --user -f -u lomiri-app-launch--application-click--terminal.ubports_terminal_2.0.1--.service | |
sudo journalctl --boot --identifier=NetworkManager | |
# mount rw | |
sudo mount -o remount,rw / | |
# restart lomiri | |
systemctl --user restart lomiri-full-greeter.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://git.launchpad.net/ubuntu/+source/goget-ubuntu-touch | |
build with crossbuilder | |
List of images ( channel is the path in system-image see https://system-image.ubports.com) : | |
goget-ubuntu-touch/obj-x86_64-linux-gnu/bin$ ./ubuntu-device-flash query --server=https://system-image.ubports.com --device=krillin --channel=ubports-touch/16.04/stable --list-images | |
Install: | |
goget-ubuntu-touch/obj-x86_64-linux-gnu/bin$ ./ubuntu-device-flash touch --server=https://system-image.ubports.com --device=krillin --revision 23 --channel=ubports-touch/16.04/stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo click unregister --all-users calendar.ubports | |
sudo rm -rf /usr/share/click/preinstalled/calendar.ubports/ | |
find . -name '*calendar*' -exec rm -rf {} + | |
sudo click install --allow-unauthenticated --all-users ./calendar.ubports_1.0.0_all.click |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crossbuilder --lxd-image="ubuntu:20.04" --architecture=amd64 shell | |
cd /nuntium/obj-x86_64-linux-gnu | |
export GOPATH=$GOPATH:/home/lionel/nuntium/obj-x86_64-linux-gnu | |
go test github.com/ubports/nuntium/mms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dbus-update-activation-environment --systemd G_MESSAGES_DEBUG=all | |
dbus-update-activation-environment --systemd QT_LOGGING_RULES="*=true;qt.*=false;liblomirigestures.*=false;lomiri.components.*=false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo env LD_LIBRARY_PATH=/system/lib64:/vendor/lib64 lxc-attach -n android -e -- /system/bin/sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import os | |
import re | |
import sqlite3 | |
import shutil | |
def migrate(con, fromAccount, toAccount): | |
print(f'Start to migrate {fromAccount} to {toAccount}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OUT=/home/phablet/Documents/contactsfromnewbackend.csv | |
sqlite3 -header -csv /home/phablet/.local/share/system/privileged/Contacts/qtcontacts-sqlite/contacts.db "SELECT DisplayLabels.displayLabel,Names.firstName, Names.lastName,PhoneNumbers.phoneNumber, EmailAddresses.emailAddress, Contacts.modified FROM Contacts LEFT JOIN DisplayLabels ON DisplayLabels.contactId = Contacts.contactId LEFT JOIN EmailAddresses ON EmailAddresses.contactId = Contacts.contactId LEFT JOIN Names ON Names.contactId = Contacts.contactId LEFT JOIN Nicknames ON Nicknames.contactId = Contacts.contactId LEFT JOIN PhoneNumbers ON PhoneNumbers.contactId = Contacts.contactId WHERE Contacts.collectionId = 1 ORDER BY Contacts.modified DESC;" > $OUT | |
echo "Exported contacts from sqlite contact backend to $OUT last modified first, as a csv file (comma separated)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run address-book-app with the folowing env vars | |
QTCONTACTS_MANAGER_OVERRIDE=memory | |
ADDRESS_BOOK_TEST_DATA=absolute_path_to_vcf_file.vcf |
NewerOlder