Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDM installation (PR #337 fix + MLA titles) #378

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions source/components/nitrophone/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ For more details, see the following pages:
Apps <apps>
Background Images <background-images>
Frequently Asked Questions <faq>
Mobile Device Management <mdm>


133 changes: 133 additions & 0 deletions source/components/nitrophone/mdm.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
Mobile Device Management (MDM)
******************************

NitroPhones can be centrally managed by using open source Headwind MDM.

Depending on whether you are using the paid or gratis license, some features might be available or not.

Install MDM on NitroPhone
#########################

.. important::

We recommand to backup your data before installing MDM.

Your NitroPhone needs to be connected to the internet during the configuration and you also need a PC.

To grant special permissions you need to use ADB (Android Debug Bridge). You can use ADB directly from your Browser with WebADB (easier, recommended), or you can install the CLI tool on your computer (alternative). WebADB is currently only compatible with Chromium-based browsers (Chrome, Microsoft Edge, Opera, ...).

Installation With WebADB
========================

1. `Download <https://h-mdm.com/download/>`__ locally on your PC the latest HMDM Android app (launcher).
It is important that this version matches your HMDM server configuration.
You can also download the desired version here: https://h-mdm.com/files/hmdm-<version>-master.apk
jans23 marked this conversation as resolved.
Show resolved Hide resolved

2. On your NitroPhone, enable the developer options: Settings -> About Phone -> Press 6 times on "Build number".

3. Enable USB debugging: Settings -> System -> Developer Options -> USB debugging.

4. Connect the smartphone to the PC and change the charging connection to "File transfer".

5. On your PC go to `WebADB <https://app.webadb.com/>`__.

6. At the top left of the page click on "Add" select your NitroPhone and click on "Connect" and click again on "Connect" next to "Add"

7. On your NitroPhone allow the connection.

8. In the WebADB menu choose "Install APK" and click on "Open" and choose the previously downloaded APK.

9. Once completed, in the WebADB menu choose "Interactive Shell".
If you have this error: "Application error: a client-side exeption has occurred" refresh the page or click to "File Manager" and go back to "Interactive Shell".
If you see ``<your android version name>:/ $`` then you are properly connected.

10. In the shell type:

.. rstcheck: ignore-next-code-block
.. code-block:: bash

dpm set-device-owner com.hmdm.launcher/.AdminReceiver

If it was successful it says:

.. rstcheck: ignore-next-code-block
.. code-block:: bash

Success: Device owner set to package com.hmdm.launcher/.AdminReceiver
Active admin set to component com.hmdm.launcher/.AdminReceiver

11. Now you can open "MDM agent" on your NitroPhone. If any permissions are asked, allow them.

Your HMDM app is ready to use, now refer to "Register NitroPhone on HMDM Server" at the end of this page.


Installation With ADB
=====================

1. `Download <https://h-mdm.com/download/>`__ locally on your PC the latest HMDM Android app (launcher).
It is important that this version matches your HMDM server configuration.
You can also download the desired version here: https://h-mdm.com/files/hmdm-<version>-master.apk

2. On your NitroPhone, enable the developer options: Settings -> About Phone -> Press 6 times on "Build number".

3. Enable USB debugging: Settings -> System -> Developer Options -> USB debugging.

4. On your PC, `download <https://developer.android.com/tools/releases/platform-tools#downloads>`__ ADB.

5. Unzip the downloaded archive and open a terminal in this folder.

6. Connect the NitroPhone to the PC and change the charging connection to "File transfer".

7. Test if ``adb`` can find your NitroPhone:

.. rstcheck: ignore-next-code-block
.. code-block:: bash

./adb devices

You need to see your device listed in the output.

8. Install the HMDM app via:

.. rstcheck: ignore-next-code-block
.. code-block:: bash

./adb install <name of your downloaded file>.apk

When the MDM installation was sucessful, the output of ``adb`` is "Success".

9. Now give the app device owner rights:

.. rstcheck: ignore-next-code-block
.. code-block:: bash

./adb shell dpm set-device-owner com.hmdm.launcher/.AdminReceiver

If it was successful it says:

.. rstcheck: ignore-next-code-block
.. code-block:: bash

Success: Device owner set to package com.hmdm.launcher/.AdminReceiver
Active admin set to component com.hmdm.launcher/.AdminReceiver

10. Now you can open "MDM agent" on your NitroPhone. If any permissions are asked, allow them.

Your HMDM app is ready to use, now refer to "Register NitroPhone on HMDM Server" at the end of this page.

Register NitroPhone on HMDM Server
##################################

1. Log into your server web panel and go to the "Configurations" tab and edit or create one configuration.
For testing purposes you can try the demo server `here <https://app.h-mdm.com/#/login>`__.

2. Make sure that "Use with default launcher" is not selected.
Click "Save and close".

3. Now go to Devices and click on the QR code on the right hand side. Note: The QR code contains the configuration for your mobile device.

4. Type in the server URL (e.g. https://mdm.nitrokey.com) and click "Scan QR code".

5. In you server web panel, go to your device "Detailed information" by clicking into the 3 dots and verify that there is no red fields on this page.

Your NitroPhone is now properly registered in your HMDM server
Loading