闲来无事,分析一下淘宝千牛客户端

<?xmlversion="1.0"encoding="UTF-8"?>

<manifestandroid:versionCode="32"android:versionname="1.3.1"package="com.taobao.qianniu"

xmlns:android="http://schemas.android.com/apk/res/android">

<uses-sdkandroid:minSdkVersion="7"android:targetSdkVersion="7"/>

<uses-permissionandroid:name="android.permission.CAMERA"/>

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

<uses-permissionandroid:name="android.permission.FLASHLIGHT"/>

<uses-permissionandroid:name="android.permission.ACCESS_WIFI_STATE"/>

<uses-permissionandroid:name="android.permission.ACCESS_NETWORK_STATE"/>

<uses-permissionandroid:name="android.permission.INTERNET"/>

<uses-permissionandroid:name="android.permission.READ_PHONE_STATE"/>

<uses-permissionandroid:name="android.permission.RESTART_PACKAGES"/>

<uses-permissionandroid:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

<uses-permissionandroid:name="android.permission.REORDER_TASKS"/>

<uses-permissionandroid:name="android.permission.WAKE_LOCK"/>

<uses-permissionandroid:name="android.permission.READ_LOGS"/>

<applicationandroid:theme="@android:style/Theme.Light.NoTitleBar"android:label="@string/app_name"android:icon="@drawable/jdy_logo"android:name=".App"android:allowBackup="false">

<meta-dataandroid:name="LOG_LEVEL"android:value="2"/>

<activityandroid:theme="@android:style/Theme.Light.NoTitleBar"android:name=".activity.LoginActivity"android:launchMode="singleTop"android:screenOrientation="portrait"android:alwaysRetainTaskState="true"android:windowSoftInputMode="stateHidden|adjustResize">

<intent-filter>

<actionandroid:name="android.intent.action.MAIN"/>

<categoryandroid:name="android.intent.category.LAUNCHER"/>

</intent-filter>

</activity>

<activityandroid:name=".activity.MainActivity"android:exported="true"android:launchMode="singleTask"android:screenOrientation="portrait"android:alwaysRetainTaskState="true">

<intent-filter>

<actionandroid:name="android.intent.action.VIEW"/>

<categoryandroid:name="android.intent.category.DEFAULT"/>

<categoryandroid:name="android.intent.category.BROWSABLE"/>

<dataandroid:scheme="tbsellerplatform"/>

</intent-filter>

</activity>

<activityandroid:name=".activity.MessageCenterActivity"android:exported="false"android:launchMode="singleTop"android:screenOrientation="portrait"android:windowSoftInputMode="adjustResize"/>

<activityandroid:name=".activity.AuthorizeActivity"android:exported="false"android:launchMode="singleTop"android:screenOrientation="portrait"android:allowTaskReparenting="true"/>

<activityandroid:name=".activity.settings.AccountSettingsActivity"android:screenOrientation="portrait"/>

<activityandroid:name=".activity.settings.FAQActivity"android:screenOrientation="portrait"/>

<activityandroid:name=".activity.settings.AboutUsActivity"android:screenOrientation="portrait"/>

<activityandroid:name=".activity.settings.MsgCategorySettingActivity"android:screenOrientation="portrait"/>

<activityandroid:name=".activity.settings.SubscriptionActivity"android:screenOrientation="portrait"/>

<activityandroid:name=".activity.settings.HelpSettingsActivity"android:screenOrientation="portrait"android:windowSoftInputMode="adjustResize"/>

<activityandroid:name=".activity.settings.MsgAttentionSettingsActivity"android:screenOrientation="portrait"/>

<activityandroid:name=".activity.settings.SecurityActivity"android:screenOrientation="portrait"/>

<activityandroid:name=".activity.PluginDetailActivity"android:screenOrientation="portrait"/>

<activityandroid:name=".activity.PictureViewerActivity"android:exported="false"android:screenOrientation="portrait"/>

<activityandroid:theme="@style/activity_dialog"android:label="@string/choose_file"android:name="com.taobao.qianniu.view.common.FileChooseActivity"android:exported="false"android:screenOrientation="portrait"/>

<activityandroid:name=".activity.LiangziChartActivity"android:exported="false"android:screenOrientation="landscape"/>

<activityandroid:name=".activity.LiangziMainActivity"android:exported="false"android:screenOrientation="portrait"/>

<activityandroid:name=".activity.WapItemDetailActivity"android:exported="false"android:screenOrientation="portrait"/>

<activityandroid:name="com.taobao.qianniu.ww.activity.WWShortcutWordMainActivity"android:screenOrientation="portrait"android:windowSoftInputMode="adjustResize"/>

