Library for test android api's via service
Project description
Library mainly Concentrated on Android and iOS Hardware Testing Library
Supported platform's android, linux, iOS, windows, mac
Trying to achive
Library to test the android internal Hardware Service's
Developed and Tested
-
Bluetooth ᛒ
ABLE TO DO
- Connect , Disconnect
- Pair , UnPair
- Enable, Disable Service Provider
- look for more..
-
Sensor (Device Supported Sensor's)
-
Text To Speech
-
Android Runtime Permission's Based on Android API Version
-
Media Control's
-
Record Audio ⏺️
-
Wifi 👎
-
Battery 🔋
-
Make Call (or) Dial Intent 📲
-
Brightness 🔆
-
Gps ➤
-
Android Toast 🔔
-
Device Sensor Information 📡
-
Vibrator 📳
-
Share 🔗
-
Email 📧
-
Camera 📷
Android Support 📱
- Android Background Service (Broadcast Receiver)
NOTE 💡
- Using the Android Background Service API you can able to receive the Android Internal Event Message's
- Aeroplane mode change's 🛩️
- Headset adaptor state change's 🎧
- Incoming Phone Call 📲
- more...
NOTE 💡
Python Module's
- pyjnius
- plyer
- flask
- kivy
- oscpy
Build and Run Example's
Requirements Installation
pip3 install -r requirements.txt
Build Debug APK
buildozer android debug
Build And Run into Target Machine
buildozer android debug deploy run
NOTE Example main file💡
Example main.py
from kivy.app import App
from kivy.lang import Builder
from hardware_agent.utils.permissions import RuntimePermission
from hardware_agent import App as TesterApp
KV = '''
BoxLayout:
orientation: 'vertical'
BoxLayout:
size_hint_y: None
height: '30sp'
Button:
text: 'telephony_permission'
on_press: app.telephony_permission()
Button:
text: 'bluetoothPermission'
on_press: app.bluetooth_permission()
Button:
text: 'locationPermission'
on_press: app.location_permission()
ScrollView:
Label:
id: label
size_hint_y: None
height: self.texture_size[1]
text_size: self.size[0], None
'''
class Tester(App):
def init(self):
self.permission = RuntimePermission()
TesterApp.use_flaskapp()
def on_pause(self):
return True
def telephony_permission(self):
self.permission.telephony_permission()
def location_permission(self):
self.permission.location_permission()
def bluetooth_permission(self):
self.permission.blutooth_permission()
def build(self):
self.init()
self.root = Builder.load_string(KV)
return self.root
if __name__ == '__main__':
Tester().run()
Way to Use Doc's
-
If you are enabled developer mode. adb daemon will start's or started automatically.
-
Run the following command.
adb forward tcp:5000 tcp:5000
-
why tcp:5000
?- Inside the Flask Application service will run on tcp:5000 port. So, we trying to expose the port inside the phone 📱 to desktop or development enviroment.
-
Open the any web browser 🌐
-
If the previous Link not works try below.
http://ipaddress:5000/docs (please replace the ip-address with the mobile connected network ip)
Looking for
🚀
- Stablity
- API for All Other Interface's
- FastAPI Intergration
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file android_prober-0.1.0.tar.gz
.
File metadata
- Download URL: android_prober-0.1.0.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbdbaaed07683c3308b11eb447bfce5497cc09611e95f52367db0163c35cd0b8 |
|
MD5 | dc55a2a00ceb8f0bef62a2876d4d15f5 |
|
BLAKE2b-256 | d1aea06eebd81f9e2091e9924bf442901670898e0ec415db73c322889fa5bb5f |
File details
Details for the file android_prober-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: android_prober-0.1.0-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cfcd11855bca904dc19e0c1fcdd26a1e4cb899bb0f20fb765e1d6ee4885d609 |
|
MD5 | 48b7ec575bdeb39638a73f814eb32487 |
|
BLAKE2b-256 | bfd283a65421b3b85e746b416db7f5295295935d9bf23ff24e21e3386afed8e7 |