<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[(Solved) - List installed apps]]></title><description><![CDATA[<p dir="auto">Hi everybody,</p>
<p dir="auto">Do you know if there is a command line to list all installed apps on the phone please ? I have in mind the idea to create a backup/restore tool for the phone (backup of contacts, call and sms history, background, installed apps and their settings, system settings), ideally this script must be able to backup a phone and restoring it to another phone (same or different model).</p>
<p dir="auto">For the contacts I have this path :<br />
/home/phablet/.local/share/evolution/addressbook/system/contacts.db<br />
For the sms and call history this one :<br />
/home/phablet/.local/share/history-service/</p>
<p dir="auto">Thanks for your advice !</p>
]]></description><link>https://forums.ubports.com/topic/3425/solved-list-installed-apps</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 21:28:20 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/3425.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Nov 2019 18:35:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to (Solved) - List installed apps on Tue, 26 Nov 2019 20:05:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: Flohack">@<bdi>Flohack</bdi></a> Regarding the user-data folder, it took at least 30-35 minutes to backup 12Go (including compression) over usb2.0, and nearly the same (a little faster) to restore (arround 20 minutes).</p>
<p dir="auto">The system-data folder was smaller then it take less than 5 minutes to backup (and 3 more to restore).</p>
<p dir="auto">I was thinking about doing it on the SD at the beginning but as my data partition was about 54Go, I was scared that my 32Go SD card wasn't sufficient (as I already had a lot of things on my SD like all the pictures taken by the camera, they are very big on te Pro5 because of the sensor quality).<br />
And one other thing was that my sdcard wasn't mounted on recovery, I think that the recovery-turbo.img miss a lot of features.</p>
<p dir="auto">For the phone where the system-data and user-data are correctly mounted on the /data folder in recovery, this script can work well if you remove the line "adb shell mount /dev/block/sda44 /data"</p>
<p dir="auto">But if you want to do that locally on the SD card, if it is mounted, you can do that on the recovery nearly the same way, don't forget to use tar as it will take care of the symlinks (not to ignore them, it will save them too).</p>
<p dir="auto">It will be very perfect if that can be integrated to the installer !</p>
]]></description><link>https://forums.ubports.com/post/25360</link><guid isPermaLink="true">https://forums.ubports.com/post/25360</guid><dc:creator><![CDATA[AlainW94]]></dc:creator><pubDate>Tue, 26 Nov 2019 20:05:02 GMT</pubDate></item><item><title><![CDATA[Reply to (Solved) - List installed apps on Tue, 26 Nov 2019 19:50:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alainw94" aria-label="Profile: AlainW94">@<bdi>AlainW94</bdi></a> Yes the feature will be added to the installer, but if this script works that would be awesome. I did a similar approach with rsync and ssh back then, but this was very slow. How fast is this, you think?<br />
Also, its maybe easier to put stuff on the SD-CARD locally?</p>
]]></description><link>https://forums.ubports.com/post/25359</link><guid isPermaLink="true">https://forums.ubports.com/post/25359</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Tue, 26 Nov 2019 19:50:57 GMT</pubDate></item><item><title><![CDATA[Reply to (Solved) - List installed apps on Mon, 25 Nov 2019 23:02:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/giiba" aria-label="Profile: Giiba">@<bdi>Giiba</bdi></a> I will try and let you know ... <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=eeff4b5fc81" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
]]></description><link>https://forums.ubports.com/post/25314</link><guid isPermaLink="true">https://forums.ubports.com/post/25314</guid><dc:creator><![CDATA[AlainW94]]></dc:creator><pubDate>Mon, 25 Nov 2019 23:02:45 GMT</pubDate></item><item><title><![CDATA[Reply to (Solved) - List installed apps on Mon, 25 Nov 2019 22:55:42 GMT]]></title><description><![CDATA[<p dir="auto">Well if back up is half baked all we need to is warm the oven to say 425F and put your phone in for 30 mins or so. Backup done!</p>
<p dir="auto">Sorry I couldn't resist the pointless joke...</p>
]]></description><link>https://forums.ubports.com/post/25313</link><guid isPermaLink="true">https://forums.ubports.com/post/25313</guid><dc:creator><![CDATA[Giiba]]></dc:creator><pubDate>Mon, 25 Nov 2019 22:55:42 GMT</pubDate></item><item><title><![CDATA[Reply to (Solved) - List installed apps on Mon, 25 Nov 2019 22:45:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: Flohack">@<bdi>Flohack</bdi></a> Hi back, thanks for your answer, I finally manage to do my backup and restore with success (thanks goolge).</p>
<p dir="auto">I share here how I did:</p>
<p dir="auto"><strong>Backup :</strong></p>
<pre><code>#!/bin/bash
echo "Backing up your data"
adb reboot recovery
sleep 15
adb shell mount /dev/block/sda44 /data
adb shell mkfifo /backup.pipe 
adb exec-out 'tar -cvp data/system-data 2&gt;/backup.pipe' | dd of=system.tar &amp; adb shell cat /backup.pipe &amp;
adb shell rm /backup.pipe
adb shell mkfifo /backup.pipe 
adb exec-out 'tar -cvp data/user-data 2&gt;/backup.pipe' | dd of=user.tar &amp; adb shell cat /backup.pipe &amp;
adb shell rm /backup.pipe
adb reboot
</code></pre>
<p dir="auto">With this script, you will mount the data partition under the recovery mode, create a pipe to transfer the content of the folder (/data/user-data) through stdout to dd on the local computer in a file named user.tar, then it will do the same for the folder system-data.</p>
<p dir="auto"><strong>Now to restore :</strong></p>
<pre><code>#!/bin/bash
echo "Restoring your data"
adb reboot recovery
sleep 15
adb shell mount /dev/block/sda44 /data
adb shell mkfifo /resto.pipe
adb push user.tar /resto.pipe &amp; adb shell 'cd /; cat /resto.pipe | tar -xv'
adb shell rm /resto.pipe
adb shell mkfifo /resto.pipe
adb push system.tar /resto.pipe &amp; adb shell 'cd /; cat /resto.pipe | tar -xv'
adb reboot
</code></pre>
<p dir="auto">This script will boot the phone into recovery mode, mount the sda44 partition into /data folder, push your backup user.tar through the previously created pipe. On the phone the pipe is catched by cat then sent to tar for decompressing.</p>
<p dir="auto">Your backup needs to be in the same folder as the script restore because I written it like this.</p>
<p dir="auto">Credits goes there : <a href="https://www.forum-generationmobiles.net/t78912-tutoriel-backup-adb-sauvegarde-compressee-des-donnees-de-android-vers-votre-pc-gnu-linux" rel="nofollow ugc">https://www.forum-generationmobiles.net/t78912-tutoriel-backup-adb-sauvegarde-compressee-des-donnees-de-android-vers-votre-pc-gnu-linux</a></p>
<p dir="auto">I tested it and it's perfectly working, I was able to clone one of my Pro 5 to the other one Pro5.</p>
<p dir="auto">sda44 partition is mostly for Pro5, not sure that this mount works on other model.<br />
I hope that this could help other people.</p>
<p dir="auto">The best way is maybe to add this feature to ubports-installer, in order to be able to just backup/restore our phone (and of course re-installing it) only with one tool.</p>
<p dir="auto">What are you thinking about that ?</p>
]]></description><link>https://forums.ubports.com/post/25312</link><guid isPermaLink="true">https://forums.ubports.com/post/25312</guid><dc:creator><![CDATA[AlainW94]]></dc:creator><pubDate>Mon, 25 Nov 2019 22:45:41 GMT</pubDate></item><item><title><![CDATA[Reply to (Solved) - List installed apps on Mon, 25 Nov 2019 22:23:32 GMT]]></title><description><![CDATA[<p dir="auto">Short answer: Its not easy. You have to skip symlinks when pulling those folders, as they are invalid at this time. Long answer: Canonical did not prepare any backup function, and so we are lost with a half-baked concept. Any ideas are welcome how this can be solved better.</p>
]]></description><link>https://forums.ubports.com/post/25311</link><guid isPermaLink="true">https://forums.ubports.com/post/25311</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Mon, 25 Nov 2019 22:23:32 GMT</pubDate></item><item><title><![CDATA[Reply to (Solved) - List installed apps on Mon, 25 Nov 2019 13:46:38 GMT]]></title><description><![CDATA[<p dir="auto">Hi, that's me again ...</p>
<p dir="auto">I used fastboot to flash the recovery_turbo.img (by the way this issue was closed on github but without details : <a href="https://github.com/ubports/ubports-installer/issues/599" rel="nofollow ugc">https://github.com/ubports/ubports-installer/issues/599</a>.</p>
<p dir="auto">I booted on recovery using adb reboot recovery. I mounted sda44 partition on /data :</p>
<pre><code>adb shell mount /dev/block/sda44 /data
</code></pre>
<p dir="auto">Then I tried adb pull /data/system-data ./</p>
<p dir="auto">But .... it seems not working when they are symlinks and it fail and stop :</p>
<pre><code>~/Documents/Meizu$ adb pull /data/system-data ./
adb: error: failed to copy '/data/system-data/var/log/installer/media-info' to './system-data/var/log/installer/media-info': remote No such file or directory
</code></pre>
<p dir="auto">After a look at this folder we can see :</p>
<pre><code>~ # ls -l /data/system-data/var/log/installer/media-info 
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
lrwxrwxrwx    1 root     root            15 Nov 23 13:26 /data/system-data/var/log/installer/media-info -&gt; /etc/media-info
~ # 

</code></pre>
<p dir="auto">How can I then do my backup please ?</p>
]]></description><link>https://forums.ubports.com/post/25297</link><guid isPermaLink="true">https://forums.ubports.com/post/25297</guid><dc:creator><![CDATA[AlainW94]]></dc:creator><pubDate>Mon, 25 Nov 2019 13:46:38 GMT</pubDate></item><item><title><![CDATA[Reply to (Solved) - List installed apps on Sun, 24 Nov 2019 16:47:56 GMT]]></title><description><![CDATA[<p dir="auto">An other strange things is that when I use the ubports installer, it burn a recovery image that my computer is not able to detect with usb :</p>
<pre><code>[34249.254000] usb 2-1.3: new high-speed USB device number 117 using ehci-pci
[34249.283824] usb 2-1.3: no configurations
[34249.283831] usb 2-1.3: can't read configurations, error -22
[34249.290021] usb 2-1-port3: unable to enumerate USB device

