Problem with vendor_required_apps_managed_device when disabling system_app

133
April 18, 2019, at 00:30 AM

I am provisioning my device so my dpc becomes device owner. I am using the QR code method. Here is the Qr code text I am using:

{
"android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME": "com.msi.msidpc.deviceowner/com.msi.msidpc.deviceowner.DeviceOwnerReceiver"
}

In order to get the sytem app I want, I am filling this file:

frameworks/base/core/res/res/values/vendor_required_apps_managed_device.xml

Here is how I do it:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- A list of apps to be retained on the managed device by a particular vendor.
            Takes precedence over the disallowed apps lists. -->
    <string-array translatable="false" name="vendor_required_apps_managed_device">
        <item>com.android.vending</item> <!-- Google Play -->
        <item>com.google.android.gms</item> <!-- Required by Play -->
        <item>com.google.android.contacts</item> <!-- Google Contacts -->
        <item>com.google.android.googlequicksearchbox</item> <!-- package that contains Google Launcher -->
        <item>com.google.android.launcher</item> <!-- Google Launcher meta home alternate name -->
        <item>com.android.launcher</item> <!-- Android Launcher (default on some Nexus devices) -->
        <item>com.google.android.dialer</item> <!-- Google dialer to enable making phone calls -->
        <item>com.google.android.apps.messaging</item> <!-- Google Messenger for SMS -->
        <item>com.google.android.setupwizard</item> <!-- Google SetupWizard to finish DO provisioning properly -->
        <item>com.example.nmgd63.kioskmodeapplication</item> <!--kiosk application-->
        <item>com.example.nmgd63.testdpcactibity</item> <!--­TestDpc application -->
    </string-array>
</resources>

These 2 applications:

        <item>com.example.nmgd63.kioskmodeapplication</item> <!--kiosk application-->
        <item>com.example.nmgd63.testdpcactibity</item> <!--­TestDpc application -->

are small applications I flashed on the image. However, it does not work and I do not see these applications after Qr code provisioning where as I can see them when I add this on the Qr code text:

"android.app.extra.PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED":true

Do you have any idea why?

Rent Charter Buses Company
READ ALSO
How can I save an ImageView image to storage which is colored by coloredFilter?

How can I save an ImageView image to storage which is colored by coloredFilter?

I need to save some edited imagesI applied for editing a ColorFilter (https://medium

120
how to switch between fragments of two different activity class

how to switch between fragments of two different activity class

I have two different activities, A & BBoth have NavigationDrawer , look alike, but not are the same, because I could not get the drawer layout ID of activity A in activity B

128
How to fix &#39;jnius.jnius.JavaException&#39; in kivy plyer vibrate android test apk (with buildozer compilation)

How to fix 'jnius.jnius.JavaException' in kivy plyer vibrate android test apk (with buildozer compilation)

I wan't test plyer library with kivy and i tried to test a simple android vibrateThe app end with this log :

162
Flutter - change appbar icon when receiving notification

Flutter - change appbar icon when receiving notification

I am using FirebaseMessaging to push notifications on my app

176