TransWikia.com

How to send an email using adb intent, in android 8.0 os?

Stack Overflow Asked by riki on March 3, 2021

I have a command:

adb shell "am start -a android.intent.action.SEND -d my_email@com --es 
android.intent.extra.SUBJECT "my subject" --es android.intent.extra.TEXT "my text" -n "my 
package" -c android.intent.category.EMAIL -t '*/*' --eu android.intent.extra.STREAM 
file:///sdcard/image.jpg"

this command is working just wonderful on multiple android devices.
but- I have some devices who refuse to attach the file…
any idea to force them? (the file exists in the same path in all of the devices)

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP