ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
AdServices
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
โมดูล AdServices ที่เปิดตัวใน Android 13 รองรับโครงการริเริ่ม Privacy Sandbox ซึ่งมีเป้าหมายในการสร้างเทคโนโลยีที่ทั้งปกป้องความเป็นส่วนตัวของผู้ใช้ทางออนไลน์และช่วยให้บริษัทและนักพัฒนาซอฟต์แวร์มีเครื่องมือไว้สร้างธุรกิจดิจิทัลที่ประสบความสำเร็จ
ดูข้อมูลเพิ่มเติมได้ที่เว็บไซต์ของนักพัฒนาแอป Android
แรงจูงใจ
เป้าหมายของโครงการริเริ่ม Privacy Sandbox มีดังนี้
- สร้างเทคโนโลยีใหม่เพื่อรักษาข้อมูลผู้ใช้ให้เป็นส่วนตัว
- ช่วยให้ผู้เผยแพร่โฆษณาและนักพัฒนาแอปเก็บเนื้อหาออนไลน์ไว้ได้โดยไม่มีค่าใช้จ่าย
- ร่วมมือกับอุตสาหกรรมเพื่อสร้างมาตรฐานใหม่ด้านความเป็นส่วนตัวในอินเทอร์เน็ต
ขอบเขตของโมดูล
สถาปัตยกรรม AdServices: โค้ดใหม่ทั้งหมดที่ไม่มีขอบเขตของโมดูล
ตำแหน่งรหัส: packages/modules/AdServices
รูปที่ 1 แสดงการตั้งค่าโมดูล AdServices
รูปที่ 1 การออกแบบ API ของข้อบังคับ AdServices
รูปที่ 2 การตั้งค่าโมดูล AdServices
ฟังก์ชันหลักของแพ็กเกจจะพร้อมใช้งานใน APEX
com.google.android.adservices
ฟังก์ชันของ Privacy Preserving API จะพร้อมใช้งานใน APK
com.google.android.adservices.api
ฟังก์ชันการทำงานของรันไทม์ SDK จะพร้อมใช้งานใน APKcom.google.android.app.sdksandbox
ดูข้อมูลเพิ่มเติมเกี่ยวกับ AdServices ได้ที่หน้าต่อไปนี้
ทรัพยากร Dependency
- โดเมน sepolicy ใหม่สําหรับ SDKSandbox
- ข้อจํากัดสําหรับ SDKSandbox: พื้นที่เก็บข้อมูล Intent การออกอากาศ และอื่นๆ ที่จํากัด
- สิทธิ์ที่กําหนดไว้อย่างชัดเจน โดย SDK โฆษณาจะไม่รับสิทธิ์จากแอป
- การเปลี่ยนแปลงระบบปฏิบัติการเพื่อจัดการกับ UID ของ sandbox
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา 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,["# AdServices\n\nThe AdServices module, introduced in Android 13,\nsupports the Privacy Sandbox initiative that aims to\ncreate technologies that both protect people's privacy online and give companies\nand developers tools to build thriving digital businesses.\n\nMore information is available on the\n[Android Developer site](https://developer.android.com/privacy-sandbox).\n\nMotivation\n----------\n\nThe goals of the Privacy Sandbox Initiative are:\n\n- Build new technology to keep user information private\n- Enable publishers and developers to keep online content free\n- Collaborate with the industry to build to new internet privacy standards\n\nModule boundary\n---------------\n\nAdServices architecture: This is all new code with no module boundary.\n\nCode location: `packages/modules/AdServices`\n\nFigure 1 shows the AdServices module setup.\n\n**Figure 1.** AdServices module API design\n\n**Figure 2.** AdServices module setup\n\nPackage format\n--------------\n\nMain functionality for the package will be available in APEX:\n`com.google.android.adservices`.\n\nPrivacy Preserving APIs functionality will be available in APK\n`com.google.android.adservices.api`.\n\nSDK Runtime functionality will be available in APK\n`com.google.android.app.sdksandbox`.\n\nYou can learn more about AdServices on the following pages:\n\n- [Privacy Sandbox Overview](https://developer.android.com/design-for-safety/ads/introduction)\n- [SDK Runtime Design](https://developer.android.com/design-for-safety/ads/sdk-runtime)\n- [Topics Design](https://developer.android.com/design-for-safety/ads/topics)\n- [FLEDGE on Android Design](https://developer.android.com/design-for-safety/ads/fledge)\n- [Attribution Reporting Design](https://developer.android.com/design-for-safety/ads/attribution)\n\nDependencies\n------------\n\n- New sepolicy domain for SDKSandbox\n- Restrictions for SDKSandbox: limited storage, intents, broadcasts, etc.\n- Well defined permissions; ad SDKs do not inherit permissions from apps\n- OS changes to deal with sandbox UIDs"]]