<activityandroid:name="com.taobao.qianniu.ww.activity.WWShortcutWordOperateActivity"android:screenOrientation="portrait"android:windowSoftInputMode="adjustResize"/>

<activityandroid:name=".ww.activity.WWSearchContactActivity"android:screenOrientation="portrait"android:windowSoftInputMode="adjustResize"/>

<activityandroid:name=".ww.activity.WWSettingsActivity"android:screenOrientation="portrait"/>

<activityandroid:name=".ww.activity.WWChatActivity"android:launchMode="singleTop"android:screenOrientation="portrait"android:windowSoftInputMode="stateHidden|adjustResize"/>

<activityandroid:name=".ww.activity.WWContactProfileActivity"android:screenOrientation="portrait"/>

<activityandroid:name=".ww.activity.WWReplySettingActivity"android:screenOrientation="portrait"android:windowSoftInputMode="adjustResize"/>

<activityandroid:name="com.taobao.qianniu.ww.activity.WWContactRateActivity"android:screenOrientation="portrait"/>

<activityandroid:name=".activity.H5ContainerActivity"android:exported="false"android:launchMode="singleTop"android:screenOrientation="portrait"android:allowTaskReparenting="true"android:windowSoftInputMode="adjustResize"/>

<activityandroid:name="com.taobao.qianniu.activity.AlipayWebviewActivity"android:exported="false"android:launchMode="singleTop"android:screenOrientation="portrait"android:windowSoftInputMode="adjustResize"/>

<activityandroid:name="com.taobao.qianniu.activity.H5UIActivity"android:exported="false"android:launchMode="singleTop"android:screenOrientation="portrait"android:windowSoftInputMode="adjustResize"/>

<activityandroid:name=".activity.SimpleAutoLoginWebviewActivity"android:exported="false"android:screenOrientation="portrait"/>

<activityandroid:name=".activity.settings.SubAccountListActivity"android:exported="false"android:screenOrientation="portrait"/>

<activityandroid:theme="@android:style/Theme.Translucent.NoTitleBar"android:name=".activity.SDKDelegateActivity"android:exported="false"android:excludeFromRecents="true"android:launchMode="singleTop"/>

<activityandroid:theme="@style/no_title_trans"android:name=".activity.ScavengerActivity"android:exported="false"android:clearTaskOnLaunch="true"android:excludeFromRecents="true"android:noHistory="true"/>

<activityandroid:theme="@android:style/Theme.Translucent.NoTitleBar"android:name=".activity.DialogActivity"android:exported="false"android:launchMode="singleTop"android:screenOrientation="portrait"android:allowTaskReparenting="true"/>

<activityandroid:theme="@android:style/Theme.Translucent.NoTitleBar"android:name=".activity.LockPatternActivity"android:exported="false"android:launchMode="singleTop"android:screenOrientation="portrait"android:windowSoftInputMode="stateAlwaysHidden"/>

<activityandroid:theme="@android:style/Theme.NoTitleBar.Fullscreen"android:name="com.google.zxing.client.android.CaptureActivity"android:exported="false"android:windowSoftInputMode="stateAlwaysHidden">

<intent-filter>

<actionandroid:name="com.taobao.qianniu.barcode.scanner.SCAN"/>

<categoryandroid:name="android.intent.category.DEFAULT"/>

</intent-filter>

</activity>

<serviceandroid:name="com.alibaba.mobileim.inet.service.InetIOService"android:exported="false"/>

<serviceandroid:label="@string/core_service"android:name=".app.MessageService"/>

<receiverandroid:name=".app.ConnectivityChangeReceiver">

<intent-filter>

<actionandroid:name="android.net.conn.CONNECTIVITY_CHANGE"/>

</intent-filter>

</receiver>

<receiverandroid:name="com.taobao.top.android.comm.SDKDelegateReceiver">

<intent-filter>

<actionandroid:name="com.taobao.top.android.broadcast.event"/>

<dataandroid:scheme="tbsellerplatform"/>

</intent-filter>

</receiver>

<providerandroid:name=".app.JdyContentProvider"android:authorities="com.taobao.qianniu.provider"/>

</application>

</manifest>

先看AndroidManifest文件,来看看他有些什么内容?

<serviceandroid:name="com.alibaba.mobileim.inet.service.InetIOService"android:exported="false"/>

阿里的im服务,我猜测就是旺旺,淘宝开发平台里开放出来的旺旺api,只有一些统计功能,没有聊天功能。

研究一下这个im服务应该可能了解旺旺的聊天服务。

<receiverandroid:name="com.taobao.top.android.comm.SDKDelegateReceiver">

这个receiver收听什么消息呢?也可以好好观察一下。

相关推荐