https://developer.android.com/studio/build/manifest-merge

https://www.jianshu.com/p/e501e2bcf315

  • 移除sdk中的某个activity
    在个推sdk里有这样的一个GActivity,不想它自动启动,想移除它。
<activity  
     android:name="com.igexin.sdk.GActivity"  
     android:excludeFromRecents="true"  
     android:exported="true"  
     android:process=":pushservice"   android:taskAffinity="com.igexin.sdk.PushActivityTask"  
     android:theme="@android:style/Theme.Translucent.NoTitleBar"/>

可以这么配置:

<activity
         android:name="com.igexin.sdk.GActivity"
            android:exported="true"
            tools:node="remove" />

0 条评论

发表回复

您的电子邮箱地址不会被公开。