From 55aca982a13abc0b0ab8e6d48455e5635a3982a1 Mon Sep 17 00:00:00 2001 From: Kavish Devar Date: Mon, 30 Dec 2024 20:40:40 +0530 Subject: [PATCH] change back license from GPL to AGPL --- AAP Definitions.md | 17 ++ LICENSE | 161 ++++++++---------- README.md | 10 +- android-hooking/hook.js | 16 ++ .../java/me/kavishdevar/aln/BatteryWidget.kt | 19 +++ .../kavishdevar/aln/CustomDeviceActivity.kt | 18 ++ .../java/me/kavishdevar/aln/MainActivity.kt | 18 ++ .../aln/composables/AccessibilitySettings.kt | 18 ++ .../aln/composables/AdaptiveStrengthSlider.kt | 18 ++ .../aln/composables/AudioSettings.kt | 18 ++ .../aln/composables/BatteryIndicator.kt | 18 ++ .../aln/composables/BatteryView.kt | 18 ++ .../ConversationalAwarenessSwitch.kt | 18 ++ .../aln/composables/IndependentToggle.kt | 18 ++ .../composables/LoudSoundReductionSwitch.kt | 18 ++ .../aln/composables/NavigationButton.kt | 18 ++ .../aln/composables/NoiseControlButton.kt | 18 ++ .../aln/composables/NoiseControlSettings.kt | 18 ++ .../composables/PersonalizedVolumeSwitch.kt | 18 ++ .../aln/composables/PressAndHoldSettings.kt | 18 ++ .../aln/composables/SinglePodANCSwitch.kt | 18 ++ .../aln/composables/StyledSwitch.kt | 18 ++ .../aln/composables/StyledTextField.kt | 18 ++ .../aln/composables/ToneVolumeSlider.kt | 18 ++ .../aln/composables/VolumeControlSwitch.kt | 18 ++ .../kavishdevar/aln/receivers/BootReceiver.kt | 18 ++ .../aln/screens/AirPodsSettingsScreen.kt | 18 ++ .../me/kavishdevar/aln/screens/DebugScreen.kt | 18 ++ .../aln/screens/PressAndHoldSettingsScreen.kt | 18 ++ .../aln/services/AirPodsQSService.kt | 18 ++ .../aln/services/AirPodsService.kt | 18 ++ .../java/me/kavishdevar/aln/ui/theme/Color.kt | 19 +++ .../java/me/kavishdevar/aln/ui/theme/Theme.kt | 18 ++ .../java/me/kavishdevar/aln/ui/theme/Type.kt | 18 ++ .../kavishdevar/aln/utils/MediaController.kt | 19 +++ .../java/me/kavishdevar/aln/utils/Packets.kt | 19 +++ .../java/me/kavishdevar/aln/utils/Window.kt | 19 +++ head-tracking/combined.py | 16 ++ head-tracking/final.py | 16 ++ head-tracking/main.py | 16 ++ head-tracking/review.py | 16 ++ head-tracking/test-head.py | 12 +- head-tracking/tk.py | 16 ++ linux/aln/AirPods/Pro2.py | 12 +- linux/aln/AirPods/__init__.py | 12 +- linux/aln/Capabilites/__init__.py | 12 +- linux/aln/Notifications/ANC.py | 12 +- linux/aln/Notifications/Battery.py | 12 +- .../Notifications/ConversationalAwareness.py | 12 +- linux/aln/Notifications/EarDetection.py | 12 +- linux/aln/Notifications/Listener.py | 13 +- linux/aln/Notifications/__init__.py | 12 +- linux/aln/__init__.py | 12 +- linux/aln/__main__.py | 12 +- linux/aln/enums.py | 12 +- linux/aln/listener.py | 16 ++ linux/examples/daemon/ear-detection.py | 12 +- linux/examples/daemon/read-data.py | 13 +- linux/examples/daemon/set-anc.py | 12 +- linux/examples/daemon/tray.py | 12 +- linux/examples/daemon/write-data.py | 12 +- linux/examples/logger-and-anc.py | 12 +- linux/examples/standalone.py | 12 +- linux/start-daemon.py | 12 +- linux/test_l2.py | 18 ++ 65 files changed, 951 insertions(+), 220 deletions(-) diff --git a/AAP Definitions.md b/AAP Definitions.md index 549be3c..2b59ebc 100644 --- a/AAP Definitions.md +++ b/AAP Definitions.md @@ -337,3 +337,20 @@ Example packet ```plaintext 04 00 04 00 17 00 00 00 10 00 11 00 08 7E 10 02 42 0B 08 4E 10 02 1A 05 01 00 00 00 00 ``` + +# LICENSE + +AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +Copyright (C) 2024 Kavish Devar + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published +by the Free Software Foundation, either version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . \ No newline at end of file diff --git a/LICENSE b/LICENSE index 6eecf3d..29ebfa5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies @@ -7,17 +7,15 @@ Preamble - The GNU General Public License is a free, copyleft license for -software and other kinds of works. + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to +our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. +software for all its users. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you @@ -26,44 +24,34 @@ them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. The precise terms and conditions for copying, distribution and modification follow. @@ -72,7 +60,7 @@ modification follow. 0. Definitions. - "This License" refers to version 3 of the GNU General Public License. + "This License" refers to version 3 of the GNU Affero General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. @@ -549,35 +537,45 @@ to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - 13. Use with the GNU Affero General Public License. + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single +under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General +Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published +GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's +versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. @@ -631,44 +629,33 @@ to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - - Copyright (C) + + Copyright (C) - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program. If not, see . + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. \ No newline at end of file +For more information on this, and how to apply and follow the GNU AGPL, see +. \ No newline at end of file diff --git a/README.md b/README.md index e1b3c63..5c5295b 100644 --- a/README.md +++ b/README.md @@ -122,13 +122,13 @@ AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android fo Copyright (C) 2024 Kavish Devar This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, version 3 of the License. +it under the terms of the GNU Affero General Public License as published +by the Free Software Foundation, either version 3 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +GNU Affero General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program over [here](/LICENSE). If not, see . +You should have received a copy of the GNU Affero General Public License +along with this program over [here](/LICENSE). If not, see . \ No newline at end of file diff --git a/android-hooking/hook.js b/android-hooking/hook.js index 2eafa41..1fccc03 100644 --- a/android-hooking/hook.js +++ b/android-hooking/hook.js @@ -1,3 +1,19 @@ +// AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +// +// Copyright (C) 2024 Kavish Devar +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + Java.perform(function () { // Locate the native library var libbluetooth = Module.findExportByName("libbluetooth_jni.so", "l2c_fcr_chk_chan_modes"); diff --git a/android/app/src/main/java/me/kavishdevar/aln/BatteryWidget.kt b/android/app/src/main/java/me/kavishdevar/aln/BatteryWidget.kt index c49e690..2af1262 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/BatteryWidget.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/BatteryWidget.kt @@ -1,3 +1,22 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + + package me.kavishdevar.aln import android.appwidget.AppWidgetManager diff --git a/android/app/src/main/java/me/kavishdevar/aln/CustomDeviceActivity.kt b/android/app/src/main/java/me/kavishdevar/aln/CustomDeviceActivity.kt index 61468e5..5f2fd5d 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/CustomDeviceActivity.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/CustomDeviceActivity.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln import android.annotation.SuppressLint diff --git a/android/app/src/main/java/me/kavishdevar/aln/MainActivity.kt b/android/app/src/main/java/me/kavishdevar/aln/MainActivity.kt index a80344c..bdc520a 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/MainActivity.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/MainActivity.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln import android.annotation.SuppressLint diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/AccessibilitySettings.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/AccessibilitySettings.kt index 62deaa9..c437dcb 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/AccessibilitySettings.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/AccessibilitySettings.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import android.content.Context diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/AdaptiveStrengthSlider.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/AdaptiveStrengthSlider.kt index 89ad389..f70c4fa 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/AdaptiveStrengthSlider.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/AdaptiveStrengthSlider.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import android.content.Context diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/AudioSettings.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/AudioSettings.kt index 9cf772c..e85f460 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/AudioSettings.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/AudioSettings.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import android.content.Context diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/BatteryIndicator.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/BatteryIndicator.kt index eb55cf4..89b5d38 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/BatteryIndicator.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/BatteryIndicator.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import androidx.compose.foundation.background diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/BatteryView.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/BatteryView.kt index 05be0f5..be93277 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/BatteryView.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/BatteryView.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import android.content.BroadcastReceiver diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/ConversationalAwarenessSwitch.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/ConversationalAwarenessSwitch.kt index ed37eaa..0c9f6d7 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/ConversationalAwarenessSwitch.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/ConversationalAwarenessSwitch.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import android.content.SharedPreferences diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/IndependentToggle.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/IndependentToggle.kt index 8a2b283..1c5b21c 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/IndependentToggle.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/IndependentToggle.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import android.content.SharedPreferences diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/LoudSoundReductionSwitch.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/LoudSoundReductionSwitch.kt index fa41362..0cb817c 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/LoudSoundReductionSwitch.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/LoudSoundReductionSwitch.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import android.content.SharedPreferences diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/NavigationButton.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/NavigationButton.kt index 44f5090..2376336 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/NavigationButton.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/NavigationButton.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import androidx.compose.foundation.background diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/NoiseControlButton.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/NoiseControlButton.kt index f7758aa..8713376 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/NoiseControlButton.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/NoiseControlButton.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import androidx.compose.foundation.background diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/NoiseControlSettings.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/NoiseControlSettings.kt index ce0811b..79d3e5e 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/NoiseControlSettings.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/NoiseControlSettings.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import android.annotation.SuppressLint diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/PersonalizedVolumeSwitch.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/PersonalizedVolumeSwitch.kt index 8301840..f631ca3 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/PersonalizedVolumeSwitch.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/PersonalizedVolumeSwitch.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import android.content.SharedPreferences diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/PressAndHoldSettings.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/PressAndHoldSettings.kt index 28717de..d91e05e 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/PressAndHoldSettings.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/PressAndHoldSettings.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import androidx.compose.foundation.background diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/SinglePodANCSwitch.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/SinglePodANCSwitch.kt index 4634a8c..e572b62 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/SinglePodANCSwitch.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/SinglePodANCSwitch.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import android.content.SharedPreferences diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/StyledSwitch.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/StyledSwitch.kt index e0c423e..c583d20 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/StyledSwitch.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/StyledSwitch.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import androidx.compose.animation.core.animateDpAsState diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/StyledTextField.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/StyledTextField.kt index df329d5..c66b0d8 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/StyledTextField.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/StyledTextField.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import androidx.compose.foundation.background diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/ToneVolumeSlider.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/ToneVolumeSlider.kt index 21b4639..a305712 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/ToneVolumeSlider.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/ToneVolumeSlider.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import android.content.SharedPreferences diff --git a/android/app/src/main/java/me/kavishdevar/aln/composables/VolumeControlSwitch.kt b/android/app/src/main/java/me/kavishdevar/aln/composables/VolumeControlSwitch.kt index 899042b..f668c0a 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/composables/VolumeControlSwitch.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/composables/VolumeControlSwitch.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.composables import android.content.SharedPreferences diff --git a/android/app/src/main/java/me/kavishdevar/aln/receivers/BootReceiver.kt b/android/app/src/main/java/me/kavishdevar/aln/receivers/BootReceiver.kt index d7283f5..cd2a20e 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/receivers/BootReceiver.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/receivers/BootReceiver.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.receivers import android.content.BroadcastReceiver diff --git a/android/app/src/main/java/me/kavishdevar/aln/screens/AirPodsSettingsScreen.kt b/android/app/src/main/java/me/kavishdevar/aln/screens/AirPodsSettingsScreen.kt index 211fb70..aba4bbe 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/screens/AirPodsSettingsScreen.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/screens/AirPodsSettingsScreen.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.screens import android.annotation.SuppressLint diff --git a/android/app/src/main/java/me/kavishdevar/aln/screens/DebugScreen.kt b/android/app/src/main/java/me/kavishdevar/aln/screens/DebugScreen.kt index 74c02c2..a71eaa5 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/screens/DebugScreen.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/screens/DebugScreen.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + @file:OptIn(ExperimentalHazeMaterialsApi::class) package me.kavishdevar.aln.screens diff --git a/android/app/src/main/java/me/kavishdevar/aln/screens/PressAndHoldSettingsScreen.kt b/android/app/src/main/java/me/kavishdevar/aln/screens/PressAndHoldSettingsScreen.kt index 159d0c0..8b993f8 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/screens/PressAndHoldSettingsScreen.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/screens/PressAndHoldSettingsScreen.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.screens import android.content.Context diff --git a/android/app/src/main/java/me/kavishdevar/aln/services/AirPodsQSService.kt b/android/app/src/main/java/me/kavishdevar/aln/services/AirPodsQSService.kt index 3f998cf..cf64ea2 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/services/AirPodsQSService.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/services/AirPodsQSService.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.services import android.annotation.SuppressLint diff --git a/android/app/src/main/java/me/kavishdevar/aln/services/AirPodsService.kt b/android/app/src/main/java/me/kavishdevar/aln/services/AirPodsService.kt index bb2c5f8..0310c76 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/services/AirPodsService.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/services/AirPodsService.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.services import android.annotation.SuppressLint diff --git a/android/app/src/main/java/me/kavishdevar/aln/ui/theme/Color.kt b/android/app/src/main/java/me/kavishdevar/aln/ui/theme/Color.kt index a2875c1..bfe3985 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/ui/theme/Color.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/ui/theme/Color.kt @@ -1,3 +1,22 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + + package me.kavishdevar.aln.ui.theme import androidx.compose.ui.graphics.Color diff --git a/android/app/src/main/java/me/kavishdevar/aln/ui/theme/Theme.kt b/android/app/src/main/java/me/kavishdevar/aln/ui/theme/Theme.kt index f655f4a..b0d66da 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/ui/theme/Theme.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/ui/theme/Theme.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.ui.theme import android.os.Build diff --git a/android/app/src/main/java/me/kavishdevar/aln/ui/theme/Type.kt b/android/app/src/main/java/me/kavishdevar/aln/ui/theme/Type.kt index c37bbcb..5d17c6e 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/ui/theme/Type.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/ui/theme/Type.kt @@ -1,3 +1,21 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + package me.kavishdevar.aln.ui.theme import androidx.compose.material3.Typography diff --git a/android/app/src/main/java/me/kavishdevar/aln/utils/MediaController.kt b/android/app/src/main/java/me/kavishdevar/aln/utils/MediaController.kt index 7f4431a..8936506 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/utils/MediaController.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/utils/MediaController.kt @@ -1,3 +1,22 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + + package me.kavishdevar.aln.utils import android.media.AudioManager diff --git a/android/app/src/main/java/me/kavishdevar/aln/utils/Packets.kt b/android/app/src/main/java/me/kavishdevar/aln/utils/Packets.kt index 4a86361..b1aa27a 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/utils/Packets.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/utils/Packets.kt @@ -1,3 +1,22 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + + @file:Suppress("unused") package me.kavishdevar.aln.utils diff --git a/android/app/src/main/java/me/kavishdevar/aln/utils/Window.kt b/android/app/src/main/java/me/kavishdevar/aln/utils/Window.kt index 9deee44..cc45c9c 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/utils/Window.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/utils/Window.kt @@ -1,3 +1,22 @@ +/* + * AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! + * + * Copyright (C) 2024 Kavish Devar + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + + package me.kavishdevar.aln.utils import android.animation.Animator diff --git a/head-tracking/combined.py b/head-tracking/combined.py index f2837fe..632644e 100644 --- a/head-tracking/combined.py +++ b/head-tracking/combined.py @@ -1,3 +1,19 @@ +# AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# +# Copyright (C) 2024 Kavish Devar +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + import matplotlib.pyplot as plt import mplcursors import bluetooth diff --git a/head-tracking/final.py b/head-tracking/final.py index 0c14b4c..abfc21b 100644 --- a/head-tracking/final.py +++ b/head-tracking/final.py @@ -1,3 +1,19 @@ +# AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# +# Copyright (C) 2024 Kavish Devar +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + import bluetooth import threading import time diff --git a/head-tracking/main.py b/head-tracking/main.py index fdaf667..bb31319 100644 --- a/head-tracking/main.py +++ b/head-tracking/main.py @@ -1,3 +1,19 @@ +# AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# +# Copyright (C) 2024 Kavish Devar +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + import os import matplotlib.pyplot as plt import mplcursors diff --git a/head-tracking/review.py b/head-tracking/review.py index b6dfbc8..9883e18 100644 --- a/head-tracking/review.py +++ b/head-tracking/review.py @@ -1,3 +1,19 @@ +# AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# +# Copyright (C) 2024 Kavish Devar +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + import matplotlib.pyplot as plt import mplcursors import bluetooth diff --git a/head-tracking/test-head.py b/head-tracking/test-head.py index 155f1ed..9eb1ecd 100644 --- a/head-tracking/test-head.py +++ b/head-tracking/test-head.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import bluetooth import threading diff --git a/head-tracking/tk.py b/head-tracking/tk.py index 8830f2a..0d02981 100644 --- a/head-tracking/tk.py +++ b/head-tracking/tk.py @@ -1,3 +1,19 @@ +# AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# +# Copyright (C) 2024 Kavish Devar +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + import matplotlib.pyplot as plt import mplcursors import bluetooth diff --git a/linux/aln/AirPods/Pro2.py b/linux/aln/AirPods/Pro2.py index 9911dc6..aa6833c 100644 --- a/linux/aln/AirPods/Pro2.py +++ b/linux/aln/AirPods/Pro2.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . from ..Capabilites import Capabilites class Pro2: diff --git a/linux/aln/AirPods/__init__.py b/linux/aln/AirPods/__init__.py index b44caf5..d0a8855 100644 --- a/linux/aln/AirPods/__init__.py +++ b/linux/aln/AirPods/__init__.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . from . import Pro2 diff --git a/linux/aln/Capabilites/__init__.py b/linux/aln/Capabilites/__init__.py index c70fa42..f913904 100644 --- a/linux/aln/Capabilites/__init__.py +++ b/linux/aln/Capabilites/__init__.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . class NoiseCancellation: OFF = b"\x01" diff --git a/linux/aln/Notifications/ANC.py b/linux/aln/Notifications/ANC.py index 2936e0f..72896be 100644 --- a/linux/aln/Notifications/ANC.py +++ b/linux/aln/Notifications/ANC.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . from ..enums import enums from ..Capabilites import Capabilites diff --git a/linux/aln/Notifications/Battery.py b/linux/aln/Notifications/Battery.py index 78d5fc5..c9cffda 100644 --- a/linux/aln/Notifications/Battery.py +++ b/linux/aln/Notifications/Battery.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . class BatteryComponent: LEFT = 4 diff --git a/linux/aln/Notifications/ConversationalAwareness.py b/linux/aln/Notifications/ConversationalAwareness.py index 85a8c49..55609f2 100644 --- a/linux/aln/Notifications/ConversationalAwareness.py +++ b/linux/aln/Notifications/ConversationalAwareness.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . from ..enums import enums diff --git a/linux/aln/Notifications/EarDetection.py b/linux/aln/Notifications/EarDetection.py index af046b7..d72bb90 100644 --- a/linux/aln/Notifications/EarDetection.py +++ b/linux/aln/Notifications/EarDetection.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . from ..Capabilites import Capabilites from ..enums import enums diff --git a/linux/aln/Notifications/Listener.py b/linux/aln/Notifications/Listener.py index 05bb8a4..902ffc9 100644 --- a/linux/aln/Notifications/Listener.py +++ b/linux/aln/Notifications/Listener.py @@ -1,19 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . from bluetooth import BluetoothSocket import threading from .Battery import BatteryNotification diff --git a/linux/aln/Notifications/__init__.py b/linux/aln/Notifications/__init__.py index 23a3dd0..2de182b 100644 --- a/linux/aln/Notifications/__init__.py +++ b/linux/aln/Notifications/__init__.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . from .Listener import NotificationListener from ..enums import enums diff --git a/linux/aln/__init__.py b/linux/aln/__init__.py index f74eec0..f5a319d 100644 --- a/linux/aln/__init__.py +++ b/linux/aln/__init__.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . from .Notifications import Notifications import bluetooth diff --git a/linux/aln/__main__.py b/linux/aln/__main__.py index 08b928b..bf15225 100644 --- a/linux/aln/__main__.py +++ b/linux/aln/__main__.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import logging.handlers import socket diff --git a/linux/aln/enums.py b/linux/aln/enums.py index f5a6561..8fc49b6 100644 --- a/linux/aln/enums.py +++ b/linux/aln/enums.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . from .Capabilites import Capabilites diff --git a/linux/aln/listener.py b/linux/aln/listener.py index 66258ef..f526b3c 100644 --- a/linux/aln/listener.py +++ b/linux/aln/listener.py @@ -1,3 +1,19 @@ +# AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# +# Copyright (C) 2024 Kavish Devar +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + import bluetooth import time diff --git a/linux/examples/daemon/ear-detection.py b/linux/examples/daemon/ear-detection.py index 78ee10a..4fb2ac3 100644 --- a/linux/examples/daemon/ear-detection.py +++ b/linux/examples/daemon/ear-detection.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import socket import json diff --git a/linux/examples/daemon/read-data.py b/linux/examples/daemon/read-data.py index f53afbe..d0660f7 100644 --- a/linux/examples/daemon/read-data.py +++ b/linux/examples/daemon/read-data.py @@ -1,19 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import socket import json import logging diff --git a/linux/examples/daemon/set-anc.py b/linux/examples/daemon/set-anc.py index 7eeaf05..b04b0e8 100644 --- a/linux/examples/daemon/set-anc.py +++ b/linux/examples/daemon/set-anc.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import socket import argparse diff --git a/linux/examples/daemon/tray.py b/linux/examples/daemon/tray.py index 3f587de..74ccd99 100644 --- a/linux/examples/daemon/tray.py +++ b/linux/examples/daemon/tray.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import sys import socket diff --git a/linux/examples/daemon/write-data.py b/linux/examples/daemon/write-data.py index 7246620..5490692 100644 --- a/linux/examples/daemon/write-data.py +++ b/linux/examples/daemon/write-data.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import socket import argparse diff --git a/linux/examples/logger-and-anc.py b/linux/examples/logger-and-anc.py index f8a887b..0273a2c 100644 --- a/linux/examples/logger-and-anc.py +++ b/linux/examples/logger-and-anc.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . from aln import Connection from aln import enums diff --git a/linux/examples/standalone.py b/linux/examples/standalone.py index a525624..69e38eb 100644 --- a/linux/examples/standalone.py +++ b/linux/examples/standalone.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import threading import bluetooth diff --git a/linux/start-daemon.py b/linux/start-daemon.py index c93a8a8..8fe3a6a 100644 --- a/linux/start-daemon.py +++ b/linux/start-daemon.py @@ -1,18 +1,18 @@ # AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# # Copyright (C) 2024 Kavish Devar # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import logging.handlers import socket diff --git a/linux/test_l2.py b/linux/test_l2.py index 82f1d96..3049676 100644 --- a/linux/test_l2.py +++ b/linux/test_l2.py @@ -1,5 +1,23 @@ +# AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! +# +# Copyright (C) 2024 Kavish Devar +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + import bluetooth + address="28:2D:7F:C2:05:5B" + try: sock = bluetooth.BluetoothSocket(bluetooth.L2CAP) sock.connect((address, 0x1001))