帕米康wifi已经可以实现root 、免流、短信转发、来电提醒 汇总

原创 梦斌讲棋  2021-10-28 13:29 
在今日头条、西瓜视频、抖音和B站搜索“梦斌讲棋”,即可观看站长的象棋实战视频!

帖子集合:
我已经破解帕米康家的wifi正常安装app了http://www.zuanke8.com/thread-8333822-1-1.html

感谢吧友root贴:帕米康随身wifi获取root http://www.zuanke8.com/thread-8337764-1-1.html

帕康wifi已经可以实现免流了:http://www.zuanke8.com/thread-8338597-1-1.html

感谢吧友短信贴:帕米康免费版短信邮件转发http://www.zuanke8.com/thread-8339000-1-1.html

以上几个帖子好好研究下应该就可以实现安装app、root、运行免流脚本和短信转发了,现在我来再出个未接电话短信提醒集合的教程
需要用到tasker 这个软件,需要准备工作看这个:https://www.cnblogs.com/zyc63959 ... chat-by-tasker.html

进入tasker软件后,点右上角小点点-》数据->还原-》用户本地,他会去读目录Tasker/configs/user/backup.xml这个文件,然后选择后会返回软件界面,打tasker右上角的对勾,就实现脚本部署了。具体这个文件怎么获得,见下文:
电脑新建一个文件叫backup.xml把下面的代码复制保存,里面的ID、secret和agentid需要根据上面准备工作去微信获取修改,修改后保存成backup.xml文件,拖到帕米康wifi的/storage/sdcard0/Tasker/configs/user/目录下,就可以了。至此这个wifi就可以满足我的所有需求了。感谢@cloudlose @ ZKB_sky 短信提醒和未接来电提醒转发到微信的效果图可以看这个链接:https://www.aliyundrive.com/s/YFVS7MUG7CK 这样就不会错过来电和短信了。

backup.xml文件的内容:

<TaskerData sr="" dvi="1" tv="5.9.1">
<Profile sr="prof10" ve="2">
<cdate>1630111789065</cdate>
<edate>1630113219207</edate>
<flags>8</flags>
<id>10</id>
<mid0>11</mid0>
<State sr="con0" ve="2">
<code>140</code>
<pin>true</pin>
<Int sr="arg0" val="20"/>
<Int sr="arg1" val="20"/>
</State>
</Profile>
<Profile sr="prof13" ve="2">
<cdate>1578583676691</cdate>
<edate>1630112681421</edate>
<flags>2</flags>
<id>13</id>
<limit>true</limit>
<mid0>11</mid0>
<mid1>12</mid1>
<nme>低电量提醒</nme>
<State sr="con0" ve="2">
<code>140</code>
<pin>true</pin>
<Int sr="arg0" val="94"/>
<Int sr="arg1" val="94"/>
</State>
<Time sr="con1">
<fh>0</fh>
<fm>0</fm>
<th>23</th>
<tm>59</tm>
</Time>
</Profile>
<Profile sr="prof2" ve="2">
<cdate>1578519993189</cdate>
<edate>1603030110104</edate>
<flags>10</flags>
<id>2</id>
<mid0>3</mid0>
<Event sr="con0" ve="2">
<code>7</code>
<pri>0</pri>
<Int sr="arg0" val="0"/>
<Str sr="arg1" ve="3"/>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
</Event>
</Profile>
<Profile sr="prof25" ve="2">
<cdate>1578731857781</cdate>
<edate>1630110609484</edate>
<flags>10</flags>
<id>25</id>
<mid0>26</mid0>
<Event sr="con0" ve="2">
<code>205</code>
</Event>
</Profile>
<Profile sr="prof5" ve="2">
<cdate>1603030125164</cdate>
<edate>1603030422043</edate>
<flags>10</flags>
<id>5</id>
<mid0>8</mid0>
<Event sr="con0" ve="2">
<code>7</code>
<pri>0</pri>
<Int sr="arg0" val="0"/>
<Str sr="arg1" ve="3"/>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
</Event>
</Profile>
<Profile sr="prof6" ve="2">
<cdate>1578580915569</cdate>
<edate>1603030441006</edate>
<flags>10</flags>
<id>6</id>
<mid0>7</mid0>
<Event sr="con0" ve="2">
<code>2003</code>
<Str sr="arg0" ve="3"/>
</Event>
</Profile>
<Project sr="proj0" ve="2">
<cdate>1578519943273</cdate>
<mdate>1630111789065</mdate>
<name>基底</name>
<pids>2,6,13,25,5,10</pids>
<tids>3,4,7,11,26,8</tids>
<Img sr="icon" ve="2">
<nme>mw_action_home</nme>
</Img>
</Project>
<Task sr="task11">
<cdate>1383532990377</cdate>
<edate>1630112415278</edate>
<id>11</id>
<nme>提示电量</nme>
<Action sr="act0" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var ID = "xxxxxxxxxxxxxxxxxxxxxxx";//此处按tasker网址教程去企业微信获取
var SECRET = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";//此处去企业微信获取
var AGENTID = "1000002";//此处去企业微信获取

//定义post方法
function posthttp(url, data) {
var xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
flash(this.responseText); //显示返回消息,可删除本行
}
});
xhr.open("POST", url, false);
xhr.send(data);
return xhr.responseText;
}

//定义get方法
function gethttp(url) {
var xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
flash(this.responseText); //显示返回消息,可删除本行
}
});
xhr.open("GET", url, false);
xhr.send();
return xhr.responseText;
}

//获取token
var gettoken = "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=" + ID + "&amp;corpsecret=" + SECRET;
var ACCESS_TOKEN = JSON.parse(gethttp(gettoken)).access_token;

