> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/ja/apurikshon/packages/android-apps-managed-google-play.md).

# Android アプリ（Managed Google Play）

RealmJoin Portal を通じて Managed Google Play から Android アプリを展開します。Intune での前提条件、必要なアクセス許可、有効化、アプリのサブスクライブについて。

RealmJoin Portal は、Android アプリを次から展開できます **Managed Google Play** Intune アプリとして、Windows および macOS パッケージと同じ RealmJoin 管理のグループを使用して。

アプリは、その Google Play リンクを貼り付けることで追加します。RealmJoin はまず、アプリが Google Play に存在し、かつすでにあなたの tenant にないことを確認し、Managed Google Play で承認し、Intune への同期を待ち、Required、Available、Uninstall グループを作成してアプリに割り当てます。その後、他の管理対象パッケージと同様に、アプリのページでユーザーまたはデバイスを割り当てます。

## Android アプリの違い

Android アプリは残りのものとは動作が異なります [Package Store](https://docs.realmjoin.com/ja/apurikshon/packages/package-store.md):

* キャンセル予告期間は **Android 用の RealmJoin カタログはありません** 。任意のアプリを [Google Play](https://play.google.com/store/apps) で選び、そのストア リンクを貼り付けます。
* アプリは常に **Intune 管理対象の** アプリ（Managed Google Play ストア アプリ）として展開されます。RealmJoin Agent による展開は利用できません。
* **バージョンのライフサイクルは Google が管理します。** 更新は Google Play によって配信されるため、バージョンも、Preview グループも、 [更新グループ](https://docs.realmjoin.com/ja/apurikshon/packages/update-group.md) Android アプリ向けのものもありません。
* 名前、アイコン、説明は Google Play から取得され、 **変更できません** RealmJoin Portal では。

{% hint style="info" %}
これは RealmJoin における Android アプリ管理の最初の反復です。範囲と処理は今後変更される可能性があります。
{% endhint %}

## 前提条件

以下をすべて完了してください **前に** 機能の有効化を依頼する前に。RealmJoin は、機能がオンにされたときに Managed Google Play 接続を確認し、接続がない場合は有効化を拒否します。

{% stepper %}
{% step %}

### Intune を Managed Google Play に接続する

これはテナントごとに 1 回、Intune 管理者または全体管理者によって行います。

1. 次を開きます [Microsoft Intune 管理センター](https://intune.microsoft.com).
2. 次へ移動して **デバイス → 登録 → Android → 前提条件 → Managed Google Play**.
3. チェック **同意します** 、 **今すぐ Google に接続**.
4. Managed Google Play エンタープライズを所有する Google アカウントでサインインし、ウィザードを完了してください。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fgit-blob-00fa3b01b64bd813fcb5baf89c995350dec7e927%2Fandroid-mgp-intune-connect.webp?alt=media" alt="Managed Google Play under Devices > Enrollment > Android in Intune"><figcaption><p>デバイス → 登録 → Android の Managed Google Play（接続済み、状態: セットアップ）</p></figcaption></figure>

{% hint style="warning" %}
**Tenant 管理 → コネクタとトークン → Managed Google Play** は、接続状態と同期済みアプリのスコープ タグのみを表示します。Google アカウントを接続するオプションはもはや提供されません。
{% endhint %}

接続後、状態には **セットアップ** リンクされたアカウントとともに表示されます。 **Tenant 管理 → コネクタとトークン → Managed Google Play** 状態にはもはや **未プロビジョニング**.

そのページでスコープ タグを使用する場合は、Android アプリを扱う管理者にそのタグが割り当てられていることを確認してください。そうしないと、Intune で同期済みアプリを表示できません。
{% endstep %}

{% step %}

### RealmJoin Portal に Graph 権限を付与する

RealmJoin Portal アプリには Microsoft Graph のアプリケーション権限 **`DeviceManagementConfiguration.ReadWrite.All`**&#x304C;必要です。これは Managed Google Play の接続状態を読み取り、Managed Google Play エンタープライズにアプリを承認して同期するために使用されます。

この権限はまだ **機能** タブからは付与できません。代わりに次のスクリプトを実行してください。 `<YOUR-TENANT-ID>` をあなたの Entra ID テナント ID に置き換えてください。

{% code title="Grant-RealmJoinAndroidPermission.ps1" overflow="wrap" %}

```powershell
<#
.SYNOPSIS
    RealmJoin Portal アプリに Microsoft Graph のアプリケーション権限
    "DeviceManagementConfiguration.ReadWrite.All" を付与します（Managed Google Play 経由の Android 展開に必要）。

.NOTES
    対象テナントの全体管理者または特権ロール管理者として実行してください。
    Microsoft Graph PowerShell SDK が必要です:  Install-Module Microsoft.Graph -Scope CurrentUser
#>

$TenantId    = "<YOUR-TENANT-ID>"                         # 例: 00000000-0000-0000-0000-000000000000
$PortalAppId = "b0130885-16be-4c6f-83de-5b1042b5d2e3"     # RealmJoin Portal
$GraphAppId  = "00000003-0000-0000-c000-000000000000"     # Microsoft Graph
$Permission  = "DeviceManagementConfiguration.ReadWrite.All"

Connect-MgGraph -TenantId $TenantId -Scopes "Application.Read.All", "AppRoleAssignment.ReadWrite.All" -NoWelcome

$portalSp = Get-MgServicePrincipal -Filter "appId eq '$PortalAppId'"
if (-not $portalSp) { throw "テナント $TenantId に RealmJoin Portal の service principal が見つかりません。先に RealmJoin をオンボードしてください。" }

$graphSp = Get-MgServicePrincipal -Filter "appId eq '$GraphAppId'"
$appRole = $graphSp.AppRoles | Where-Object { $_.Value -eq $Permission -and $_.AllowedMemberTypes -contains "Application" }

$existing = Get-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $portalSp.Id -All |
    Where-Object { $_.ResourceId -eq $graphSp.Id -and $_.AppRoleId -eq $appRole.Id }

if ($existing) {
    Write-Host "$Permission はすでに RealmJoin Portal に付与されています。" -ForegroundColor Green
}
else {
    New-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $portalSp.Id `
        -PrincipalId $portalSp.Id -ResourceId $graphSp.Id -AppRoleId $appRole.Id | Out-Null
    Write-Host "RealmJoin Portal に $Permission を付与しました。" -ForegroundColor Green
}

Disconnect-MgGraph | Out-Null
```

{% endcode %}

このスクリプトは安全に複数回実行できます。権限がすでに付与されている場合は何も行いません。新しい権限が有効になるまで数分待ってください。

{% hint style="danger" %}
次の **機能** タブでは **ダウングレードする** `DeviceManagementConfiguration.ReadWrite.All` を `DeviceManagementConfiguration.Read.All` ことを提案する場合があります。これはヘルス スクリプトには不要になったためです。Android アプリを使用している場合は、 **ダウングレードしないでください**。書き込み権限がないと Android アプリの展開は動作しなくなります。
{% endhint %}
{% endstep %}

{% step %}

### 有効化を依頼

Android アプリの展開は、リクエストに応じて RealmJoin が有効化するテナント機能です。 <support@realmjoin.com> に短い依頼を送信し、テナント ID または名前を含めてください。

この機能には **Intune 展開** お使いのテナントでも有効である必要があります。
{% endstep %}
{% endstepper %}

## Android アプリを追加する

{% stepper %}
{% step %}

### Package Store を開き、Android を選択します

RealmJoin Portal で、 [Package Store](https://docs.realmjoin.com/ja/apurikshon/packages/package-store.md) 、 **Android** OS フィルターで開きます。フィルターは、機能が有効になった場合にのみ表示されます。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fgit-blob-68ab504816a757cd36e40553d079ebd197fb24bf%2Fandroid-mgp-store-filter.png?alt=media" alt="Android OS filter in the Package Store"><figcaption><p>Package Store の Android OS フィルター</p></figcaption></figure>
{% endstep %}

{% step %}

### アプリの Google Play リンクをコピーする

でアプリを見つけて [Google Play](https://play.google.com/store/apps) 、ブラウザーのアドレスバーからリンクをコピーします。たとえば Microsoft Teams の場合:

`https://play.google.com/store/apps/details?id=com.microsoft.teams`

パッケージ名のみ (`com.microsoft.teams`) でも機能します。
{% endstep %}

{% step %}

### リンクを貼り付けて購読する

リンクを **Google Play リンク** フィールドに貼り付け、 **Intune（管理対象）を使用**を選択します。RealmJoin は、アプリが Google Play に存在し、かつあなたの tenant でまだ購読されていないことを確認してから、アプリの購読ページを開きます。 **続行** を選択して購読を開始します。ほかに設定することはありません。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fgit-blob-9c440bd9e3fdb8d9d16212ea0599c47609b90faa%2Fandroid-mgp-paste-link.png?alt=media" alt="Google Play link pasted. If the app already exists, the portal links to it instead"><figcaption><p>Google Play リンクが貼り付けられました。アプリがすでに存在する場合、ポータルは代わりにそのアプリにリンクします</p></figcaption></figure>

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fgit-blob-9ba5e73b754bfa50c839d23b66bacb3d4ff7eec0%2Fandroid-mgp-subscribe.png?alt=media" alt="Subscription page of a Managed Google Play app"><figcaption><p>Managed Google Play アプリの購読ページ</p></figcaption></figure>
{% endstep %}

{% step %}

### 購読が完了するまで待つ

RealmJoin は現在、バックグラウンドで購読を処理しており、その進行状況を表示します:

1. アプリはあなたの Managed Google Play エンタープライズで承認され、Intune の同期が開始されます。
2. RealmJoin は、アプリが Intune に表示されるまで待機します。これには数分かかることがあります。
3. 展開グループが作成され、アプリに割り当てられます。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fgit-blob-908b095cfda7778004780f14cdc3f4ae2cfcb683%2Fandroid-mgp-progress.png?alt=media" alt="Subscription in progress"><figcaption><p>購読処理中</p></figcaption></figure>

完了すると、アプリ ページに作成されたグループと割り当てが表示されます。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fgit-blob-d88776890fad17c7b2cae680b28c00cd30480ffb%2Fandroid-mgp-app-overview.png?alt=media" alt="Subscribed app with its RealmJoin-managed groups"><figcaption><p>RealmJoin 管理グループを持つ購読済みアプリ</p></figcaption></figure>

アプリは次にも一覧表示されます **パッケージ**； **プラットフォーム** フィルターを **Android** に設定すると、Android アプリのみを表示できます。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fgit-blob-e19a0bbec4256c8bc523c7fd7822cac893b6b11b%2Fandroid-mgp-packages-list.png?alt=media" alt="Packages list filtered to Android"><figcaption><p>Android にフィルターされたパッケージ一覧</p></figcaption></figure>
{% endstep %}
{% endstepper %}

## アプリを展開する

RealmJoin は Android アプリごとに 3 つの Entra ID グループを作成し、Intune で割り当てます。名前はテナントのグループ命名テンプレートに従います。既定のテンプレートでは、次のようになります（Microsoft Teams の例）:

| グループ                                          | Intune の割り当て | 目的                                  |
| --------------------------------------------- | ------------ | ----------------------------------- |
| `app - Android - Microsoft Teams`             | 必須           | アプリは自動的にインストールされます。                 |
| `app - Android - Microsoft Teams (available)` | 利用可能         | ユーザーは管理対象 Play ストアからアプリをインストールできます。 |
| `app - Android - Microsoft Teams (uninstall)` | アンインストール     | アプリはデバイスから削除されます。                   |

RealmJoin Portal のアプリ ページから、他のパッケージと同様に、これらのグループにユーザーまたはデバイスを追加します（ [パッケージの割り当て](https://docs.realmjoin.com/ja/apurikshon/packages/package-deployment.md)参照）。Android アプリには Preview グループや Update グループはありません。更新は Google Play によって配信されるためです。

## トラブルシューティング

| RealmJoin Portal のメッセージ                                      | 対応                                                                                                                     |
| ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- |
| *このテナントでは Android 展開は有効になっていません。*                            | この機能はまだ有効化されていません。 [有効化を依頼](#request-activation).                                                                      |
| *Managed Google Play が接続されていません*                             | Intune が Managed Google Play に接続されていません。 [Intune を Managed Google Play に接続する](#connect-intune-to-managed-google-play). |
| *… DeviceManagementConfiguration.ReadWrite.All 権限が不足しています …* | 次を実行してください [権限スクリプト](#grant-the-graph-permission-to-the-realmjoin-portal) を実行し、数分待ってください。                              |
| *このアプリは Google Play で見つかりませんでした。*                            | リンクを確認してください。 `play.google.com/store/apps/details?id=…` 形式の公開アプリへのリンクである必要があります。                                       |
| *… はすでに購読済みです* / *はすでに購読処理中です*                               | アプリはすでにあなたの tenant に存在するか、購読がまだ実行中です。代わりに既存のアプリを開いてください。                                                               |

購読が完了しない場合、RealmJoin は自動的に再試行します。しばらくしてもアプリが表示されない場合は、 **最終同期** の状態を **Tenant 管理 → コネクタとトークン → Managed Google Play** Intune で確認し、 <support@realmjoin.com>.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.realmjoin.com/ja/apurikshon/packages/android-apps-managed-google-play.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
