Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Flipper Zero Hardware Integration and Misc Fixes #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
*.pyc
*.pyc
venv
build
dist
mirage.egg-info
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Download base image ubuntu 22.04
FROM ubuntu:22.04

# LABEL about the custom image
LABEL maintainer="[email protected]"
LABEL version="0.1"
LABEL description="This is a custom Docker Image for mirage, or you could just boot DragonOS ;)"

# Disable Prompt During Packages Installation
ARG DEBIAN_FRONTEND=noninteractive

# Update Ubuntu Software repository
RUN apt update
RUN apt upgrade -y

# Install HackRF library to enable HackRF experimental support
RUN apt install -y libhackrf-dev
12 changes: 12 additions & 0 deletions mirage/libs/ble_utils/flipperzero.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from mirage.libs import wireless

class BLEFlipperZeroDevice(wireless.Device):
'''
This device enables communication with a Flipper Zero in order to interact with the Bluetooth Low Energy (BLE)
protocol.

The corresponding interfaces are: TODO

The following capabilities are actually supported:
TODO
'''
20 changes: 20 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
contourpy==1.0.7
cycler==0.11.0
fonttools==4.39.4
importlib-resources==5.12.0
keyboard>=0.13.5
kiwisolver==1.4.4
matplotlib>=3.7.1
numpy==1.24.3
packaging==23.1
Pillow==9.5.0
psutil>=5.9.5
pycryptodomex>=3.17
pyparsing==3.0.9
pyserial>=3.5
python-dateutil==2.8.2
pyusb>=1.2.1
scapy>=2.5.0
six==1.16.0
terminaltables>=3.1.10
zipp==3.15.0