背景:在對接一些廠家的時候绍载,需要修改hosts將域名和Host在電視端進(jìn)行設(shè)置校哎,記錄一下
操作如下:
1两波、獲得root權(quán)限:adb root
2、設(shè)置/system為可讀寫:adb remount
3、將hosts文件復(fù)制到PC:adb pull /system/etc/hosts e:/hosts
4雨女、修改PC機上文件
5谚攒、將PC機上文件復(fù)制到手機:adb push e:/hosts /system/etc/hosts
用文本文件將hosts文件打開編輯保存,示例如下
127.0.0.1 localhost
124.xxx.xxx.16 cmcc.launcher.tv
124.xxx.xxx.16 auth.cmcc.launcher.tv
124.xxx.xxx.11 cmcc-appointment.api.tv
124.xxx.xxx.22 epg.vod.api.tv
124.xxx.xxx.16 cmcc.launcher.tv