4 Replies Latest reply on Feb 17, 2015 8:22 AM by adithyak@motorolasolutions.com

    Making installed app visible in guest mode by default

    Vinaykumar Acharya

      Are there instructions on how to make an installed app appear in guest mode by default? Most of the apps I sideload end up being visible only when logged into Admin mode.

        • Re: Making installed app visible in guest mode by default
          Sarin Regmi

          In the Management Package , under packages/android/actions/UPDATE_USER_GROUPS , we can set attributes for user_groups.xml file to define what applications and functionality are accessible in guest mode , and other custom modes . If someone decides to have a different application except for the default "Home" application to be the landing page for Guest Sessions , they can modify the user_groups.xml file , and set that app to be home . In the sample user_groups.xml file below, the guestHome attribute is set to "com.motorola.asds.isign.home/.Home" by default . Now one can change that value to the ComponentName of the application activity they want to be home in the guest mode. In the same way the landing pages for other modes can be changed.

           

          <?xml version="1.0" encoding="utf-8"?>

          <user_groups

               version="1.0"

               guestHome="com.motorola.asds.isign.home/.Home">

           

               <!-- Employee user -->

               <user_group

                      id="0"

                      name="employee"

                      home="com.android.launcher/com.android.launcher2.Launcher">

           

                      <operations>

                           <operation name="access_launcher" />

                           <operation name="access_full_browser" />

                      </operations>

               </user_group>

           

               <!-- Admin user -->

               <user_group

                      id="1"

                      name="admin"

                      home="com.android.launcher/com.android.launcher2.Launcher" >

           

                      <operations>

                           <operation name="access_launcher" />

                           <operation name="access_full_browser" />

                           <operation name="access_system_settings" />

                           <operation name="install_package" />

                           <operation name="uninstall_package" />

                      </operations>

               </user_group>

          </user_groups>

          1 of 1 people found this helpful
            • Re: Making installed app visible in guest mode by default
              Vinaykumar Acharya

              How do I achieve the above without an XML file? is there a UI setting that I can select?

                • Re: Re: Making installed app visible in guest mode by default
                  Kevin Albert

                  That is not 100% true.  Users with admin-level permissions to access system settings can change the Guest user home screen through the Settings activity.  See below:

                  guest_home.png

                   

                  In order for an Activity to have the ability to be set as a Home Screen, it needs to include the below intent-filter within the appropriate <activity> tag in AndroidManifest.xml.

                  home_intent_filter.png

                   

                  Alternatively, a user with admin-level permissions to access system settings can add the Activity in question to one of the Launcher workspace pages.  Then, by setting the Launcher activity to be the Guest user home screen, the activity icon will be visible in guest mode, and can be launched by the guest user.

                   

                  To accomplish this,

                  • Sign in as a user with admin-level permissions to access system settings.
                  • Open the app drawer by touching the array of 6 squares in the top-right corner of the Launcher.

                            app_drawer.png

                  • Long press on the Activity icon that you want to be launchable from guest mode.
                  • Drag the Activity icon to the desired place on the Launcher workspace.
                  • Set Launcher as the Guest User home screen in the Settings activity as described above.

                   

                  The end result will look something like this:

                  launcher.png