sinkuri256 / android-scripting

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

Need a wrapper Tool of script #542

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What should be supported?

A Tool which can wrap script to an apk maybe useful. When we publish an 
application , we can't ask user to install an sl4a first and don't want user to 
see our code .

may be we can wrap the Interpreter ,depended on libs ,and our code to a single 
apk file .  like some tools done which wrap jar to exe file . 

Original issue reported on code.google.com by yangtong...@gmail.com on 22 Apr 2011 at 1:18

GoogleCodeExporter commented 9 years ago
Hi guys, any progress here?

Original comment by fantasti...@gmail.com on 15 May 2011 at 7:28

GoogleCodeExporter commented 9 years ago
You got a reply on the mailing list: 
http://groups.google.com/group/android-scripting/browse_thread/thread/79aac62762
6070ec

It's been available for quite a long time all ready, if you want to check and 
example use this: https://github.com/manuelnaranjo/AIRi/tree/master/AIRi-droid

I have a simple build script there called build.sh you can check what I did. 

shouldn't we mark this as closed?

Original comment by naranjo....@gmail.com on 15 May 2011 at 9:15

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for the reply. I am familiar with that issue at least I am able to 
create my own *.apk with my scripts included. But still *.apk can be easily 
unpacked and the sources of all scripts are visible inside res/raw directory. 
That is why I put my comments and questions here. I am also wondering is there 
any way to create more complex *.apk with e. g. the whole python interpreter 
(currently user need to install it before launching the app)? Any clues?

wbr,
f.o

Original comment by fantasti...@gmail.com on 15 May 2011 at 10:02

GoogleCodeExporter commented 9 years ago
I'm working on having the Python interpreter bundled into my apks, btw if you 
take a look at my code you will see that all the python libraries are bundled 
in python.zip. 

About refactoring Python I have to tell you, you choosen the wrong language, 
even Java is easy to dissasemble. If you want to hide something then you better 
don't do it (but that's my opinion) what you can do is bundle the .pyc instead 
of the .py if you don't want readable source code.

res/raw is not so easy to find, and will still be visible otherwise python will 
not be able to pick it up. All res/raw goes into /data/data/<pacakge>/files

Manuel

Original comment by naranjo....@gmail.com on 15 May 2011 at 10:18

GoogleCodeExporter commented 9 years ago
I also want the ability to pack python interpreter inside the apk's ....
that will be a good addition. I have raised a seperate issue for that just now..

Original comment by anant@anantshri.info on 15 Jun 2011 at 11:46