Project

General

Profile

DeprecatedPortingToAndroid10 » History » Version 46

Denis 'GNUtoo' Carikli, 03/28/2019 12:22 PM

1 1 Denis 'GNUtoo' Carikli
h1. Porting Replicant to Android 9
2
3 46 Denis 'GNUtoo' Carikli
h2. Status:
4
5
The Galaxy SIII 4G (i9305) boots (with graphics hacks) under AOSP9, without having to import nonfree libraries. Not much has been validated beside that.
6 1 Denis 'GNUtoo' Carikli
h2. Replicant 9 work in progress
7
8 46 Denis 'GNUtoo' Carikli
h2. Repositories and changes
9
 
10
* git://git.putti.eu/aosp/manifest_i9305.git
11
* git://git.putti.eu/aosp/kernel_i9305.git
12
* git://git.putti.eu/aosp/device_i9305.git
13 1 Denis 'GNUtoo' Carikli
14
h2. Building (WIP)
15
16 46 Denis 'GNUtoo' Carikli
First get the source code:
17
<pre>
18
$ repo init -u git://git.putti.eu/aosp/manifest_i9305.git -b android-9.0.0
19
</pre>
20
21 45 Denis 'GNUtoo' Carikli
For Trisquel8 (WIP):
22
<pre>
23
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip bc python-mako
24
</pre>
25
26
h2. TODO
27 38 Denis 'GNUtoo' Carikli
28 43 Denis 'GNUtoo' Carikli
* -Boot a device under AOSP9-
29 36 Denis 'GNUtoo' Carikli
* Build it under a "FSDG compliant distribution":https://www.gnu.org/distros/free-distros.html like Trisquel8
30
* Port the device on top of LineageOS 16
31 1 Denis 'GNUtoo' Carikli
* Find and remove proprietary software if there is any shipped or downloaded with the source code
32 38 Denis 'GNUtoo' Carikli
* Port Replicant 6 changes
33 36 Denis 'GNUtoo' Carikli
* Port libsamsung-ipc and libsamsung-ril
34
* Port the sensors libraries and other device specific libraries
35
* Port the AOSP9 changes on top of LineageOS 16
36
* Rebrand LineageOS as Replicant
37 39 Denis 'GNUtoo' Carikli
* Make sure that Replicant can be built on a GNU/Linux distribution that follows the Free Software Distributions Guidelines
38 36 Denis 'GNUtoo' Carikli
* Reduce the attack surface
39 34 Denis 'GNUtoo' Carikli
* Add support for smartphones that were supported in Replicant 4.2 and 6.0 if they meet the [[HardwareRequirements]]
40
* Add in-system upgrades
41
42
h2. Replicant 6.0 changes
43 2 Denis 'GNUtoo' Carikli
44 4 Denis 'GNUtoo' Carikli
|_. Repository path |_. rebase worked |_. Changes |
45 22 Denis 'GNUtoo' Carikli
| build | No | |
46 1 Denis 'GNUtoo' Carikli
| manifest | No | N/A |
47 32 Denis 'GNUtoo' Carikli
| bootable/recovery | Yes | * UI changes to improve usability 
48 5 Denis 'GNUtoo' Carikli
* Branding
49 31 Denis 'GNUtoo' Carikli
* Small fix(es) | 
50 4 Denis 'GNUtoo' Carikli
| external/boringssl | Yes | * Small fix(es) |
51
| external/heimdall | No | |
52
| frameworks/av | Yes | * Software rendering fix(es) |
53
| frameworks/base | Yes | * WiFi fixe(s) for external dongles
54
* Software rendering fix(es) 
55
* Privacy fix(es) 
56 1 Denis 'GNUtoo' Carikli
* Security improvements 
57 5 Denis 'GNUtoo' Carikli
* Usability improvements |
58
| frameworks/native | No |
59
| hardware/broadcom/wlan | Yes | * Remove nonfree software |
60 10 Denis 'GNUtoo' Carikli
| hardware/libhardware | Yes | * Software rendering fix(es) |
61 5 Denis 'GNUtoo' Carikli
| hardware/libhardware_legacy | Yes | * Don't depend on nonfree software |
62
| hardware/ti/omap4 | Yes | * Remove nonfree software 
63 33 Denis 'GNUtoo' Carikli
* Don't depend on nonfree software 
64
* Small fix(es) |
65 6 Denis 'GNUtoo' Carikli
| libcore | Yes | * Small fix(es) | 
66 8 Denis 'GNUtoo' Carikli
| packages/apps/Browser | Yes | * Privacy fix(es) 
67 33 Denis 'GNUtoo' Carikli
* Branding
68 7 Denis 'GNUtoo' Carikli
* Small fix(es) |
69 33 Denis 'GNUtoo' Carikli
| packages/apps/LegacyCamera | Yes | * Software rendering fix(es)
70 22 Denis 'GNUtoo' Carikli
* Small fix(es) |
71
| packages/apps/RepWifi | Not upstreamed, obsolete | N/A |
72 11 Denis 'GNUtoo' Carikli
| packages/apps/ReplicantWallpapers | Not upstreamed | * Branding |
73
| packages/apps/Settings | No | |
74
| packages/apps/SetupWizard | Yes | * Privacy fix(es) 
75
* Don't depend on nonfree software
76 12 Denis 'GNUtoo' Carikli
* Branding |
77
| packages/apps/ThemeChooser | Yes | * Privacy fix(es) ?
78 33 Denis 'GNUtoo' Carikli
* Don't depend on nonfree software ? |
79 13 Denis 'GNUtoo' Carikli
| packages/providers/ContactsProvider | Yes | * Small fix(es) |
80
| system/core | Yes | * Branding
81
* various fixes |
82
| vendor/replicant | No | |
83 14 Denis 'GNUtoo' Carikli
| vendor/cmsdk | Yes | * Branding |
84
| external/chromium-webview | ? | ? |
85
| external/drm_gralloc | Yes | * Software rendering fix(es) |
86
| external/llvm | Yes | * Software rendering fix(es) |
87
| external/mesa3d |  Yes | * Software rendering fix(es)
88 33 Denis 'GNUtoo' Carikli
* Performance debugging for software rendering |
89 14 Denis 'GNUtoo' Carikli
| external/parameter-framework | Yes | * Small fix(es) |
90
| external/protobuf | N/A | No changes |
91
| prebuilts/ndk | ? | ? |
92 33 Denis 'GNUtoo' Carikli
| prebuilts/sdk | ? | ? |
93
| sdk | Yes | * Small fix(es) |
94 14 Denis 'GNUtoo' Carikli
| toolchain/src/binutils | Yes | * Small fix(es) |
95 33 Denis 'GNUtoo' Carikli
| toolchain/src/gcc | No | |
96
| toolchain/src/jack | Yes | * Small fix(es) |
97 22 Denis 'GNUtoo' Carikli
| toolchain/src/jill | Yes | * Small fix(es) |
98 1 Denis 'GNUtoo' Carikli
| kernel/samsung/smdk4412 |/3. Yes |/3. * Security fixes
99
* Privacy Fixes (TrustZone)
100 20 Denis 'GNUtoo' Carikli
* Don't depend on nonfree software
101 33 Denis 'GNUtoo' Carikli
* Remove nonfree software
102 22 Denis 'GNUtoo' Carikli
* Small fix(es) |
103
| kernel/samsung/tuna |
104 28 Denis 'GNUtoo' Carikli
| kernel/samsung/espresso10 |
105
| device/samsung/i9100 | No |/14. * Replace nonfree software by free software
106
* free software sensors implementation(s)
107 25 Denis 'GNUtoo' Carikli
* free software modem audio implementation(s)
108 29 Denis 'GNUtoo' Carikli
* Software rendering fix(es)
109
* Privacy Fixes (TrustZone)
110
* Don't depend on nonfree software
111 1 Denis 'GNUtoo' Carikli
* Remove nonfree software
112 33 Denis 'GNUtoo' Carikli
* Branding
113 1 Denis 'GNUtoo' Carikli
* Small fix(es) |
114
| device/samsung/n7000 | Yes |
115
| device/samsung/i9300 | No |
116
| device/samsung/i9305 | No |
117 29 Denis 'GNUtoo' Carikli
| device/samsung/n7100 | Yes |
118
| device/samsung/n5100 | Yes |
119
| device/samsung/n5110 | Yes |
120
| device/samsung/maguro | Yes |
121 30 Denis 'GNUtoo' Carikli
| device/samsung/tuna | Yes |
122
| device/samsung/espressowifi | Yes |
123
| device/samsung/espresso3g | Yes |
124
| device/samsung/galaxys2-common | Yes |
125
| device/samsung/smdk4412-common | No |
126 22 Denis 'GNUtoo' Carikli
| device/samsung/kona-common | Yes |
127
| hardware/ril/samsung-ril | Not upstreamed | N/A |
128 23 Denis 'GNUtoo' Carikli
| external/libsamsung-ipc | Not upstreamed | N/A |
129 40 Denis 'GNUtoo' Carikli
| hardware/tinyalsa-audio | Not upstreamed? | N/A |
130
131
h2. Links 
132
133 1 Denis 'GNUtoo' Carikli
* https://source.android.com/setup/build/requirements