//发送消息(文本)
var SMSRF = global('SMSRF');
var SMSRB = global('SMSRB');
var SMSRT = global('SMSRT');
var SMSRD = global('SMSRD');
var CONTENT ="honor 8 电量不足20%! " +"\n\nFrom honor 8 " + "\n时间: " + SMSRT + ", 日期: " + SMSRD;
var message = JSON.stringify({
"touser": "@all",
"msgtype": "text",
"agentid": AGENTID,
"text": {
"content": CONTENT
},
"safe": 0
});
var send = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=" + ACCESS_TOKEN;
posthttp(send, message);</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="45"/>
</Action>
</Task>
<Task sr="task12">
<cdate>1399811562867</cdate>
<edate>1603032070699</edate>
<id>12</id>
<pri>1006</pri>
<Action sr="act0" ve="7">
<code>137</code>
<Int sr="arg0" val="0"/>
<Str sr="arg1" ve="3">提示电量</Str>
</Action>
</Task>
<Task sr="task26">
<cdate>1578731870755</cdate>
<edate>1630110609484</edate>
<id>26</id>
<nme>电量充满转发微信</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var ID = "xxxxxxxxxxxxxxxxxx";//此处去企业微信获取
var SECRET = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";//此处去企业微信获取
var AGENTID = "1000002";//此处去企业微信获取

//定义post方法
function posthttp(url, data) {
var xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
flash(this.responseText); //显示返回消息,可删除本行
}
});
xhr.open("POST", url, false);
xhr.send(data);
return xhr.responseText;
}

//定义get方法
function gethttp(url) {
var xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
flash(this.responseText); //显示返回消息,可删除本行
}
});
xhr.open("GET", url, false);
xhr.send();
return xhr.responseText;
}

//获取token
var gettoken = "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=" + ID + "&amp;corpsecret=" + SECRET;
var ACCESS_TOKEN = JSON.parse(gethttp(gettoken)).access_token;

//发送消息(文本)
var SMSRF = global('SMSRF');
var SMSRB = global('SMSRB');
var SMSRT = global('SMSRT');
var SMSRD = global('SMSRD');
var CONTENT ="honor 8 电量已充满! " +"\n\nFrom honor 8 " + "\n时间: " + SMSRT + ", 日期: " + SMSRD;
var message = JSON.stringify({
"touser": "@all",
"msgtype": "text",
"agentid": AGENTID,
"text": {
"content": CONTENT
},
"safe": 0
});
var send = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=" + ACCESS_TOKEN;
posthttp(send, message);</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="45"/>
</Action>
</Task>
<Task sr="task3">
<cdate>1578520008320</cdate>
<edate>1603030110104</edate>
<id>3</id>
<nme>1774短信转发</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>129</code>
<se>false</se>
<Str sr="arg0" ve="3">var ID = "xxxxxxxxxxxxxxxxxxx";//此处去企业微信获取
var SECRET = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";//此处去企业微信获取
var AGENTID = "xxxxxxxxxxx";此处去企业微信获取

//定义post方法
function posthttp(url, data) {
var xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
flash(this.responseText); //显示返回消息,可删除本行
}
});
xhr.open("POST", url, false);
xhr.send(data);
return xhr.responseText;
}

//定义get方法
function gethttp(url) {
var xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
flash(this.responseText); //显示返回消息,可删除本行
}
});
xhr.open("GET", url, false);
xhr.send();
return xhr.responseText;
}

//获取token
var gettoken = "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=" + ID + "&amp;corpsecret=" + SECRET;
var ACCESS_TOKEN = JSON.parse(gethttp(gettoken)).access_token;

//发送消息(文本)
var SMSRF = global('SMSRF');
var SMSRB = global('SMSRB');
var SMSRT = global('SMSRT');
var SMSRD = global('SMSRD');
var CONTENT ="honor 8短信: " +SMSRB+"\n\nFrom honor 8-发件人: " + SMSRF + "\n时间: " + SMSRT + ", 日期: " + SMSRD;
var message = JSON.stringify({
"touser": "@all",
"msgtype": "text",
"agentid": AGENTID,
"text": {
"content": CONTENT
},
"safe": 0
});
var send = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=" + ACCESS_TOKEN;
posthttp(send, message);</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="45"/>
</Action>
</Task>
<Task sr="task4">
<cdate>1578523000034</cdate>
<edate>1578584193471</edate>
<id>4</id>
<nme>转发</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>123</code>
<se>false</se>
<Str sr="arg0" ve="3">adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS</Str>
<Int sr="arg1" val="18"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
</Task>
<Task sr="task7">
<cdate>1578580936436</cdate>
<edate>1603030441006</edate>
<id>7</id>
<nme>未接来电转发微信</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">//下面的三个变量值需要修改来电

var ID = "xxxxxxxxxxxxxxxx";//此处去企业微信获取
var SECRET = "xxxxxxxxxxxxxxxxxxxxxxxxxx";//此处去企业微信获取
var AGENTID = "1000002";//此处去企业微信获取

//定义post方法
function postHttp(url, data) {
var xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange",
function() {
if (this.readyState === 4) {
flash(this.responseText); //显示返回消息,可删除本行
}
});
xhr.open("POST", url, false);
xhr.send(data);
return xhr.responseText;

本文地址:https://shangcenglou.com/34181.html
关注我们:请关注一下我们的微信公众号:扫描二维码上层楼教育-象棋基本功的训练方法的公众号,公众号:heimaoseoer
版权声明:本文为原创文章,版权归 梦斌讲棋 所有,欢迎分享本文,转载请保留出处!

评论已关闭!