注意请不要将targetSdkVersion设置为23或以上

在AndroidManifest.xml中添加以下权限：
    <uses-permission android:name="android.permission.READ_LOGS" />
    <uses-permission android:name="android.permission.SEND_SMS" />
    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />  
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
    
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER"/>
    <uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
    
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
    <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
    
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.GET_TASKS"/>

    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
    <uses-permission android:name="android.webkit.permission.PLUGIN" />
    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_SMS"/>
    <!--咪咕基地所需权限-->
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
    <uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT"/>
    <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS"/>
    <uses-permission android:name="com.android.launcher.permission.WRITE_SETTINGS"/>
    


添加activity等的声明：（注意：下面4个meta-data一定要添加到manifest文件内）

<!-- dksdk_appid表示从开发者平台申请的APPID，一定要填写正确 -->
<meta-data android:name="dksdk_appid" android:value="开发者平台申请的APPID" />

<!-- dksdk_appkey表示从开发者平台申请的APPKEY，一定要填写正确 -->
<meta-data android:name="dksdk_appkey" android:value="开发者平台申请的APPKEY" />

<!-- dksdk_appsecret表示从开发者平台申请的APPSECRET，一定要填写正确 -->
<meta-data android:name="dksdk_appsecret" android:value="开发者平台申请的APPSECRET" />

<!-- dksdk_channel表示渠道,请开发者向我方运营索要需要推广的渠道号 -->
<!-- dksdk_channel表示渠道,百度手机助手13744，百度多酷12999，91（福建博锐）14076，百度贴吧14146 -->
<meta-data android:name="dksdk_channel" android:value="渠道号ID" />

<!-- dksdk_ver表示sdk版本,此版本为 208 -->
<meta-data android:name="dksdk_ver" android:value="208"/>



<!-- 基础配置 -->
<!-- Activity屏幕方向要同代码中设置一致 -->
<activity
    android:name="com.duoku.platform.single.ui.DKRecommendActivity"
    android:configChanges="orientation|keyboardHidden|navigation"
    android:theme="@style/DK.Theme.NoBackGround.NoAnimation"
    android:screenOrientation="portrait">
</activity>
 <activity
    android:name="com.duoku.platform.single.ui.DKStartDownloadActivity"
    android:configChanges="orientation|keyboardHidden"
    android:theme="@style/dksdk_theme_dialog"
    android:screenOrientation="portrait"/>
<activity
    android:name="com.duoku.platform.single.ui.DKLotteryDrawActivity"
    android:configChanges="orientation|keyboardHidden|navigation"
    android:theme="@style/DK.Theme.NoBackGround.NoAnimation"
    android:screenOrientation="portrait">
</activity>

        
<receiver 
	android:name="com.duoku.platform.single.receiver.PushMessageReceiver">
	<intent-filter android:priority="2147483647">
                <action android:name="com.baidu.android.pushservice.action.MESSAGE" />
                <action android:name="com.baidu.android.pushservice.action.RECEIVE" />
                <action android:name="com.baidu.android.pushservice.action.notification.CLICK" />
        </intent-filter>
</receiver>
        
<receiver 
	android:name="com.baidu.android.pushservice.PushServiceReceiver"
	android:process=":bdservice_v1">
        <intent-filter>
		<action android:name="android.intent.action.BOOT_COMPLETED" />
                <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
                <action android:name="com.baidu.android.pushservice.action.notification.SHOW" />
                <action android:name="com.baidu.android.pushservice.action.media.CLICK" />
		<action android:name="android.intent.action.MEDIA_MOUNTED" />
		<action android:name="android.intent.action.USER_PRESENT" />
		<action android:name="android.intent.action.ACTION_POWER_CONNECTED" />
		<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" />
                <action android:name="com.baidu.android.pushservice.action.frontia.user" />
        </intent-filter>
</receiver>

<receiver 
	android:name="com.baidu.android.pushservice.RegistrationReceiver"
        android:process=":bdservice_v1">
        <intent-filter>
		<action android:name="com.baidu.android.pushservice.action.METHOD" />
                <action android:name="com.baidu.android.pushservice.action.BIND_SYNC" />
        </intent-filter>
        <intent-filter>
                <action android:name="android.intent.action.PACKAGE_REMOVED"/>
                <data android:scheme="package" />
        </intent-filter>                   
</receiver>
        
<service
	android:name="com.baidu.android.pushservice.PushService"
	android:exported="true"
	android:process=":bdservice_v1" > 
        <intent-filter>
		<action android:name="com.baidu.android.pushservice.action.PUSH_SERVICE" />
	</intent-filter>
</service>        
<service android:name="com.baidu.android.pushservice.CommandService" android:exported="true" />



<service android:name="com.duoku.platform.single.gameplus.service.GPDownloadService" 
    android:process="com.baidu.platform.gameplus.service"
    android:enabled="true"
    android:exported="true">
    <intent-filter>
        <action android:name="com.baidu.platform.gameplus.service" />
        <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>
</service>
<service android:name="com.duoku.platform.single.gameplus.install.GPSilentInstallService"/>
<receiver android:name="com.duoku.platform.single.gameplus.broadcast.GPNotificaionReceiver">
    <intent-filter>
        <action android:name="baidu.platform.gameplus.intent.action.CANCLE_NOTIFICATION"/>
        <action android:name="baidu.platform.gameplus.intent.action.DO_NOTIFICATION_CLICK"/>
    </intent-filter>
    <intent-filter>
        <action android:name="android.intent.action.PACKAGE_ADDED" /> 
        <action android:name="android.intent.action.PACKAGE_REPLACED" />
        <data android:scheme="package" />
    </intent-filter>
</receiver>


<!-- 支付模块配置 -->
<!-- 注意:支付模块的Activity屏幕方向要同代码中设置一致 -->
<activity
    android:name="com.duoku.platform.single.ui.DKContainerActivity"
    android:configChanges="orientation|keyboardHidden|navigation"
    android:theme="@style/DK.Theme.NoBackGround.NoAnimation"
    android:screenOrientation="portrait">
</activity>

<activity>
    android:name="com.alipay.sdk.app.H5PayActivity"
    android:screenOrientation="portrait" >
</activity>
<!-- 微信支付 start -->
<activity
    android:name="com.ipaynow.wechatpay.plugin.inner_plugin.wechat_plugin.activity.WeChatNotifyActivity"
    android:configChanges="orientation|keyboardHidden|keyboard|smallestScreenSize|locale|screenLayout"
    android:screenOrientation="behind"
    android:theme="@android:style/Theme.Translucent" >
</activity>
<activity 
    android:name="com.baidu.platformsdk.wxpay.PayActivity"
    android:configChanges="orientation|navigation"
    android:exported="false"
    android:windowSoftInputMode="adjustPan"
    android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
<!-- 微信支付 end -->
<!-- 联通沃商店支付 Start -->
<activity 	
    android:name="com.unicom.wostore.unipay.paysecurity.SecurityActivity"
    android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen"
    android:configChanges="screenSize|orientation"
    android:screenOrientation="portrait">
</activity>
<service  android:name="com.unicom.wostore.unipay.paysecurity.SecurityServiceFramework"/>
<!-- 联通沃商店支付 End-->


<!-- 登陆模块配置 -->
<activity
    android:name="com.duoku.platform.single.bdpass.DKAccountContainerActivity"
    android:configChanges="orientation|keyboardHidden|navigation"
    android:theme="@style/DK.Theme.NoBackGround.NoAnimation"
    android:screenOrientation="portrait">
</activity>


