Skip to content

Commit 53b531a

Browse files
committed
Update Android usage stats.
1 parent 3944069 commit 53b531a

File tree

2 files changed

+32
-22
lines changed

2 files changed

+32
-22
lines changed

index.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This is an overview of all Android versions and their corresponding identifiers
3737
Vanilla Ice Cream
3838
<sup id="fnref:2"><a href="#fn:2" class="footnote">2</a></sup>
3939
</td>
40-
<td>—</td>
40+
{% include progress-cell.html rowspan=1 percentage=0.41 %}
4141
<td><i>2024</i></td>
4242
</tr>
4343
<tr>
@@ -50,7 +50,7 @@ This is an overview of all Android versions and their corresponding identifiers
5050
Upside Down Cake
5151
<sup id="fnref:2"><a href="#fn:2" class="footnote">2</a></sup>
5252
</td>
53-
{% include progress-cell.html rowspan=2 percentage=30.9 %}
53+
{% include progress-cell.html rowspan=2 percentage=36.86 %}
5454
<td rowspan="2">2023</td>
5555
</tr>
5656
<tr class="table-notes">
@@ -70,7 +70,7 @@ This is an overview of all Android versions and their corresponding identifiers
7070
Tiramisu
7171
<sup id="fnref:2"><a href="#fn:2" class="footnote">2</a></sup>
7272
</td>
73-
{% include progress-cell.html rowspan=2 percentage=51.5 %}
73+
{% include progress-cell.html rowspan=2 percentage=55.6 %}
7474
<td rowspan="3">2022</td>
7575
</tr>
7676
<tr class="table-notes">
@@ -93,7 +93,7 @@ This is an overview of all Android versions and their corresponding identifiers
9393
Snow Cone
9494
<sup id="fnref:2"><a href="#fn:2" class="footnote">2</a></sup>
9595
</td>
96-
{% include progress-cell.html rowspan=2 percentage=66.5 %}
96+
{% include progress-cell.html rowspan=2 percentage=68.7 %}
9797
</tr>
9898
<tr>
9999
<td>Level 31 <span class="subversion">Android 12</span></td>
@@ -110,7 +110,7 @@ This is an overview of all Android versions and their corresponding identifiers
110110
Red Velvet Cake
111111
<sup id="fnref:2"><a href="#fn:2" class="footnote">2</a></sup>
112112
</td>
113-
{% include progress-cell.html rowspan=1 percentage=79.8 %}
113+
{% include progress-cell.html rowspan=1 percentage=80.6 %}
114114
<td>2020</td>
115115
</tr>
116116
<tr>
@@ -123,7 +123,7 @@ This is an overview of all Android versions and their corresponding identifiers
123123
Quince Tart
124124
<sup id="fnref:2"><a href="#fn:2" class="footnote">2</a></sup>
125125
</td>
126-
{% include progress-cell.html rowspan=1 percentage=87.1 %}
126+
{% include progress-cell.html rowspan=1 percentage=86.9 %}
127127
<td>2019</td>
128128
</tr>
129129
<tr>
@@ -133,7 +133,7 @@ This is an overview of all Android versions and their corresponding identifiers
133133
<td>Level 28</td>
134134
<td><code>P</code></td>
135135
<td>Pie</td>
136-
{% include progress-cell.html rowspan=1 percentage=91.7 %}
136+
{% include progress-cell.html rowspan=1 percentage=90.6 %}
137137
<td>2018</td>
138138
</tr>
139139
<tr>
@@ -143,13 +143,13 @@ This is an overview of all Android versions and their corresponding identifiers
143143
<td>Level 27 <span class="subversion">Android 8.1</span></td>
144144
<td><code>O_MR1</code></td>
145145
<td rowspan="2">Oreo</td>
146-
{% include progress-cell.html rowspan=1 percentage=93.0 %}
146+
{% include progress-cell.html rowspan=1 percentage=91.9 %}
147147
<td rowspan="2">2017</td>
148148
</tr>
149149
<tr>
150150
<td>Level 26 <span class="subversion">Android 8.0</span></td>
151151
<td><code>O</code></td>
152-
{% include progress-cell.html rowspan=1 percentage=95.7 %}
152+
{% include progress-cell.html rowspan=1 percentage=94.8 %}
153153
</tr>
154154
<tr>
155155
<td rowspan="2">
@@ -158,13 +158,13 @@ This is an overview of all Android versions and their corresponding identifiers
158158
<td>Level 25 <span class="subversion">Android 7.1</span></td>
159159
<td><code>N_MR1</code></td>
160160
<td rowspan="2">Nougat</td>
161-
{% include progress-cell.html rowspan=1 percentage=96.0 %}
161+
{% include progress-cell.html rowspan=1 percentage=95.1 %}
162162
<td rowspan="2">2016</td>
163163
</tr>
164164
<tr>
165165
<td>Level 24 <span class="subversion">Android 7.0</span></td>
166166
<td><code>N</code></td>
167-
{% include progress-cell.html rowspan=1 percentage=97.2 %}
167+
{% include progress-cell.html rowspan=1 percentage=96.0 %}
168168
</tr>
169169
<tr>
170170
<td>
@@ -173,7 +173,7 @@ This is an overview of all Android versions and their corresponding identifiers
173173
<td>Level 23</td>
174174
<td><code>M</code></td>
175175
<td>Marshmallow</td>
176-
{% include progress-cell.html rowspan=1 percentage=98.6 %}
176+
{% include progress-cell.html rowspan=1 percentage=97.9 %}
177177
<td rowspan="2">2015</td>
178178
</tr>
179179
<tr>
@@ -183,12 +183,12 @@ This is an overview of all Android versions and their corresponding identifiers
183183
<td>Level 22 <span class="subversion">Android 5.1</span></td>
184184
<td><code>LOLLIPOP_MR1</code></td>
185185
<td rowspan="2">Lollipop</td>
186-
{% include progress-cell.html rowspan=1 percentage=99.1 %}
186+
{% include progress-cell.html rowspan=1 percentage=98.3 %}
187187
</tr>
188188
<tr>
189189
<td>Level 21 <span class="subversion">Android 5.0</span></td>
190190
<td><code>LOLLIPOP</code>, <code>L</code></td>
191-
{% include progress-cell.html rowspan=2 percentage=99.6 %}
191+
{% include progress-cell.html rowspan=2 percentage=99.7 %}
192192
<td rowspan="3">2014</td>
193193
</tr>
194194
<tr class="table-notes"><td colspan="3">
@@ -206,7 +206,7 @@ This is an overview of all Android versions and their corresponding identifiers
206206
</td>
207207
<td><code>KITKAT_WATCH</code></td>
208208
<td rowspan="2">KitKat</td>
209-
{% include progress-cell.html rowspan=3 percentage=99.7 %}
209+
{% include progress-cell.html rowspan=3 percentage=99.9 %}
210210
</tr>
211211
<tr>
212212
<td>
@@ -226,18 +226,18 @@ This is an overview of all Android versions and their corresponding identifiers
226226
<td>Level 18 <span class="subversion">Android 4.3</span></td>
227227
<td><code>JELLY_BEAN_MR2</code></td>
228228
<td rowspan="3">Jelly Bean</td>
229-
{% include progress-cell.html rowspan=1 percentage=99.8 %}
229+
{% include progress-cell.html rowspan=1 percentage=99.9 %}
230230
</tr>
231231
<tr>
232232
<td>Level 17 <span class="subversion">Android 4.2</span></td>
233233
<td><code>JELLY_BEAN_MR1</code></td>
234-
{% include progress-cell.html rowspan=1 percentage=99.8 %}
234+
{% include progress-cell.html rowspan=1 percentage=99.9 %}
235235
<td rowspan="3">2012</td>
236236
</tr>
237237
<tr>
238238
<td>Level 16 <span class="subversion">Android 4.1</span></td>
239239
<td><code>JELLY_BEAN</code></td>
240-
{% include progress-cell.html rowspan=2 percentage=99.8 %}
240+
{% include progress-cell.html rowspan=2 percentage=99.9 %}
241241
</tr>
242242
<tr class="table-notes"><td colspan="3">
243243
<ul>
@@ -248,7 +248,7 @@ This is an overview of all Android versions and their corresponding identifiers
248248
<td>Level 15 <span class="subversion">Android 4.0.3 – 4.0.4</span></td>
249249
<td><code>ICE_CREAM_SANDWICH_MR1</code></td>
250250
<td rowspan="2">Ice Cream Sandwich</td>
251-
{% include progress-cell.html rowspan=3 percentage=99.8 %}
251+
{% include progress-cell.html rowspan=3 percentage=100.0 %}
252252
<td rowspan="7">2011</td>
253253
</tr>
254254
<tr>
@@ -379,7 +379,7 @@ This is an overview of all Android versions and their corresponding identifiers
379379
<div class="footnotes">
380380
<ol>
381381
<li id="fn:1">
382-
<p>Cumulative usage distribution figures were last updated on <b>September 03, 2024</b> using data from <a href="https://gs.statcounter.com/android-version-market-share/mobile-tablet/worldwide">Statcounter GlobalStats</a> and <a href="https://github.com/ebelinski/apilevels/blob/main/meta/android-usage-generator.swift">this script</a>. These figures may have changed significantly since the last update. You may update the figures yourself with a <a href="https://github.com/ebelinski/apilevels">pull request</a>. <a href="#fnref:1" class="reversefootnote">↩</a></p>
382+
<p>Cumulative usage distribution figures were last updated on <b>December 13, 2024</b> using data from <a href="https://gs.statcounter.com/android-version-market-share/mobile-tablet/worldwide">Statcounter GlobalStats</a> and <a href="https://github.com/ebelinski/apilevels/blob/main/meta/android-usage-generator.swift">this script</a>. These figures may have changed significantly since the last update. You may update the figures yourself with a <a href="https://github.com/ebelinski/apilevels">pull request</a>. <a href="#fnref:1" class="reversefootnote">↩</a></p>
383383
</li>
384384
<li id="fn:2">
385385
<p>The codenames for Android 10 and above in the table are the internal codenames. Beginning with Android 10, Google dropped the usage of codenames publicly. <a href="#fnref:2" class="reversefootnote">↩</a></p>

