wifi连接AP后,在AP端看到的设备名保存在prop属性

net.hostname 中,可以通过getprop net.hostname查看

通过setprop net.hostname修改

默认系统会给一个名字

如果需要自己定义,可以注释掉这一段,然后在system.prop中定义 net.hostname=xxxxxx

需要注意的是hostname不能带空格,不然dhcp那边会有问题

更多相关文章

  1. Android(安卓)自定义View跟随页面切换小圆点
  2. Android中因为没有使用wifi模块 因此:将WIDGETS-->Settings sh...
  3. 【移动开发】Android中各种xml汇总
  4. JNI基础实验一:调用.so文件--友善之臂Tiny210 android 串口/pwm/A
  5. 【Android(安卓)开发教程】经过预定义的查询字符串常量
  6. Android(安卓)API——自定义组件(Custom Components)
  7. 自定义ListView中的分割线
  8. 在android上使用ASCII显示特殊符号
  9. [置顶] 自定义的解压进度条 关于ProgressBar的使用

随机推荐

  1. 下拉列表
  2. Android(安卓)ContextThemeWrapper canno
  3. Android自定义底部显示对话框
  4. Android(安卓)根据源码详细讲解Handler
  5. android中fragment的显示和隐藏
  6. 给android添加系统属性
  7. Android之RxPermissions用kotlin写没反应
  8. Android字体设置
  9. 编译代码报出Android(安卓)library proje
  10. android google map 实现拉框功能