Re:Google have declared Droidscript is malware
by Pxtl on Tuesday April 27, 2021 @11:20AM
(#26957123)
That said, an open-source version of this on F-droid would be hella cool, but wrapping every API with Javascript sounds non-trivial.
[ Parent
| on HN ]
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.
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