2018年3月19日 星期一

android ignore imgdiff

when build system image (target command "systemimage") got the shit message:
"failed to break apart source image"
fuck it!

modify the code to ignore this idiot work:
"bootable/recovery/applypatch/imgdiff.cpp"
int main(int argc, char** argv) {
   int zip_mode = 0;
+   return 0; //return "success" direct, don't do anything stupid.
...
}

I don't know why added garbage work here, may guess CPU toooo fast? fuck..


2018年3月14日 星期三

wpa_supplicant assign MAC address

參考
這是指定 AP MAC address 的做法. 這種場合是你不能設定 AP 名稱, AP 的 2.4Ghz / 5Ghz 都用一樣的 SSID, 或你只需要連上某個特定的 AP 時, 就需要這樣做:
FILE /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
ap_scan=1

network={
        bssid=00:50:17:31:1a:11
        ssid="YourSSID"
        psk="your-secret-key"
        scan_ssid=1
        proto=RSN
        key_mgmt=WPA-PSK
        group=CCMP TKIP
        pairwise=CCMP TKIP
        priority=5
}
題外話. 在這之前台北捷運無線網路不管是車廂內還是站內都用同一個 SSID, 變成座車時只要站內的信號比較強, android 內 wpa_supplicant 就會很雞婆的切換過去, 然後就不能上網了. wpa_supplicant 動作又慢, web browser 動作也慢, 手機 CPU 動作更慢, 等到認證可以連上網時車子已經離站了, 然後你又要再連線一次...
現在有 ".TPE-FGreeADWifi-Car" 這個車廂內專用 SSID 可用, 才解決這個問題.

2018年3月10日 星期六

Windows 10 update

〔Win〕+〔R〕並輸入「gpedit.msc」後再按下〔確定〕鈕。 進入了「群組原則編輯器」畫面後,請展開左邊「電腦設定」→「系統管理範本」→「 Windows元件」→「Windows Update」,並點選兩下右邊的「設定自動更新」。 預設值是「尚未設定」,請點選「已啟用」後在選項上指定2或4
來源

Win+R -> gpedit.msc -> LocalComputerPolicy->ComputerConfiguration->AdministrativeTemplates-> WindowsComponents->WindowsUpdate->ConfigureAutomaticUpdates->Enable->Select 2

在噓你機器上有確定要手動按才會更新,暫時不會亂搞了。

update 2018/05/01: 功能更新 (RS4) 不會擋, 看來必需要有更強制的手段