To make use of ASL library for my screen shot app on android,i need to install a script file (run.ps1) and run it on emulator ... So can any one tell me how can i do it...should i do it using ADB or using Eclipse...?
A .ps1 file appears to be a PowerShell script. PowerShell is a Windows application. Android is not Windows. Hence, if it is indeed a PowerShell script, you cannot run that script on Android.
Related
I need to start an exe on Windows from a flutter app build for Windows.
In the app, when "Avvia SedisRemoteController" is pressed, an exe installed on Windows should run.
Anyone knows how to do it with the code? The command for windows cmd is simply
"C:\Program Files (x86)\Sedis Remote Controller\SedisRemoteController.exe"
I founded a workaround: using
https://pub.dev/packages/open_file/example
Adding this
OpenFile.open("C:/Program Files (x86)/Sedis Remote Controller/SedisRemoteController.exe");
I downloaded AOSP on Ubuntu, made changes and built it for x86_64 (lunch aosp_x86_64-eng).
The changes are in package android.media.
Can I test the changes on the emulator on Ubuntu? Do I need to build the emulator?
(I am not using Android Studio. I build AOSP and start the emulator on the command line.)
Option 1: the framework and push the jar
make framework
adb root
adb remount
adb sync
adb reboot
Option 2:
Full make and flash via fastboot
I have downloaded Android Open Source Project and build it in Linux from command line. All are fine. I can use the emulator.
I installed also Eclipse and AVD via eclipse. Now I want to use the open source emulator that I build from command line. How can I do that?
Mahbub
From the shell in which you build AOSP you can run emulator and it will start an emulator which it built as part of AOSP along with the system image created in your AOSP build. You can also use the SDK provided emulator by passing it command line arguments for the kernel, init RAM disk, system partition and data partition.
I installed python 2.7 in my Android device and I tried executing a python script by typing the command in terminal emulator. The problem is that although I use the full path for python the following error appears:
link_image[1997]: failed to link ./python CANNOT LINK EXECUTABLE.
I tried to add environment variables in ./~bashrc but I didn't make it. Any idea ?
OK it is solved. I followed these steps (http://code.google.com/p/python-for-android/wiki/RunPythonFromShell) but first I had to put the file standalone_python.sh in /data/ because in sdcard I had no permission to execute. And finally using 'su' I made it to run my script as root.
I'm using Eclipse to develop a bunch of Android apps and I need to batch install them, either on the emulator or on an attached device. I'd like to be able to push them all to the device without running them individually in Eclipse.
How can I do that?
try using adb.
adb install -r your/path/to/file.apk
-r is forced install.
You can also create a batch file with number of adb install commands.
You could just push them to the emulator using "adb install fileN.apk" from the command line.