SkillAgentSearch skills...

Droidbottle

Running the bottle web framework on android. Just a demo. Use AirDroid or anything else for real production usage.

Install / Use

/learn @schlamar/Droidbottle
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

About

This project tries to port some functionality from the PAW Server (http://paw-android.fun2code.de/) to the bottle webframework.

Current functionality:

  • SMS threads
  • Send SMS

It works via WLAN or USB connection. When in WLAN mode, the ip to point your browser at will be shown in the notification area. With USB you have to forward the port 8080 with adb and use localhost (see related topic.)

Installation

  • Install the Android SDK (http://developer.android.com/sdk/) and make sure that the folder platform-tools is in your PATH (for adb)
  • Install SL4A (http://code.google.com/p/android-scripting/) on your phone
  • Install Py4A (http://code.google.com/p/python-for-android/) on your phone
  • Start Python for Android on your phone and press "Install"
  • Get the current files of droidbottle
  • Run ./install.sh

Start service

Start script run_droidbootle.py in SL4A or use ./droidbottle-l for a local USB connection.

Forward port on USB connection

::

adb forward tcp:8080 tcp:8080

Remote debugging

Start a server in SL4A/Interpreters/Menu, look up the port in SL4A notifications and forward the port::

adb shell am start -a com.googlecode.android_scripting.action.LAUNCH_SERVER -n com.googlecode.android_scripting/.activity.ScriptingLayerServiceLauncher
adb forward tcp:51943 tcp:51943
export AP_PORT=51943
python run_droidbottle.py

Related Skills

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated1y ago
Forks3

Languages

Python

Security Score

55/100

Audited on Jan 26, 2025

No findings