安心出行——有幾分證據說幾分話

Posted on Thu, Feb 11, 2021 香港政府 時政評論

安心出行又嘈一輪,謠言滿天飛。但我希望大家有幾分證據說幾分話。

因爲個app block咗連線都用得啫係除咗更新感染資料庫之外無需網絡,所以查network而家似乎無拎感染資料庫以外嘅動作;而存取 sd card呢個權限係唔知anroid幾多開始已經唔係可以直接入個path,而係要呼召系統個file picker選擇特定嘅文件夾/文件,選擇之後你當係系統有個media server中間會把真實路徑轉換爲content://開頭嘅url(每次新嘅request條URL都會唔同even同一個file),跟住先可以獲得選擇咗嘅文件/文件夾及其下層嘅讀寫權限。即係話佢要拎你sdcard文件至少你要經由file picker grant一次畀佢 and 你手賤grant咗整個sdcard(所以你睇有啲3rd party嘅music app or file manager app會叫你揀一次sdcard先可以用)。而如果無經由呢個方式grant嘅話,只可以讀寫 /data/data/<app_name>/之下嘅folder。除非你蠢,或者系統有漏洞/後門,否則技術上做唔到啲人吹咩裝咗就把文件全部全自動送中咁可怕。

而擷取執行中程式其實只可以拎自己app嘅其他serivce/task/instance,拎唔到其他App嘅任何資料其實。而佢用應該都可能係睇自己其他啲server/task有無開,有開就唔理,無開要踢着佢咁。

Retrieve Running app permission

Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share your research! Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers.

至於啟動時執行同防休眠,你唔開機執行唔通你想每次用戶每次開機踢着個background service?而防止休眠其實camera 類 / 會員掃描qrcode嘅版面很常見會用來係呢啲特定版面來阻止進入sleep mode(啫係熄mon啊)。

但呢個獲得之後仲要係有關版面埋code先用得嘅。

How do I prevent an Android device from going to sleep programmatically?

Asked How do I prevent an Android device from going to sleep programmatically? prolink007 30.1k 21 21 gold badges 111 111 silver badges 173 173 bronze badges James James 13k 26 26 gold badges 65 65 silver badges 91 91 bronze badges One option is to use a wake lock.