Use script enable_system_app

Use script enable_system_app

Hi,

I tried to enroll Samsung devices by using afw#mobicontrol but it seems like this enrollment method is disabling most of Android & samsung apps like maps, calendar, gallery...

I sent the adb command pm list packages to get all packages from the devices and I tried to add a script like:

enable_system_app com.google.android.youtube

enable_system_app com.sec.android.gallery3d

etc.

But unfortunately, this script (which get more than 100 lines) is not executed on preinstall or postintall application.

 

Could someone tell me why?

If I try to send this script by using "send script" command it's working.

 

Thanks for your help.

11 Answers

Order By:   Standard | Newest | Votes
Rafael | posted this 03 November 2020

Hi Farid, 

i think the stage programmer has the line leave system apps enabled: true and because of that they are not beeing deinstalled.

But for future before making a package try the script line by line sending directly to the device and see whats happening and what not.

 

Because not all system apps are on the device already (for e.g. Google Photos), they will be downloaded and installed later.

So then it's not only sending the script but installing the app has to be done additionally (managed device).

  • 0
  • 0
Farid.S | posted this 02 November 2020

Hi Matt,

 

Finally I tried the method by using a master device with Stage Programmer and it seems like this method is the best for our needs.

I didn't understand correctly first time our TAM told me about this method.

Many thanks for your help ans suggestions, really appreciate it.

  • 0
  • 0
Matt Dermody | posted this 02 November 2020

I suggest you read up more on Android Enterprise management in general. Jason Bayton's website is an incredible resource for this:

 

https://bayton.org/docs/enterprise-mobility/android/what-is-android-enterprise-and-why-is-it-used/#qr-provisioning

 

With the QR method the agent is also downloaded directly from Google Play, although you can even configure the DPC extras to point to a different download location if you'd like to download and install a specific version for instance. 

  • 0
  • 0
Farid.S | posted this 02 November 2020

Hi Matt,

 

We used to enroll by creating a QR Code with MobiControl Stage, and sice we use afw#mobicontrol, the agent is now downloaded directly from Google Play.

Could you tell me more about the process that you talked about? Didn't know that we can scan a QR code from Hello screen....

 

To resume since we enroll by usinf afw#mobicontrol methode 90% of the apps are disabled and none of the scripts enable_system_app seems to be working except if we send it directly from "Send script" command and this after enrolling the devices.

 

We really need to have the most silent method to add all these packages just after the enrollment.

 

In any case I tried to send a single script commande but same result:

 

Any suggestion, example are welcome.

  • 0
  • 0
Matt Dermody | posted this 02 November 2020

