News for hackers. Stuff that matters.
Re:Google have declared Droidscript is malware by yjftsjthsd-h on Tuesday April 27, 2021 @11:33AM (#26957331)
> wrapping every API with Javascript sounds non-trivial.

I am not an expert in JS or the Android API, but I wonder if you couldn't do it automatically? If types line up closely enough, I would think that you could get a list of Android APIs (pull it from AOSP if you have to) and mechanically translate to a JS API.

Re:Google have declared Droidscript is malware by nitrogen on Tuesday April 27, 2021 @11:44AM (#26957509)
If Android's JVM supports reflection, you could do it dynamically at runtime, and there are probably already JS+JVM integrations that would work.
Re:Google have declared Droidscript is malware by lupire on Tuesday April 27, 2021 @12:34PM (#26958235)
Apache Cordova exposes APIs to JS.
Re:Google have declared Droidscript is malware by iaml on Wednesday April 28, 2021 @02:44AM (#26966444)
Actually, ionic team recently released their native api solution as a library [0]. I think it might fit right in.

[0] https://github.com/ionic-team/capacitor

Re:Google have declared Droidscript is malware by JosephRedfern on Tuesday April 27, 2021 @04:22PM (#26961016)
Drozer does (did?) this, except with Python rather than JS. https://github.com/FSecureLABS/drozer