Pass commands to adb through android app [closed] - java

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 8 years ago.
Improve this question
I am looking for a way to run a command located in a text file inside of an android app using the adb. Is this possible? I know it possible to read a file through the adb, but is it possible to run a files contents ('adb shell '...) without viewing it's contents?
Thanks in advance!

check this: Is it possible to execute adb commands through my android app?
BUT you might get an android.permission.SET_ACTIVITY_WATCHER lack of permission exception or another, which are for internal use only. More of them are listed HERE

Related

Simulate key press? [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 3 years ago.
Improve this question
I am looking for a method that allows me to press freely on the Android screen. Simply put, it would emulate what a person can do to move on the Android device
I want him to press the buttons of this game. I want to make a bot.
To get the control of the keystrokes from a background app you need to be root. Instead of that, you can use monkeyrunner to make scripts using Python. Another option is to use direct commands in ADB, as stated in this answer. Every option needs to be connected to a computer via USB cable.

Copying the APK to a device fails [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I just finished my application. But, the problem is, whenever I try to copy the app-debug.apk into my smartphone. It fails without any error messages. What causes this problem?
If you are trying to install the app, Just run adb install app-debug.apk from your command line (Terminal) to install the app

Ideas for converting Android App project to pure java for desktop [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 7 years ago.
Improve this question
I have a huge Android app project, I attempt to convert it to pure Java, I think to include all classes that my new app need it like View , TextView, Activity , etc. I can get it from Android framework source code.
I know this idea will increase my app size, but it will save a lot of time and efforts
My Question: How successful that idea?
You should look into ARC:
https://developer.chrome.com/apps/getstarted_arc
This is a Android Runtime for chrome on desktops

If android apps can't access other app code, how can one app check another for viruses? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I'm trying to create an android application to scan other applications for viruses, or malicious code etc. But to begin with, I'm trying to figure out how existing anti-virus scanning systems operate.
I don't think its rooting, because there are a lot of anti viruses that don't need rooting. If I have to guess, I would say it scans the files for signature. And they access the files similar to how file explorers work. Someone more knowledgeable can correct me.

How can I add my app as system app [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 9 years ago.
Improve this question
Im developing an android keyboard.
I have to know how I can add my app as system app so,
my keyboard will be able to use everywhere in the phone like any keyboard.
As base im using this:link
Your app doesn't need to be a system app. System apps - are apps are apks bundled by manufacturer and resides in separate directory.
You may check your AndroidManifest. Manifest must promote this app as IME.
If you will add your apps in system apps section, you will create your own rom or rooted device. Maybe read this.

Categories