You are reading a single comment by @myxor and its replies. Click here to read the full conversation.
  • I grabbed a new backup from the Bangle and greped the files:

    ❯ grep -iRl "isGPSon"
    .boot0
    widgps.wid.js
    android.boot.js
    info.app.js
    
    
    ❯ grep -iR "isGPSon;"
    widgps.wid.js:(ª(){­settings=Object.assign(require('Storage').readJSON("widgps.default.json",´) {},require('Storage').readJSON("widgps.json",´) {});¬interval;¬oldSetGPSPower=Bangle.setGPSPower;Bangle.setGPSPower=ª(on,id){¬isGPSon=oldSetGPSPower(on,id);WIDGETS.gps.width=!isGPSonsettings.hideWhenGpsOff?0:24;Bangle.drawWidgets();«isGPSon;};WIDGETS.gps={area:"tr",width:!Bangle.isGPSOn()settings.hideWhenGpsOff?0:24,draw:ª(){g.reset();£(Bangle.isGPSOn()interval·){interval=setInterval(ª(){WIDGETS.gps.draw(WIDGETS.gps);},10*1000);}¤£(!Bangle.isGPSOn()interval·){clearInterval(interval);interval=·;}£(settings.crossIcon){£(Bangle.isGPSOn()){®gpsObject=Bangle.getGPSFix();£(gpsObjectgpsObject.fix>0){g.setColor("#0F0");}¤{g.setColor("#FD0");}g.drawImage(atob("GBiBAAAAAAAAAAAAAA//8B//+BgYGBgYGBgYGBgYGBgYGBgYGB//+B//+BgYGBgYGBgYGBgYGBgYGBgYGB//+A//8AAAAAAAAAAAAA=="),¯.x,2+¯.y);}¤{£(!settings.hideWhenGpsOff){g.setColor("#888");g.drawImage(atob("GBiBAAAAAAAAAAAAAA//8B//+BgYGBgYGBgYGBgYGBgYGBgYGB//+B//+BgYGBgYGBgYGBgYGBgYGBgYGB//+A//8AAAAAAAAAAAAA=="),¯.x,2+¯.y);}}}¤{£(Bangle.isGPSOn()){®gpsObject=Bangle.getGPSFix();£(gpsObjectgpsObject.fix>0){g.drawImage(atob("GBiBAAAAAAAAAAB+AAD/AAHDgAMAwAcAwAY8YAY8YAY8YAY8YAMAwAMAwAOBwAGBgAHDgADDAABmAAB+AAA8AAAYAAAAAAAAAAAAAA=="),¯.x,2+¯.y);}¤{g.drawImage(atob("GBiBAAAAAAAAAAh+AA3/gA+B4A8AcA+AMAA8GAB+GADnDADDDADDDDDDADBmADB+ABg8ABgYAAwB8A4A8AeB8AH/sAB+EAAAAAAAAA=="),¯.x,2+¯.y);}}¤{£(!settings.hideWhenGpsOff){g.drawImage(atob("GBiBAAAAAAAAAAB+ABj/ABxDgA4AwAcAwAeMYAfEYAbgYAZwYAM4wAMcQAOOAAGHAAHDgADDwABm4AB+cAA8OAAYGAAAAAAAAAAAAA=="),¯.x,2+¯.y);}}}}};})();
    
    
    ❯ grep -iRl "return isGPSon;"
    
    
About

Avatar for myxor @myxor started