damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.44k stars 800 forks source link

SL4A API #165

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:28

Idea - SL4A as a scripting addon to android apps that can allow "smart 
updates", changing the way a program "thinks".

For example, say you had an app that used the phone's GPS to direct you to a 
nice spot to eat your lunch. At the time of the app's creation, its 
decisionmaking is simple -> find the nearest public space.

But then, after the fact the developer figures out that a better process is -> 
find list of public spaces nearby -> find how many people are there from 
magical web service -> compute the orbit of Venus and figure out its influence 
on your happy place by awesome mathematical formula based on date and time.

If this part of the operation was controlled by a script, the developer could 
push out as a signed script file which the app would run on every decision, the 
whole behaviour of the app can be changed remotely. The value in it would be 
apps that can evolve between versions.

Of course that sounds like a huge security and technical risk on the face of 
it, but provided the script cannot exceed the granted permissions or 
capabilities of the host app there should be a safe way to implement it.

Thanks for all the great work so far, btw - useful project!

Original issue reported on code.google.com by flyinglu...@gmail.com on 24 Feb 2011 at 10:44

Copied from original issue: damonkohler/android-scripting#523