As Android 15 gradually rolls out to users, the tech community is already buzzing with anticipation for Android 16. This heightened interest stems from Google’s recent release of the developer preview, which has sparked discussions about potential new features. Among the intriguing possibilities is a feature that could empower apps to block AI-generated text from keyboards.
Android 16 could let apps block AI-generated text from keyboards
The integration of AI into daily tasks has become so seamless that some users may not have manually typed a word in over a year. Keyboard applications, such as Samsung Keyboard, now incorporate generative AI tools that assist in crafting messages, particularly when lengthy typing feels daunting.
While the convenience of these tools is undeniable, app developers may find themselves at odds with this trend. Currently, if a user opts to utilize an AI keyboard within an app, developers have no means to intervene. However, Android 16 may shift this dynamic. Reports suggest that Google is exploring the introduction of an API that would allow developers to identify and block instances of AI-generated text being pasted into their applications.
This information emerged from a detailed examination of the APK, and while it is promising, it should be approached with caution. The presence of this code within Android’s framework does not guarantee its inclusion in the final release.
Notably, Mishaal Rahman, in collaboration with Android Authority, uncovered specific code snippets within the software. A key component of this functionality is the EditorInfo class, which informs keyboards about the type of information suitable for various text fields. For instance, it enables Gboard to recognize when a password is required, prompting it to surface saved credentials.
During their investigation, Rahman and his team identified two new methods within the EditorInfo class: isWritingToolsEnabled() and setWritingToolsEnabled(). When an AI writing tool is active, setWritingToolsEnabled() will return true, indicating that the keyboard can generate text.
Importantly, apps will have the option to prevent keyboards from inserting AI-generated text. For example, if a social media platform prefers not to allow AI-generated bios, it can configure the setWritingToolsEnabled() method to return false, effectively disabling this feature.
At this stage, the specific applications that will implement the ability to block AI-generated text remain uncertain. As development continues, the tech world eagerly awaits further revelations about the features that Android 16 will ultimately bring to the table.