Article View: comp.mobile.android
Article #68Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android
From: Don
Date: Fri, 09 Oct 2026 11:22
Date: Fri, 09 Oct 2026 11:22
49 lines
2797 bytes
2797 bytes
On 10/8/26 16:46, Maria Sophia wrote:
> So that all benefit, this thread is opened to allow others to post random
> useful adb examples, where the goal is a usable list of useful examples.
This recipe clones Contacts, Calls, SMS, and Photos from a source
android with device serial R5C11111111 to a target android with device
serial R5C22222222.
Pull and Push Contacts
cd ~/contacts
adb -s R5C11111111 pull /sdcard/Download/Contacts.vcf
cd ~/contacts
adb -s R5C22222222 push Contacts.vcf /sdcard/Download/Contacts.vcf
* open Contacts on new phone and import Contacts.vcf
* Install SMS Backup & Restore
cd ~/SMS_Backup_Restore_APK
adb -s R5C22222222 install SMSBackupRestore-freeProductionRelease-10.26.010.apk
* Pull and Push SMS
*
* SMS Backup & Restore > Advanced Options > Dates off > Backup
* calls.xml and sms.xml
cd ~/sms
adb -s R5C11111111 pull /sdcard/Documents/calls.xml
adb -s R5C11111111 pull /sdcard/Documents/sms.xml
cd ~/sms
adb -s R5C22222222 push calls.xml /sdcard/Documents/
adb -s R5C22222222 push sms.xml /sdcard/Documents/
* Use SMS Backup & Restore to restore from sms_backup.txt
* More Options > Settings > Backup Location Settings > Save local copy
* Set SMS Backup & Restore as default SMS App
* Pull photos:
cd ~/photos
adb -s R5C11111111 pull /storage/sdcard0/DCIM
* Push photos:
adb -s R5C22222222 push DCIM /storage/self/primary
--
73, Don, WD7Q veritas _|_
liberabit |
https://www.qsl.net/wd7q vos |
Technical Details
Message-ID:
<20261009a@crcomp.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11a96gn$b36$1@nnrp.usenet.blueworldhosting.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Don <g@crcomp.net> Newsgroups: comp.mobile.android Subject: Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Date: Fri, 9 Oct 2026 11:22:58 -0000 (UTC) Organization: A noiseless patient Spider Lines: 49 Message-ID: <20261009a@crcomp.net> References: <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> Content-Type: text/plain; charset=UTF-8stipulation Content-Transfer-Encoding: 8bit Injection-Date: Fri, 09 Oct 2026 11:22:59 +0000 (UTC) Injection-Info: dont-email.me; logging-data="781730"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FJheRaLrrpdAmhXdmLOi7"; posting-host="cb279be9ea1a4dd70412bfeebe1fbfd6" Cancel-Lock: sha1:Zpt+FiHtvVVo19B2mEJq1JiC9zQ= sha256:aZEek+OjD4fBsNX67HjR71rccK/1hMW+Qm/QQQJuJvQ= sha1:k7WEeQoLP6Obc8h/ehybALM27HY= sha256:K33iVKpfJ1pP6cgT40UdvdfdMJwCs6QnG5OLS9VrEJU=