alokvnair / android-screenshot-library

Automatically exported from code.google.com/p/android-screenshot-library
Other
0 stars 0 forks source link

Nicer portable solution for installing the native component #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What feature is requested?
Use SDK 2.3s monkeyrunner and python for cross-platform single solution to 
install the native component
* Most likely Python UI libraries can be used to trigger the installation.
* We might also think about having an add-on to Android's SDK to integrate well 
with SDK?
* Maybe even extending ADT would be an option?

Which version it applies to ?
1.2

What will be the benefits from having the feature?
Easier installation for the users.

Original issue reported on code.google.com by ja...@potiuk.com on 6 Jan 2011 at 3:24

GoogleCodeExporter commented 9 years ago

Original comment by karol.ku...@polidea.pl on 14 Jun 2011 at 1:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
My current solution was to have the asl-native file in my apps assets 
directory, then from the app, run shell commands:
(suRun(String command) is a method I wrote to run shell commands from java)
private void InstallNativeService()
    {
        suRun("unzip -o /data/app/com.acs.screencap* *asl-native -d /data/local/tmp");
        suRun("mv /data/local/tmp/assets/asl-native /data/local/asl-native");
        suRun("chmod 0777 /data/local/asl-native");
        suRun("/data/local/asl-native");
    }

Original comment by parabola949@gmail.com on 29 Aug 2011 at 6:32

GoogleCodeExporter commented 9 years ago
Hello parabola949@gmail.com

Could you please provice me with the source of your method "suRun".

I tested it like you but no success happens to me.

Thanks in advance.

Original comment by freemonh...@gmail.com on 13 Dec 2011 at 7:38

GoogleCodeExporter commented 9 years ago
Let us know this way parabola..

Original comment by ccrro...@gmail.com on 27 Oct 2012 at 11:29