2

我已经创建了应用程序并将应用程序上传到市场中。我登录到我的开发者控制台,我发现一些崩溃,如下所示,

java.lang.SecurityException: Permission Denial: starting Intent { cmp=com.android.settings/.BatteryInfo } from ProcessRecord{42696e78 27843:agm.bsp.battery/u0a132} (pid=27843, uid=10132) requires com.sec.android.app.factorymode.permission.KEYSTRING
at android.os.Parcel.readException(Parcel.java:1425)
at android.os.Parcel.readException(Parcel.java:1379)
at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1930)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1415)
at android.app.Activity.startActivityForResult(Activity.java:3446)
at android.app.Activity.startActivityForResult(Activity.java:3407)
at android.app.Activity.startActivity(Activity.java:3617)
at android.app.Activity.startActivity(Activity.java:3585)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:283)
at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:160)
at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:874)
at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:468)
at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:126)
at android.view.View$PerformClick.run(View.java:17267)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4898)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
at dalvik.system.NativeStart.main(Native Method)

我的清单文件:

    <uses-sdk android:minSdkVersion="8" />

    <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />

  <!--   <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> -->
    <uses-permission android:name="android.permission.BLUETOOTH" >

    </uses-permission>
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" >
    </uses-permission>
    <uses-permission android:name="android.permission.WRITE_SETTINGS" >
    </uses-permission>
 <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<meta-data android:value="a151c2fce086d57" android:name="ADMOB_PUBLISHER_ID" />
    <meta-data android:value="true" android:name="ADMOB_ALLOW_LOCATION_FOR_ADS" />
    <application
        android:icon="@drawable/icon"
        android:label="@string/app_name" >
        <activity
            android:name=".SettingsActivity"
            android:excludeFromRecents="true"
            android:label="@string/settings_title"
            android:launchMode="singleTask"
            android:screenOrientation="portrait" >
        </activity>
        <activity
            android:name=".DashboardActivity"
            android:label="@string/launcher_name"
            android:launchMode="singleInstance"
            android:screenOrientation="portrait"
            android:theme="@android:style/Theme.Light" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

         <activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/> 

        <service
            android:name=".BatteryNotifierService"
            android:label="BatteryNotifierService" />

        <receiver android:name=".AlarmReceiver" />
        <receiver
            android:name=".BootCompletedReceiver"
            android:enabled="true"
            android:exported="false" >
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>

        <activity
            android:name="agm.bsp.battery.PowerSaverActivity"
            android:screenOrientation="portrait" />
    </application>

    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.BATTERY_STATS" />

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:resizeable="true"
        android:smallScreens="true" />

谁能帮我。谢谢你。

4

0 回答 0