支持应用内播放

  将x5播放器内核部署到由fusion app制作的应用内,可以使应用具有视频播放功能。

操作步骤:

1.打开MT管理器,左侧找到需要添加内核的应用,右侧打开x5内核文件夹

1

2.点击左侧应用,查看,删除以classes开头的所有文件

2

3.选择右侧文件:lib、classes.dex添加到左侧

3

4.点击左侧AndroidMainfest.xml文件--反编译

5.复制以下代码到图片红框上方

代码:

<meta-data android:name="android.support.VERSION" android:value="25.3.1" />
<meta-data android:name="android.support.VERSION" android:value="25.3.1" />	
<meta-data android:name="QBSDKAppKey" android:value="vmV2y4T7vvkwtQBS1nKXWMPj" />
<activity android:label="浏览器" android:name="com.androlua.LuaWebView" android:process=":h5" android:screenOrientation="portrait" android:configChanges="0x4a0" />
<activity android:label="浏览器" android:name="com.androlua.MyWebView" android:process=":h5" android:screenOrientation="portrait" android:configChanges="0x4a0" />
<activity android:name="com.tencent.smtt.sdk.VideoActivity" android:exported="false" android:launchMode="singleTask" android:configChanges="0x4a0" android:alwaysRetainTaskState="true">			
 <intent-filter>		
 <action android:name="com.tencent.smtt.tbs.video.PLAY" />													<category android:name="android.intent.category.DEFAULT" />															</intent-filter>																</activity>

红框上方添加代码:

5

6.复制以下代码到图片红框处

<!-- 防止手机休眠 -->    <uses-permission android:name="android.permission.WAKE_LOCK" />    
<!-- 展开/收拢状态栏 -->    <uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />    
<!-- 拍摄照片和视频 -->    <uses-permission android:name="android.permission.CAMERA" />    
<!-- 录音 -->    <uses-permission android:name="android.permission.RECORD_AUDIO" />    
<!-- 访问大致位置信息(以网络为依据) -->    
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />    
<!-- 访问确切位置信息(以 GPS 和网络为依据) -->    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />    
<!-- 设置闹钟 -->    <uses-permission android:name="com.android.alarm.permission.SET_ALARM" />   
 <!-- 连接WLAN网络和断开连接 -->    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />   
 <!-- 更改网络连接性 -->    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />   
 <!-- 检索正在运行的应用 -->    <uses-permission android:name="android.permission.GET_TASKS" />    
<!-- 开机启动 -->    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />   
 <!-- 控制振动 -->    <uses-permission android:name="android.permission.VIBRATE" />    <uses-permission android:name="android.permission.FLASHLIGHT" />    
<!-- 此应用可显示在其他应用上方 -->    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />   
 <!-- 设置壁纸 -->    <uses-permission android:name="android.permission.SET_WALLPAPER" />   
 <!-- 更改您的音频设置 -->    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />    
<!-- 卸载快捷方式 -->    <uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT" />    <!-- 安装快捷方式 -->    
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />    <!-- 修改系统设置 -->    
<uses-permission android:name="android.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" />    <uses-permission android:name="com.android.launcher.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.google.android.launcher.permission.READ_SETTINGS" />    <uses-permission android:name="com.google.android.launcher.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.htc.launcher.permission.READ_SETTINGS" />    
<uses-permission android:name="com.htc.launcher.permission.WRITE_SETTINGS" />   
 <uses-permission android:name="com.nd.android.launcher.permission.READ_SETTINGS" />    <uses-permission android:name="com.nd.android.launcher.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.lge.launcher.permission.READ_SETTINGS" />    
<uses-permission android:name="com.lge.launcher.permission.WRITE_SETTINGS" />    
<uses-permission android:name="com.fede.launcher.permission.READ_SETTINGS" />    
<uses-permission android:name="com.fede.launcher.permission.WRITE_SETTINGS" />    
<uses-permission android:name="org.adw.launcher.permission.READ_SETTINGS" />    
<uses-permission android:name="org.adw.launcher.permission.WRITE_SETTINGS" />    
<uses-permission android:name="org.adwfreak.launcher.permission.READ_SETTINGS" />    <uses-permission android:name="org.adwfreak.launcher.permission.WRITE_SETTINGS" />    <uses-permission android:name="org.adw.launcher_donut.permission.READ_SETTINGS" />    <uses-permission android:name="org.adw.launcher_donut.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.tencent.qqlauncher.permission.READ_SETTINGS" />    <uses-permission android:name="com.tencent.qqlauncher.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.android.mylauncher.permission.READ_SETTINGS" />    <uses-permission android:name="com.android.mylauncher.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.huawei.launcher2.permission.READ_SETTINGS" />    <uses-permission android:name="com.huawei.launcher2.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.huawei.launcher3.permission.READ_SETTINGS" />    <uses-permission android:name="com.huawei.launcher3.permission.WRITE_SETTINGS" />    <uses-permission android:name="net.qihoo.launcher.permission.READ_SETTINGS" />   
 <uses-permission android:name="net.qihoo.launcher.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.dianxinos.dxhome.permission.READ_SETTINGS" />    <uses-permission android:name="com.dianxinos.dxhome.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.huawei.android.launcher.permission.READ_SETTINGS" />    <uses-permission android:name="com.huawei.android.launcher.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.qihoo360.launcher.permission.READ_SETTINGS" />    <uses-permission android:name="com.qihoo360.launcher.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.oppo.launcher.permission.READ_SETTINGS" />    
<uses-permission android:name="com.oppo.launcher.permission.WRITE_SETTINGS" />   
 <uses-permission android:name="com.bbk.launcher2.permission.READ_SETTINGS" />   
 <uses-permission android:name="com.bbk.launcher2.permission.WRITE_SETTINGS" />   
 <uses-permission android:name="com.ztemt.launcher.permission.READ_SETTINGS" />   
 <uses-permission android:name="com.ztemt.launcher.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.android.launcher3.permission.READ_SETTINGS" />    <uses-permission android:name="com.android.launcher3.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.moxiu.launcher.permission.READ_SETTINGS" />   
 <uses-permission android:name="com.moxiu.launcher.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.iLoong.permission.READ_SETTINGS" />    <uses-permission android:name="com.iLoong.permission.WRITE_SETTINGS" />    <uses-permission android:name="telecom.mdesk.permission.READ_SETTINGS" />   
 <uses-permission android:name="telecom.mdesk.permission.WRITE_SETTINGS" />   
 <uses-permission android:name="com.lenovo.launcher.permission.READ_SETTINGS" />    <uses-permission android:name="com.lenovo.launcher.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.meizu.flyme.launcher.permission.READ_SETTINGS" />    <uses-permission android:name="com.meizu.flyme.launcher.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.google.android.apps.nexuslauncher.permission.READ_SETTINGS" />    <uses-permission android:name="com.google.android.apps.nexuslauncher.permission.WRITE_SETTINGS" />    <uses-permission android:name="com.teslacoilsw.launcher.permission.READ_SETTINGS" />    <uses-permission android:name="com.teslacoilsw.launcher.permission.WRITE_SETTINGS" />    <uses-permission android:name="android.permission.READ_LOGS" />    <uses-permission android:name="com.tencent.tmsecurelite.permission.ACCESS_SERVICE" />    <uses-permission android:name="android.permission.BIND_ACCESSIBILITY_SERVICE" />    <uses-permission android:name="com.sec.android.provider.badge.permission.READ" />    <uses-permission android:name="com.sec.android.provider.badge.permission.WRITE" />    <uses-permission android:name="com.android.ContactWidget.permission.READ_SETTINGS" />    <uses-permission android:name="com.android.ContactWidget.permission.WRITE_SETTINGS" />    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />    <uses-permission android:name="com.lenovo.launcher.permission.BADGE_READ" />    <uses-permission android:name="com.lenovo.launcher.permission.BADGE_WRITE" />    <uses-permission android:name="com.huawei.android.launcher.permission.CHANGE_BADGE" />    <!-- 读取同步统计信息 -->   
 <uses-permission android:name="android.permission.READ_SYNC_STATS" />    <!-- 启用和停用同步 -->  
 <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />  
  <!-- 读取同步设置 -->    
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />    
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />  
  <uses-permission android:name="com.coloros.mcs.permission.RECIEVE_MCS_MESSAGE" />    <uses-feature android:name="android.hardware.camera" />    
<uses-feature android:glEsVersion="0x00020000" />

红框处添加代码:

6

7.完成后,保存并退出

8.签名,打包安装

8

下载地址:

  x5内核


end