Play audio file in the background with ADB command [closed] - android

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 days ago.
Improve this question
I can play and audio file on my Android tablet with this ADB command:
adb shell am start -a android.intent.action.VIEW -d file:///storage/emulated/0/Download/disarm.mp3 -t audio/mp3
Unfortunately the audio is played in the foreground so every time it runs I can see opening the media player
Is there a way to play audio file in the background?
Thanks

Not out of the box. You can create an app that listens to an intent like this one and starts a service for the music playback and closes its own activity instantly.

Related

Get a text log or similar of what an Android App is doing [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm interested in making an AI that will play/learn Android games. I know I can use MonkeyRunner to "play" (i.e. tap where I need to tap), but is there a way to see what the app itself is doing so that I can program a response to it?
To be clear, I want the program to play a 3rd party game. For example, Flappy Bird - is there a way to "see" the location of the bird and tubes without having to analyze the outputted graphics?
You can monitor app activity by logcat
Just use adb for it. You can easily monitor by using rooted device.
Just enter adb shell logcat in android terminal emulator app.

Android device using "Shark for Root" to capture packets but receive "Empty file opened" error [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I'm using the "Shark for Root" to capture packets in my Android device. Here is the app in play store: https://play.google.com/store/apps/details?id=lv.n3o.shark
I just use the default parameters : -vv -s 0 , and as the log shown below it really start to capture. But when I stop capture and open the capture file with the application named "Shark Reader", it exit with a toast that says "empty file opened" though the file isn't empty.
I can't find out what's wrong with it. Can some one help me or give me some advice to capture the packets.
Thanks.
You only need to add the input device like this
-vv -s 0 -i wlan0
wlan0 is your default wifi device name, if you want to capture other devices type netcfg in the command terminal to check the list of devices and their names

How to remove the Setup Wizard app in Android 4+? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I need to bypass the setup wizard on my Nexus 5 running 4.4 only using ADB as my digitizer and screen are broken. I just want to find the Setup Wizard app and remove it via ADB. Does anyone know how to do this?
The wizard is inside the "GoogleServiceFramework.apk", in the system/app folder. You need to root and remount your system to rw to delete the apk. But after you delete it, you cannot use any Goolge service.
However, the mechanism behind this setup wizard is simple. It just declares that it is also a "HOME" application with priority=2. So you can just use package manager (pm) on adb shell to disable the wizard start up activity. Then you can see the normal home application directly.

Unable to eject Android phone [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
When I try to eject my Android phone from my Windows 8 laptop (using the "Safely Remove Hardware and Eject Media" icon in the task bar) I get a "Problem Ejecting USB Composite Device" pop-up with the message:
Windows can't stop your 'Android ADB Interface' device because a program is still using it. Close any programs that might be using the device, and then try again later.
I have a number of background and Windows processes running, but no apps, so any idea what could be causing this? One of the background processes is "abd (32 bit)", so should I just end that task? Or would it be better to just unplug the device and not worry about ejecting it first?
Android uses ADB to communicate with physical devices and emulators. To properly disconnect your phone first stop the ADB server and then eject your device.
CD C:\Users\<user_name>\AppData\Local\Android\android-sdk\platform-tools
adb kill-server
Then eject your device.
More info here.
As Andrew Halloran stated, device can be safely removed if you first end Android Debug Bridge adb.
That can be done using the Task Manager
Then click "Safely Remove Hardware and Eject Media"

How to know which app has virus on my Android? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I just got a push notification to download some "ICQ client" from maeu.net, but don't know an easy way to get the package name of the faulty app that received it, how do i do that not programmatically? The pid is in the logs:
I/ActivityManager( 2695): Starting: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=http://maeu.net/jimm/3220/jimm.apk cmp=com.android.browser/.BrowserActivity } from pid 6434
I think FLV Player was written on the notification but after clicking on it, I can't find it again to verify that. I downloaded Terminal Emulator but ps can't see that process any more.
Recently I saw something like this as well and was immediately scared. Some apps have certain "Ads" that run inside apps and can send you notifications or create shortcuts.
Because of this I made sure I had a good "anti-virus", such as:
https://play.google.com/store/apps/details?id=com.lookout
https://play.google.com/store/apps/details?id=com.symantec.mobilesecurity
I tend to use both apps because I am paranoid about security when it comes to online data security :)
Also, you will need apps that scan and search for other apps with "Ads", such as:
https://play.google.com/store/apps/details?id=com.denper.addonsdetector
https://play.google.com/store/apps/details?id=com.brosmike.airpushdetector
https://play.google.com/store/apps/details?id=com.lookout.addetector
These apps will quickly find the applications on your phone that can do "certain" things with "Ads" such as special permissions.
Once you find the apps that maybe causing the problem, simply uninstall them!
Please let me know if this helps!

Categories

Resources