meta/android-usage-generator.swift

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ Steps:
1010
*/
1111

1212
let data = """
13-
"Date","12.0","11.0","10.0","13.0","9.0 Pie","8.1 Oreo","8.0 Oreo","7.0 Nougat","6.0 Marshmallow","5.1 Lollipop","7.1 Nougat","4.4 KitKat","5.0 Lollipop","4.3 Jelly Bean","4.2 Jelly Bean","4.0 Ice Cream Sandwich","14.0","4.1 Jelly Bean","23.3","23.1","2.2 Froyo","22.1","23.7","22.9","Other"
14-
2023-10,18.26,17.81,9.35,36.47,6.63,2.32,3.14,1.64,1.56,0.9,0.48,0.3,0.49,0.04,0.03,0.02,0.35,0.02,0,0,0.03,0,0.01,0,0.15
13+
"Date","13.0","14.0","12.0","11.0","10.0","9.0 Pie","8.0 Oreo","8.1 Oreo","6.0 Marshmallow","7.0 Nougat","5.1 Lollipop","5.0 Lollipop","7.1 Nougat","4.4 KitKat","15.0","4.3 Jelly Bean","24.1","4.2 Jelly Bean","4.1 Jelly Bean","23.1","24.7","4.0 Ice Cream Sandwich","Other"
14+
2024-11,18.74,36.45,13.11,11.9,6.25,3.73,2.91,1.27,1.9,0.92,0.46,1.39,0.28,0.13,0.41,0.02,0.05,0.01,0.01,0,0.01,0.01,0.05
1515
"""
1616

