2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
プライバシー セキュリティのおすすめの方法
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このページでは、Android ユーザーがデータの処理を管理できるようにするためのデータ収集に関するガイダンスとおすすめの方法を説明します。
データロギング
データをログに記録すると、そのデータの漏洩リスクが高まり、また、システムのパフォーマンスが低下します。公開されている複数のセキュリティ インシデントは、センシティブなユーザーデータをログに記録した結果、発生しています。
- SD カードにはログを記録しないでください。
- アプリやシステム サービスは、機密情報を含んでいる可能性のあるサードパーティ アプリから取得したデータをログに記録するべきではありません。
- アプリのコア機能の提供に必要不可欠である場合を除いて、アプリは通常の動作の一環として個人情報(PII)をログに記録してはなりません。
CTS にはログ内に機密情報が存在する可能性があるかどうかを確認するテストが含まれます。
指標の収集
指標の収集は、アプリの使用状況の把握と全体的なユーザー エクスペリエンスの改善に不可欠な要素です。しかし、過度に広範囲にわたる指標の収集はユーザーのプライバシーに危険をもたらすおそれがあります。
- そのような場合は指標を収集しないようにしてください。
- 指標を収集する必要がある場合は、最初に明確かつ十分に説明を行ったうえでユーザーの有効な同意を得るようにします。
- わずかな例外を除き、サービスの信頼性を保つのに必要な指標のみを収集するようにします。
- ハードウェア ID のような識別可能かつセンシティブ データになりうるデータの収集は可能な限り避けてください。
- データは可能な限り十分に集約し、匿名化するようにします。
スパイウェア
スパイウェアは、ユーザーやデバイスの情報を通知なしに収集し、ときには同意なく別のエンティティにユーザー情報を送信するソフトウェアです。
- ユーザーまたはデバイスに関する以下のデータを開示せずに、またはユーザーの予期しない形式で送信すると、スパイウェアであると見なされます。以下のリストは主要な例を挙げたものであり、すべて網羅しているわけではありません。
- ユーザーの連絡先に関する情報(名前、電話番号、メールアドレスなど)
- 写真やその他のファイル
- ユーザーのメールの内容
- 通話履歴
- SMS のログ
- ウェブ履歴
- ブラウザのブックマーク
- 他のアプリからの個人情報(非公開の
/data/
ディレクトリ)
- 音声または通話録音
- パスワード
- OAuth トークン
- 位置情報
- どのアプリもインストール前に、ユーザーに対して適切な説明を開示する必要があります。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。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,["# Privacy security best practices\n\nThis page contains a collection of data collection guidance\nand recommendations to ensure that Android users have control over the\nhandling of their data.\n\nData logging\n------------\n\nLogging data increases the risk of exposure of that data and reduces system\nperformance. Multiple public security incidents have occurred as a result of\nlogging sensitive user data.\n\n- Don't log to the sdcard.\n- Apps or system services shouldn't log data provided from third-party apps that might include sensitive information.\n- Apps must not log any Personally Identifiable Information (PII) as part of normal operation, unless it's absolutely necessary to provide the core functionality of the app.\n\nCTS includes tests that check for the presence of potentially sensitive\ninformation in logs.\n\nMetrics collection\n------------------\n\nCollecting metrics can be an essential part of understanding usage of your\napp and making improvements for the overall user experience. However, overly\nbroad metrics collection can also present a risk to user privacy.\n\n- If at all possible, don't collect metrics.\n - If you must collect metrics, first request explicit, informed, and meaningful user consent.\n- With few exceptions, only collect metrics that are necessary to support the reliability of the service.\n- Avoid collecting identifiable or potentially sensitive data whenever possible, such as [hardware identifiers](https://developer.android.com/training/articles/user-data-ids).\n- Ensure data is sufficiently aggregated and anonymized whenever possible.\n\nSpyware\n-------\n\nSpyware is defined as software that aims to gather information about a user\nor device without their knowledge, that might send user information to another\nentity without consent.\n\n- Transmission of the following user or device data without disclosure or in a manner that is unexpected to the user is considered spyware (this list contains top examples, but isn't an exhaustive list):\n - Information about the user's contacts (names, numbers, emails)\n - Photos or other files\n - Content from user email\n - Call log\n - SMS log\n - Web history\n - Browser bookmarks\n - Private information from other apps (private `/data/` directories)\n - Audio or call recording\n - Passwords\n - OAuth tokens\n - Location\n- Ensure that all apps provide a reasonable explanation disclosure to the user prior to installation."]]