Android 修改包名

http://blog.chinaunix.net/uid-22816738-id-3761867.html

Android 源码自带了很多应用程序,想改个包名方便修改?很简单,两步搞定,以packages/apps/Settings为例:

1、打开AndroidManifest.xml,把

<manifest xmlns:android="http://schemas.android.com/apk/res/android "
        android:sharedUserId="android.uid.system" package="com.android.settings">

改成

<manifest xmlns:android="http://schemas.android.com/apk/res/android "
        android:sharedUserId="android.uid.system" package="com.android.settings2">

 

2、打开package Explorer

找到src 下主包com.android.setting

右键refactor->rename改成com.android.setting2,四个选项全部勾选,等一会就OK了

 

在模拟器里运行会时,会让你选择有原生的还是更改后的

猜你喜欢

转载自blog.csdn.net/huofeng_2008/article/details/40557013