摘要: classpath 'com.android.tools.build:gradle:3.2.1'导入比较新的aar库 只显示了AndroidManifest.xml文件加入的目录如下 aar AndroidManifest.xml升级成 classpath 'com.android.tools.bu 阅读全文
posted @ 2025-07-16 15:55 balder_m 阅读(16) 评论(0) 推荐(0)
摘要: 查看声卡实时的运行状态 adb shell cat /proc/asound/card1/pcm2c/sub0/hw_params access: RW_INTERLEAVED format: S16_LE subformat: STD channels: 6 rate: 8000 (8000/1) 阅读全文
posted @ 2025-06-20 17:10 balder_m 阅读(18) 评论(0) 推荐(0)
摘要: 1.发送指定地址和端口的数据 bool WRTAudioTransStart(UInt32 remoteIP, UInt32 samp) { LOGD("WRTAudioTransStart %x %d\r\n", remoteIP, samp);//samp采样率 if (m_bAudioTran 阅读全文
posted @ 2025-02-24 17:17 balder_m 阅读(9) 评论(0) 推荐(0)
摘要: 换了一台电脑,安装了新的git工具 生成id_rsa.pub,把id_rsa.pub的内容加入到账号的ssh配置里面 本以为一切顺利,不过一下载就遇见如下问题 The authenticity of host '。。。。' can't be established.ED25519 key finge 阅读全文
posted @ 2025-02-20 14:56 balder_m 阅读(98) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/p/c93727fa8c2e 根据上文得到tcp_rmem[1]是默认的TCP接收缓存区大小 tcp_rmem[2]是默认的TCP接收缓存区的最大值 >adb shell cat /proc/sys/net/ipv4/tcp_rmem4096 8738 阅读全文
posted @ 2025-02-18 15:41 balder_m 阅读(10) 评论(0) 推荐(0)
摘要: public void musicFileMonitoring() { if (fileObserver != null) { return; } fileObserver = new FileObserver("/sdcard/music") { @Override public void onE 阅读全文
posted @ 2025-01-06 09:58 balder_m 阅读(6) 评论(0) 推荐(0)
摘要: 如果是系统应用android:sharedUserId="android.uid.system"报这个错 Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroa 阅读全文
posted @ 2024-08-01 15:14 balder_m 阅读(672) 评论(0) 推荐(0)
摘要: 文字转语音文件 https://ttsmaker.cn/ Android 源码在线查找 https://cs.android.com/ http://androidxref.com/ https://www.helloandroid.cn/androidossearch 阅读全文
posted @ 2024-02-22 10:26 balder_m 阅读(8) 评论(0) 推荐(0)
摘要: 在对设备节点进行操作的时候,发现读的时候进入阻塞状态(可能是设备节点异常),导致没办法继续执行后面的代码 查看了一下,文件的方式读,是没办法配置超时的自动报异常的 设计了一段代码,针对读阻塞做异常处理 public static String sendCmdToFile(String fromFil 阅读全文
posted @ 2023-12-20 10:32 balder_m 阅读(295) 评论(0) 推荐(0)
摘要: 在调试Android jni 的时候发现一个奇怪的问题 在连接socket的时候老是报错 m_sock = socket(AF_INET, SOCK_STREAM, 0); if(m_sock < 0) { debug(LEVEL_ERROR, "Socket create error %d\r\n 阅读全文
posted @ 2023-12-14 11:01 balder_m 阅读(468) 评论(1) 推荐(1)