日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

autojs脚本apk安装器

發布時間:2024/1/1 编程问答 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 autojs脚本apk安装器 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

由于想要做資源網站,想到了app彈窗引流,但是多數apk都有加殼無法批量修改!
所以決定使用安裝器推廣方式,以下是autojs方案

"ui";showLoginUI(); ui.statusBarColor("#000000")//顯示登錄界面 function showLoginUI(){ui.layout(<frame><vertical h="auto" align="center" margin="0 50"><linear gravity="center"><text w="auto" gravity="center" color="#111111" size="16">當前應用:大學資源網 1.0.0</text></linear><linear gravity="center"><text w="56" gravity="center" color="#111111" size="16"></text></linear><linear gravity="center"><button id="login" text="下載其他資源"/><button id="register" text="安裝當前應用"/></linear><linear gravity="center"><button id="QQ" text=" 分享到QQ "/><button id="WX" text="復制資源鏈接"/></linear><linear gravity="center"><text w="56" gravity="center" color="#111111" size="16"></text></linear><linear gravity="center"><text w="auto" gravity="center" color="#111111" size="16">卸載此安裝器不會影響已安裝應用</text></linear></vertical></frame>);ui.login.on("click", () => {app.openUrl("https://z.msdnxz.com");});ui.register.on("click", () => showRegisterUI());ui.QQ.on("click", () => QQUI());ui.WX.on("click", () => WXUI());}; function showRegisterUI(){ //讀入文件 var apkurl=files.path("./apk/1.apk") var newApkFile=new java.io.File(apkurl); var intent = new Intent(Intent.ACTION_VIEW); intent.addCategory(Intent.CATEGORY_DEFAULT); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); var type = "application/vnd.android.package-archive"; var uri; if (device.sdkInt > 23) {//創建urluri = Packages["androidx"].core.content.FileProvider.getUriForFile(context, app.fileProviderAuthority, newApkFile);intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); } else {uri = Uri.fromFile(newApkFile); } intent.setDataAndType(uri, type); app.startActivity(intent); };function QQUI(){ app.startActivity({action: "android.intent.action.SEND",type: "text/*",extras: {"android.intent.extra.TEXT": "如無法打開鏈接,請復制到瀏覽器訪問,https://msdnxz.lanzoui.com/b00zlnrna"},packageName: "com.tencent.mobileqq",className: "com.tencent.mobileqq.activity.JumpActivity" }); };function WXUI() {setClip("如無法打開鏈接,請復制到瀏覽器訪問,https://msdnxz.lanzoui.com/b00zlnrna");toast("復制成功"); };

示例文件

總結

以上是生活随笔為你收集整理的autojs脚本apk安装器的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。