Google prepares to decouple new emojis from Android system updates
Emojis have become an integral part of our informal expression. These tiny graphical assets add emotions, intention, and character to mere words. The frequent addition of new emojis to the Unicode standard is testimony to their popularity. Whenever Unicode gets new emojis, we need to wait for an OS upgrade to reach our phones to bring support for the emoji, before we can actually make them a part of our internet lingo. Google seems to prepare to make this easier, as a few commits indicate that it is working on decoupling new emojis from Android system updates.
As it currently stands, all fonts on Android are currently stored in the system partition, and more specifically, under the /system/fonts directory. Emojis, in particular, are present within the file called NotoColorEmoji.ttf. The system partition is read-only, and updating any file within the partition requires a system update while the partition isn’t mounted. So the only way to get new fonts and new emojis is to wait for an official OTA update or install it yourself unofficially through root.
New commits have been spotted at the Android Open Source Project (AOSP) Gerrit that look to decouple font files away from needing an OS upgrade. Keep in mind that these commits have not been merged yet. We can glean their purpose from the commit descriptions:
The updated font files will be stored to /data/fonts/files and all application will read it for drawing text. Thus, /data/fonts/files needs to be readable by apps and only writable by system_server (and init).
– /data/fonts/files The updated font files are placed in this directory. The files under this directory are readable by any apps. Only system_server can write font files to this directory.
– /data/fonts/config The font configuration used by system_server is stored in this directory. Only system_server can read/write this directory.
These commits essentially make it possible for the system_server process to write updated font files to the /data/fonts directory. The data partition is mounted as read-write, so with this change, Google is allowing only the system_server process the permission to write to this directory. All apps will then read the font and emoji files from this directory for drawing text. Thus, updated font files, and by extension new emojis, can be pushed to the phone without needing an entire OTA update for this purpose.
We reiterate that these commits have not been merged yet. Consequently, we aren’t sure when this change will happen. If these commits are merged within the next few months, we can see this change happen in Android 12.
Thanks to XDA Recognized Developer luca020400 for the tip!