ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
OnDevicePersonalization
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
โมดูล OnDevicePersonalization ที่เปิดตัวใน Android 13 มีชุดองค์ประกอบพื้นฐานที่พัฒนาขึ้นโดยมีความเป็นส่วนตัวของผู้ใช้เป็นหัวใจสําคัญ เพื่อรองรับการพัฒนา APK ที่มอบประสบการณ์การใช้งานที่ปรับเปลี่ยนในแบบของตัวเองให้แก่ผู้ใช้ ตัวอย่างขององค์ประกอบพื้นฐานที่ระบุ ได้แก่ เครื่องมือนโยบายเพื่อปกป้องการรับส่งข้อมูลขาเข้า ขาออก และการดำเนินการในรายการที่อนุญาตของข้อมูลผู้ใช้ การควบคุมของผู้ใช้สามารถแสดงเป็นนโยบายที่เครื่องมือนโยบายนี้บังคับใช้
ตัวอย่างอื่นๆ ขององค์ประกอบพื้นฐานที่มีให้ ได้แก่ การประมวลผลแบบรวมศูนย์ที่หลากหลาย เช่น การเรียนรู้แบบรวมศูนย์ และการวิเคราะห์แบบรวมศูนย์ ซึ่งช่วยให้สามารถฝึกโมเดลแมชชีนเลิร์นนิงร่วมกันและวิเคราะห์ข้อมูลดิบในเครื่องได้โดยไม่ต้องรวบรวมข้อมูลจากส่วนกลาง
OnDevicePersonalization พยายามสร้างประสบการณ์การใช้งานสำหรับนักพัฒนาแอปที่ขจัดปัญหาคอขวดที่เกิดขึ้นจากการเก็บรวบรวมข้อมูล ความยินยอม การควบคุม และการปฏิบัติตามข้อกําหนด
ซึ่งช่วยให้ OEM และนักพัฒนาแอปมุ่งเน้นที่ส่วนที่น่าสนใจและแปลกใหม่ในแอปพลิเคชันของตน รวมถึงใช้ประโยชน์จากข้อมูลที่สมบูรณ์แบบและเรียลไทม์ซึ่งมีอยู่ในอุปกรณ์เท่านั้น
แรงจูงใจ
เป้าหมายของโมดูล OnDevicePersonalization คือการสร้างเทคโนโลยีใหม่เพื่อช่วยให้ OEM และนักพัฒนาแอปมอบประสบการณ์การปรับเปลี่ยนในแบบของคุณที่มีคุณภาพแก่ผู้ใช้ปลายทางต่อไปได้ ขณะเดียวกันก็รักษาข้อมูลของผู้ใช้ให้เป็นส่วนตัว
ขอบเขตของโมดูล
นี่เป็นโค้ดใหม่ทั้งหมดที่ไม่มีขอบเขตของโมดูล
ตำแหน่งรหัส: packages/modules/OnDevicePersonalization
รูปที่ 1 แสดงการออกแบบ API ของโมดูล OnDevicePersonalization
รูปที่ 1 การออกแบบ API ของโมดูล OnDevicePersonalization
ฟังก์ชันหลักของแพ็กเกจจะพร้อมใช้งานใน APEX
com.google.android.ondevicepersonalization
ฟังก์ชันการทํางานของ OnDevicePersonalization API จะพร้อมใช้งานใน APK
com.google.android.ondevicepersonalization
ฟังก์ชันการทำงานของ FederatedCompute API จะพร้อมใช้งานใน APK
com.google.android.federatedcompute
ทรัพยากร Dependency
- การเปลี่ยนแปลงใน PackageManager เพื่อตีความแท็กไฟล์ Manifest ใหม่
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# OnDevicePersonalization\n\nThe OnDevicePersonalization module, introduced in Android 13,\nprovides a set of building blocks developed with user privacy as their core\ntenet, to support development of APKs that offer a personalized experience for\ntheir users. Examples of the building blocks provided include a policy engine\nto guard the ingress, egress, and allow-listed operations of user data. User\ncontrols can be expressed as policies that are enforced by this policy engine.\nAnother example of the building blocks provided includes various federated\ncomputations, such as\n[federated learning](https://ai.googleblog.com/2017/04/federated-learning-collaborative.html)\nand [federated analytics](https://ai.googleblog.com/2020/05/federated-analytics-collaborative-data.html),\nthat enable collaborative training of machine learning models and analysis of\nlocal raw data without central data collection.\n\nOnDevicePersonalization attempts to create a developer experience that removes\nbottlenecks that arose from data collection, consent, control and compliance.\nThis allows OEMs and app developers to focus on the novel and semantically\ninteresting parts of their applications and take advantage of the super-rich and\nreal-time data that's available only on the devices.\n\nMotivation\n----------\n\nThe goal of the OnDevicePersonalization module is to build new technology to\nenable OEMs and app developers to continue to offer a quality personalization\nexperience to their end users while keeping user information private.\n\nModule boundary\n---------------\n\nThis is all new code with no module boundary.\n\nCode Location: `packages/modules/OnDevicePersonalization`\n\nFigure 1 shows the OnDevicePersonalization module API design.\n\n**Figure 1.** OnDevicePersonalization module API design\n\nPackage format\n--------------\n\nMain functionality for the package will be available in APEX\n`com.google.android.ondevicepersonalization`.\n\nOnDevicePersonalization API functionality will be available in APK\n`com.google.android.ondevicepersonalization`.\n\nFederatedCompute APIs functionality will be available in APK\n`com.google.android.federatedcompute`.\n\nDependencies\n------------\n\n- Changes in PackageManager to interpret the new manifest tag"]]