diff options
Diffstat (limited to '37c3')
24 files changed, 3163 insertions, 0 deletions
diff --git a/37c3/Replicant_introduction/COPYING b/37c3/Replicant_introduction/COPYING new file mode 100644 index 0000000..fd662a7 --- /dev/null +++ b/37c3/Replicant_introduction/COPYING @@ -0,0 +1,428 @@ +Attribution-ShareAlike 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More_considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution-ShareAlike 4.0 International Public +License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution-ShareAlike 4.0 International Public License ("Public +License"). To the extent this Public License may be interpreted as a +contract, You are granted the Licensed Rights in consideration of Your +acceptance of these terms and conditions, and the Licensor grants You +such rights in consideration of benefits the Licensor receives from +making the Licensed Material available under these terms and +conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. BY-SA Compatible License means a license listed at + creativecommons.org/compatiblelicenses, approved by Creative + Commons as essentially the equivalent of this Public License. + + d. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + e. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + f. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + g. License Elements means the license attributes listed in the name + of a Creative Commons Public License. The License Elements of this + Public License are Attribution and ShareAlike. + + h. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + i. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + j. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + k. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + l. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + m. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. Additional offer from the Licensor -- Adapted Material. + Every recipient of Adapted Material from You + automatically receives an offer from the Licensor to + exercise the Licensed Rights in the Adapted Material + under the conditions of the Adapter's License You apply. + + c. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + b. ShareAlike. + + In addition to the conditions in Section 3(a), if You Share + Adapted Material You produce, the following conditions also apply. + + 1. The Adapter's License You apply must be a Creative Commons + license with the same License Elements, this version or + later, or a BY-SA Compatible License. + + 2. You must include the text of, or the URI or hyperlink to, the + Adapter's License You apply. You may satisfy this condition + in any reasonable manner based on the medium, means, and + context in which You Share Adapted Material. + + 3. You may not offer or impose any additional or different terms + or conditions on, or apply any Effective Technological + Measures to, Adapted Material that restrict exercise of the + rights granted under the Adapter's License You apply. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material, + + including for purposes of Section 3(b); and + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. + diff --git a/37c3/Replicant_introduction/Makefile b/37c3/Replicant_introduction/Makefile new file mode 100644 index 0000000..0847bfe --- /dev/null +++ b/37c3/Replicant_introduction/Makefile @@ -0,0 +1,23 @@ +TEXFLAGS ?= -halt-on-error -output-format pdf -output-directory output +TITLE = Replicant_introduction +IMAGES := \ + output/i9300_hardware.png \ + +.PHONY: all clean test medias +all: output/$(TITLE).pdf + +output: + mkdir -p output + +output/$(TITLE).pdf: output $(TITLE).tex $(IMAGES) + pdflatex $(TEXFLAGS) '\providecommand\locale{en}\input{$(TITLE).tex}' + pdflatex $(TEXFLAGS) '\providecommand\locale{en}\input{$(TITLE).tex}' + +output/%.png: dot/%.dot output + dot -T png $< > $@ + +output/i9300_hardware.png: ../../common/images/i9300_hardware.svg + convert $< $@ + +clean: + rm -rf output diff --git a/37c3/Replicant_introduction/Replicant_introduction.tex b/37c3/Replicant_introduction/Replicant_introduction.tex new file mode 100644 index 0000000..5bf5815 --- /dev/null +++ b/37c3/Replicant_introduction/Replicant_introduction.tex @@ -0,0 +1,210 @@ +\documentclass{beamer} +\usepackage[english]{babel} +\usepackage{color} +\usepackage{graphicx} +\usepackage{ifthen} +\usepackage[utf8]{inputenc} +\usepackage{ulem} +\usepackage{listings} +\usepackage{pdfpages} +\usepackage{tikz} +\usepackage{xtab} + +\newcommand{\outputpicture}[2] { + {\includegraphics[scale=#1]{output/#2}} +} +\newcommand{\devicepicture}[1] { + {\includegraphics[width=.2\textwidth]{../../external_resources/replicant_website/images/supported-devices/#1.png}} +} + +\title{Replicant: A fully free Android distribution} +\author{Denis 'GNUtoo' Carikli and David 'dllud' Ludovino} +\date{December 27, 2023} + +\begin{document} + +\maketitle + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{frame} + \center{Quick Facts} + \begin{itemize} + \item Complies with the Free System Distribution Guidelines (FSDG) + \item Website: replicant.us + \item Exists since September 2009. + \item Currently based on LineageOS. + \item Android versions: + \begin{itemize} + \item Replicant 6: Android 6, last security update: October 2017\cite{last-android-6-update}. + \item Replicant 11: Android 11, partial port\cite{porting-to-android-11}. + \end{itemize} + \item Supports $\sim$ 10 devices (smartphones and tablets). + \item $\sim$ 1 part time equivalent contributor and a small community. + \end{itemize} +\end{frame} + +\begin{frame} + \begin{xtabular}{llll} + \devicepicture{i9100} & + \devicepicture{maguro} & + \devicepicture{i9300} & + \devicepicture{n7000} \\ + \devicepicture{n7100} & + \devicepicture{n5100} & + \devicepicture{p3100} & + \devicepicture{p5100} \\ + \end{xtabular} +\end{frame} + +\begin{frame} + \center{ + Best effort: \\ + minimum feature set required to support a device: + } + \begin{itemize} + \item Display working and graphics fast enough. + \item Sound working. + \item Be able to make calls. + \item etc. + \item GPS, camera, and other non crucial hardware may not work, or work in later releases. + \end{itemize} +\end{frame} + +\begin{frame} + \center{ + Fully free distribution on smartphones? \\ + \bigskip + "Present-day cell phones are Stalin's dream.” \\ + Richard Stallman\cite{stalin-dream} + } +\end{frame} + +\begin{frame} + \center{We have a lot of freedom issues...} +\end{frame} + +{ + \begin{frame} + \center{A Galaxy SIII (I9300):} + \outputpicture{0.8}{i9300_hardware.png} + \end{frame} +} + +{ + \begin{frame} + \center{Freedom issues in supported devices} + \outputpicture{0.8}{i9300_hardware.png} + \begin{itemize} + \item The cellular network + \item The modem firmware + \item Other nonfree firmwares + \item Bootloaders and TrustZone + \item Upstream anti-feature and huge code base + \end{itemize} + \end{frame} +} + +{ + \begin{frame} + \center{Tablets without modem?} + \begin{itemize} + \item \sout{The cellular network}. + \item \sout{The modem firmware}. + \item Also possible to "disable" the modem on some devices. + \end{itemize} + \end{frame} +} + +{ + \begin{frame} + \center{Freedom issues in LineageOS (without Google Play)} + \outputpicture{0.8}{i9300_hardware.png} + \begin{itemize} + \item += Modem control over the device (MSM7K) or shared memory. + \item += Nonfree libraries: RIL backdoor, etc. + \item += Anti-features. + \end{itemize} + \end{frame} +} + +{ + \begin{frame} + \center{Worst case with stock devices:} + \begin{itemize} + \item += Only the kernel is free software. + \item += Users potentially locked out of their devices. + \item += Many anti-features or unwanted applications. + \item $\rightarrow$ Remaining freedoms: The ability to install F-Droid or other applications. + \end{itemize} + \end{frame} +} + +\begin{frame} + \center{ + "Present-day cell phones are Stalin's dream.” \\ + Richard Stallman\cite{stalin-dream} \\ + \bigskip + So that's why... \\ + \bigskip + Along with the fact that nowadays there is way more surveillance than in the USSR... \\ + } +\end{frame} + +\begin{frame} + \center{Why Android?} + \begin{itemize} + \item Advantages: + \begin{itemize} + \item GUI and applications adapted to big fingers. + \item $\rightarrow$ Run on devices that: + \begin{itemize} + \item Lack keyboard. + \item Have capacitive touchscreen and no stylus. + \item Have very small displays with very high number of pixels. + \end{itemize} + \end{itemize} + \item Issues + \begin{itemize} + \item Part of the GNU/Linux software architecture is light years away: package management and build system, graphics, audio, etc. + \item Huge unknown code from Google + \item Meant to run proprietary software, not to empower users. + \end{itemize} + \end{itemize} +\end{frame} + +\begin{frame} + \center{Future work:} + \begin{itemize} + \item Porting to PinePhone (thanks to NLnet/NGI funding) + \item Porting to Android 13+, upstreaming and related graphics work. + \item New Replicant 6 release and fixing bugs: + \begin{itemize} + \item FSDG distributions and licensing issues (build system) + \item Modem control GUIs + \end{itemize} + \item WebView + \item Build system + \item F-Droid freedom issues / Android SDK +% \item Bootloaders (Galaxy SIII and Galaxy Note II: XBOOT) + \item Infrastructure (migration to MediaWiki, etc.) + \end{itemize} +\end{frame} + +\begin{frame} + \center{Licenses} + \begin{itemize} + \item This presentation: CC-BY-SA 4.0 International + \item The Galaxy SIII internals: CC-BY-SA 4.0 International + \item The supported devices pictures: CC-BY-SA 3.0 Unported + \end{itemize} +\end{frame} + +\begin{thebibliography}{99} +\bibitem{last-android-6-update} + \url{https://en.wikipedia.org/wiki/Android_Marshmallow#cite_note-2} +\bibitem{porting-to-android-11} + \url{https://redmine.replicant.us/projects/replicant/wiki/PortingToAndroid11} +\bibitem{stalin-dream} + \url{https://stallman.org/archives/2011-nov-feb.html} +\end{thebibliography} +\end{document} diff --git a/37c3/Replicant_introduction/panther-proprietary-files.txt b/37c3/Replicant_introduction/panther-proprietary-files.txt new file mode 100644 index 0000000..435c061 --- /dev/null +++ b/37c3/Replicant_introduction/panther-proprietary-files.txt @@ -0,0 +1,162 @@ +# All blobs are extracted from Google factory images for each new ASB + +# product partition + +# AiAi +product/priv-app/DeviceIntelligenceNetworkPrebuilt/DeviceIntelligenceNetworkPrebuilt.apk;PRESIGNED +product/priv-app/DevicePersonalizationPrebuiltPixel2022/DevicePersonalizationPrebuiltPixel2022.apk;PRESIGNED + +# Audio +product/etc/ambient/matcher_tah.leveldb +product/etc/firmware/music_detector.descriptor +product/etc/firmware/music_detector.sound_model +product/etc/firmware/music_detector.sound_model_2 +product/etc/firmware/music_detector.sound_model_tflite + +# Camera extensions +product/app/PixelCameraServicesP10/PixelCameraServicesP10.apk;PRESIGNED + +# Felica +product/etc/felica/common.cfg +product/etc/felica/mfm.cfg +product/etc/felica/mfs.cfg + +# Hardware info +product/etc/permissions/com.google.android.hardwareinfo.xml +product/framework/libhwinfo.jar +product/priv-app/HardwareInfo/HardwareInfo.apk;PRESIGNED + +# Hotword +product/priv-app/HotwordEnrollmentOKGoogleFUSIONPro/HotwordEnrollmentOKGoogleFUSIONPro.apk;PRESIGNED +product/priv-app/HotwordEnrollmentXGoogleFUSIONPro/HotwordEnrollmentXGoogleFUSIONPro.apk;PRESIGNED + +# IMS +product/etc/sysconfig/allowlist_com.shannon.imsservice.xml + +# Permissions +product/etc/permissions/privapp-permissions-google-p.xml:product/etc/permissions/privapp-permissions-google-p-lineage.xml +product/etc/sysconfig/google-hiddenapi-package-whitelist.xml +product/etc/sysconfig/nexus.xml +product/etc/sysconfig/pixel_experience_2017.xml +product/etc/sysconfig/pixel_experience_2018.xml +product/etc/sysconfig/pixel_experience_2019.xml +product/etc/sysconfig/pixel_experience_2019_midyear.xml +product/etc/sysconfig/pixel_experience_2020.xml +product/etc/sysconfig/pixel_experience_2020_midyear.xml +product/etc/sysconfig/pixel_experience_2021.xml +product/etc/sysconfig/pixel_experience_2021_midyear.xml +product/etc/sysconfig/pixel_experience_2022.xml +product/etc/sysconfig/pixel_experience_2022_midyear.xml + +# Radio +product/etc/permissions/com.android.sdm.plugins.connmo.xml +product/etc/permissions/com.android.sdm.plugins.dcmo.xml +product/etc/permissions/com.android.sdm.plugins.diagmon.xml +product/lib/libdmengine.so +product/lib/libdmjavaplugin.so +product/lib64/libdmengine.so +product/lib64/libdmjavaplugin.so +product/priv-app/CarrierServices/CarrierServices.apk;PRESIGNED +product/priv-app/CarrierSettings/CarrierSettings.apk;PRESIGNED +product/priv-app/CarrierWifi/CarrierWifi.apk;PRESIGNED +product/priv-app/ConnMO/ConnMO.apk +product/priv-app/DCMO/DCMO.apk +product/priv-app/DMService/DMService.apk +product/priv-app/DiagMon/DiagMon.apk +product/priv-app/EuiccGoogle/EuiccGoogle.apk;PRESIGNED +product/priv-app/TetheringEntitlement/TetheringEntitlement.apk + +# VZW +product/app/VZWAPNLib/VZWAPNLib.apk;PRESIGNED +product/etc/permissions/com.android.omadm.service.xml +product/etc/permissions/com.google.omadm.trigger.xml +product/etc/permissions/com.verizon.apn.xml +product/etc/permissions/com.verizon.services.xml +product/etc/permissions/features-verizon.xml +product/etc/sysconfig/allowlist_com.android.omadm.service.xml +product/priv-app/AppDirectedSMSService/AppDirectedSMSService.apk;PRESIGNED +product/priv-app/OemDmTrigger/OemDmTrigger.apk +product/priv-app/WfcActivation/WfcActivation.apk;PRESIGNED + +# system_ext partition + +# Camera extensions +system_ext/etc/permissions/com.google.android.camera.experimental2022_system.xml +system_ext/etc/permissions/com.google.android.camera.extensions.xml +system_ext/framework/com.google.android.camera.experimental2022_system.jar +system_ext/framework/com.google.android.camera.extensions.jar + +# Edge TPU +system_ext/bin/hw/vendor.google.edgetpu_app_service@1.0-service +system_ext/etc/init/vendor.google.edgetpu_app_service@1.0-service.rc +system_ext/etc/vintf/manifest/vendor.google.edgetpu_app_service@1.0-service.xml +system_ext/lib64/com.google.edgetpu_app_service-V2-ndk.so +system_ext/lib64/com.google.edgetpu_vendor_service-V2-ndk.so + +# HBM +system_ext/lib64/libhbmsvmanager_jni.so +system_ext/priv-app/HbmSVManager/HbmSVManager.apk + +# Hotword +system_ext/etc/permissions/com.android.hotwordenrollment.common.util.xml +system_ext/framework/com.android.hotwordenrollment.common.util.jar + +# IMS +system_ext/etc/permissions/com.shannon.imsservice.xml +system_ext/etc/permissions/com.shannon.rcsservice.xml +system_ext/lib/libmediaadaptor.so +system_ext/lib64/libmediaadaptor.so +system_ext/priv-app/QualifiedNetworksService/QualifiedNetworksService.apk +system_ext/priv-app/ShannonIms/ShannonIms.apk;PRESIGNED +system_ext/priv-app/ShannonRcs/ShannonRcs.apk;PRESIGNED + +# Misc +system_ext/lib64/libpowerstatshaldataprovider.so + +# NFC +system_ext/priv-app/PixelNfc/PixelNfc.apk + +# Permissions +system_ext/etc/permissions/privapp-permissions-google-se.xml:system_ext/etc/permissions/privapp-permissions-google-se-lineage.xml + +# Radio +system_ext/etc/permissions/com.android.omadm.radioconfig.xml +system_ext/etc/permissions/com.google.euiccpixel.permissions.xml +system_ext/etc/permissions/com.google.euiccpixel.xml +system_ext/etc/permissions/google-ril.xml +system_ext/framework/RadioConfigLib.jar +system_ext/framework/google-ril.jar +system_ext/priv-app/CarrierSetup/CarrierSetup.apk;PRESIGNED +system_ext/priv-app/ConnectivityThermalPowerManager/ConnectivityThermalPowerManager.apk +system_ext/priv-app/EuiccGoogleOverlay/EuiccGoogleOverlay.apk +system_ext/priv-app/EuiccSupportPixel/DKA_RC5_DVT.in +system_ext/priv-app/EuiccSupportPixel/DKA_RC5_P22_DVT.in +system_ext/priv-app/EuiccSupportPixel/DKA_RC5_P22_EVT.in +system_ext/priv-app/EuiccSupportPixel/DKA_RC7_DVT.up +system_ext/priv-app/EuiccSupportPixel/DKA_RC7_EVT.up +system_ext/priv-app/EuiccSupportPixel/DKA_RC7_P22_DVT.up +system_ext/priv-app/EuiccSupportPixel/DKA_RC7_P22_EVT.up +system_ext/priv-app/EuiccSupportPixel/EuiccSupportPixel.apk;PRESIGNED +system_ext/priv-app/EuiccSupportPixel/esim-full-ofl-v1.img +system_ext/priv-app/EuiccSupportPixel/esim-full-v0.img +system_ext/priv-app/EuiccSupportPixel/esim-full-v1.img +system_ext/priv-app/EuiccSupportPixelPermissions/EuiccSupportPixelPermissions.apk;PRESIGNED +system_ext/priv-app/RilConfigService/RilConfigService.apk +system_ext/priv-app/grilservice/grilservice.apk;PRESIGNED + +# RIL +system_ext/app/OemRilHookService/OemRilHookService.apk +system_ext/etc/permissions/com.samsung.slsi.telephony.oemril.xml +system_ext/etc/permissions/oemrilhook.xml +system_ext/framework/oemrilhook.jar +system_ext/lib/vendor.samsung_slsi.telephony.hardware.oemservice@1.0.so +system_ext/lib/vendor.samsung_slsi.telephony.hardware.radioExternal@1.0.so +system_ext/lib64/vendor.samsung_slsi.telephony.hardware.oemservice@1.0.so +system_ext/lib64/vendor.samsung_slsi.telephony.hardware.radioExternal@1.0.so +system_ext/priv-app/OemRilService/OemRilService.apk;PRESIGNED + +# VZW +system_ext/etc/permissions/com.verizon.llkagent.xml +system_ext/etc/permissions/vzw_mvs_permissions.xml +system_ext/priv-app/LLKAgent/LLKAgent.apk +system_ext/priv-app/MyVerizonServices/MyVerizonServices.apk;PRESIGNED diff --git a/37c3/Replicant_introduction/replicant-intro.md b/37c3/Replicant_introduction/replicant-intro.md new file mode 100644 index 0000000..9f81c05 --- /dev/null +++ b/37c3/Replicant_introduction/replicant-intro.md @@ -0,0 +1,69 @@ +# Title +Introduction to Replicant + +# Subtitle +Why and how to make a fully free software Android distribution + +# Summary +Replicant is a fully free Android distribution that is approved by the FSF. +This short talk will briefly explain: why Replicant came into being; the freedom, +privacy and security issues it has found in devices aimed to run Android; +and the approaches that it follows to liberate such Android devices. + +# Description +Replicant is a fully free software Android distribution that puts emphasis on +freedom, privacy and security. It is based on LineageOS and replaces or avoids +every proprietary component of the system. Replicant is so far the only +distribution for smartphones that is endorsed by the Free Software Foundation as +meeting the Free System Distribution Guidelines. + +Starting out as a project that aimed to make the HTC Dream smartphone +usable with only free software, it proved that running Android on these devices +was much simpler and effective than porting GNU/Linux to them. +The main reason behind that lies in the Android architecture: while in GNU/Linux +the hardware abstraction is done in the Linux kernel, in Android it is done in hardware +abstraction libraries. This enabled hardware manufacturers to break the kernel API, +making it very difficult to run GNU/Linux properly on such devices. + +As the work progressed, the team took the opportunity to learn more about the +hardware architecture of the smartphones they were supporting, as it has a big +impact on freedom as well. + +In most early Android Android devices, the modem was in control of everything, +with full access to RAM, sound card and GPS. Because of that, Replicant shifted +focus to devices where the modem is isolated, and started documenting hardware +freedom issues across different devices as well. + +Most of the heavy work to get new devices ported to Replicant revolved around +creating free software replacements for nonfree userspace protocol +implementations, such as the Radio Interface Layer (RIL) that communicates with +the modem, or the NMEA protocol to talk with the GPS. With that work, one backdoor +was found in the proprietary Samsung RIL implementation, which allowed the +modem to read the contents of the filesystem. + +Although the project had fixed some of the freedom issues affecting smartphones +and tablets, there was still one critical component missing to be able to run +fully free software on the main CPU: the bootloader. Focus was then redirected +to devices such as the GTA04 and the Optimus Black, that have an unlocked +bootloader and were made to work with u-boot. Unfortunately these devices required +a lot of work: the GTA04 had a kernel closely based on upstream Linux, but at the +time it required too much time to convert it to use the Android power management +models. For the Optimus black, the u-boot port took a huge amount of work as well, +leaving no time to finish upstreaming the Linux support. + +Replicant, as well as it's upstream (LineageOS), inherit the Linux kernel that +device manufacturers release thanks to the requirements of the GPL license. +Unfortunately it is usually based on versions that are several years old and +no longer maintained, riddled with bugs and security concerns. +Also, such kernels usually come with dozens to hundreds of out-of-tree patches, +required for essential peripherals such as modem, cameras or display. +Maintaining and adapting such a kernel to new Android versions ourselves requires +too much work. Because of that, we had to drop devices for versions where LineageOS +decided to drop them. + +Taking this into consideration, and having learnt the lessons on how lack of +proper kernel support can ditch a device, Replicant is now shifting focus to +prepare devices to run a mainline kernel with full support for their peripherals. +Replicant is also adopting mainline userspace such as Mesa. Furthermore it is +also looking to support community oriented devices such as the Pinephone, that +offer a better hardware platform for free software. diff --git a/37c3/Replicant_struggle/abstract.txt b/37c3/Replicant_struggle/abstract.txt new file mode 100644 index 0000000..29a5328 --- /dev/null +++ b/37c3/Replicant_struggle/abstract.txt @@ -0,0 +1,6 @@ +Replicant is an Android distribution that is certified by the FSF that +supports some Smartphones and Tablets. After explaining some extensive +background about the project and its situation, the talk will focus on +the project strategic decisions and will also try to involve the +audience to get feedback on some of the project current and longer +term issues that we didn't solve yet. diff --git a/37c3/Replicant_struggle/presentation.pdf b/37c3/Replicant_struggle/presentation.pdf Binary files differnew file mode 100644 index 0000000..2c3a22d --- /dev/null +++ b/37c3/Replicant_struggle/presentation.pdf diff --git a/37c3/Replicant_struggle/presentation.txt b/37c3/Replicant_struggle/presentation.txt new file mode 100644 index 0000000..f6acd7d --- /dev/null +++ b/37c3/Replicant_struggle/presentation.txt @@ -0,0 +1,33 @@ +I started writing slides for the presentation. The presentation was to +be made on a round table with a small display on it. While finishing +the slides I assisted to a presentation at the same place and it was +way too crowded for the people to be able to see the slides. + +So at the last moment I moved the slides to paper. While I forgot to +show some of the papers, it also enabled not only to show them in all +directions but also to share the paper among themselves so that +everybody could see the slide. + +Here's an explanation of the various pages inside presentation.pdf: + +* 1/10, 2/10, 3/10: These were not part of the slides: they were + advertizement for the talk I made that were hang at key locations + where people go through a bit before the talk. + +* 4/10: This is the plan of the talk. It wasn't shown to people + directly. + +* 6/10: This was supposed to be the first slide but it got tainted by + some pizza. + +* 5/10: This is the first slide, re-drawn by dllud. + +* 7/10: Slide to explain how a smartphone work. I probably forgot to + show it. + +* 8/10: Slide about the Android architecture. + +* 9/10: Code in the Nexus S kernel that enabled made us understand + that the modem was connected through a RAM chip. + +* 10/10: Slide about GNU Boot and Guix. I forgot to show it. diff --git a/37c3/Replicant_struggle/summary.txt b/37c3/Replicant_struggle/summary.txt new file mode 100644 index 0000000..aced9fa --- /dev/null +++ b/37c3/Replicant_struggle/summary.txt @@ -0,0 +1,65 @@ +Replicant is an Android distribution that is certified by the FSF that +supports some Smartphones and Tablets. + +Historically Replicant has united different struggles / concerns +within the same project: + +It enabled to use hardware way longer, limiting damage on planet and +workers. + +Compatible hardware could be found second hand in various ways (shops, +free, etc). This made it accessible by a wide variety of people. + +Many of the supported hardware were made and sold in big numbers so +they have a wide ecosystem around them like replacement batteries, +repair knowledge, second hand shops. + +While all the supported hardware contains nonfree software +(bootloader, sometimes another operating system loaded on the same CPU +alongside Android/Replicant, details will be explained in the talk), +Replicant itself is fully free, which appeals to people caring about +free software. + +It avoided backdoors and chose to support only specific phones to +limit the privacy damage (this was done by isolating the modem, more +will be explained in the talk). + +While Replicant always had to take difficult strategic decisions that +affected the above, with effects on both the amount of work required +to support devices and the amount of work required to move to new +Android versions, things also changed a lot in the last years. + +Modern off the shelf smartphones hardware made it impossible to +address the same concerns than before: Replicant depends on hardware +design features like modem isolation to provide some privacy +guarantees (details will be in the talk). Supporting devices with +batteries that cannot be replaced also lead to lot of complications +for users (batteries that last less on second hand devices, limited +lifespan, etc) that in turn put impossible constraints on contributors +(supporting new devices as soon as they are released). + +Other issues like the disappearance of 3G networks, or the status of +some Android related project also affect Replicant in big ways. + +On another hand Replicant also ended up with way more resources than +before: it has enough money (about 200 000$) to fund development work +during few years and also managed to get funding from NLnet to work on +specific tasks. + +All that brings huge changes in the project and makes strategic +decisions harder than before. + +The talk will start with information on why having 100% free software +Android distribution(s) is still relevant today when GNU/Linux +smartphones are becoming a reality again. It will also explain all the +background needed to understand the rest of the talk (how smartphones +work, what is a modem, what is TrustZone, how Android is different +from GNU/Linux from the hardware support and contributor perspective, +etc). + +A lot of the focus of this presentation will be about the project +strategic decisions: Given the difficult context Replicant operates +in, what difficulties it faced, how it solved them. But also current +and longer term issues we have. In this talk we are also looking for +feedback on our new strategy and/or ideas to address some of the +longer time concerns we have, some of which other projects also faced. diff --git a/37c3/Replicant_struggle/title.txt b/37c3/Replicant_struggle/title.txt new file mode 100644 index 0000000..eaff948 --- /dev/null +++ b/37c3/Replicant_struggle/title.txt @@ -0,0 +1 @@ +Replicant struggle: past and present successes and failures diff --git a/37c3/Replicant_struggle/unfinished-latex-version/Makefile b/37c3/Replicant_struggle/unfinished-latex-version/Makefile new file mode 100644 index 0000000..557d109 --- /dev/null +++ b/37c3/Replicant_struggle/unfinished-latex-version/Makefile @@ -0,0 +1,113 @@ +TEXFLAGS ?= -halt-on-error -output-format pdf -output-directory output +TITLE = Struggle_for_independence + +TOPDIR = ../../.. + +.PHONY: all clean medias archive + +############### +# Phony rules # +############### +all: output/$(TITLE).pdf + +archive: + git archive --format=tar --prefix=LibrePlanet2022/ HEAD -o LibrePlanet2022.tar + +clean: + rm -rf output + +################ +# Main targets # +################ +output: + mkdir output + +output/$(TITLE).pdf: \ + Struggle_for_independence.tex \ + output \ + output/4-freedoms.jpg \ + output/android.jpg \ + output/android_logo.jpg \ + output/anti_drm_protest.jpg \ + output/anti_smartphones.jpg \ + output/electronic_waste_small.jpg \ + output/framework.jpg \ + output/freedo.jpg \ + output/googlag_small.jpg \ + output/i9300_left.jpg \ + output/linux.jpg \ + output/motorola_a780_small.jpg \ + output/n900.jpg \ + output/phist.jpg \ + output/raised_fist_small.jpg \ + output/replicant_logo.jpg \ + output/smart_phones_shop_small.jpg \ + output/tablets.jpg \ + output/the_leader_of_the_luddites_small.jpg \ + output/we_can_do_it_small.jpg \ + output/wifi.jpg \ + output/worker.jpg + pdflatex $(TEXFLAGS) '\providecommand\locale{en}\input{$(TITLE).tex}' + pdflatex $(TEXFLAGS) '\providecommand\locale{en}\input{$(TITLE).tex}' + du -hs $@ + +############################## +# Automatic depdencies rules # +############################## +output/%.jpg: dot/%.dot + mkdir -p output + dot -T jpg $< > $@ + +output/%.jpg: $(TOPDIR)/common/images/%.jpg output + convert $< $@ + +output/%.jpg: $(TOPDIR)/common/images/%.png output + convert $< $@ + +output/%.jpg: $(TOPDIR)/common/images/%.svg output + convert $< $@ + +# Space saved: +# - we_can_do_it.jpg: from 61M to 456K +# - raised_fist.jpg: from 7.9M to 104K +# - the_leader_of_the_luddites.jpg: from 6.1M to 291K +# - smart_phones_shop.jpg: from 3.0M to 243K +# - electronic_waste.jpg: from 2.8M to 168K +# - googlag.jpg: from 2.4M to 101K +# - motorola_a780.jpg: from 1.8M to 64k +output/%_small.jpg: $(TOPDIR)/common/images/%.jpg + convert -resize 25% -quality 80 $< $@ + +################################# +# Images with specific settings # +################################# +# -resize and -quality makes the image go from 1.1M to 48k +output/anti_drm_protest.jpg: $(TOPDIR)/common/images/anti_drm_protest.jpg output + convert $< -crop 50%x0%+1440+0 -resize 25% -quality 80 $@ + +output/i9300_hardware.jpg: $(TOPDIR)/common/images/i9300_hardware.svg output + convert $< $@ + +output/i9300_left.jpg: output/i9300_hardware.jpg output + convert $< -crop 50%x0%+0+0 $@ + +# -resize and -quality makes the image go from 8.5M to 124k +output/n900.jpg: $(TOPDIR)/common/images/N900_xterm.JPG $(TOPDIR)/common/images/Nokia_N900-6.jpg + mkdir -p output + convert -append -gravity center -resize 25% -quality 80 $? $@ + +output/replicant_logo.jpg: $(TOPDIR)/external_resources/vendor_replicant_artwork/replicant_logo_white.png output + convert $< $@ + +output/tablets.jpg: \ + $(TOPDIR)/external_resources/replicant_website/images/supported-devices/p3100.png \ + $(TOPDIR)/external_resources/replicant_website/images/supported-devices/p5100.png + mkdir -p output + convert -append $? $@ + +output/wifi.jpg: \ + $(TOPDIR)/common/images/tehnoetic-n150-mini-wifi-adapter-back-500x500.png \ + $(TOPDIR)/common/images/tet-otg-side-500x500.jpg \ + $(TOPDIR)/common/images/Wifi.png + mkdir -p output + convert -append -gravity center $? $@ diff --git a/37c3/Replicant_struggle/unfinished-latex-version/Struggle_for_independence.tex b/37c3/Replicant_struggle/unfinished-latex-version/Struggle_for_independence.tex new file mode 100644 index 0000000..3019b91 --- /dev/null +++ b/37c3/Replicant_struggle/unfinished-latex-version/Struggle_for_independence.tex @@ -0,0 +1,925 @@ +\documentclass[aspectratio=169]{beamer} +\usepackage[english]{babel} +\usepackage{color} +\usepackage{CJKutf8} +\usepackage{graphicx} +\usepackage{ifthen} +\usepackage[utf8]{inputenc} +\usepackage{listings} +\usepackage{longtable} +\usepackage{pdfpages} +\usepackage{xtab} + +\def\topdir{../../..} + +\lstdefinestyle{terminal}{ + backgroundcolor=\color{black}, + basicstyle=\scriptsize\color{green}, +} + +\newcommand{\devicepicture}[1]{\topdir/external_resources/replicant_website/images/supported-devices/#1.png} + +\newcommand{\includedevicepicture}[1]{ + {\includegraphics[width=.2\textwidth]{\devicepicture{#1}}} +} + +\newcommand{\inline}[3] +{ + \ifthenelse{\equal{top}{#2}}{ + \noindent + \resizebox{\textwidth}{\textheight * 2 / 3}{#1} + {#3} + }{} + \ifthenelse{\equal{bottom}{#2}}{ + {#3} + \noindent + \resizebox{\textwidth}{\textheight * 2 / 3}{#1} + }{} + \ifthenelse{\equal{right}{#2}}{ + \begin{columns}[T] + \begin{column}{5cm} + #3 + \end{column} + \begin{column}{5cm} + #1 + \end{column} + \end{columns} + }{} +} + +\newcommand{\inlinepicture}[3]{ + \ifthenelse{\equal{right}{#2}}{ + \begin{columns}[T] + \begin{column}{5cm} + #3 + \end{column} + \begin{column}{5cm} + \includegraphics[width=5cm,height=8cm,keepaspectratio=true]{#1} + \end{column} + \end{columns} + }{ + \inline{\includegraphics[keepaspectratio=true]{#1}}{#2}{#3} + } +} + +\usetheme{Singapore} + +\title{Replicant struggle: past and present successes and failures} +\author{Denis 'GNUtoo' Carikli} +\date{December 28, 2023} + +\begin{document} + +\maketitle + +\begin{frame} + \center{Presentation structure:} + \begin{itemize} + \item Introduction + \begin{itemize} + \item What is Replicant? + \item Why Replicant? + \item Why Android? + \end{itemize} + \item Replicant past and present struggles, successes and failures + \begin{itemize} + \item Replicant creation and history + \item Replicant struggles and phases + \end{itemize} + \item Future work on the Pinephone + \begin{itemize} + \item Why porting on the Pinephone? + \item Digressions and project management + \end{itemize} + \item Time for discussions + \end{itemize} +\end{frame} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\section{Introduction} + +\begin{frame} + \center{Introduction} +\end{frame} + +\subsection{What is Replicant?} + +\begin{frame} + \inlinepicture{output/replicant_logo.jpg}{right}{ + \center{Replicant:} + \begin{itemize} + \item Fully free Android distribution approved by the FSF + \item But the hardware it runs on is not... + \item More details on hardware related freedom issues later %% TODO + \end{itemize} + } +\end{frame} + +\begin{frame} + \center{Quick Facts} + \begin{itemize} + \item Website: replicant.us + \item Exists since September 2009 + \item Two main versions: + \begin{itemize} + \item Replicant 6: + \begin{itemize} + \item Android 6, last security update: October 2017 + \cite{last-android-6-update} + \item based on LineageOS + \item Supports $\sim$ 10 devices (smartphones and tablets) + \end{itemize} + \item Replicant 11: + \begin{itemize} + \item Android 11, partial support for 1 device + \item based on official Android source code + \end{itemize} + \end{itemize} + \item $\sim$ About 1 part time equivalent contributor and a + community of users. + \end{itemize} +\end{frame} + +\begin{frame} + \begin{xtabular}{llll} + \includedevicepicture{i9100} & + \includedevicepicture{maguro} & + \includedevicepicture{i9300} & + \includedevicepicture{n7000} \\ + \includedevicepicture{n7100} & + \includedevicepicture{n5100} & + \includedevicepicture{p3100} & + \includedevicepicture{p5100} \\ + \end{xtabular} +\end{frame} + +\begin{frame} + \center{Best (and lot of) effort:} + \inlinepicture{output/worker.jpg}{right}{ + \begin{itemize} + \item Display working and graphics fast enough + \item Sound working + \item Be able to make calls + \item etc + \item GPS, Camera, and other non crucial hardware may not work, or work in + later releases + \end{itemize} + } +\end{frame} + +\begin{frame} + \center{Also:} + \begin{itemize} + \item Freedom privacy security page + \item Extensive documentation on the wiki, not always easy to find + \item Infrastructure: + \begin{itemize} + \item OSUOSL: Mailing list, Wordpress, website, Redmine, FTP + \item 1 VM @ FSF: git, domain name, contact address, IRC bridge + \item Mastodon account on mamot.fr + \end{itemize} + \end{itemize} +\end{frame} + +\subsection{Why Replicant exists?} + +\begin{frame} + \center{Have clear demands and attainable goal: First steps} + \inlinepicture{output/raised_fist_small.jpg}{right}{ + \begin{itemize} + \item 100\% free sofware on the main CPU + \item 100\% free sofware distribution(s) + \item Usable by people: + \begin{itemize} + \item Easy to use (command line) + \item Hardware easy to find + \item Hardware that can last and that is not too expensive + \end{itemize} + \item Limits the damage: + \begin{itemize} + \item Add some limits to the invasion of intimacy. + \item Hardware lasts longer. + \end{itemize} + \end{itemize} + } +\end{frame} + +\begin{frame} + \center{How to achieve that?} + \inlinepicture{output/we_can_do_it_small.jpg}{right}{ + \begin{itemize} + \item $\rightarrow$ Lot of work by many people over many years. + \item $\rightarrow$ Not shipping nonfree firmwares or any nonfree software. + \end{itemize} + } +\end{frame} + +%% \begin{frame} +%% \center{A very short introduction on hardware:} +%% \inlinepicture{output/i9300_hardware.jpg}{top}{ +%% \begin{itemize} +%% \item System on a chip +%% \item Smartphones and the modem +%% \end{itemize} +%% } +%% \end{frame} + +%% \begin{frame} +%% \center{Why is the modem an issue?} +%% \begin{itemize} +%% \item Nonfree firmware +%% \begin{itemize} +%% \item $\rightarrow$ Only 1 free firmware for very old modems (2005) +%% \cite{OsmocomBB}\cite{motorola-c115} +%% \item Too much work for Replicant +%% \end{itemize} +%% \item Modem isolation +%% \begin{itemize} +%% \item $\rightarrow$ Select smartphones with good isolation: +%% \begin{itemize} +%% \item HSIC and firmware data controlled by Replicant +%% \item MIPI +%% \item USB and free bootloader +%% \item UART +%% \item Avoid modem built in the SOCs and shared memory or disable the modem +%% completely. +%% \end{itemize} +%% \item $\rightarrow$ We still help other projects supporting +%% devices with shared memory and encourage forking Replicant for +%% that. +%% \end{itemize} +%% \item Tracking $\rightarrow$ No real solution +%% \begin{itemize} +%% \item Community networks (Indigenous communities in Oxaca) +%% \item Disable the modem $\rightarrow$ no calls, SMS or data connection +%% \end{itemize} +%% \end{itemize} +%% \end{frame} + +%% \begin{frame} +%% \inlinepicture{output/Wifi.jpg}{right}{ +%% \center{WiFi: No free firmwares for chip used in mobile devices} +%% \begin{itemize} +%% \item ath9k compatible adapters consume too much power, +%% require PCIe $\rightarrow$ not used in devices. +%% \item We badly need help for free firmwares: +%% \begin{itemize} +%% \item Broadcom chips through Nexmon ? +%% \item Realtek by reverse engineering GPL binary fimrwares? +%% \end{itemize} +%% \item USB device used (ath9k\_htc compatible) in the meantime +%% \end{itemize} +%% } +%% \end{frame} + +%% \begin{frame} +%% \inlinepicture{output/i9300_left.jpg}{right}{ +%% \center{Additional issues:} +%% \begin{itemize} +%% \item Nonfree bootloader +%% \begin{itemize} +%% \item The SOC enforces signatures +%% \item TrustZone OS on some devices +%% \item Incompatible with Linux +%% \item Hard to support in Replicant 11 and GNU/Linux +%% \end{itemize} +%% \end{itemize} +%% } +%% \end{frame} + +\subsection{Why Android?} + +\begin{frame} + \center{Why Android?} + \inlinepicture{output/android_logo.jpg}{right}{ + \begin{itemize} + \item GUI and applications adapted to big fingers + \item $\rightarrow$ run on devices that: + \begin{itemize} + \item Lack keyboard + \item Have capacitve touchscreen and no stylus + \item Have very small displays with very high number of pixel + \end{itemize} + \end{itemize} + } +\end{frame} + +\begin{frame} + \center{Issues with Android?} + \inlinepicture{output/googlag_small.jpg}{right}{ + \begin{itemize} + \item Part of the GNU/Linux architecture is light years away: + package management and build system, graphics, audio, etc + \item Huge unknown code from Google + \item Meant to run proprietary software, not to empower users + \end{itemize} + } +\end{frame} + +%% \begin{frame} +%% \inlinepicture{output/smart_phones_shop_small.jpg}{right}{ +%% \center{In practice: Android architecture} +%% \begin{itemize} +%% \item Goals: time to market +%% \begin{itemize} +%% \item Write the code that work as fast as possible +%% \item Support as many hardware features as possible including new hardware +%% \item $\rightarrow$ Varying code quality +%% \item $\rightarrow$ Example: One driver rewritten 3 times +%% %% TODO: reference +%% \end{itemize} +%% \end{itemize} +%% } +%% \end{frame} + +\begin{frame} + \inlinepicture{output/framework.jpg}{right}{ + \center{In practice: Android architecture} + %% \begin{itemize} + %% \item Breaking Kernel API and ABI + %% \begin{itemize} + %% \item It can take time (years) to bring in a new framework in Linux + %% \item Example of API breakage: HTC dream audio driver + %% \item Solution: Apps $\leftrightarrow$ Android framework $\leftrightarrow$ + %% HAL $\leftrightarrow$ Kernel + %% \item Getting better in Android: Trebble and Generic Kernel images + %% \end{itemize} + %% \end{itemize} + } +\end{frame} + +%% \begin{frame} +%% \center{Ugly vendor code is good as we depend it for freedom} +%% \inlinepicture{output/freedo.jpg}{right}{ +%% \begin{itemize} +%% \item Having the source code under free software licenses, even if the code +%% quality is bad is crucial for freedom: +%% \begin{itemize} +%% \item Hardware bringup is often made that way anyway +%% \item Code can always be cleaned up or rewritten later +%% \item Worst case: use the source code as documentation or reverse engineer +%% it (add prints) +%% \end{itemize} +%% \end{itemize} +%% } +%% \end{frame} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\section{Replicant past and present struggles successes and failures} + +\subsection{Replicant creation and history} + +\begin{frame} + \center{Replicant past and present struggles, successes and failures} +\end{frame} + +\begin{frame} + \inlinepicture{output/replicant_logo.jpg}{right}{ + \center{Replicant:} + \begin{itemize} + \item Replicant creation + \item GNU/Linux and Android + \end{itemize} + } +\end{frame} + +\begin{frame} + \begin{columns}[T] + \begin{column}{5cm} + \center{Phase 1: Replicant creation and Qualcomm devices} + \end{column} + \begin{column}{5cm} + \includegraphics[width=5cm,keepaspectratio=true]{\topdir/common/images/htcdream.jpg} + \end{column} + \end{columns} +\end{frame} + +%% \begin{frame} +%% \center{Replicant} +%% \begin{longtable}[!t]{|p{7cm}|p{3cm}|} +%% \hline +%% Goal & Success? \\ +%% \hline +%% Create a 100\% free software Android distribution & Yes \\ +%% \hline +%% Support the HTC Dream & Yes \\ +%% \hline +%% Usable & Yes \\ +%% \hline +%% Low maintenance & Yes (AOSP, LineageOS) \\ +%% \hline +%% Fast to add new devices & Yes \\ +%% \hline +%% Hardware keyboard & Yes \\ +%% \hline +%% Free software applications & Started to appear \\ +%% \hline +%% \end{longtable} +%% \end{frame} + +%% \begin{frame} +%% \center{GNU/Linux} +%% \begin{longtable}[!t]{|p{8cm}|p{2cm}|} +%% \hline +%% Goal & Success? \\ +%% \hline +%% 100\% free software distributions & nonfree firmwares \\ +%% \hline +%% Support the HTC Dream & broken sound, unstable \\ +%% \hline +%% Usable & No \\ +%% \hline +%% Low maintenance & ? \\ +%% \hline +%% Fast to add similar devices & ? \\ +%% \hline +%% Hardware keyboard & Yes \\ +%% \hline +%% Free software applications & Very few were usable \\ +%% \hline +%% \end{longtable} +%% \end{frame} + +%% \begin{frame} +%% \inlinepicture{output/i9300_left.jpg}{right}{ +%% \center{Sounds too good to be true?} +%% \begin{itemize} +%% \item The modem controlled everything: booting, RAM +%% initialization, microphone, GPS, some hardware acceleration. +%% \item Nonfree bootloaders +%% \end{itemize} +%% } +%% \end{frame} + + +\begin{frame} + \center{Sounds too good to be true?} + + \begin{columns}[T] + \begin{column}{5cm} + \begin{itemize} + \item The modem controlled everything: booting, RAM + initialization, microphone, GPS, some hardware acceleration. + \item Nonfree bootloaders + \end{itemize} + \end{column} + \begin{column}{5cm} + \includegraphics[width=5cm,keepaspectratio=true]{\topdir/common/images/htcdream.jpg} + \end{column} + \end{columns} +\end{frame} + +\subsection{Samsung devices} + +\begin{frame} + \inlinepicture{\devicepicture{crespo}}{right}{ + \center{Phase 2: Qualcomm devices $\rightarrow$ Samsung devices} + \begin{itemize} + \item Many Samsung smartphones have a separate modem that looks isolated + \item Unknown modem protocol + \end{itemize} + } +\end{frame} + +\begin{frame} + \inline{ + \colorbox{black}{\color{green}{ static struct resource mdmctl\_res[] = \{ } } + \colorbox{black}{\color{green}{ [...] } } + \colorbox{black}{\color{green}{ [2] = \{ } } + \colorbox{black}{\color{green}{ .name = "onedram", } } + \colorbox{black}{\color{green}{ .start = (S5PV210\_PA\_SDRAM + 0x05000000), } } + \colorbox{black}{\color{green}{ .end = (S5PV210\_PA\_SDRAM + 0x05000000 + SZ\_16M - 1), } } + \colorbox{black}{\color{green}{ .flags = IORESOURCE\_MEM, } } + \colorbox{black}{\color{green}{ \}, \}; } } + }{right}{ + \center{Sounds too good to be true? (not again)} + \begin{itemize} + \item Shared memory found: + \begin{itemize} + \item S5PV210\_PA\_SDRAM is 0x30000000 + \item 0x05000000 is 80MiB + \item mdmctl\_res is passed to the modem driver + \end{itemize} + $\rightarrow$ This is in the RAM. + \item Affected devices: + \begin{itemize} + \item Galaxy S + \item Nexus S + \end{itemize} + \end{itemize} + } +\end{frame} + +\begin{frame} + \inlinepicture{\devicepicture{maguro}}{right}{ + \center{But it's fixable (kind of)} + \\ + $\rightarrow$ Port to other devices. + \begin{itemize} + \item Same modem protocol + \end{itemize} + } +\end{frame} + +\begin{frame} + Smartphones: + \begin{itemize} + \item Galaxy Nexus (GT-I9250) + \item Galaxy Note (GT-N7000) + \item Galaxy Note II (GT-N7100) + \item Galaxy SII (GT-I9100) + \item Galaxy SIII (GT-I9300) + \end{itemize} + Tablets: + \begin{itemize} + \item Galaxy Tab 2 (GT-P3100, GT-P3110, GT-P5100, GT-P5110, TODO) + \item Galaxy Note 8.0 (GT-N5100, GT-N5110) + \end{itemize} +\end{frame} + +\begin{frame} + \center{Our struggle goals} + \begin{longtable}[!t]{|p{8cm}|p{2cm}|} + \hline + Goal & Success? \\ + \hline + Isolated Modem & Yes \\ + \hline + Usable & Yes \\ + \hline + Low maintenance & Yes (LineageOS) \\ + \hline + Fast to add similar devices & Easy enough (libsamsung-ipc not trivial) \\ + \hline + \end{longtable} +\end{frame} + +\begin{frame} + \center{Next steps} + \begin{longtable}[!t]{|p{5cm}|p{5cm}|} + \hline + Goal & Success? \\ + \hline + Isolated Modem & Yes \\ + \hline + Bootloader & $\leftarrow$ \\ + \hline + Nonfree code running? & $\leftarrow$\\ + \hline + firmwares & Nonfree for WiFi \\ + \hline + \end{longtable} +\end{frame} + +\subsection{GNU/Linux smartphones} + +\begin{frame} + \center{Phase 3: Porting Replicant to GNU/Linux smartphones} +\end{frame} + +\begin{frame} + \inlinepicture{\devicepicture{gta04}}{right}{ + \center{GTA04} + Advantages: + \begin{itemize} + \item Longer term support (good support in upstream) + \item Free software vendor bootloader (xloader + u-boot fork) + \item Documented hardware: GPS, modem, etc, but undocumented 3D acceleration + \end{itemize} + } +\end{frame} + +\begin{frame} + \inlinepicture{\devicepicture{gta04}}{right}{ + \center{GTA04} + \begin{itemize} + \item Some limited Replicant 4.2 support + \item Got suspend issues with Replicant 6 (kernel) + \item $\rightarrow$ Port failed: could not make suspend/resume work + \end{itemize} + } +\end{frame} + +\begin{frame} + \center{Power management in smartphones and Android (wakelocks / opportunistic + suspend)} + \inlinepicture{output/i9300_hardware.jpg}{top}{ + } +\end{frame} + +\begin{frame} + \center{Second attempt: LG Optimus black} + \begin{itemize} + \item Ran Android + \item Free bootloader available + \item $\rightarrow$ Integration in Replicant as-is complex + \item $\rightarrow$ Work to upstream it, not finished + \item See Paul Kocialkowski's blog for more details + \cite{freeing-a-phone-from-the-ground-up} + \end{itemize} +\end{frame} + +\begin{frame} + \center{$\rightarrow$ Switching focus back to Samsung devices} +\end{frame} + +\subsection{Current work} + +\begin{frame} + \center{You have 3 new issues} + \begin{itemize} + \item LineageOS stopping support for the devices supported by Replicant + \item None of the smartphones supported in LineageOS are interesting: + \begin{itemize} + \item Non-isolated modems + \item And/or non-removable batteries + \end{itemize} + \item 3G networks being shut down + \end{itemize} +\end{frame} + +\begin{frame} + \inlinepicture{\devicepicture{i9300}}{right}{ + \center{Replicant 11 and upstream port} + %% \begin{itemize} + %% \item Many Samsung smartphones have a separate modem that looks isolated + %% \item Unknown modem protocol + %% \end{itemize} + } +\end{frame} + +\begin{frame} + \center{$\rightarrow$ Support the Galaxy SIII (GT-I9300) with an upstream + kernel} +\end{frame} + +\begin{frame} + \center{How to do it?} + \begin{itemize} + \item Existing work: + \begin{itemize} + \item Some good Linux support but not complete + \item Modem driver available but not validated + \end{itemize} + \item Funding: + \begin{itemize} + \item 0.5 * 2 people on Graphics (David Ludovino (dllud) and + Ricardo Cabrita(Grim) + \item 1 person on the rest and some help from Joonas Kylmälä (Putti) + \item Need additional funding too + \end{itemize} + \end{itemize} +\end{frame} + +\begin{frame} + \center{Status} + \begin{itemize} + \item Boots fine, 3D aceleration works. + \item Modem works and we can call with it but the Android + integration is not complete (audio, sim not recognized). Took a + lot of work and part of the code still needs cleanup. + \item Audio too primitive. + \item Power management untested. + \item Replicant 9 (AOSP, LineageOS) $\rightarrow$ Replicant 10 (LineageOS) + $\rightarrow$ Replicant 11 (AOSP) + \item Many tasks took way longer than planned + \end{itemize} +\end{frame} + +\begin{frame} + \center{You have 2 or 3 new interesting devices} + \begin{itemize} + \item Pinephone + \begin{itemize} + \item Cheap $\rightarrow$ people can get it + \item Free bootloader, documented hardware + \item Poor power management $\rightarrow$ Use keyboard + \end{itemize} + \item Librem5 + \begin{itemize} + \item Probably good battery life since has big battery + \item Issue: current users don't have it and probably can't buy + one + \end{itemize} + \end{itemize} +\end{frame} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\section{Parallel work} + +\begin{frame} + \center{Parallel work} +\end{frame} + +\begin{frame} + \center{Replicant 6.0} + \begin{itemize} + \item Worked on Relase with many fixes: + \begin{itemize} + \item Many nonfree software found and removed (Java code, + firmwares) + \item Fixed leak of user data (phone numbers) + \item Removed f-droid (tried to fix FSDG compliance upstream but + took too long). + \item Fixed important SIM not recognized bug (Thanks Belgin). + \item Many improvements by new contributors (scripts to disable + the modem, improved OpenGL compatibility, bettter USB WiFi + integration, etc). + \item Reworked installation instructions (funded by NLnet for + Replicant 11). + \end{itemize} + \item TODO: + \begin{itemize} + \item Migration instructions + \item Announce the release (blog post already done) + \end{itemize} + \end{itemize} +\end{frame} + +\begin{frame} + \center{Quality Assurance} + \begin{itemize} + \item Automatic tests: + \begin{itemize} + \item Libsamsung-ipc: conversion to coding style, (few) automatic + tests added, cleaned up lot of code. + \item WIP python library for automatic tests + \end{itemize} + \end{itemize} +\end{frame} + +\begin{frame} + \center{Infrastructure: work} + \begin{itemize} + \item Wiki Migration: Redmine $\rightarrow$ git $\rightarrow$ Mediawiki + \item Enabling contributions: Almost all the VM under git (apache2 + configuration, website, IRC bridge, contact address) + \end{itemize} +\end{frame} + +\begin{frame} + \center{Collaborations with other projects} + \begin{itemize} + \item Contacts: + \begin{itemize} + \item PostmarketOS: shared our patches, helped with booting + upstream Linux on the Galaxy SII (GT-I9100). + \item LineageOS unofficial ports: collaborated a bit when were using + upstream Linux. + \end{itemize} + \item Upstreaming: + \begin{itemize} + \item mat2: fix for reproducible zips + \item heimdall: bugreported dangerous issue (no size check when + installing recoveries) + \item Trisquel 9 fixes for building Replicant 11 and for the Replicant VM: + proguard and fai-server. + \item Linux: small upstreaming work for Replicant 11: buttons, + flash for Galaxy SIII and Note II. + \item GRUB: work to upstream some cryptogrub patches to boot Guix + on FSF infrastructure (now picked up by Glenn Washburn). + \item WIP wireshark dissector for libsamsung-ipc + \end{itemize} + \end{itemize} +\end{frame} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\section{References} + +\begin{frame} + \center{Extra readings} + \begin{itemize} + \item OpenMoko History: + \url{https://www.vanille.de/blog/openmoko-10-years-after-mickeys-story/} + \item Paul's blog for on freeing the Optimus black + \cite{freeing-a-phone-from-the-ground-up} + \end{itemize} +\end{frame} + +\begin{frame} + Licenses: + \begin{itemize} + \item The Qtmoko and SHR pictures are From are under the + GNU Free Documentation License. + \begin{itemize} + \item QtMoko pictures: \url{http://wiki.openmoko.org/wiki/QtMoko} + \item SHR pictures: \url{http://wiki.openmoko.org/wiki/SHR_User_Manual} + \end{itemize} + \item Raised fist: + \url{https://commons.wikimedia.org/wiki/File:Raised_fist.jpg} + Creative Commons Attribution 3.0 Unported + \item We Can Do It: + \url{https://commons.wikimedia.org/wiki/File:We_Can_Do_It!_NARA_535413_-_Restoration_2.jpg} + Public domain + \end{itemize} +\end{frame} + +\begin{frame} + \begin{itemize} + \item HTC Dream: + \url{https://commons.wikimedia.org/wiki/File:HTC_Dream_opened.jpg} + Creative Commons Attribution 3.0 Unported + \item \url{https://creativecommons.org/licenses/by-sa/4.0/} for the rest. + \item WiFi logo: + \url{https://commons.wikimedia.org/wiki/File:Wifi.png} + Public domain, probably trademarked. + \item Freedo Redrawn version: + \url{https://www.gnu.org/graphics/freedo.html} + GNU Free Documentation License 1.3 or later + \item Android logo + \url{https://commons.wikimedia.org/wiki/File:Android_Robot_Cleaner_(2014-2019).svg} + CC BY-SA 4.0 International + \end{itemize} +\end{frame} + +\begin{frame} + \begin{itemize} + \item Googlag + \url{https://wiki.fuckoffgoogle.de/index.php?title=File:IMG_20180428_200243.jpg} + CC BY-SA + \item Worker + \url{https://commons.wikimedia.org/wiki/File:African_American_worker_Richmond_Shipyards.jpg} + Public domain + \item N900 kernel + \url{https://commons.wikimedia.org/wiki/File:N900_xterm.JPG} + CC-BY-SA 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic + \item N900 camera + \url{https://commons.wikimedia.org/wiki/File:Nokia_N900-6.jpg} + CC-BY 2.0 Generic + \end{itemize} +\end{frame} + +\begin{frame} + \begin{itemize} + \item Phone shop + %% File:HK WC 灣仔 Wan Chai 莊士敦道 Johnston Road shop window display smart phones August 2021 SS2.jpg + \url{https://commons.wikimedia.org/wiki/File:HK\_WC\_\%E7\%81\%A3\%E4\%BB\%94\_Wan\_Chai\_\%E8\%8E\%8A\%E5\%A3\%AB\%E6\%95\%A6\%E9\%81\%93\_Johnston\_Road\_shop\_window\_display\_smart\_phones\_August\_2021\_SS2.jpg} + CC-BY-SA 4.0 International + \item Moblie phones electronic waste + \url{https://commons.wikimedia.org/wiki/File:Day_6_Warehouse_(25890985098).jpg} + CC-BY-SA 2.0 Generic + \item Phone and phist + \url{https://wiki.rhizomatica.org/index.php/File:Phist.jpg} + CC-BY 3.0 + \item The leader of the Luddites + \url{https://en.wikipedia.org/wiki/File:Luddite.jpg} + Public domain + \end{itemize} +\end{frame} + +\begin{frame} + \begin{itemize} + \item Motorolla A780 + \url{https://commons.wikimedia.org/wiki/File:Motorola_A780_(278204605).jpg} + CC-BY-SA 2.0 Generic + \item 4 freedoms + \url{https://www.gnu.org/graphics/amihud-4-freedoms.html} + CC-BY-SA 4.0 International License or GPLv3 or later + \item ichains + \url{https://www.gnu.org/graphics/digital-restrictions-management.html} + CC-BY-SA 3.0 + \item anti-drm protest + \url{https://www.flickr.com/photos/bcatch/164393994/in/album-72157594161735152/} + CC-BY-SA 2.0 + \item GNU buck + \url{https://static.fsf.org/licensing/gnu-bucks.tar.gz} + Unknown license + \item anti-smartphone + \url{https://commons.wikimedia.org/wiki/File:Bia\%C5\%82a_Podlaska_~21ujcqtd.jpg} + CC-BY-SA 4.0 International + \end{itemize} +\end{frame} + +\begin{frame} + \begin{itemize} + \item Replicant devices and logo: + \begin{itemize} + \item Replicant Logo + \url{https://git.replicant.us/replicant/vendor_replicant_artwork/plain/replicant_logo_alpha.svg?h=main&id=fc213d2ca94cef9047d1e4a71c21c4c4c87f349d} + CC-BY-SA 3.0 Unported + \item Replicant devices + \url{https://git.replicant.us/infrastructure/www.replicant.us/tree/images/supported-devices?id=2a331698cead2677fa953c3e1ab5d78528e39ef9} + CC-BY-SA 3.0 Unported + \end{itemize} + \end{itemize} +\end{frame} + +\begin{thebibliography}{99} +\bibitem{freeing-a-phone-from-the-ground-up} + \url{https://code.paulk.fr/article20/a-hacker-s-journey-freeing-a-phone-from-the-ground-up-first-part} + \url{https://code.paulk.fr/article21/a-hacker-s-journey-freeing-a-phone-from-the-ground-up-second-part} + \url{https://code.paulk.fr/article22/a-hacker-s-journey-freeing-a-phone-from-the-ground-up-third-part} + \url{https://code.paulk.fr/article23/a-hacker-s-journey-freeing-a-phone-from-the-ground-up-fourth-part} +\bibitem{OsmocomBB} + \url{https://osmocom.org/projects/baseband/wiki} +\bibitem{motorola-c123} + The motorola c115 is from 2005 + \url{https://en.wikipedia.org/wiki/List_of_Motorola_products#C_series_(1998-2006)} +\bibitem{last-android-6-update} + \url{https://en.wikipedia.org/wiki/Android_Marshmallow#cite_note-2} +\bibitem{porting-to-android-11} + \url{https://redmine.replicant.us/projects/replicant/wiki/PortingToAndroid11} +\bibitem{number-of-smartphones} + \url{http://www.deccanherald.com/content/332274/there-more-mobile-phones-people.html} +\end{thebibliography} +\end{document} diff --git a/37c3/Replicant_struggle/unfinished-latex-version/dot/android.dot b/37c3/Replicant_struggle/unfinished-latex-version/dot/android.dot new file mode 100644 index 0000000..a2f2d22 --- /dev/null +++ b/37c3/Replicant_struggle/unfinished-latex-version/dot/android.dot @@ -0,0 +1,7 @@ +digraph "" { + # bgcolor="#ffffff00" # Transparent background + "AOSP" -> "Samsung Android" ; + "Google Play" -> "Samsung Android" ; + "AOSP" -> "LineageOS" -> "Replicant 6.0"; + "AOSP" -> "Replicant 11"; +} diff --git a/37c3/Replicant_struggle/unfinished-latex-version/dot/framework.dot b/37c3/Replicant_struggle/unfinished-latex-version/dot/framework.dot new file mode 100644 index 0000000..c1cab54 --- /dev/null +++ b/37c3/Replicant_struggle/unfinished-latex-version/dot/framework.dot @@ -0,0 +1,4 @@ +digraph "" { + # bgcolor="#ffffff00" # Transparent background + "Android applications" -> "Android framework" -> "HALs" -> "(modified) kernel"; +} diff --git a/37c3/Replicant_struggle/unfinished-latex-version/dot/linux.dot b/37c3/Replicant_struggle/unfinished-latex-version/dot/linux.dot new file mode 100644 index 0000000..8907ac7 --- /dev/null +++ b/37c3/Replicant_struggle/unfinished-latex-version/dot/linux.dot @@ -0,0 +1,10 @@ +digraph "" { + # bgcolor="#ffffff00" # Transparent background + "OLD_DEVICE_KERNEL" [label="Device kernel"]; + "NEW_DEVICE_KERNEL" [label="Device kernel"]; + "Linux" -> "vendor_kernel_replicant" ; + "Linux" -> "Android kernel" -> "System On A Chip Android kernel" -> "OLD_DEVICE_KERNEL"; + "Linux" -> "GKI"; + "GKI" -> "NEW_DEVICE_KERNEL"; + "External modules" -> "NEW_DEVICE_KERNEL"; +} diff --git a/37c3/Smartphones_freedom_status_2023/COPYING b/37c3/Smartphones_freedom_status_2023/COPYING new file mode 100644 index 0000000..fd662a7 --- /dev/null +++ b/37c3/Smartphones_freedom_status_2023/COPYING @@ -0,0 +1,428 @@ +Attribution-ShareAlike 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More_considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution-ShareAlike 4.0 International Public +License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution-ShareAlike 4.0 International Public License ("Public +License"). To the extent this Public License may be interpreted as a +contract, You are granted the Licensed Rights in consideration of Your +acceptance of these terms and conditions, and the Licensor grants You +such rights in consideration of benefits the Licensor receives from +making the Licensed Material available under these terms and +conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. BY-SA Compatible License means a license listed at + creativecommons.org/compatiblelicenses, approved by Creative + Commons as essentially the equivalent of this Public License. + + d. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + e. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + f. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + g. License Elements means the license attributes listed in the name + of a Creative Commons Public License. The License Elements of this + Public License are Attribution and ShareAlike. + + h. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + i. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + j. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + k. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + l. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + m. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. Additional offer from the Licensor -- Adapted Material. + Every recipient of Adapted Material from You + automatically receives an offer from the Licensor to + exercise the Licensed Rights in the Adapted Material + under the conditions of the Adapter's License You apply. + + c. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + b. ShareAlike. + + In addition to the conditions in Section 3(a), if You Share + Adapted Material You produce, the following conditions also apply. + + 1. The Adapter's License You apply must be a Creative Commons + license with the same License Elements, this version or + later, or a BY-SA Compatible License. + + 2. You must include the text of, or the URI or hyperlink to, the + Adapter's License You apply. You may satisfy this condition + in any reasonable manner based on the medium, means, and + context in which You Share Adapted Material. + + 3. You may not offer or impose any additional or different terms + or conditions on, or apply any Effective Technological + Measures to, Adapted Material that restrict exercise of the + rights granted under the Adapter's License You apply. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material, + + including for purposes of Section 3(b); and + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. + diff --git a/37c3/Smartphones_freedom_status_2023/Makefile b/37c3/Smartphones_freedom_status_2023/Makefile new file mode 100644 index 0000000..f0e5831 --- /dev/null +++ b/37c3/Smartphones_freedom_status_2023/Makefile @@ -0,0 +1,23 @@ +TEXFLAGS ?= -halt-on-error -output-format pdf -output-directory output +TITLE = Smartphones_freedom_status_2023 +IMAGES := \ + output/i9300_hardware.png \ + +.PHONY: all clean test medias +all: output/$(TITLE).pdf + +output: + mkdir -p output + +output/$(TITLE).pdf: output $(TITLE).tex $(IMAGES) + pdflatex $(TEXFLAGS) '\providecommand\locale{en}\input{$(TITLE).tex}' + pdflatex $(TEXFLAGS) '\providecommand\locale{en}\input{$(TITLE).tex}' + +output/%.png: dot/%.dot output + dot -T png $< > $@ + +output/i9300_hardware.png: ../../common/images/i9300_hardware.svg + gm convert $< $@ + +clean: + rm -rf output diff --git a/37c3/Smartphones_freedom_status_2023/Smartphones_freedom_status_2023.tex b/37c3/Smartphones_freedom_status_2023/Smartphones_freedom_status_2023.tex new file mode 100644 index 0000000..022f0c4 --- /dev/null +++ b/37c3/Smartphones_freedom_status_2023/Smartphones_freedom_status_2023.tex @@ -0,0 +1,151 @@ +\documentclass{beamer} +\usepackage[english]{babel} +\usepackage{color} +\usepackage{graphicx} +\usepackage{ifthen} +\usepackage[utf8]{inputenc} +\usepackage{ulem} +\usepackage{listings} +\usepackage{longtable} +\usepackage{pdfpages} +\usepackage{tikz} +\usepackage{xtab} + +\newcommand{\outputpicture}[2] { + {\includegraphics[scale=#1]{output/#2}} +} +\newcommand{\devicepicture}[1] { + {\includegraphics[width=.2\textwidth]{../../external_resources/replicant_website/images/supported-devices/#1.png}} +} + +\title{Smartphones freedom status in 2023} +\author{Denis 'GNUtoo' Carikli and David 'dllud' Ludovino} +\date{\today} + +\begin{document} + +\maketitle + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{frame} + \center{In this presentation} + \begin{itemize} + \item What is a smartphone + \item Hardware and freedom + \item Android vs GNU/Linux: Applications and OS + \item Android Applications status: SDK etc + \item GNU/Linux status + \item Android status + \end{itemize} +\end{frame} + +\begin{frame} + \center{A Galaxy SIII (I9300):} + \outputpicture{0.8}{i9300_hardware.png} +\end{frame} + +\begin{frame} + \center{Hardware} + \begin{longtable}[!t]{|p{1cm}|p{2cm}|p{2cm}|p{2cm}|} + \hline + & Pinephone & Pinephone Pro & Librem 5 \\ + \hline + Boot & Free & Free & Nonfree DDR4 firmware \\ + \hline + WiFi & nonfree firmware & nonfree firmware & nonfree firmware \\ + \hline + Modem & Can be isolated & Can be isolated & Usually isolated \\ + \hline + Battery & Replaceable & Replaceable & Replaceable \\ + \hline + Works & Depends & No suspend to RAM & Yes \\ + \hline + Price & OK for free software people & OK for free software people & Too expensive \\ + \hline + \end{longtable} +\end{frame} + +\begin{frame} + \center{Hardware} + \begin{longtable}[!t]{|p{1cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|} + \hline + & Fairphone & Pixel 7 \\ + \hline + Boot & Nonfree, signed & Nonfree, signed? \\ + \hline + WiFi & nonfree firmware & nonfree firmware \\ + \hline + Modem & Not isolated & Can be isolated \\ + \hline + Battery & Replaceable & Non replaceable \\ + \hline + Works & Yes & Yes \\ + \hline + Price & Expensive & OK for free software people \\ + \hline + \end{longtable} +\end{frame} + +\begin{frame} + \center{GNU / Linux applications} + \begin{itemize} + \item Few adapted applications + \end{itemize} +\end{frame} + +\begin{frame} + \center{Andbox / Waydroid} + \begin{itemize} + \item Uses more RAM / space + \item Limited interfaces to hardware + \end{itemize} +\end{frame} + +\begin{frame} + \center{Android applications} + \begin{itemize} + \item F-Droid + \item Depends on nonfree Android SDK + \item \sout{https://android-rebuilds.beuc.net/} https://codeberg.org/Starfish/SDK-Rebuilds \\ + Sources without EULA. \\ + WIP: now building and publishing. + \end{itemize} +\end{frame} + +\begin{frame} + \center{GNU / Linux} + \begin{itemize} + \item Usable on the PinePhone + \item Issue: applications + \end{itemize} +\end{frame} + +\begin{frame} + \center{Android} + \begin{itemize} + \item GloDroid + \begin{itemize} + \item Good architecture. + \item Pinephone 3GiB. + \item No data connection. + \item No multipart SMS (Silence key exchange) + \item (also no modem isolation) + \end{itemize} + \end{itemize} +\end{frame} + +\begin{frame} + \center{Wanna join the fun?}\\ + \bigskip + Replicant Meetup 14:00 @ CDC +\end{frame} + +\begin{frame} + \center{Licenses} + \begin{itemize} + \item This presentation: CC-BY-SA 4.0 International + \item The Galaxy SIII internals: CC-BY-SA 4.0 International + \end{itemize} +\end{frame} + +\end{document} diff --git a/37c3/Smartphones_freedom_status_2023/abstract.txt b/37c3/Smartphones_freedom_status_2023/abstract.txt new file mode 100644 index 0000000..6cbfc98 --- /dev/null +++ b/37c3/Smartphones_freedom_status_2023/abstract.txt @@ -0,0 +1,4 @@ +This talk will look, from the point of view of a free software user / +activist at the freedom status of some smartphones, operating systems +and applications ecosystem around them. It will focus only on +smartphones (not tablets, smartwatches, etc). diff --git a/37c3/Smartphones_freedom_status_2023/description.txt b/37c3/Smartphones_freedom_status_2023/description.txt new file mode 100644 index 0000000..4dbd245 --- /dev/null +++ b/37c3/Smartphones_freedom_status_2023/description.txt @@ -0,0 +1,15 @@ +The talk will start with a description of what hardware is typically +found in a smartphone and its freedom implications. + +Once this is done we will look at several smartphones models +(PinePhone, PinePhone PRO, Librem 5, regular LineageOS and/or +Fairphone 1/2/3/4/5) and compare the implications of the hardware +design and component choices both for freedom usability (for instance +does suspend-to-ram currently work), and other factors affecting the +ability to use the device. + +We will then look at Android and GNU/Linux operating systems / +distributions, and the application ecosystems around them (F-Droid, +Android SDK, type of applications available, compatibility layers like +Waydroid) for these smartphones, with a focus on fundamental +differences that impact end users freedom and usability. diff --git a/37c3/Smartphones_freedom_status_2023/title.txt b/37c3/Smartphones_freedom_status_2023/title.txt new file mode 100644 index 0000000..98d76f8 --- /dev/null +++ b/37c3/Smartphones_freedom_status_2023/title.txt @@ -0,0 +1 @@ +Smartphones freedom status in 2023 diff --git a/37c3/meetup/COPYING b/37c3/meetup/COPYING new file mode 100644 index 0000000..fd662a7 --- /dev/null +++ b/37c3/meetup/COPYING @@ -0,0 +1,428 @@ +Attribution-ShareAlike 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More_considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution-ShareAlike 4.0 International Public +License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution-ShareAlike 4.0 International Public License ("Public +License"). To the extent this Public License may be interpreted as a +contract, You are granted the Licensed Rights in consideration of Your +acceptance of these terms and conditions, and the Licensor grants You +such rights in consideration of benefits the Licensor receives from +making the Licensed Material available under these terms and +conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. BY-SA Compatible License means a license listed at + creativecommons.org/compatiblelicenses, approved by Creative + Commons as essentially the equivalent of this Public License. + + d. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + e. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + f. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + g. License Elements means the license attributes listed in the name + of a Creative Commons Public License. The License Elements of this + Public License are Attribution and ShareAlike. + + h. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + i. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + j. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + k. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + l. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + m. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. Additional offer from the Licensor -- Adapted Material. + Every recipient of Adapted Material from You + automatically receives an offer from the Licensor to + exercise the Licensed Rights in the Adapted Material + under the conditions of the Adapter's License You apply. + + c. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + b. ShareAlike. + + In addition to the conditions in Section 3(a), if You Share + Adapted Material You produce, the following conditions also apply. + + 1. The Adapter's License You apply must be a Creative Commons + license with the same License Elements, this version or + later, or a BY-SA Compatible License. + + 2. You must include the text of, or the URI or hyperlink to, the + Adapter's License You apply. You may satisfy this condition + in any reasonable manner based on the medium, means, and + context in which You Share Adapted Material. + + 3. You may not offer or impose any additional or different terms + or conditions on, or apply any Effective Technological + Measures to, Adapted Material that restrict exercise of the + rights granted under the Adapter's License You apply. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material, + + including for purposes of Section 3(b); and + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. + diff --git a/37c3/meetup/Makefile b/37c3/meetup/Makefile new file mode 100644 index 0000000..f809592 --- /dev/null +++ b/37c3/meetup/Makefile @@ -0,0 +1,19 @@ +TEXFLAGS ?= -halt-on-error -output-format pdf -output-directory output +TITLE = meetup +IMAGES := \ + +.PHONY: all clean test medias +all: output/$(TITLE).pdf + +output: + mkdir -p output + +output/$(TITLE).pdf: output $(TITLE).tex $(IMAGES) + pdflatex $(TEXFLAGS) '\providecommand\locale{en}\input{$(TITLE).tex}' + pdflatex $(TEXFLAGS) '\providecommand\locale{en}\input{$(TITLE).tex}' + +output/%.png: dot/%.dot output + dot -T png $< > $@ + +clean: + rm -rf output diff --git a/37c3/meetup/meetup.tex b/37c3/meetup/meetup.tex new file mode 100644 index 0000000..45ddf36 --- /dev/null +++ b/37c3/meetup/meetup.tex @@ -0,0 +1,38 @@ +\documentclass{beamer} +\usepackage[english]{babel} +\usepackage{color} +\usepackage{graphicx} +\usepackage{ifthen} +\usepackage[utf8]{inputenc} +\usepackage{ulem} +\usepackage{listings} +\usepackage{longtable} +\usepackage{pdfpages} +\usepackage{tikz} +\usepackage{xtab} + +\title{37C3 Meetup} +\date{\today} + +\begin{document} + +\maketitle + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{frame} + \center{TODO} + \begin{enumerate} + \item PinePhone port + \item Repeat "Community Manager" call out\\ + \url{https://blog.replicant.us/2020/12/call-for-a-community-manager/} + \bigskip + \item Build server \\ + Already WIP with Liam and yphi (thanks!) + \item Onboarding new contributors (documentation) + \item Blog post/article about proprietary drivers in GrapheneOs. + \item F-Droid freedom issue + \item SDK rebuilds (in progress already) + \end{enumerate} +\end{frame} + +\end{document} |