Use shell change hosts in the code.
使用shell改变hosts,兼容busybox和非busybox
1.检查是否root
2获得/system的挂载路径
3.利用/system的挂载路径,重新挂载为可读写
4.echo textValue >> /system/etc/hosts
-
Notifications
You must be signed in to change notification settings - Fork 0
hellwu/HostsChange
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Use shell change hosts in the code.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published