1717
let rows = data.split(separator: "\n")
1818

1919
let androidVersions = Array(rows[0].split(separator: ",")[1...])
2020
let percentages = Array(rows[1].split(separator: ",")[1...])
2121

22+
var android15 = 0.0
23+
var android14 = 0.0
2224
var android13 = 0.0
2325
var android12 = 0.0
2426
var android11 = 0.0
@@ -42,6 +44,10 @@ for i in 0..<androidVersions.count {
4244

4345
if version.contains("21.") || version.contains("22.") {
4446
continue // Ignore weird versions
47+
} else if version.contains("15.") {
48+
android15 += percentage
49+
} else if version.contains("14.") {
50+
android14 += percentage
4551
} else if version.contains("13.") {
4652
android13 += percentage
4753
} else if version.contains("12.") {
@@ -97,6 +103,8 @@ for i in 0..<androidVersions.count {
97103
//var android4point1 = 0.0
98104
//var android4point0 = 0.0
99105

106+
android14 += android15
107+
android13 += android14
100108
android12 += android13
101109
android11 += android12
102110
android10 += android11
@@ -133,6 +141,8 @@ android4point2 = round(android4point2 * 10) / 10.0
133141
android4point1 = round(android4point1 * 10) / 10.0
134142
android4point0 = round(android4point0 * 10) / 10.0
135143

144+
print("Android 15: \(android15)")
145+
print("Android 14: \(android14)")
136146
print("Android 13: \(android13)")
137147
print("Android 12: \(android12)")
138148
print("Android 11: \(android11)")

0 commit comments

Comments
 (0)