I found some software that can list all the applications from the start, and you can enable and disable its operation. And can determine whether it is disabled or enabled.
Is how to achieve it?
Do not seem to own the software identifies, for example, I used to boot a disabled A software application from the start. B lists the software used in the boot from the start, can determine a application has been disabled.
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Which heroes to ideas it.
Reply:
Since the start are generally achieved by listening to the boot complete message
Reply:
Ah listen boot complete internship boot from the start can move.
But after being banned there since the launch of an identity is used to determine the status of this application is to disable or enable it?
Reply:
After pm disable will identify it?
Reply:
I will only know so much. . .
But if he wants to get the boot state seemingly do not know
Reply:
Hey say white is like 360 autostarts software it can both lists since the launch of the project, and again before the banned list will determine whether the ban on the display to be disabled. He is how to judge it?
Reply:
Reply:
Your analysis of the right, the state is definitely not the software to achieve their own identity, but worth the read system related to property. Initial speculation and Application Manager related, it should throw some status value, I go to work tomorrow Soso look at the source code.
Reply:
Finally found. . .
At least I did not use a temporary problem, we refer to it.
ComponentName mComponentName = new ComponentName ("com.xx", "com.xx.receivers.BootReceiver"); xx is the software name, and then back to complete the boot is commonly used to receive broadcast component name.
. int a = getPackageManager () getComponentEnabledSetting (mComponentName);
There will be four states, default 0 1 2 ban 3user disable available
Reply:
Yapping for a long time did not see this post, the system directory data / system / package.xml there are a lot of secrets. . .
Reply:
Why did not I tried it
Reply:
Similarly encountered such a problem, pm the following command to disable boot 4.0, 4.0 or more to die, not with setComponentEnabledSetting
Reply:
God can not write great detail. I would like to know before installing the application can not put limits on the application from the start
No comments:
Post a Comment