Are you familiar with the QR method of enrollment? The option is accessed from the Welcome/Hello There screen before you even get to the prompt for the DPC identifier (afw#mobicontrol). If you haven't migrated that many of the 5000 devices yet I would seriously consider it as I tend to look at the enable_system_app as a workaround more than a solution. If the devices are enrolled with a method that leaves system apps enabled by default then you won't have to mess with this custom scripting with a dummy package or empty file sync rule. 

  • 0
  • 0
Farid.S | posted this 02 November 2020

Hi,

I already though about this option by using a file sync rule, but as we have more than 5.000 devices currently I'm just wondering if this file sync will not reduce the performance of our server?

Moreover, we just started enrolling by using afw#mobicontrol, so that means that more than 4500 devices are currently enrolled with Android+.

In facts, this need is especially to help our factory which configure all weeks approximately 100 new devices.

We choose afw#mobicontrol method to avoid our factory to add manually the agent on the device, and we can't use NFC method as we don't think that's a better solution to enroll.

 

I also tested to add this script on preinstall/postinstall scripts on some packages but it seems like nothing happend.

 

Waiting for your feedback regarding filesync rule method and best skills.

  • 0
  • 0
JVMOD@SOTI | posted this 02 November 2020

Hello Farid,

 

Thank you for your post, try to create file sync rule, follow the steps below -

1. 

2. click next and scroll down -> click Advance

3. Once click Advance option, scroll down and look for Scripts button

4. Add all the scripts in the Pre-install tab and select Always Execute option

 

Please let me know if this works for you.

 

Regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |

  • 0
  • 0
Raymond Chan | posted this 02 November 2020

If the script works using the "send script" action on your server/agent/device-firmware combination, then puting it in the pre-script of a dummy  (i.e. with no file in the source directory on the MobiConrol server side) downlink file-sync rule should  also work.

 

  • 0
  • 0
Matt Dermody | posted this 02 November 2020

I think you will be better off Factory Resetting the devices and re-enrolling them using the QR or NFC methods that have the DPC Extras that will leave the system apps enabled by default rather than having to rely on scripting to re-enable all of them. 

  • 0
  • 0
Farid.S | posted this 02 November 2020

Hi,

I'm using packages, I also used device alert when new adevices is added but none of the script is working.

 

If needed below is the script:

 

enable_system_app com.samsung.android.provider.filterprovider
enable_system_app com.monotype.android.font.rosemary
enable_system_app com.sec.android.app.DataCreate
enable_system_app com.android.cts.priv.ctsshim
enable_system_app com.gd.mobicore.pa
enable_system_app com.samsung.android.smartswitchassistant
enable_system_app com.sec.vsim.ericssonnsds.webapp
enable_system_app com.sec.android.app.setupwizardlegalprovider
enable_system_app com.google.android.youtube
enable_system_app com.samsung.android.app.galaxyfinder
enable_system_app com.sec.location.nsflp2
enable_system_app com.samsung.android.themestore
enable_system_app com.sec.android.app.chromecustomizations
enable_system_app com.android.internal.display.cutout.emulation.corner
enable_system_app com.google.android.ext.services
enable_system_app com.android.internal.display.cutout.emulation.double
enable_system_app com.android.providers.telephony
enable_system_app com.sec.android.app.parser
enable_system_app com.google.android.googlequicksearchbox
enable_system_app com.samsung.android.timezone.updater
enable_system_app com.android.providers.calendar
enable_system_app com.osp.app.signin
enable_system_app com.samsung.clipboardsaveservice
enable_system_app com.sec.automation
enable_system_app com.android.providers.media
enable_system_app com.samsung.android.app.social
enable_system_app com.google.android.onetimeinitializer
enable_system_app com.google.android.ext.shared
enable_system_app com.android.wallpapercropper
enable_system_app com.samsung.android.wallpaper.res
enable_system_app com.skms.android.agent
enable_system_app com.sec.android.app.safetyassurance
enable_system_app com.samsung.android.incallui
enable_system_app com.samsung.android.knox.containercore
enable_system_app com.sec.factory.camera
enable_system_app com.monotype.android.font.foundation
enable_system_app com.sec.android.widgetapp.easymodecontactswidget
enable_system_app com.samsung.android.email.provider
enable_system_app com.samsung.android.MtpApplication
enable_system_app com.sec.android.app.factorykeystring
enable_system_app com.sec.android.emergencymode.service
enable_system_app com.google.android.configupdater
enable_system_app com.sec.android.app.wlantest
enable_system_app com.sec.android.app.billing
enable_system_app com.sec.epdgtestapp
enable_system_app com.samsung.android.timezone.data_P
enable_system_app com.android.defcontainer
enable_system_app com.sec.ims
enable_system_app com.sec.sve
enable_system_app com.sec.enterprise.knox.attestation
enable_system_app com.android.providers.downloads.ui
enable_system_app com.android.carrierconfig
enable_system_app com.google.android.marvin.talkback
enable_system_app com.samsung.android.knox.containeragent
enable_system_app com.samsung.SMT
enable_system_app com.samsung.cmh
enable_system_app com.samsung.mlp
enable_system_app com.samsung.rcs
enable_system_app com.sec.factory.iris.usercamera
enable_system_app android
enable_system_app com.samsung.android.sm.devicesecurity
enable_system_app com.samsung.android.aircommandmanager
enable_system_app com.samsung.android.net.wifi.wifiguider
enable_system_app com.samsung.klmsagent
enable_system_app com.sec.android.app.SecSetupWizard
enable_system_app com.samsung.android.app.telephonyui
enable_system_app com.android.statementservice
enable_system_app com.google.android.apps.tachyon
enable_system_app com.google.android.webview
enable_system_app com.sec.android.app.simsettingmgr
enable_system_app com.android.server.telecom
enable_system_app com.google.android.syncadapters.contacts
enable_system_app com.samsung.crane
enable_system_app com.sec.imslogger
enable_system_app com.samsung.android.clipboarduiservice
enable_system_app com.android.keychain
enable_system_app com.android.chrome
enable_system_app com.samsung.android.ipsgeofence
enable_system_app com.samsung.android.themecenter
enable_system_app com.sec.android.app.launcher
enable_system_app com.google.android.feedback
enable_system_app com.google.android.printservice.recommendation
enable_system_app com.google.android.apps.photos
enable_system_app com.google.android.calendar
enable_system_app com.samsung.android.setting.multisound
enable_system_app com.sec.android.app.sbrowser
enable_system_app com.monotype.android.font.chococooky
enable_system_app com.android.dreams.phototable
enable_system_app com.samsung.safetyinformation
enable_system_app com.samsung.android.dialer
enable_system_app com.sec.android.app.shealth
enable_system_app com.sec.unifiedwfc
enable_system_app com.sec.phone
enable_system_app com.android.phone
enable_system_app com.samsung.android.galaxycontinuity
enable_system_app com.sec.android.app.camera

  • 0
  • 0
JVMOD@SOTI | posted this 02 November 2020

Hello Farid,

 

Thank you for your post, are you using file sync rule or packages which send these scripts?

 

Regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback