锐单电子商城 , 一站式电子元器件采购平台!
  • 电话:400-990-0325

HBBuilderProjest逆向分析与安全性扯淡

时间:2022-12-20 12:30:01 传感器1004

最近公司让我整个app逆向分析如何修改状态栏,发现不应该是原生工程,而应该是第三方app,比较资产目录文件后,特征码mainfest.json ,百度搜了一下·dclould.io我也知道产品apicloud 抄袭他们 - -
状态栏修改的实现显而易见mainfest.json不,根据文档http://ask.dcloud.net.cn/article/94 说明,background 沉浸后状态栏背景无效,最后通过demo有两种方法可以分析设置,一种是打开沉浸。

第一种

  // 禁止选择 document.oncontextmenu=function(){     return false; }; // H5 plus事件处理 var as='pop-in';// 窗口动画默认 function plusReady(){     // 隐藏滚动条     plus.webview.currentWebview().setStyle({scrollIndicator:'none'});     // Android处理返回键     plus.key.addEventListener('backbutton',function(){         ('iOS'==plus.os.name)?plus.nativeUI.confirm(确认退出?', function(e){             if(e.index>0){                 plus.runtime.quit();             }         }, 'HelloH5', 取消,确定(confirm(确认退出?')&&plus.runtime.quit());     },false);     compatibleAdjust(); } if(window.plus){     plusReady(); }else{     document.addEventListener('plusready',plusReady,false); } // DOMContentLoaded事件处理 var _domReady=false; document.addEventListener('DOMContentLoaded',function(){     _domReady=true;     compatibleAdjust(); },false); // 兼容风格调整 var _adjust=false; function compatibleAdjust(){     if(_adjust||!window.plus||!_domReady){         return;     }     _adjust=true;     // iOS平台特效     if('iOS'==plus.os.name){         document.getElementById('content').className='scontent';    // 使用div的滚动条         if(navigator.userAgent.indexOf('StreamApp')>=0){    // 返回按钮显示在流应用模式下             document.getElementById('back').style.visibility='visible';         }     }     // 二建二级窗口 //  preateWebviews();     // 关闭启动界面         plus.navigator.setStatusBarBackground('#D74B28');     setTimeout(function(){         plus.navigator.closeSplashscreen();     },200); }

这种方法有坑,所以有些是app主题设置可能比较麻烦,导致无效。事实上,问题会出现immersed.js加载时间,控制节点是否正确, ok状态修改完成,

第二种

直接修改mainfest.json,然后关闭沉浸化

"statusbar": {             "immersed": 'none', //是否为沉浸式状态栏,提交云包装后生效             "background": "#ff0000"            , "background1": "#D74B28" ///系统状态栏背景颜色,字符串类型,#RRGGBB格式          } `` ### 那么如何直接把一个加固的这种apk直接在HBBuilderProject里面跑呢?  把assets发现里面的文件出来后确实可以跑,有问题的是插件,会提示缺少插件。  把assets发现里面的文件出来后确实可以跑,有问题的是插件,会提示缺少插件。 编译包装与源代码的比较如下。 ### 编译后

{
"id": "H5373A121",
"name": "test",
"version": {
"name": "2.3.1",
"code": "20301"
},
"description": "HTML5 Plus能力演示",
"icons": {
"144": "icon.png"
},
"launch_path": "index.html",
"developer": {
"name": "qssq666@foxmail.com",
"email": "qssq666@foxmail.com",
"url": "http://www.dcloud.io"
},
"orientation": ["portrait"],
"permissions": {
"Accelerometer": {
"description": "加速度传感器"
},
"Audio": {
"description": "录音播放"
},
"Cache": {
"description": "缓存管理"
},
"Camera": {
"description": "摄像头"
},
"Console": {
"description": "调试输出日志"
},
"Contacts": {
"description": "系统通讯录"
},
"Device": {
"description": "设备信息"
},
"Downloader": {
"description": "文件下载"
},
"Events": {
"description": "扩展事件"
},
"File": {
"description": "本地文件系统"
},
"Gallery": {
"description": "系统相册"
},
"Geolocation": {
"description": "位置信息"
},
"Invocation": {
"description": "Native.js能力"
},
"Messaging": {
"description": "消息通讯"
},
"Orientation": {
"description": "方向传感器"
},
"Proximity": {
"description": "距离传感器"
},
"Storage": {
"description": "本地数据存储"
},
"Webview": {
"description": "窗口管理"
},
"NativeObj": {
"description": "原生控件"
},
"NativeUI": {
"description": "原生UI控件"
},
"Navigator": {
"description": "浏览器信息"
},
"Uploader": {
"description": "文件上传"
},
"Runtime": {
"description": "运行环境"
},
"XMLHttpRequest": {
"description": "跨域网络请求"
},
"Zip": {
"description": "压缩与解压"
},
"Barcode": {
"description": "二维码扫描"
},
"Payment": {
"description": "支付"
},
"Speech": {
"description": "语音识别"
},
"VideoPlayer": {
"description": "视频播放"
},
"LivePusher": {
"description": "直播推流"
},
"Stream": {
"description": "plus.strea."
},
"Confusion": {
"description": "Resource confusion"
},
"Share": {
"description": "plus.share.
"
}
},
"plus": {
"splashscreen": {
"autoclose": false,
"waiting": true
},
"statusbar": {
"immersed": true,
"background": "-webkit-gradient(linear, 0 0, 0 bottom, from(#ff0000), to(#0000ff))",
"background1": "#D74B28"
},
"popGesture": "close",
"runmode": "liberate",
"signature": "Sk9JTiBVUyBtYWlsdG86aHIyMDEzQGRjbG91ZC5pbw==",
"adid": "124642030908"
}
},
"refer": [
"doc/nativeobj.html",
"plus/nativeobj_animation.html"
],
"priority": 15
}
},
"idle": {
"resources": [
"plus/webview_pullrefresh.html",
"doc/splashscreen.html",
"plus/webview_pullhead.html",
"doc/ui.html",
"doc/key.html",
"doc/contacts.html",
"doc/statistic.html",
"doc/interface-orientation.html",
"doc/cache.html",
"doc/console.html"
]
}
},
"unpackage": [
"js/update.json",
"doc/cache.html",
"doc/console.html",
"doc/contacts.html",
"doc/interface-orientation.html",
"doc/key.html",
"doc/splashscreen.html",
"doc/statistic.html",
"plus/webview_pullhead.html",
"plus/webview_pullrefresh.html"
]
}

### 源 代码

{
"@platforms": ["android", "iPhone", "iPad"],
"id": "H5373A121", //应用的标识,创建应用时自动生成,勿手动修改
"name": "test", //应用名称,程序桌面图标名称
"version": {
"name": "2.3.1", //应用版本名称
"code": "20301" //应用版本号
},
"description": "HTML5 Plus能力演示", //应用描述信息
"icons": {
"144": "icon.png"
},
"launch_path": "index.html", //应用的入口页面,默认为根目录下的index.html;支持网络地f址,必须以http://或https://开头
"developer": {
"name": "", //开发者名称
"email": "", //开发者邮箱地址
"url": "http://www.dcloud.io" //开发者个人主页地址
},
"orientation": [
"portrait"
],
"permissions": { // 使用到的模块
"Accelerometer": {
"description": "加速度传感器"
},
"Audio": {
"description": "音频录制与播放"
},
"Cache": {
"description": "缓存管理"
},
"Camera": {
"description": "摄像头"
},
"Console": {
"description": "调试输出日志"
},
"Contacts": {
"description": "系统通讯录"
},
"Device": {
"description": "设备信息"
},
"Downloader": {
"description": "文件下载"
},
"Events": {
"description": "扩展事件"
},
"File": {
"description": "本地文件系统"
},
"Gallery": {
"description": "系统相册"
},
"Geolocation": {
"description": "位置信息"
},
"Invocation": {
"description": "Native.js能力"
},
"Messaging": {
"description": "消息通讯"
},
"Orientation": {
"description": "方向传感器"
},
"Proximity": {
"description": "距离传感器"
},
"Storage": {
"description": "本地数据存储"
},
"Webview": {
"description": "窗口管理"
},
"NativeObj": {
"description": "原生控件"
},
"NativeUI": {
"description": "原生UI控件"
},
"Navigator": {
"description": "浏览器信息"
},
"Uploader": {
"description": "文件上传"
},
"Runtime": {
"description": "运行环境"
},
"XMLHttpRequest": {
"description": "跨域网络请求"
},
"Zip": {
"description": "压缩与解压"
},
"Barcode": {
"description": "二维码扫描"
},

"Payment": {
        "description": "支付"
    },
    
    
    "Speech": {
        "description": "语音识别"
    },
    
    "VideoPlayer": {
        "description": "视频播放"
    },
    "LivePusher": {
        "description": "直播推流"
    }
},
"plus": {
    "splashscreen": {
        "autoclose": false, //是否自动关闭程序启动界面,true表示应用加载应用入口页面后自动关闭;false则需调plus.navigator.closeSplashscreen()关闭 
        "waiting": true //是否在程序启动界面显示等待雪花,true表示显示,false表示不显示 
    },
    "statusbar": {
        "immersed": "none", //是否为沉浸式状态栏,提交云端打包后生效
        "background": "#0000ff"
       , "background1": "#D74B28" //系统状态栏背景颜色,字符串类型,#RRGGBB格式 
    },
    "popGesture": "close", //设置应用默认侧滑返回关闭Webview窗口,"none"为无侧滑返回功能,"hide"为侧滑隐藏Webview窗口。参考http://ask.dcloud.net.cn/article/102 
    "runmode": "liberate", //应用的首次启动运行模式,可取liberate或normal,liberate模式在第一次启动时将解压应用资源(Android平台File API才可正常访问_www目录) 
    "signature": "Sk9JTiBVUyBtYWlsdG86aHIyMDEzQGRjbG91ZC5pbw==", //可选,保留给应用签名,暂不使用
    "distribute": { // 云端打包配置 
        "apple": {
            "appid": "", //iOS应用标识,苹果开发网站申请的appid,如io.dcloud.HelloH5 
            "mobileprovision": "", //iOS应用打包配置文件 
            "password": "", //iOS应用打包个人证书导入密码 
            "p12": "", //iOS应用打包个人证书,打包配置文件关联的个人证书 
            "devices": "iphone", //iOS应用支持的设备类型,可取值iphone/ipad/universal 
            "urlschemewhitelist":[  //iOS9调用第三方应用urlscheme白名单 
                "baidumap",
                "iosamap"
            ],
            "shortcuts": [ //3D Touch快捷菜单项 
                {
                    "type": "share",
                    "title": "分 享",
                    "subtitle": "分享到微信、微博、QQ",
                    "icontype": "UIApplicationShortcutIconTypeShare"
                },
                {
                    "type": "about",
                    "title": "关 于",
                    "subtitle": "www.dcloud.io",
                    "iconfile": "sa.png",
                    "userinfo": {
                        "key3":"value3"
                    }
                }
            ],
            "frameworks":[
            ], //调用Native.js调用原生Objective-c API需要引用的FrameWork,如需调用GameCenter,则添加"GameKit.framework" 
            "plistcmds":[ //自定义修改plist文件命令:修改使用权限的描述信息 
                "Set :NSCameraUsageDescription 拍照/摄像/扫描二维码",
                "Set :NSMicrophoneUsageDescription 录制音频文件/语音识别",
                "Set :NSPhotoLibraryUsageDescription 选择/保存图片",
                "Set :NSLocationWhenInUseUsageDescription 获取位置信息"
            ]
        },
        "google": {
            "packagename": "", //Android应用标识(包名),如io.dcloud.HelloH5
            "keystore": "", //Android应用打包使用的密钥库文件 
            "password": "", //Android应用打包使用密钥库中证书的密码 
            "aliasname": "", //Android应用打包使用密钥库中证书的别名
            "permissions": ["","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]
        },
        "orientation": [
            "portrait-primary"
        ], //应用支持的方向,portrait-primary:竖屏正方向;portrait-secondary:竖屏反方向;landscape-primary:横屏正方向;landscape-secondary:横屏反方向 
        "icons": {
            "ios": {
                "appstore": "", //应用图标,分辨率:1024x1024,用于提交AppStore的程序图标 
                "iphone": {
                    "app@2x": "", //iOS7-11程序图标(iPhone4S/5/6/7/8), 分辨率:120x120 
                    "app@3x": "", //iOS7-11程序图标(iPhone6plus/7plus/8plus/X),分辨率:180x180 
                    "spotlight@2x": "", //iOS7-11 Spotlight搜索图标(iPhone5/6/7/8),分辨率:80x80 
                    "spotlight@3x": "", //iOS7-11 Spotlight搜索图标(iPhone6plus/7plus/8plus/X),分辨率:120x120 
                    "settings@2x": "", //iOS5-11 Settings设置图标(iPhone5/6/7/8),分辨率:58x58 
                    "settings@3x": "", //iOS5-11 Settings设置图标(iPhone6plus/7plus/8plus/X),分辨率:87x87 
                    "notification@2x": "", //iOS7-11 通知栏图标(iPhone5/6/7/8),分辨率:40x40 
                    "notification@3x": "" //iOS7-11 通知栏图标(iPhone6plus/7plus/8plus/X),分辨率:60x60 
                },
                "ipad": {
                    "app": "", //iOS7-11程序图标,分辨率:76x76 
                    "app@2x": "", //iOS7-11程序图标(高分屏),分辨率:152x152 
                    "proapp@2x": "", //iOS9-11程序图标(iPad Pro),分辨率:167x167 
                    "spotlight": "", //iOS7-11 Spotlight搜索图标,分辨率:40x40 
                    "spotlight@2x": "", //iOS7-11 Spotlight搜索图标(高分屏),分辨率:80x80 
                    "settings": "", //iOS5-11 设置图标,分辨率:29x29 
                    "settings@2x": "", //iOS5-11 设置图标(高分屏),分辨率:58x58 
                    "notification": "", //iOS7-11 通知栏图标,分辨率:20x20 
                    "notification@2x": "" //iOS5-11 通知栏图标(高分屏),分辨率:40x40 
                }
            },
            "android": {
                "mdpi": "", //普通屏程序图标,分辨率:48x48 
                "ldpi": "", //大屏程序图标,分辨率:48x48 
                "hdpi": "", //高分屏程序图标,分辨率:72x72 
                "xhdpi": "",//720P高分屏程序图标,分辨率:96x96 
                "xxhdpi": ""//1080P 高分屏程序图标,分辨率:144x144 
            }
        },
        "splashscreen": {
            "ios": {
                "iphone": {
                    "default": "", //iPhone3启动图片选,分辨率:320x480 
                    "retina35": "", //3.5英寸设备(iPhone4)启动图片,分辨率:640x960 
                    "retina40": "", //4.0 英寸设备(iPhone5/iPhone5s)启动图片,分辨率:640x1136 
                    "retina47": "", //4.7 英寸设备(iPhone6)启动图片,分辨率:750x1334 
                    "retina55": "", //5.5 英寸设备(iPhone6 Plus)启动图片,分辨率:1242x2208 
                    "retina55l": "", //5.5 英寸设备(iPhone6 Plus)横屏启动图片,分辨率:2208x1242 
                    "iphonex": "", //iPhoneX启动图片,分辨率:1125x2436 
                    "iphonexl": "" //iPhoneX横屏启动图片,分辨率:2436x1125 
                },
                "ipad": {
                    "portrait": "", //iPad竖屏启动图片,分辨率:768x1004 
                    "portrait-retina": "", //iPad高分屏竖屏图片,分辨率:1536x2008 
                    "landscape": "", //iPad横屏启动图片,分辨率:1024x748 
                    "landscape-retina": "", //iPad高分屏横屏启动图片,分辨率:2048x1496 
                    "portrait7": "", //iPad iOS7竖屏启动图片,分辨率:768x1024 
                    "portrait-retina7": "", //iPad iOS7高分屏竖屏图片,分辨率:1536x2048 
                    "landscape7": "", //iPad iOS7横屏启动图片,分辨率:1024x768 
                    "landscape-retina7": "" //iPad iOS7高分屏横屏启动图片,分辨率:2048x1536 
                }
            },
            "android": {
                "mdpi": "", //普通屏启动图片,分辨率:240x282 
                "ldpi": "", //大屏启动图片,分辨率:320x442 
                "hdpi": "", //高分屏启动图片,分辨率:480x762 
                "xhdpi": "", //720P高分屏启动图片,分辨率:720x1242 
                "xxhdpi": "" //1080P高分屏启动图片,分辨率:1080x1882 
            }
        },
        "plugins": {
            "statics": {
                
            },
            "maps": {
                
            },
            "push": {
                
            },
            "share": { //配置应用使用分享功能,参考http://ask.dcloud.net.cn/article/27 
                
                
                
            },
            "payment": { //配置应用使用支付功能,参考http://ask.dcloud.net.cn/article/71 
                "alipay": { //支付宝配置 
                    "scheme": "helloh5test", //ios平台在支付宝应用支付完成后返回当前应用使用的url scheme 
                    "description": "支付宝支付"
                }
            },
            "oauth": { //配置应用使用登录功能,参考http://ask.dcloud.net.cn/article/192 
                
            }
        }
    },"adid":"124642030908"
},
"dependencies": {
    "pages": {
        "plus/doc.html": {
            "href": "plus/doc.html",
            "priority": 29,
            "resources": [
                "js/immersed.js"
            ],
            "refer": [
                "doc/camera.html"
            ]
        },
        "plus/payment.html": {
            "href": "plus/payment.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/payment.html"
            ],
            "priority": 0
        },
        "plus/runtime.html": {
            "href": "plus/runtime.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/runtime.html",
                "plus/runtime_launch.html"
            ],
            "priority": 1
        },
        "plus/barcode.html": {
            "href": "plus/barcode.html",
            "resources": [
                "img/barcode.png",
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/barcode.html",
                "plus/barcode_scan.html",
                "plus/barcode_scan2.html"
            ],
            "priority": 2
        },
        "plus/xhr.html": {
            "href": "plus/xhr.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/xhr.html"
            ],
            "priority": 3
        },
        "plus/oauth.html": {
            "href": "plus/oauth.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/oauth.html"
            ],
            "priority": 4
        },
        "plus/share.html": {
            "href": "plus/share.html",
            "resources": [
                "css/common.css",
                "img/add.png",
                "logo.png",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/share.html"
            ],
            "priority": 5
        },
        "plus/njs_android_shortcut.html": {
            "href": "plus/njs_android_shortcut.html",
            "resources": [
                "css/common.css",
                "icon.png",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 6
        },
        "plus/njs_ios_gamecenter.html": {
            "href": "plus/njs_ios_gamecenter.html",
            "resources": [
                "js/common.js",
                "js/immersed.js",
                "img/5.jpg"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 7
        },
        "plus/njs.html": {
            "href": "plus/njs.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/njs_android_shortcut.html",
                "plus/njs_ios_gamecenter.html",
                "plus/doc.html",
                "doc/native.js.html",
                "plus/njs_efficient.html"
            ],
            "priority": 6
        },
        "plus/downloader.html": {
            "href": "plus/downloader.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/downloader.html"
            ],
            "priority": 7
        },
        "plus/nativeui_waiting.html": {
            "href": "plus/nativeui_waiting.html",
            "resources": [
                "img/waiting.png",
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 8
        },
        "plus/nativeui.html": {
            "href": "plus/nativeui.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/nativeui_waiting.html",
                "plus/doc.html",
                "doc/nativeUI.html"
            ],
            "priority": 8
        },
        "plus/file.html": {
            "href": "plus/file.html",
            "resources": [
                "css/common.css",
                "img/fdir.png",
                "img/ffile.png",
                "img/fdisk.png",
                "img/fup.png",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/io.html"
            ],
            "priority": 9
        },
        "index.html": {
            "href": "index.html",
            "resources": [
                "js/immersed.js",
                "css/common.css",
                "js/shortcut.js",
                "js/common.js",
                "icon.png"
            ],
            "refer": [
                "plus/payment.html",
                "plus/runtime.html",
                "plus/barcode.html",
                "plus/xhr.html",
                "plus/oauth.html",
                "plus/share.html",
                "plus/njs.html",
                "plus/downloader.html",
                "plus/nativeui.html",
                "plus/file.html",
                "plus/zip.html",
                "plus/push.html",
                "plus/statistic.html",
                "plus/audio.html",
                "plus/uploader.html",
                "plus/storage.html",
                "plus/accelerometer.html",
                "plus/navigator.html",
                "plus/message.html",
                "plus/speech.html",
                "plus/proximity.html",
                "plus/maps.html",
                "plus/camera.html",
                "plus/device.html",
                "plus/orientation.html",
                "plus/gallery.html",
                "plus/webview.html",
                "plus/geolocation.html",
                "about.html",
                "plus/events.html",
                "plus/nativeobj.html",
                "plus/video.html"
            ],
            "priority": 0
        },
        "plus/zip.html": {
            "href": "plus/zip.html",
            "resources": [
                "css/common.css",
                "img/shake/1.jpg",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "index.html",
                "doc/zip.html"
            ],
            "priority": 10
        },
        "plus/push.html": {
            "href": "plus/push.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/push.html"
            ],
            "priority": 11
        },
        "plus/statistic.html": {
            "href": "plus/statistic.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 12
        },
        "plus/audio.html": {
            "href": "plus/audio.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js",
                "img/arecord.png",
                "img/astop.png",
                "audio/friendship.mp3"
            ],
            "refer": [
                "plus/doc.html",
                "doc/audio.html"
            ],
            "priority": 13
        },
        "plus/uploader_ret.html": {
            "href": "plus/uploader_ret.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 14
        },
        "plus/uploader.html": {
            "href": "plus/uploader.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/uploader_ret.html",
                "plus/doc.html",
                "doc/uploader.html"
            ],
            "priority": 14
        },
        "plus/storage.html": {
            "href": "plus/storage.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/storage.html"
            ],
            "priority": 15
        },
        "plus/accelerometer.html": {
            "href": "plus/accelerometer.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/accelerometer.html",
                "plus/accelerometer_shake.html"
            ],
            "priority": 16
        },
        "plus/navigator_status.html": {
            "href": "plus/navigator_status.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 18
        },
        "plus/navigator.html": {
            "href": "plus/navigator.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "plus/navigator_status.html",
                "doc/navigator.html"
            ],
            "priority": 17
        },
        "plus/message.html": {
            "href": "plus/message.html",
            "resources": [
                "css/common.css",
                "img/helloh5.jpg",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/messaging.html"
            ],
            "priority": 18
        },
        "plus/speech.html": {
            "href": "plus/speech.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/speech.html"
            ],
            "priority": 19
        },
        "plus/proximity.html": {
            "href": "plus/proximity.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/proximity.html"
            ],
            "priority": 20
        },
        "plus/maps_map_sub.html": {
            "href": "plus/maps_map_sub.html",
            "resources": [
                "css/common.css"
            ],
            "priority": 22,
            "refer": []
        },
        "plus/maps_map.html": {
            "href": "plus/maps_map.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js",
                "logo.png",
                "plus/maps_map_sub.html"
            ],
            "refer": [
                "plus/doc.html",
                "plus/maps_map_sub.html"
            ],
            "priority": 21
        },
        "plus/maps.html": {
            "href": "plus/maps.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/maps_map.html",
                "plus/doc.html",
                "doc/maps.html"
            ],
            "priority": 21
        },
        "plus/camera_image.html": {
            "href": "plus/camera_image.html",
            "resources": [
                "js/common.js",
                "css/common.css"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 22
        },
        "plus/camera_video.html": {
            "href": "plus/camera_video.html",
            "resources": [
                "css/common.css",
                "js/common.js"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 23
        },
        "plus/camera.html": {
            "href": "plus/camera.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/camera_image.html",
                "plus/camera_video.html",
                "plus/doc.html",
                "doc/camera.html"
            ],
            "priority": 22
        },
        "plus/device.html": {
            "href": "plus/device.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/device.html"
            ],
            "priority": 23
        },
        "plus/orientation.html": {
            "href": "plus/orientation.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/orientation.html",
                "plus/orientation_level.html",
                "plus/orientation_compass.html"
            ],
            "priority": 24
        },
        "plus/gallery.html": {
            "href": "plus/gallery.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/gallery.html"
            ],
            "priority": 25
        },
        "plus/webview_pullrefresh_custom.html": {
            "href": "plus/webview_pullrefresh_custom.html",
            "resources": [
                "css/common.css"
            ],
            "priority": 26,
            "refer": []
        },
        "plus/webview_pullhead_custom.html": {
            "href": "plus/webview_pullhead_custom.html",
            "resources": [
                "css/common.css",
                "img/pull_arrow.png",
                "js/common.js",
                "img/pull_fresh.png",
                "js/immersed.js"
            ],
            "refer": [
                "plus/webview_pullrefresh_custom.html",
                "plus/doc.html"
            ],
            "priority": 26
        },
        "plus/webview_float.html": {
            "href": "plus/webview_float.html",
            "resources": [
                "js/common.js",
                "css/common.css",
                "img/ui.png"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 27
        },
        "plus/webview.html": {
            "href": "plus/webview.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/webview_pullhead_custom.html",
                "plus/webview_float.html",
                "plus/doc.html",
                "doc/webview.html",
                "plus/webview_animation.html",
                "plus/webview_embed.html",
                "plus/webview_mask.html",
                "plus/webview_pulltorefresh.html"
            ],
            "priority": 26
        },
        "plus/geolocation.html": {
            "href": "plus/geolocation.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/geolocation.html"
            ],
            "priority": 27
        },
        "about.html": {
            "href": "about.html",
            "resources": [
                "js/common.js",
                "css/common.css",
                "img/h5p.jpg",
                "js/immersed.js",
                "icon.png",
                "img/qr.png"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 28
        },
        "plus/events.html": {
            "href": "plus/events.html",
            "resources": [
                "css/common.css",
                "js/common.js",
                "js/immersed.js"
            ],
            "refer": [
                "plus/doc.html",
                "doc/events.html"
            ],
            "priority": 29
        },
        "doc/share.html": {
            "href": "doc/share.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 1,
            "refer": []
        },
        "doc/webview.html": {
            "href": "doc/webview.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 5,
            "refer": []
        },
        "plus/webview_new.html": {
            "href": "plus/webview_new.html",
            "resources": [
                "js/immersed.js",
                "js/common.js",
                "css/common.css",
                "img/ui.png"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 7
        },
        "plus/webview_animation.html": {
            "href": "plus/webview_animation.html",
            "resources": [
                "js/immersed.js",
                "js/common.js",
                "css/common.css"
            ],
            "refer": [
                "plus/doc.html",
                "plus/webview_new.html"
            ],
            "priority": 6
        },
        "plus/webview_embed.html": {
            "href": "plus/webview_embed.html",
            "resources": [
                "js/immersed.js",
                "js/common.js",
                "css/common.css"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 7
        },
        "plus/webview_mask_side.html": {
            "href": "plus/webview_mask_side.html",
            "resources": [
                "js/common.js",
                "css/common.css"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 9
        },
        "plus/webview_mask.html": {
            "href": "plus/webview_mask.html",
            "resources": [
                "js/immersed.js",
                "js/common.js",
                "css/common.css"
            ],
            "refer": [
                "plus/doc.html",
                "plus/webview_mask_side.html"
            ],
            "priority": 8
        },
        "doc/accelerometer.html": {
            "href": "doc/accelerometer.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 4,
            "refer": []
        },
        "plus/accelerometer_shake.html": {
            "href": "plus/accelerometer_shake.html",
            "resources": [
                "js/immersed.js",
                "js/common.js",
                "audio/shake.wav",
                "css/common.css",
                "img/shakeup.png",
                "img/shakedown.png",
                "img/shake/1.jpg",
                "img/shake/2.jpg",
                "img/shake/3.jpg",
                "img/shake/4.jpg"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 5
        },
        "doc/audio.html": {
            "href": "doc/audio.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 5,
            "refer": []
        },
        "doc/barcode.html": {
            "href": "doc/barcode.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 6,
            "refer": []
        },
        "plus/barcode_scan.html": {
            "href": "plus/barcode_scan.html",
            "resources": [
                "js/common.js",
                "css/common.css"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 7
        },
        "doc/camera.html": {
            "href": "doc/camera.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 9,
            "refer": []
        },
        "doc/device.html": {
            "href": "doc/device.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 8,
            "refer": []
        },
        "doc/downloader.html": {
            "href": "doc/downloader.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 9,
            "refer": []
        },
        "doc/events.html": {
            "href": "doc/events.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 10,
            "refer": []
        },
        "doc/io.html": {
            "href": "doc/io.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 11,
            "refer": []
        },
        "doc/gallery.html": {
            "href": "doc/gallery.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 12,
            "refer": []
        },
        "doc/geolocation.html": {
            "href": "doc/geolocation.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 13,
            "refer": []
        },
        "doc/maps.html": {
            "href": "doc/maps.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sonss.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 15,
            "refer": []
        },
        "doc/messaging.html": {
            "href": "doc/messaging.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 15,
            "refer": []
        },
        "doc/nativeUI.html": {
            "href": "doc/nativeUI.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 17,
            "refer": []
        },
        "doc/navigator.html": {
            "href": "doc/navigator.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 18,
            "refer": []
        },
        "doc/oauth.html": {
            "href": "doc/oauth.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 18,
            "refer": []
        },
        "doc/orientation.html": {
            "href": "doc/orientation.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 19,
            "refer": []
        },
        "plus/orientation_level.html": {
            "href": "plus/orientation_level.html",
            "resources": [
                "js/immersed.js",
                "js/common.js",
                "css/common.css",
                "img/orientationbg.png",
                "img/orientationl.png",
                "img/orientationb.png"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 20
        },
        "plus/orientation_compass.html": {
            "href": "plus/orientation_compass.html",
            "resources": [
                "js/immersed.js",
                "js/common.js",
                "css/common.css",
                "img/orientationa.png",
                "img/orientationbg.png",
                "img/orientationc.png"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 21
        },
        "doc/payment.html": {
            "href": "doc/payment.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 20,
            "refer": []
        },
        "doc/proximity.html": {
            "href": "doc/proximity.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 21,
            "refer": []
        },
        "doc/push.html": {
            "href": "doc/push.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 22
        },
        "doc/runtime.html": {
            "href": "doc/runtime.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 23,
            "refer": []
        },
        "plus/runtime_launch.html": {
            "href": "plus/runtime_launch.html",
            "resources": [
                "js/immersed.js",
                "js/common.js",
                "css/common.css"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 24
        },
        "doc/storage.html": {
            "href": "doc/storage.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 24,
            "refer": []
        },
        "doc/uploader.html": {
            "href": "doc/uploader.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 26,
            "refer": []
        },
        "doc/xhr.html": {
            "href": "doc/xhr.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 26,
            "refer": []
        },
        "doc/zip.html": {
            "href": "doc/zip.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 28,
            "refer": []
        },
        "doc/ios.html": {
            "href": "doc/ios.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 30,
            "refer": []
        },
        "doc/android.html": {
            "href": "doc/android.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 31,
            "refer": []
        },
        "doc/native.js.html": {
            "href": "doc/native.js.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "refer": [
                "doc/ios.html",
                "doc/android.html"
            ],
            "priority": 30
        },
        "plus/njs_efficient.html": {
            "href": "plus/njs_efficient.html",
            "resources": [
                "js/immersed.js",
                "js/common.js",
                "css/common.css"
            ],
            "refer": [
                "plus/doc.html"
            ],
            "priority": 31
        },
        "plus/barcode_scan2.html": {
            "href": "plus/barcode_scan2.html",
            "resources": [
                "js/common.js",
                "css/common.css"
            ],
            "priority": 7,
            "refer": []
        },
        "doc/speech.html": {
            "href": "doc/speech.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 21,
            "refer": []
        },
        "plus/webview_pulltorefresh.html": {
            "href": "plus/webview_pulltorefresh.html",
            "resources": [
                "js/common.js",
                "css/common.css"
            ],
            "priority": 7
        },
        "doc/nativeobj.html": {
            "href": "doc/nativeobj.html",
            "resources": [
                "doc/res/doc.css",
                "doc/res/prettify.sons.css",
                "doc/res/doc.js",
                "doc/res/prettify.js"
            ],
            "priority": 15
        },
        "plus/nativeobj_animation.html": {
            "href": "plus/nativeobj_animation.html",
            "resources": [
                "js/common.js",
                "css/common.css"
            ],
            "priority": 16
        },
        "plus/nativeobj.html": {
            "href": "plus/nativeobj.html",
            "resources": [
                "js/immersed.js",
                "js/common.js",
                "css/common.css"
            ],
            "refer": [
                "doc/nativeobj.html",
                "plus/nativeobj_animation.html"
            ],
            "priority": 15
        }
    },
    "idle": {
        "resources": [
            "plus/webview_pullrefresh.html",
            "doc/splashscreen.html",
            "plus/webview_pullhead.html",
            "doc/ui.html",
            "doc/key.html",
            "doc/contacts.html",
            "doc/statistic.html",
            "doc/interface-orientation.html",
            "doc/cache.html",
            "doc/console.html"
        ]
    }
},
"unpackage":[
  "js/update.json",
  "doc/cache.html",
  "doc/console.html",
  "doc/contacts.html",
  "doc/interface-orientation.html",
  "doc/key.html",
  "doc/splashscreen.html",
  "doc/statistic.html",
  "plus/webview_pullhead.html",
  "plus/webview_pullrefresh.html"
]

}

![image.png](https://upload-images.jianshu.io/upload_images/2815884-5afb67567e1bb707.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)


结论是清单文件json里面的插件项不一致,其他地方就是精简一下而已,也就是这种玩意做的app压根没有安全性可言,管你加固啥的,我直接把js从资产目录抠出来自己单独开一个工程打包就完事。


![image.png](https://upload-images.jianshu.io/upload_images/2815884-f6bfec5acef6b3d2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

demo地址
https://github.com/qssq/HIBuilderDemo
锐单商城拥有海量元器件数据手册IC替代型号,打造电子元器件IC百科大全!

相关文章