Skip to content

Commit

Permalink
Add privacy policy
Browse files Browse the repository at this point in the history
  • Loading branch information
erikeelde committed Feb 15, 2023
1 parent 4ec2629 commit 992ff3f
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "daily"
open-pull-requests-limit: 20
open-pull-requests-limit: 0
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "" # Location of package manifests
schedule:
Expand Down
27 changes: 27 additions & 0 deletions privacy_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Toggles: Privacy Policy

This is an open source app developed by Erik Eelde.

I hereby state, to the best of my knowledge and belief, that I have not programmed this app to
collect any personally identifiable information. All data created by the you (the user) is stored on
your device only, and can be simply erased by clearing the app's data or uninstalling it.

It sends crashes to crashlytics to help fix crashes - I do not know how to delete that data.

### Explanation of permissions requested in the app

The list of permissions required by the app can be found in the `AndroidManifest.xml` file:

https://github.com/erikeelde/toggles/blob/main/toggles-app/src/main/AndroidManifest.xml#L16-L17

| Permission | Why it is required |
| :---: |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `android.permission.INTERNET` | Needed to be able to send crashes to crashlytics. |
| `android.permission.KILL_BACKGROUND_PROCESSES` | Allows the app to try to kill your apps process and recreating with default parameters. I've found this to be helpful when you toggle singleton state in the application. |
| `android.permission.POST_NOTIFICATIONS` | Required since the app uses leak canary and I have been experimenting with adding notifications as a port of toggles UX. |

If you find any security vulnerability that has been inadvertently caused by me, or have any
question regarding how the app protects your privacy, please post a discussion on GitHub, and I will
surely try to fix it/help you.


2 changes: 0 additions & 2 deletions toggles-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
android:label="@string/toggles_permission_label"
android:protectionLevel="normal" />

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

<application
Expand Down
15 changes: 1 addition & 14 deletions toggles-app/src/main/java/se/eelde/toggles/TogglesApplication.kt
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
package se.eelde.toggles

import android.app.Application
import androidx.hilt.work.HiltWorkerFactory
import androidx.work.Configuration
import dagger.hilt.android.HiltAndroidApp
import javax.inject.Inject

@HiltAndroidApp
class TogglesApplication : Application(), Configuration.Provider {

@Inject
lateinit var workerFactory: HiltWorkerFactory

override fun getWorkManagerConfiguration(): Configuration {
return Configuration.Builder()
.setWorkerFactory(workerFactory)
.build()
}
}
class TogglesApplication : Application()
25 changes: 0 additions & 25 deletions toggles-app/src/main/res/drawable/ic_notification_24dp.xml

This file was deleted.

1 change: 0 additions & 1 deletion toggles-app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="toggles_blue">#1E1A87</color>
<color name="notification_icon_color">@color/toggles_blue</color>
<color name="colorPrimary">@color/toggles_blue</color>
<color name="colorPrimaryDark">#131061</color>
<color name="colorAccent">#287F46</color>
Expand Down
4 changes: 0 additions & 4 deletions toggles-app/src/main/res/values/ids.xml

This file was deleted.

4 changes: 0 additions & 4 deletions toggles-app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@

<string name="help_implementation_title">Implementation</string>
<string name="save">save</string>
<string name="notification_content_title">%1$s</string>
<string name="notification_channel_name">App toggled</string>
<string name="notification_channel_description">Notifies that an app used toggles to configure a setting</string>
<string name="title_activity_bubble">Bubble activity</string>
<string name="label_reply">label_reply</string>
<string name="hint_input">hint_input</string>
<string name="sender_you">sender_you</string>
Expand Down

0 comments on commit 992ff3f

Please sign in to comment.