Skip to content

Commit

Permalink
Merge pull request #270 from s1204IT/main
Browse files Browse the repository at this point in the history
Optimizes
  • Loading branch information
simondankelmann authored May 9, 2024
2 parents 961140e + 56e3353 commit 02a2b24
Show file tree
Hide file tree
Showing 30 changed files with 49 additions and 248 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
*.jar binary
*.apk binary
*.png binary
*.jpg binary
*.jpeg binary
*.xcf binary
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- 'gradle/**'
- '*.gradle.*'
- '*.properties'
pull_request:
workflow_dispatch:

jobs:
Expand All @@ -26,11 +27,12 @@ jobs:
java-version: 17

- name: Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.gradle/caches/
~/.gradle/wrapper/
./.gradle/
key: ${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}

- name: Build with Gradle
Expand Down
18 changes: 5 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
*.iml
.gradle
/.gradle/
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
/.idea/
build/
/app/debug/
/app/release/
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/deploymentTargetDropDown.xml

This file was deleted.

19 changes: 0 additions & 19 deletions .idea/gradle.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/kotlinc.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/migrations.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/misc.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Bluetooth LE Spam <a href="https://discord.gg/x4e4Gma585">![Discord](https://img.shields.io/discord/1170266776731406386?label=Discord&link=https://discord.gg/x4e4Gma585)</a>
# Bluetooth LE Spam [![Discord](https://img.shields.io/discord/1170266776731406386?label=Discord&link=https://discord.gg/x4e4Gma585)](https://discord.gg/x4e4Gma585)

This project focuses on utilizing the built-in Bluetooth Low Energy (BLE) functionality of Android smartphones to create Phantom Bluetooth Device Advertisements, similar to what is known, for instance, in the case of the Flipper Zero. While there are other apps available that provide similar functionality, the objective of this app is to enhance convenience and user-friendliness in the process.

> **_NOTE:_** This project is in its early stages of development. Contributions from anyone are welcome. Therefore, the app is currently quite unreliable, and there isn't much we can do about it.
<h4><a href="https://discord.gg/x4e4Gma585">Join the Discord Server</a></h4>
#### [Join the Discord Server](https://discord.gg/x4e4Gma585)

## Requirements
- Android 8.0 (API level 26) or later
Expand Down Expand Up @@ -75,11 +75,14 @@ If you're an end-user looking for a fully functional app, download the Release A
- And special thanks to anyone else who has been involved in prior research and publications related to this topic.

## Screenshots
![](./Assets/Screenshots/1.0.5/start.jpeg)
![](./Assets/Screenshots/1.0.5/advertise.jpeg)
![](./Assets/Screenshots/1.0.8/detector1.jpeg)
![](./Assets/Screenshots/1.0.8/detector2.jpeg)
![](./Assets/Screenshots/1.0.5/settings.jpeg)
<details>

[![](Assets/Screenshots/1.0.5/start.jpeg)](#)
[![](Assets/Screenshots/1.0.5/advertise.jpeg)](#)
[![](Assets/Screenshots/1.0.8/detector1.jpeg)](#)
[![](Assets/Screenshots/1.0.8/detector2.jpeg)](#)
[![](Assets/Screenshots/1.0.5/settings.jpeg)](#)
</details>

## Disclaimer
Disclaimer for Bluetooth Low Energy Protocol Investigation Repository
Expand All @@ -101,5 +104,3 @@ This repository contains code for the investigation and experimentation of the B
By using and contributing to this repository, you agree to these disclaimers and guidelines. If you do not agree, please refrain from using or contributing to this repository.

For any questions or concerns, please contact the repository maintainers on Discord or Github.


1 change: 0 additions & 1 deletion app/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions app/.idea/.gitignore

This file was deleted.

13 changes: 0 additions & 13 deletions app/.idea/gradle.xml

This file was deleted.

10 changes: 0 additions & 10 deletions app/.idea/misc.xml

This file was deleted.

6 changes: 0 additions & 6 deletions app/.idea/vcs.xml

This file was deleted.

Binary file removed app/debug/app-debug.apk
Binary file not shown.
20 changes: 0 additions & 20 deletions app/debug/output-metadata.json

This file was deleted.

22 changes: 1 addition & 21 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,21 +1 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-ignorewarnings
Binary file removed app/release/app-release.apk
Binary file not shown.
20 changes: 0 additions & 20 deletions app/release/output-metadata.json

This file was deleted.

27 changes: 13 additions & 14 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,27 @@
android:name="android.permission.BLUETOOTH_ADMIN"
android:maxSdkVersion="30" />
<!--
Needed only if your app looks for Bluetooth devices.
Needed only if your app looks for Bluetooth devices.
If your app doesn't use Bluetooth scan results to derive physical
location information, you can
<a href="#assert-never-for-location">strongly assert that your app
doesn't derive physical location</a>. -->
doesn't derive physical location</a>.
-->

<uses-permission android:name="android.permission.BLUETOOTH_SCAN"/>

<!--
Needed only if your app makes the device discoverable to Bluetooth
<!--
Needed only if your app makes the device discoverable to Bluetooth
devices.
-->
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />

<!--
Needed only if your app communicates with already-paired Bluetooth
Needed only if your app communicates with already-paired Bluetooth
devices.
-->
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> <!--Needed only if your app uses Bluetooth scan results to derive physical location. -->
-->
<!--Needed only if your app uses Bluetooth scan results to derive physical location. -->
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />

<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Expand All @@ -42,36 +44,33 @@
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" />




<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/Theme.BluetoothLESpam.NoActionBar"
tools:targetApi="31">

<service android:foregroundServiceType="specialUse" android:name=".Services.AdvertisementForegroundService" />

<service android:foregroundServiceType="location" android:name=".Services.BluetoothLeScanForegroundService" />

<receiver android:name=".Services.AdvertisementForegroundService$ToggleButtonListener" />

<receiver android:name=".Services.AdvertisementForegroundService$StopButtonListener" />

<activity
android:name=".MainActivity"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/Theme.BluetoothLESpam.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
</manifest>
13 changes: 0 additions & 13 deletions app/src/main/res/xml/backup_rules.xml

This file was deleted.

19 changes: 0 additions & 19 deletions app/src/main/res/xml/data_extraction_rules.xml

This file was deleted.

Loading

0 comments on commit 02a2b24

Please sign in to comment.