apt install --no-install-recommends libasound2
snapserver:armhf : Depends: libasound2:armhf (>= 1.0.18) but it is not installable
Depends: libavahi-client3:armhf (>= 0.6.16) but it is not installable
Depends: libavahi-common3:armhf (>= 0.6.16) but it is not installable
Depends: libc6:armhf (>= 2.34) but it is not installable
Depends: libexpat1:armhf (>= 2.0.1) but it is not installable
Depends: libflac12:armhf (>= 1.3.0) but it is not installable
Depends: libgcc-s1:armhf (>= 3.5) but it is not installable
Depends: libogg0:armhf (>= 1.0rc3) but it is not installable
Depends: libopus0:armhf (>= 1.1) but it is not installable
Depends: libsoxr0:armhf (>= 0.1.0) but it is not installable
Depends: libssl3:armhf (>= 3.0.0) but it is not installable
Depends: libstdc++6:armhf (>= 11) but it is not installable
Depends: libvorbis0a:armhf (>= 1.1.2) but it is not installable
Depends: libvorbisenc2:armhf (>= 1.1.2) but it is not installable
cmake -DBUILD_CLIENT=ON -DBUILD_SERVER=ON -DBOOST_ROOT=/home/to/boost_1_8x_0
cmake .. -DBOOST_ROOT=/root/tmp/boost-1.88.0
Depends: libc6:armhf (>= 2.34) but it is not installable
sudo apt-get upgrade libc6:armhf
snapserver.service
snapserver
systemctl status snapserver
Created symlink /etc/systemd/system/multi-user.target.wants/snapserver.service → /lib/systemd/system/snapserver.service
apt install libmosquitto-dev
https://github.com/mikebrady/alac$ git clone
https://github.com/mikebrady/shairport-sync.git $ cd shairport-sync
$ autoreconf -fi
$ ./configure --sysconfdir=/etc --with-alsa \ --with-soxr --with-avahi --with-ssl=openssl --with-systemd --with-airplay-2
$ ./configure --sysconfdir=/etc --with-alsa --with-stdout --with-soxr --with-avahi --with-ssl=openssl --with-systemd --with-airplay-2 --with-mqtt-client --with-pipe --with-metadata --with-apple-alac --with-soxr
$ make
$ make install
安装后配置文件的位置
./scripts/shairport-sync.conf /etc/shairport-sync.conf.sample
cp ./scripts/shairport-sync.conf /etc/shairport-sync.conf
scripts/shairport-sync.service-avahi /lib/systemd/system/shairport-sync.service
git clone
https://github.com/mikebrady/nqptp.gitcd nqptp
autoreconf -fi
./configure --with-systemd-startup
make
make install
$ git clone
https://github.com/mikebrady/nqptp.git$ cd nqptp$ autoreconf -fi
$ ./configure --with-systemd-startup
$ make
$ make install
# systemctl enable nqptp
# systemctl start nqptp
general = {
name = "AirMusic";
output_backend = "stdout";
port = 5200; #7000
airplay_device_id_offset = 0;
alac_decoder = "apple";
};
metadata = {
enabled = "yes";
include_cover_art = "yes";
cover_art_cache_directory = "/tmp/shairport-sync/.cache/coverart-snap";
pipe_name = "/tmp/shairport-sync-metadata-snap";
pipe_timeout = 5000;
};
mqtt = {
enabled = "yes";
hostname = "192.168.1.227";
port = 1883;
username = "admin";
password = "zxcvbnm111";
topic = "player/shairport";
publish_parsed = "yes";
empty_payload_substitute = "--";
publish_cover = "yes";
enable_remote = "yes";
};
sessioncontrol = {
active_state_timeout = 30.0;
allow_session_interruption = "yes";
session_timeout = 120;
};
[server]
threads = 4
[http]
enabled = true
bind_to_address = 0.0.0.0
port = 1780
doc_root = /usr/share/snapserver/snapweb/
[tcp]
enabled = true
bind_to_address = 0.0.0.0
port = 1705
[stream]
bind_to_address = 0.0.0.0
port = 1704
source = airplay:///shairport-sync?name=Airplay&devicename=AirMusic&port=5200&output_backend=stdout
#source = pipe:///tmp/snapfifo?name=mopidy&mode=read
#name=mopidy&sampleformat=48000:16:2&codec=flac&mode=readcodec = pcm
#codec = flac
buffer = 500
send_to_muted = false
[logging]
systemctl enable snapserver
systemctl start snapserver
https://github.com/badaix/snapdroidhttps://github.com/Genymobile/scrcpyscrcpy --serial=192.168.1.163:5555
scrcpy --serial=192.168.1.181:5555
adb connect 192.168.1.181
/usr/bin/mkdir -p '/usr/local/include/alac'
/usr/bin/install -c -m 644 ALACAudioTypes.h ALACBitUtilities.h ALACDecoder.h ALACEncoder.h EndianPortable.h aglib.h dplib.h matrixlib.h '/usr/local/include/alac'
/usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 alac.pc '/usr/local/lib/pkgconfig'
make[2]: Leaving directory '/root/tmp/alac/codec'
make[1]: Leaving directory '/root/tmp/alac/codec'
make[1]: Entering directory '/root/tmp/alac'
make[2]: Entering directory '/root/tmp/alac'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/tmp/alac'
make[1]: Leaving directory '/root/tmp/alac'
http://abc.com:1780/===========================
本帖最后由 wstchql 于 2019-12-10 20:46 编辑
启动EchoService服务。。。
Starting service: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.phicomm.speaker.player/.EchoService }
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.phicomm.speaker.device/.ui.MainActivity }
adb shell /system/bin/pm uninstall com.phicomm.speaker.device 卸载
adb shell /system/bin/pm uninstall com.phicomm.speaker.device
adb push lx-music-source3.0.js /mnt/internal_sd/
adb stop_Unisound shell am stop com.phicomm.speaker.device/.ui.MainActivity
adb %type% shell am startservice com.phicomm.speaker.player/.EchoService
最近又开始折腾斐讯R1了,虽然这个大坑坑进去我不少钱,但是还是想把音箱废物利用起来。
现在这个音箱是连首歌都播不了了
由于开了ADB调试,一直想从这方面入手,想办法方便的操控,方便安装调试软件。
1、首先通过无线ADB命令肯定是可以的:
adb connect 192.168.1.2
安装apk
adb shell settings put secure install_non_market_apps 1
adb push com.he.ardc_2.1.1369.apk /data/local/tmp/
adb shell /system/bin/pm install -t /data/local/tmp/com.he.ardc_2.1.1369.apk
截屏
adb shell screencap -p /data/local/tmp/1.png && adb pull /data/local/tmp/1.png
模拟点击
adb shell input tap 551 258
卸载应用adb shell /system/bin/pm list packages
adb shell /system/bin/pm uninstall com.he.ardc
已知:adb install xxx.apk命令无法使用
adb shell /system/bin/pm list packages
adb shell /system/bin/pm uninstall com.phicomm.speaker.device
adb shell /system/bin/pm uninstall com.phicomm.speaker.player
adb shell /system/bin/pm uninstall cn.toside.music.mobile
scrcpy --serial=192.168.1.163:5555
adb stop_Unisound shell am stop com.phicomm.speaker.device/.ui.MainActivity
adb %type% shell am startservice com.phicomm.speaker.player/.EchoService
====