User Tools

Site Tools


docs:tips_n_tricks:android:index.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
docs:tips_n_tricks:android:index.html [09.01.2020 01:43 CET]
peter [Android]
docs:tips_n_tricks:android:index.html [26.04.2020 14:15 CEST] (current)
peter [Install LineageOS 16.0 over Android 7.1.2]
Line 262: Line 262:
   * https://​stackoverflow.com/​questions/​19496907/​set-date-time-using-adb-shell   * https://​stackoverflow.com/​questions/​19496907/​set-date-time-using-adb-shell
   * https://​github.com/​nelenkov/​cryptfs-password-manager/​issues/​20   * https://​github.com/​nelenkov/​cryptfs-password-manager/​issues/​20
 +===== Conversations / adb =====
 +How to remove lines from //​conversation//​s (1.23.4) history:
 +
 +<code bash>
 +cd /​scratch/​peter/​Anja/​MotoG
 +mkdir adb-backup
 +cd adb-backup
 +adb devices -l
 +adb backup -f eu.siacs.conversations.ab -apk -obb eu.siacs.conversations
 +cp -vip eu.siacs.conversations.ab eu.siacs.conversations.ab.save
 +java -jar ~/​Downloads/​Android/​abe-all.jar unpack eu.siacs.conversations.ab eu.siacs.conversations.tar
 +cd /tmp
 +mkdir unpack ​
 +cd unpack/
 +tar -xvkpf /​scratch/​peter/​Anja/​MotoG/​adb-backup/​eu.siacs.conversations.tar ​
 +sqlitebrowser apps/​eu.siacs.conversations/​db/​history # remove lines from table "​messages"​
 +tar -tf /​scratch/​peter/​Anja/​MotoG/​adb-backup/​eu.siacs.conversations.tar | grep -v '​apps/​eu.siacs.conversations/​db/​history-journal'​ > files.list
 +tar -cvf eu.siacs.conversations-modified.tar -T files.list
 +java -jar ~/​Downloads/​Android/​abe-all.jar pack eu.siacs.conversations-modified.tar eu.siacs.conversations.ab
 +adb restore eu.siacs.conversations.ab
 +
 +</​code>​
 +
 +//​References://​
 +
 +  * https://​stackoverflow.com/​questions/​18533567/​how-to-extract-or-unpack-an-ab-file-android-backup-file
 +  * https://​github.com/​nelenkov/​android-backup-extractor
 +
 +{{tag>​Android eu.siacs.conversations XMPP Jabber Java adb}}
 +{{entry>​Android}}
 +{{entry>​eu.siacs.conversations}}
 +{{entry>​XMPP}}
 +{{entry>​Jabber}}
 +{{entry>​Java adb}}
docs/tips_n_tricks/android/index.html.txt · Last modified: 26.04.2020 14:15 CEST by peter