ãã½ã³ã³ç¡ãã§ãADBã使ããããã«ããã
érootã§ãPCã«æ¥ç¶ãã¦adbã³ãã³ãã使ããã¨ã§ãããã³ã¢ç«¯æ«ã§MVNOã使ãå ´åã®ãã¶ãªã³ã°åé¡ã®è§£æ±ºãããä¸è¦ãªãã£ãªã¢ã¢ããªã®åæ¢ï¼åçµããã§ããããã«ãªã£ããã¨ãããã®ããã°ã§ãå ¬éããã¦ãã¾ãã
ä»åã¯ãåºå
ãªã©ã§PCãç¡ãã¨ããã§ã端æ«ã ãã§ãããã®è¨å®å¤æ´ãã§ããããã«ããæ¹æ³ã§ãã
ã¾ãã¯terminal emulatorã¨ããã¢ããªãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãããã®ã¢ããªã使ãã°ãã¼ãã¼ãããå ¥åããã³ãã³ããå®è¡ã§ããããã«ãªãã¾ãã
"pm block ããã±ã¼ã¸å"ã¨ããã®ãããã±ã¼ã¸ãç¡å¹åããã³ãã³ãã§ãããçµæã¯Killedã¨åºåããã¦ãã¾ããããã¯ã³ãã³ãããå¼ãã§ãããµãã³ãã³ãã«å®è¡æ¨©éãç¡ãããã·ã¹ãã ã«ãã£ã¦åæ¢ããã¦å¤±æãããã¨ãæå³ãã¦ãã¾ãã
ã¤ã¾ããã¿ã¼ããã«ã¨ãã¥ã¬ã¼ã¿ããã®ç´æ¥å®è¡ã§ã¯PCã§ç¹ãã§adbãå®è¡ããæã®ãããªæ¨©éãå¾ãããªãã¨ããããã§ããã
ã§ããadb ããããã¯ã¼ã¯çµç±ã§èªåèªèº«ã«ç¹ããã¨ãã§ãã¾ããããããã°PCã«ç¹ãã å ´åã¨åæ§ã®æ¨©éã使ããããã«ãªãã®ã§ãã
PCã§ã®æºå
PCã§adbãå®è¡ã§ããããã«ãã¦ãããUSBã±ã¼ãã«ã§ç«¯æ«ãç¹ãã¾ãã
"adb tcpip 5555"ã¨ããã®ã5555çªãã¼ãã使ã£ã¦ãããã¯ã¼ã¯æ¥ç¶ãå¾
ã¦ã¨ããå½ä»¤ã§ãã
PCã®ã³ãã³ãããã³ããã§ä¸ã«ããããã«å®è¡ãããã¨ãUSBã±ã¼ãã«ãæãã¾ãã
ããã¾ã§æ¸ã¾ãã¦ããã°ããã¨ã¯ç«¯æ«ã ãã§ã§ãã¾ãã
端æ«å´ã§ã®è¨å®
端æ«ã®ã¿ã¼ããã«ã¨ãã¥ã¬ã¼ã¿ã使ã£ã¦ããããã¯ã¼ã¯çµç±ã§èªåèªèº«ãadbæ¥ç¶ãã¾ããï¼127.0.0.1ã¨ããã®ãèªåèªèº«ã®ãããã¯ã¼ã¯ã¢ãã¬ã¹ã§ãã127.0.0.1ã®ä»£ããã«localhostã¨æ¸ãã¦ãåãã§ãï¼
åãã¦æ¥ç¶ããå ´åãUSBãããã°ã許å¯ãããã©ããã®ãã¤ã¢ãã°ãåºãã®ã§ãããã®ãã½ã³ã³ããã®USBãããã°ã常ã«è¨±å¯ãããã«ãã§ãã¯ãå
¥ãã¦OKãã¿ãããã¾ãã
adb device ãå®è¡ãã¦æ¥ç¶ã§ãã¦ããã確èªãã¾ãããã
端æ«å´ã§ã®å®è¡
ä»åº¦ã¯ã³ãã³ãã®åã«"adb shell"ãä»ãã¦ãæåã®ã³ãã³ããå®è¡ãã¦ã¿ã¾ãããã
ä»åº¦ã¯"new blocked state: true"ã¨ãªãã¾ãããæåã§ããï¼
çµãã£ããã"adb disconnect" ããããã¨ã§adbã®æ¥ç¶ãçµäºãã¾ãã
å¿ç¨
PCã§ä¸æ¬å®è¡ããã®ã¨åãããã«ã端æ«ã ãã§ãä¸æ¬å®è¡ãã§ãã¾ãã
ä¾ãã°ã
adb shell pm block com.android.contacts adb shell pm block com.android.dialer adb shell pm block com.mcafee.android.scanservice
ã®ãããªãã¡ã¤ã«ãä½ã£ã¦ããã¦ç«¯æ«ã®Downloadãã©ã«ãã«ç½®ãã¦ããã¦å®è¡ãã¦ã¿ã¾ãããã
"sh ãã¡ã¤ã«å"ã¨ãããã¨ã§Windowsã®batãã¡ã¤ã«ã®ããã«é£ç¶ã§ä¸èº«ã®ã³ãã³ããå®è¡ãããã¨ãã§ãã¾ãã
"new blocked .." ã®è¡ãï¼ã¤åºåããã¦ããã®ã§ï¼ã¤ã¨ãæ£ããå®è¡ããããã¨ããããã¾ãã(trueã®å¾ã«actsãerãããã®ã¯è¡¨è¨ä¸ã®ã´ãã§ããï½ï¼
注æ
ã¡ãªã¿ã«ãä»åã®æ¹æ³ã¯åèµ·åãé»æºOFFããã¨ç¡å¹ã«ãªã£ã¦ãã¾ãã¾ãããã®å ´åã«ã¯ãããä¸åº¦PCã«ç¹ãã§æåã®è¨å®ããããã¨ã§æå¹ã«ãªãã¾ãã
ã§ã¯ãã¾ãã