Posted by Terence Zhang – Developer Relations Engineer, and Adrien Couque – Software Engineer
AI can enhance the user experience and productivity of Android apps. If you’re looking to build GenAI features that benefit from additional data privacy or offline inference, on-device GenAI is a good choice as it processes prompts directly on your device without any server calls.
Gemini Nano is the most efficient model in Google’s Gemini family, and Android’s foundational model for running on-device GenAI. It’s supported by AICore, a system service that works behind the scenes to centralize the model’s runtime, ensure its safe execution, and protect your privacy. With Gemini Nano, apps can offer more personalized and reliable AI experiences without sending your data off the device.
In this blog post, we’ll provide an introductory look into how Gemini Nano and AICore work together to deliver powerful on-device AI capabilities while prioritizing users’ privacy and safety.
At Google I/O 2021, we introduced Private Compute Core (PCC), a secure environment designed to keep your data private. At I/O in 2024, we shared that AICore is PCC compliant, meaning that it operates under strict privacy rules. It can only interact with a limited set of other system packages that are also PCC compliant, and it cannot directly access the internet. Any requests to download models or other information are routed through a separate, open-source companion APK called Private Compute Services.
This framework helps protect your privacy while still allowing apps to benefit from the power of Gemini Nano. Consider a keyboard application using Gemini Nano for a reply suggestion feature. Without PCC, the keyboard would require direct access to the conversation context. With PCC, the code that has access to the conversation runs in a secure sandbox and interacts directly with Gemini Nano to generate suggestions on behalf of the keyboard. This allows the keyboard app to benefit from Gemini Nano’s capabilities without directly accessing or storing sensitive conversation data. You can find out more about how this works in the PCC Whitepaper.
AICore is built to isolate each request to protect your privacy. This prevents apps from accessing data that does not belong to them. Requests are handled independently and processed from a single app at a time to mitigate the risk of data being exposed to other apps.
Additionally, AICore doesn’t store any record of the input data or the resulting outputs after processing each request. This design, combined with the fact that Gemini Nano’s inference happens directly on your device, helps ensure your app’s data stays private and secure.
We’re committed to building AI responsibly, and that includes making sure Gemini Nano is safe. We’ve implemented multiple layers of protection to limit harmful or unintended results:
These layers of protection work together to ensure that Gemini Nano provides a safe and helpful experience for everyone.
Learn more about Gemini Nano for app development, and try it out in your own app!
Be sure to check out the other amazing AI on Android Spotlight week content!
Another day, another Tesla recall. This time, the National Highway Traffic Safety Administration (NHTSA) of…
Summer jobs allow teachers to earn income when they may not receive a regular paycheck.…
Christmas also fuels one form of lottery playing in particular. Source link
That’s Heritage Foundation economist EJ Antoni yesterday. Dr. Antoni continues: Increasingly, people are realizing that…
Follow Frank on X. On a recent episode of the Coinage podcast, guest SEC Commissioner…
Republicans, keen to dodge a shutdown, decided to only introduce a one-vote spending package. Read…