Saturday, 15 May 2010

android - Application installed in system/priv-app not starting without reboot (root) -



android - Application installed in system/priv-app not starting without reboot (root) -

i working on rooted device. have created application run scheme app. have copied apk file sd card , /system/priv-app after mounting /system directory adb shell su user. manifest file looks follows

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="abc.def.settings" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="8" android:targetsdkversion="19" /> <uses-permission android:name="android.permission.receive_boot_completed" /> <uses-permission android:name="android.permission.write_settings" /> <uses-permission android:name="android.permission.write_apn_settings" /> <uses-permission android:name="android.permission.modify_phone_state" /> <uses-permission android:name="android.permission.read_phone_state" /> <uses-permission android:name="android.permission.call_phone" /> <uses-permission android:name="android.permission.read_call_log" /> <uses-permission android:name="android.permission.write_call_log" /> <uses-permission android:name="android.permission.write_secure_settings" /> <uses-permission android:name="android.permission.change_network_state" /> <uses-permission android:name="android.permission.status_bar" /> <uses-permission android:name="android.permission.expand_status_bar" /> <application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <service android:name="abc.def.settings.service.systemsettingsservice" > </service> <receiver android:name="abc.def.settings.boot.devicebootreceiver" > <intent-filter> <action android:name="android.intent.action.boot_completed"/> <action android:name="abc.def.settings.start_after_reinstall"/> </intent-filter> </receiver> </application> </manifest>

once copied apk /system/priv-app changed permission 777 shell. application starting on device boot much fine. unable start service before rebooting. 1 of limitations device should not rebooted start service.

i tried next none of them worked.

adb shell startservice -n abc.def.settings/.systemsettingsservice adb shell startservice -n abc.def.settings/.service.systemsettingsservice adb shell startservice -a abc.def.settings.start_after_reinstall adb shell broadcast -a abc.def.settings.start_after_reinstall adb shell broadcast -a abc.def.settings.start_after_reinstall -f 32

is there missing.!! in advance.

android android-intent android-service rooted-device

No comments:

Post a Comment