Click here to Skip to main content
15,883,868 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there a way to kill com.android.phone process in android? i have tried this method:
Java
Method forceStopPackage = mActivityManager.getClass().getDeclaredMethod("forceStopPackage", String.class);
forceStopPackage.setAccessible(true);
forceStopPackage.invoke(mActivityManager, pkgName);

it works great except com.android.phone,could anyone please help me.
Thank you!
Posted
Comments
Fredrik Bornander 7-Jul-14 3:51am    
What permissions do you have in your manifest xml?
lucherr 7-Jul-14 5:10am    
uses-permission android:name="android.permission.CALL_PHONE"
uses-permission android:name="android.permission.MODIFY_PHONE_STATE"
uses-permission android:name="android.permission.READ_PHONE_STATE"
uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS"

I think it's not because of the permissions
And i found another way to resolve this problem, hang up the phone before it shows

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900