title: Application installed in system/priv-app not starting without reboot (root)
body: <p>I am working on rooted device. I have created an application to run as a system app. I have copied the apk file to sd card and then to /system/priv-app after mounting the /system directory from adb shell as su user. The manifest file looks as follows </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="abc.def.settings"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="19" /&gt;
  
      &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_SETTINGS" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_APN_SETTINGS" /&gt;
      &lt;uses-permission android:name="android.permission.MODIFY_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_CALL_LOG" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_CALL_LOG" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /&gt;
      &lt;uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.STATUS_BAR" /&gt;
      &lt;uses-permission android:name="android.permission.EXPAND_STATUS_BAR" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name" &gt;
  
          &lt;service
              android:name="abc.def.settings.service.SystemSettingsService" &gt;
          &lt;/service&gt;
  
          &lt;receiver android:name="abc.def.settings.boot.DeviceBootReceiver" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.BOOT_COMPLETED"/&gt;
                  &lt;action android:name="abc.def.settings.start_after_reinstall"/&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Once I copied the apk to /system/priv-app i changed the permission to 777 from shell. The application is starting on device boot very much fine. But I am unable to start the service before rebooting. One of my limitations is that the device should not be rebooted to start this service. </p>
  
  <p>I tried the following but none of them worked.</p>
  
  <pre><code>adb shell am startservice -n abc.def.settings/.SystemSettingsService
  adb shell am startservice -n abc.def.settings/.service.SystemSettingsService
  adb shell am startservice -a abc.def.settings.start_after_reinstall
  adb shell am broadcast -a abc.def.settings.start_after_reinstall
  adb shell am broadcast -a abc.def.settings.start_after_reinstall -f 32
  </code></pre>
  
  <p>Is there anything i am missing.!! Thanks in advance.</p>