How many lines of code are in Android 16?
Android 16 just released, and with it the code size grew again (+50 mil. LoC since Android 14). But you probably came here because you searched for how much code runs on your device. The rough answer is 92 million for explanations why putting a number on this is misleading read my last post on that matter. If you want to explore explore the data yourself there are two more details below. As always the raw data and source code is here.
Quick facts
- There are over 250 million source code lines contributing to android.
- Roughly 92 million lines of code run on the average device.
- 83 million lines of comments and documentation tell the developers what the code does.- 8.8% lines are empty.
Doughnut chart
This time I included this nice interactive doughnut chart of the programming languages used (unfortunately requires JavaScript).
Details
Code | Comments | Blank | |
---|---|---|---|
Java | 3841121 | 1969101 | 680000 |
Cpp | 2840107 | 434795 | 435373 |
CHeader | 1948704 | 589342 | 295750 |
Kotlin | 675451 | 172796 | 108588 |
AssemblyGAS | 627520 | 19539 | 11789 |
CppHeader | 366491 | 15513 | 74929 |
C | 199712 | 47377 | 30066 |
Rust | 135628 | 15391 | 19745 |
Protobuf | 72681 | 27914 | 18611 |
Python | 64545 | 8485 | 11061 |
Go | 13646 | 1953 | 1890 |
Sh | 10747 | 3786 | 2230 |
RPMSpecfile | 8892 | 360 | 1163 |
Autoconf | 8382 | 164 | 294 |
Makefile | 8124 | 5295 | 2312 |
LLVM | 5081 | 142 | 770 |
CMake | 4341 | 721 | 737 |
Html | 4190 | 366 | 466 |
TypeScript | 2968 | 500 | 170 |
Glsl | 2527 | 636 | 441 |
JavaScript | 2364 | 311 | 307 |
Bash | 2109 | 593 | 383 |
Meson | 1461 | 121 | 252 |
ModuleDef | 1230 | 0 | 85 |
Batch | 763 | 43 | 259 |
LinkerScript | 587 | 21 | 11 |
FlatBuffers | 514 | 462 | 186 |
ObjectiveC | 450 | 72 | 83 |
ReStructuredText | 372 | 0 | 171 |
Perl | 352 | 84 | 31 |
ObjectiveCpp | 331 | 72 | 74 |
Prolog | 159 | 27 | 31 |
Css | 141 | 34 | 24 |
Automake | 47 | 2 | 15 |
Assembly | 38 | 58 | 14 |
FSharp | 35 | 0 | 10 |
MsBuild | 18 | 0 | 0 |
Lua | 15 | 0 | 4 |
Svg | 0 | 0 | 0 |
DreamMaker | 0 | 0 | 0 |
D | 0 | 0 | 0 |
Dockerfile | 0 | 0 | 0 |
DeviceTree | 0 | 0 | 0 |
Hex | 0 | 0 | 0 |
Markdown | 0 | 22859 | 7309 |
XSL | 0 | 0 | 0 |
Text | 0 | 295729 | 11166 |
Code | Comments | Blank | |
---|---|---|---|
Java | 348904 | 170226 | 78696 |
TypeScript | 45556 | 8086 | 5354 |
Bash | 28382 | 5160 | 4131 |
Kotlin | 23846 | 9438 | 4417 |
Batch | 20900 | 0 | 7669 |
Python | 16319 | 1861 | 3264 |
Sh | 15722 | 3066 | 2471 |
Cpp | 9618 | 1596 | 1679 |
Rust | 8502 | 955 | 887 |
CHeader | 3863 | 2603 | 1572 |
Html | 3137 | 199 | 209 |
FreeMarker | 3104 | 610 | 614 |
Go | 2808 | 38 | 322 |
Protobuf | 1238 | 121 | 227 |
Prolog | 784 | 0 | 121 |
JavaScript | 526 | 182 | 69 |
Makefile | 406 | 226 | 135 |
Css | 258 | 60 | 64 |
Sass | 243 | 61 | 47 |
Svg | 232 | 1 | 1 |
Ruby | 183 | 9 | 43 |
CMake | 177 | 15 | 23 |
C | 161 | 18 | 25 |
Sql | 140 | 1 | 4 |
Perl | 90 | 1 | 12 |
Dockerfile | 43 | 0 | 3 |
ModuleDef | 31 | 2 | 4 |
AssemblyGAS | 12 | 15 | 5 |
Text | 0 | 20281 | 4675 |
Markdown | 0 | 18914 | 6572 |
Code | Comments | Blank | |
---|---|---|---|
Java | 18715480 | 12137610 | 2359525 |
Cpp | 16874768 | 2671625 | 2651317 |
C | 12978642 | 2135290 | 1970887 |
CHeader | 11244997 | 5007672 | 2194213 |
Rust | 4705084 | 224107 | 454494 |
Python | 3107813 | 322240 | 488511 |
CppHeader | 2524121 | 457560 | 434344 |
AssemblyGAS | 1489624 | 95684 | 170013 |
Protobuf | 712308 | 777593 | 275107 |
Assembly | 626663 | 16337 | 52222 |
CMake | 376377 | 64120 | 46167 |
ReStructuredText | 376061 | 0 | 145610 |
Go | 369628 | 84756 | 43625 |
Autoconf | 257887 | 47310 | 42262 |
CSharp | 257651 | 52913 | 22790 |
Perl | 252707 | 30193 | 29789 |
Kotlin | 249517 | 72760 | 39710 |
Sh | 239212 | 70449 | 42667 |
ObjectiveC | 199836 | 32964 | 33648 |
Html | 151176 | 13823 | 13414 |
JavaScript | 132130 | 17983 | 15458 |
VisualStudioProject | 123069 | 212 | 41 |
Makefile | 122076 | 32084 | 33893 |
ObjectiveCpp | 115662 | 12022 | 20762 |
ModuleDef | 107781 | 1971 | 8429 |
TypeScript | 90347 | 24488 | 13590 |
Glsl | 69881 | 8041 | 16404 |
Sql | 51161 | 14322 | 2451 |
Meson | 37302 | 3025 | 4620 |
Php | 33699 | 30228 | 7569 |
Css | 33477 | 1932 | 5696 |
Svg | 30111 | 244 | 26 |
Happy | 28487 | 0 | 3468 |
DeviceTree | 24719 | 3267 | 3739 |
Lua | 23777 | 2034 | 2080 |
Automake | 23298 | 3375 | 3168 |
Ruby | 21510 | 7563 | 4212 |
Tex | 20678 | 9507 | 2610 |
Bash | 20328 | 6878 | 4156 |
Batch | 15343 | 1618 | 4069 |
OCaml | 15174 | 2752 | 1625 |
VisualStudioSolution | 13007 | 0 | 34 |
Hex | 12655 | 0 | 563 |
Pascal | 11326 | 2909 | 1906 |
Swift | 11091 | 2611 | 1245 |
Swig | 10847 | 495 | 1720 |
Dockerfile | 10231 | 4822 | 2893 |
FlatBuffers | 9459 | 4386 | 2601 |
Pan | 7704 | 657 | 773 |
FortranLegacy | 7163 | 7907 | 33 |
RPMSpecfile | 7086 | 624 | 971 |
D | 6859 | 479 | 410 |
Sass | 6156 | 992 | 838 |
Alex | 3731 | 0 | 764 |
ActionScript | 3567 | 2608 | 746 |
XSL | 3371 | 502 | 364 |
Ada | 3304 | 863 | 1044 |
MsBuild | 3212 | 389 | 246 |
VB6 | 3091 | 651 | 404 |
Dart | 2956 | 424 | 542 |
Julia | 2462 | 1375 | 379 |
R | 2332 | 989 | 585 |
OpenType | 2157 | 289 | 339 |
Velocity | 1885 | 471 | 452 |
Hlsl | 1680 | 72 | 284 |
PowerShell | 1648 | 592 | 317 |
Scons | 1482 | 284 | 354 |
Prolog | 1349 | 0 | 204 |
Groovy | 1298 | 1682 | 334 |
Handlebars | 1167 | 24 | 92 |
LinkerScript | 1079 | 53 | 81 |
Lisp | 1004 | 161 | 217 |
Elisp | 859 | 601 | 287 |
LLVM | 834 | 15 | 27 |
Rakefile | 830 | 93 | 135 |
VimScript | 827 | 143 | 84 |
Processing | 724 | 89 | 32 |
Nix | 491 | 17 | 62 |
Fish | 431 | 149 | 91 |
Nim | 424 | 7 | 95 |
Arduino | 389 | 38 | 56 |
Pest | 289 | 72 | 83 |
Stratego | 227 | 0 | 14 |
XcodeConfig | 188 | 216 | 46 |
DotNetResource | 174 | 195 | 1 |
Gherkin | 133 | 14 | 32 |
CShell | 129 | 20 | 23 |
RubyHtml | 102 | 0 | 25 |
AsciiDoc | 101 | 2 | 34 |
Jsonnet | 93 | 108 | 12 |
Zig | 73 | 0 | 10 |
ABNF | 69 | 1 | 23 |
FortranModern | 56 | 0 | 4 |
Graphql | 51 | 0 | 0 |
Zsh | 4 | 26 | 2 |
Tcl | 4 | 0 | 0 |
Text | 0 | 22876050 | 240513 |
Scala | 0 | 0 | 0 |
Fstar | 0 | 0 | 0 |
Markdown | 0 | 528493 | 205725 |
Forth | 0 | 0 | 0 |
RON | 0 | 0 | 0 |
Jupyter | 0 | 0 | 0 |
VBScript | 0 | 0 | 0 |
FSharp | 0 | 0 | 0 |
SpecmanE | 0 | 0 | 0 |
Asn1 | 0 | 0 | 0 |
GDB | 0 | 0 | 0 |
Code | Comments | Blank | |
---|---|---|---|
Java | 352170 | 135901 | 62519 |
Rust | 345268 | 5009 | 6318 |
Go | 173657 | 38368 | 33895 |
Python | 111087 | 12228 | 16354 |
Kotlin | 57826 | 25816 | 9637 |
Makefile | 29508 | 11658 | 6118 |
Cpp | 17116 | 4147 | 3487 |
Sh | 7497 | 2812 | 1532 |
Perl | 6188 | 602 | 773 |
CHeader | 5940 | 2860 | 1690 |
Protobuf | 4122 | 3648 | 1303 |
Css | 3221 | 155 | 599 |
JavaScript | 3009 | 258 | 246 |
TypeScript | 2423 | 455 | 217 |
Svg | 1661 | 9 | 7 |
Bash | 1460 | 1342 | 459 |
Html | 979 | 37 | 83 |
C | 913 | 266 | 185 |
VisualStudioProject | 876 | 0 | 0 |
Batch | 762 | 107 | 247 |
CSharp | 670 | 1 | 83 |
CMake | 522 | 114 | 91 |
XSL | 398 | 34 | 42 |
CppHeader | 155 | 57 | 46 |
Elisp | 110 | 3 | 18 |
VisualStudioSolution | 82 | 0 | 2 |
Pan | 61 | 5 | 11 |
Dockerfile | 38 | 3 | 8 |
Autoconf | 3 | 0 | 0 |
DeviceTree | 0 | 0 | 0 |
Sql | 0 | 0 | 0 |
DreamMaker | 0 | 0 | 0 |
FSharp | 0 | 0 | 0 |
Text | 0 | 92331 | 6850 |
Arduino | 0 | 0 | 0 |
Cobol | 0 | 0 | 0 |
AssemblyGAS | 0 | 0 | 0 |
Markdown | 0 | 5707 | 1858 |
Assembly | 0 | 0 | 0 |
Glsl | 0 | 0 | 0 |
Code | Comments | Blank | |
---|---|---|---|
Java | 3000579 | 960780 | 498888 |
Cpp | 552728 | 122110 | 98886 |
Kotlin | 290085 | 87392 | 41755 |
CHeader | 143118 | 109076 | 41223 |
Rust | 111108 | 10858 | 16496 |
Python | 43255 | 3874 | 7757 |
C | 20647 | 4838 | 3656 |
Protobuf | 13800 | 6992 | 4917 |
RPMSpecfile | 7809 | 0 | 295 |
Sh | 5609 | 1436 | 1129 |
Makefile | 1408 | 3372 | 506 |
Html | 1305 | 34 | 122 |
Bash | 1239 | 155 | 230 |
Batch | 467 | 0 | 152 |
DeviceTree | 444 | 9 | 38 |
Css | 366 | 120 | 23 |
AssemblyGAS | 336 | 220 | 88 |
Lua | 311 | 15 | 40 |
JavaScript | 241 | 149 | 36 |
CMake | 224 | 7 | 41 |
CSharp | 179 | 8 | 37 |
ReStructuredText | 168 | 0 | 29 |
FlatBuffers | 145 | 58 | 19 |
Prolog | 116 | 0 | 16 |
LLVM | 106 | 0 | 24 |
Dockerfile | 61 | 18 | 7 |
Glsl | 55 | 19 | 13 |
CppHeader | 40 | 73 | 21 |
LinkerScript | 24 | 0 | 3 |
Autoconf | 15 | 0 | 2 |
SRecode | 0 | 0 | 0 |
TypeScript | 0 | 0 | 0 |
Markdown | 0 | 4909 | 1547 |
Perl | 0 | 0 | 0 |
Sql | 0 | 0 | 0 |
Text | 0 | 60682 | 3619 |
Code | Comments | Blank | |
---|---|---|---|
Cpp | 16029799 | 1683075 | 2130961 |
Java | 11756869 | 2101296 | 2114970 |
CHeader | 10371528 | 412413 | 218403 |
Python | 3667710 | 359963 | 631773 |
C | 2218079 | 490983 | 427105 |
Assembly | 1801355 | 90 | 60537 |
Kotlin | 943711 | 169060 | 138690 |
LLVM | 698946 | 503609 | 161851 |
Html | 691333 | 11927 | 11577 |
Rust | 626330 | 39642 | 82341 |
Go | 621904 | 52294 | 65710 |
TypeScript | 366192 | 96419 | 9933 |
Sh | 325764 | 95799 | 68159 |
CppHeader | 250209 | 16192 | 24486 |
AssemblyGAS | 215911 | 109008 | 62699 |
CSharp | 188725 | 9483 | 16848 |
Autoconf | 122327 | 3605 | 9940 |
Protobuf | 80663 | 43014 | 19418 |
Glsl | 74337 | 137 | 1153 |
ObjectiveC | 61330 | 72094 | 16935 |
CMake | 58225 | 6708 | 7355 |
VisualStudioProject | 57531 | 50 | 28 |
Groovy | 46852 | 25188 | 12710 |
FortranLegacy | 38674 | 15550 | 78 |
ObjectiveCpp | 38531 | 27118 | 9854 |
XSL | 38107 | 56399 | 16036 |
Php | 33133 | 11948 | 6320 |
Ruby | 30859 | 2003 | 5249 |
Perl | 29951 | 8577 | 5335 |
Hlsl | 24862 | 20 | 1958 |
JavaScript | 23420 | 2913 | 2930 |
Makefile | 23118 | 11465 | 8289 |
Bash | 17175 | 9036 | 3933 |
DeviceTree | 15398 | 3713 | 949 |
ReStructuredText | 13367 | 0 | 5140 |
Automake | 9628 | 816 | 2116 |
Swift | 9022 | 351 | 1110 |
Dart | 8685 | 214 | 1200 |
Dockerfile | 6962 | 4500 | 2279 |
Forth | 6709 | 54 | 12 |
Lua | 4956 | 944 | 970 |
Svg | 4554 | 52 | 1 |
Batch | 4483 | 122 | 1131 |
Css | 3787 | 161 | 635 |
Meson | 3563 | 462 | 428 |
FlatBuffers | 3065 | 688 | 703 |
Sql | 2931 | 1101 | 334 |
OCaml | 2617 | 551 | 617 |
Velocity | 2544 | 603 | 756 |
Prolog | 2188 | 135 | 188 |
Nim | 1989 | 34 | 135 |
D | 1885 | 0 | 14 |
VisualStudioSolution | 1597 | 0 | 10 |
Fstar | 1479 | 0 | 0 |
Scons | 1178 | 278 | 459 |
R | 1078 | 553 | 368 |
Sass | 825 | 15 | 185 |
Cobol | 725 | 0 | 0 |
ModuleDef | 668 | 20 | 63 |
Hex | 663 | 0 | 2 |
AsciiDoc | 580 | 1 | 185 |
Gherkin | 557 | 53 | 113 |
MsBuild | 439 | 52 | 68 |
LinkerScript | 209 | 0 | 32 |
FSharp | 193 | 0 | 49 |
OpenType | 176 | 1 | 24 |
ActionScript | 148 | 10 | 46 |
Arduino | 132 | 2 | 23 |
Pest | 121 | 39 | 30 |
Alex | 64 | 0 | 1 |
Pan | 57 | 6 | 7 |
Rakefile | 54 | 3 | 18 |
DreamMaker | 53 | 117 | 1 |
FreeMarker | 51 | 0 | 10 |
GDB | 44 | 64 | 20 |
Elisp | 36 | 24 | 6 |
Scala | 29 | 46 | 15 |
RON | 24 | 0 | 0 |
PowerShell | 20 | 5 | 7 |
FortranModern | 18 | 260 | 3 |
Tex | 16 | 0 | 10 |
Tcl | 11 | 6 | 6 |
Asn1 | 10 | 0 | 4 |
Happy | 5 | 0 | 2 |
SRecode | 4 | 0 | 0 |
Pascal | 1 | 0 | 0 |
SpecmanE | 1 | 0 | 0 |
VBScript | 0 | 1 | 0 |
Markdown | 0 | 91730 | 31247 |
Text | 0 | 15910815 | 477356 |
Code | Comments | Blank | |
---|---|---|---|
Html | 5434495 | 245746 | 108120 |
ReStructuredText | 437340 | 0 | 120762 |
JavaScript | 44783 | 9840 | 10102 |
Svg | 40038 | 401 | 97 |
Css | 35982 | 3318 | 4737 |
Cpp | 24919 | 3490 | 1629 |
Python | 15521 | 7309 | 4165 |
AsciiDoc | 13669 | 577 | 3995 |
C | 10175 | 6442 | 2710 |
Java | 9605 | 4457 | 1736 |
Autoconf | 9548 | 23699 | 9137 |
Tex | 7234 | 2744 | 1414 |
XSL | 5752 | 456 | 397 |
Sass | 5357 | 206 | 587 |
RPMSpecfile | 3475 | 2 | 1723 |
Makefile | 2734 | 316 | 617 |
VisualStudioProject | 2658 | 0 | 0 |
Php | 1779 | 1 | 8 |
Batch | 1732 | 18 | 277 |
Sh | 1383 | 405 | 302 |
Perl | 1144 | 406 | 303 |
Kotlin | 884 | 189 | 104 |
CMake | 874 | 244 | 136 |
Meson | 716 | 36 | 105 |
Automake | 703 | 276 | 197 |
Bash | 424 | 173 | 117 |
Velocity | 417 | 30 | 97 |
Protobuf | 254 | 51 | 39 |
CHeader | 200 | 464 | 76 |
Rust | 60 | 0 | 16 |
Go | 53 | 11 | 7 |
Ruby | 35 | 31 | 11 |
D | 4 | 23 | 4 |
Lua | 4 | 2 | 0 |
Text | 0 | 104099 | 20042 |
Markdown | 0 | 289439 | 107278 |