</code></pre>
<p dir="auto">Even Windows is not recognizing it. I have to burn the old recovey-turbo.img from ubuntu and the it works, Am I the only one to have this issue ?</p>
<p dir="auto">And with the old recovery my /data folder is empty :</p>
<pre><code>~ # ls
cache                init.rc              service_contexts
charger              proc                 sideload
data                 property_contexts    storage
default.prop         ram0                 sys
dev                  res                  system
etc                  root                 tmp
file_contexts        sbin                 ueventd.goldfish.rc
fstab.goldfish       sdcard               ueventd.m86.rc
fstab.m86            seapp_contexts       ueventd.rc
init                 selinux_version
~ # ls /data
~ # 

</code></pre>
<p dir="auto">The user-data partition doesn't seems to be mounted :</p>
<pre><code>~ # mount
rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
/dev/block/platform/15570000.ufs/by-name/cache on /cache type ext4 (rw,nodev,noatime,nodiratime,data=ordered)
~ # 

</code></pre>
]]></description><link>https://forums.ubports.com/post/25264</link><guid isPermaLink="true">https://forums.ubports.com/post/25264</guid><dc:creator><![CDATA[AlainW94]]></dc:creator><pubDate>Sun, 24 Nov 2019 16:47:56 GMT</pubDate></item><item><title><![CDATA[Reply to (Solved) - List installed apps on Sun, 24 Nov 2019 01:18:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: Flohack">@<bdi>Flohack</bdi></a> hi, I'm agree with you, the problem is that I do not have thoses folder on my pro 5 while I'm in recovery !</p>
]]></description><link>https://forums.ubports.com/post/25248</link><guid isPermaLink="true">https://forums.ubports.com/post/25248</guid><dc:creator><![CDATA[AlainW94]]></dc:creator><pubDate>Sun, 24 Nov 2019 01:18:04 GMT</pubDate></item><item><title><![CDATA[Reply to (Solved) - List installed apps on Sat, 23 Nov 2019 20:05:41 GMT]]></title><description><![CDATA[<p dir="auto">It is much easier to craft a backup/restore when in recovery. Simply backup/restore 2 folders /data/system-data and /data/user-data und you got a 100% copy of all relevant things, including installed apps.</p>
<p dir="auto">Doing it file-by-file is not ideal, as you will loose all system settings etc. The drawback of recovery is, you cannot do it while booted into the live system. There might be better solutions in the future.</p>
]]></description><link>https://forums.ubports.com/post/25238</link><guid isPermaLink="true">https://forums.ubports.com/post/25238</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Sat, 23 Nov 2019 20:05:41 GMT</pubDate></item></channel></rss>