zhanghai / beeshell Goto Github PK
View Code? Open in Web Editor NEWJava REPL on Android with BeanShell
License: Apache License 2.0
Java REPL on Android with BeanShell
License: Apache License 2.0
adb shell
angler:/ $ pm_path=`pm path me.zhanghai.android.beeshell` && apk_path=${pm_path#package:} && `dirname $apk_path`/lib/*/libbsh.so
/data/app/me.zhanghai.android.beeshell-nu3dAV-F-pmQgVe8CFzbfg==/lib/arm64/libbsh.so[2]: ../../bsh: not found
| Welcome to BeeShell 1.0.1
| Powered by BeanShell 2.0b6
bsh> context.getSystemService(ConnectivityManager.class)
$1 = android.net.ConnectivityManager@13f10fc
bsh> $1.getActiveNetwork()
$2 = 102
bsh> $1.getNetworkCapabilities($2)
Sourced file: inline evaluation of: ``$1.getNetworkCapabilities($2);'' : Method Invocation $1.getNetworkCapabilities : at Line: 1 : in file: inline evaluation of: ``$1.getNetworkCapabilities($2);'' : $1 .getNetworkCapabilities ( $2 )
Target exception: java.lang.SecurityException: Package android does not belong to 2000
at bsh.BSHMethodInvocation.eval(Unknown Source:117)
at bsh.BSHPrimaryExpression.eval(Unknown Source:51)
at bsh.BSHPrimaryExpression.eval(Unknown Source:1)
at bsh.Interpreter.eval(Unknown Source:145)
at bsh.Interpreter.eval(Unknown Source:34)
at bsh.Interpreter.eval(Unknown Source:26)
at b.a.a.a.y.a(Unknown Source:13)
at me.zhanghai.android.beeshell.ShellMain.main(:6)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:399)
Caused by: java.lang.SecurityException: Package android does not belong to 2000
at android.os.Parcel.createExceptionOrNull(Parcel.java:2373)
at android.os.Parcel.createException(Parcel.java:2357)
at android.os.Parcel.readException(Parcel.java:2340)
at android.os.Parcel.readException(Parcel.java:2282)
at android.net.IConnectivityManager$Stub$Proxy.getNetworkCapabilities(IConnectivityManager.java:2456)
at android.net.ConnectivityManager.getNetworkCapabilities(ConnectivityManager.java:1385)
at java.lang.reflect.Method.invoke(Native Method)
at bsh.Reflect.invokeMethod(Unknown Source:43)
at bsh.Reflect.invokeObjectMethod(Unknown Source:45)
at bsh.Name.invokeMethod(Unknown Source:138)
at bsh.BSHMethodInvocation.eval(Unknown Source:57)
... 9 more
Caused by: android.os.RemoteException: Remote stack trace:
at android.app.AppOpsManager.checkPackage(AppOpsManager.java:7631)
at com.android.server.ConnectivityService.getNetworkCapabilities(ConnectivityService.java:1666)
at android.net.IConnectivityManager$Stub.onTransact(IConnectivityManager.java:978)
at android.os.Binder.execTransactInternal(Binder.java:1154)
at android.os.Binder.execTransact(Binder.java:1123)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.