斐讯R1 AI音响安装乐播,进行airplay投送的操作(无屏安卓设备安装dlna服务端)

1、首先确定R1的端口开通情况,需要调用5555端口。我是通过adb进行设置的。
端口扫描可以通过以下方式进行:
linux:nmap
windows通过工具:ScanPort

2、确定了开放了5555端口在进行下一步,否则就不用往下看了,因为我也没有其他办法了。

3、工具准备:ADB调试工具、乐播投屏的apk软件(我的是电脑端下载的,直接改名了,嫌弃名太长:改成了hpplay.apk)。
下载下来后建议在D盘新建个文件夹然后解压到里面,找到adb_cmd.exe打开即可。

4、连接设备:
4.1:adb connect 192.168.2.231:5555
见下图即算登陆成功:

其他的ADB调试命令请查看帮助,自己研究。

4.2上传安装包:
4.2.1:通过直接安装的方式上传:如果此步骤提示成功,则无需下面的步骤,若失败则继续往下:
adb install hpplay.apk    (软件最好跟adb放在同一个文件夹下,就不用指定目录了)
查看软件包的缓存目录是否存在该软件:hpplay.apk
adb shell ls /data/local/tmp/
4.2.2:直接上传:adb push [-p] <local> <remote>
adb push hpplay.apk /data/local/tmp/     
4.3打开允许安装未知来源的软件:
adb shell settings put secure install_non_market_apps 1

adb shell settings get secure install_non_market_apps     (该命令返回数字1,即开启成功)

4.4安装软件:
adb shell /system/bin/pm install -t /data/local/tmp/hpplay.apk
出现success即成功
4.5:启动软件并运行:
乐播为例:其他的自行查找package进行调用启动。(百度adb启动软件即可)
adb shell am start com.hpplay.happyplay.aw/.WelcomeActivity
在iPhone上进行投屏输出应该就可以看到刚斐讯的音响了,名字各有不同,自行查阅。
可以重启试试,是否还生效,如果不生效再启动一遍软件。我的是自启,如果不自启,我也没办法,这个系统太封闭了。


原文有点罗嗦,简而言之:

  1. 下载乐播投屏接收端: http://www.hpplay.com.cn/
  2. 连接设备:adb connect 192.168.xx.xx
  3. 开启未知来源应用安装: adb shell settings put secure install_non_market_apps 1
  4. 安装:adb install hpplay.apk
  5. 重启检查应用是否自启动:adb reboot

https://bbs.hassbian.com/thread-5424-1-1.html

用电脑控制 Android 设备,大屏上也能刷朋友圈:Scrcpy

随着智能手机的普及和更新换代,越来越多人开始将手机作为个人媒体中心和资料中心。然而手机的便携属性决定了它屏幕的物理尺寸,这个尺寸通常无法满足演示或播放的需求。

手机投屏功能应运而生。手机投屏,即将手机屏幕画面实时映射在其他屏幕上,它变相地打破了手机屏幕尺寸的物理限制,为诸如教学演示、开会演示、录屏、摸鱼打手游等场景提供了极大便利。

不过市面上多数手机镜像投屏都是付费的,即便有些提供免费版,多数也有着这样那样的功能限制。相比之下轻量、绿色、无需 ROOT 且免费开源的 Scrcpy 则要良心很多。

Continue reading “用电脑控制 Android 设备,大屏上也能刷朋友圈:Scrcpy”

安卓修改虚拟导航栏高度,免root

友情提醒:本操作会完全隐藏导航栏,所以在您进行此操作之前请安装好您喜欢的手势导航 / 悬浮按钮应用,以免隐藏导航栏后无法操作。

调小导航栏高度:

adb shell wm overscan 0,0,0,-50

通过调整后面的数字来改变大小,有兴趣的可以自行调整直至完美。

若要恢复原有效果:

adb shell wm overscan 0,0,0,0

 

免ROOT! 使用adb來備份手機程式(ICS以上限定)

我知道我這篇 不少已經知道的高手大概都知道了
不過還是給一些不知道的人做使用 希望這樣能幫到想備份但卻不想解鎖+ROOT的使用者

OK 這邊我先說明一下
這個功能是搭配adb一起使用 是ICS(也就是4.0)開始才有的功能
只要系統是ICS以上的版本 不管是哪支手機都可以支援
此外還可以備份手機的儲存空間資料和SD卡資料哦~
前提是adb版本至少要1.0.28以上 在這之前的由於都沒寫入ICS附加的指令 因此指令會無效

Continue reading “免ROOT! 使用adb來備份手機程式(ICS以上限定)”

How to install ADB in Ubuntu Linux 12.04 & 11.10 LTS 32bit & 64

[Video] How to install ADB in Ubuntu Linux 12.04 & 11.10 LTS 32bit & 64 April 5, 2012

http://www.youtube.com/watch?v=3heTSqjWcaY&feature=player_embedded

This guide will show you how to install ADB and configure your device in Ubuntu 12.04 & 11.10 32bit & 64bit

If you havent already, you may need to install Java to use some of the sdk features. You can find that guide HERE

1. First you want to download the android sdk from HERE

2. Once that is downloaded, extract the download file to your home folder and rename it to android (This avoids more typing and saves time later on)

3. New open Terninal and lets check the dir to make sure its in the right place Type:

cd /home/USER NAME/android/tools/

now you should see

[email protected]:~/android/tools$

If you see that, then you are good, if it says Dir not found, then go back to step 2

4. Now we are going to start prepairing the system for android sdk

Type the following:

sudo apt-get install ia32-libs
sudo gedit ~/.bashrc

add this to the bottom of the file

# Android tools
export PATH=${PATH}:~/android/tools
export PATH=${PATH}:~/android/platform-tools

Save and close that file and type:

gedit ~/.profile

Add this to the bottom of the file

[...]
PATH="$HOME/android/tools:$HOME/android/platform-tools:$PATH"

Then Type:

export PATH="$HOME/android/tools:$HOME/android/platform-tools:$PATH"

5. Now we are going to give permissions to your device, to do this you will need to do the following:

In terminal type:

lsusb

And you should see something like this:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 2232:1008  
Bus 002 Device 003: ID 0a5c:219c Broadcom Corp. 
Bus 003 Device 003: ID 1532:000c Razer USA, Ltd 
Bus 003 Device 007: ID 18d1:d002 Google Inc.

See the Google Inc. one at the bottom? That is your device and the code you want to save is “18d1:d002” we will need this for the next step

You’ll need to create a certain udev rule. First off type the following in Terminal

sudo gedit /etc/udev/rules.d/99-android.rules

Add this to the file

#Acer
SUBSYSTEM==usb, SYSFS{idVendor}==0502, MODE=0666
#ASUS
SUBSYSTEM==usb, SYSFS{idVendor}==0b05, MODE=0666
#Dell
SUBSYSTEM==usb, SYSFS{idVendor}==413c, MODE=0666
#Foxconn
SUBSYSTEM==usb, SYSFS{idVendor}==0489, MODE=0666
#Garmin-Asus
SUBSYSTEM==usb, SYSFS{idVendor}==091E, MODE=0666
#Google
SUBSYSTEM==usb, SYSFS{idVendor}==18d1, MODE=0666
#HTC
SUBSYSTEM==usb, SYSFS{idVendor}==0bb4, MODE=0666
#Huawei
SUBSYSTEM==usb, SYSFS{idVendor}==12d1, MODE=0666
#K-Touch
SUBSYSTEM==usb, SYSFS{idVendor}==24e3, MODE=0666
#KT Tech
SUBSYSTEM==usb, SYSFS{idVendor}==2116, MODE=0666
#Kyocera
SUBSYSTEM==usb, SYSFS{idVendor}==0482, MODE=0666
#Lenevo
SUBSYSTEM==usb, SYSFS{idVendor}==17EF, MODE=0666
#LG
SUBSYSTEM==usb, SYSFS{idVendor}==1004, MODE=0666
#Motorola
SUBSYSTEM==usb, SYSFS{idVendor}==22b8, MODE=0666
#NEC
SUBSYSTEM==usb, SYSFS{idVendor}==0409, MODE=0666
#Nook
SUBSYSTEM==usb, SYSFS{idVendor}==2080, MODE=0666
#Nvidia
SUBSYSTEM==usb, SYSFS{idVendor}==0955, MODE=0666
#OTGV
SUBSYSTEM==usb, SYSFS{idVendor}==2257, MODE=0666
#Pantech
SUBSYSTEM==usb, SYSFS{idVendor}==10A9, MODE=0666
#Philips
SUBSYSTEM==usb, SYSFS{idVendor}==0471, MODE=0666
#PMC-Sierra
SUBSYSTEM==usb, SYSFS{idVendor}==04da, MODE=0666
#Qualcomm
SUBSYSTEM==usb, SYSFS{idVendor}==05c6, MODE=0666
#SK Telesys
SUBSYSTEM==usb, SYSFS{idVendor}==1f53, MODE=0666
#Samsung
SUBSYSTEM==usb, SYSFS{idVendor}==04e8, MODE=0666
#Sharp
SUBSYSTEM==usb, SYSFS{idVendor}==04dd, MODE=0666
#Sony Ericsson
SUBSYSTEM==usb, SYSFS{idVendor}==0fce, MODE=0666
#Toshiba
SUBSYSTEM==usb, SYSFS{idVendor}==0930, MODE=0666
#ZTE
SUBSYSTEM==usb, SYSFS{idVendor}==19D2, MODE=0666

SUBSYSTEM=="usb", ATTRS{idVendor}=="####:####", SYMLINK+="android_adb", MODE="0666" GROUP="plugdev"
TEST=="/var/run/ConsoleKit/database", \
RUN+="udev-acl --action=$env{action} --device=$env{DEVNAME}"

If you are running Ubuntu 11 or later you will now use the code you saved from the beginning of step 5 and replace the ###-### in the code above

Save and close.

Now type the following in terminal:

sudo chmod a+rx /etc/udev/rules.d/99-android.rules

sudo restart udev

sudo service udev restart

6. Now with that out of the way we can update and install android sdk so type the following:

cd
cd /home/USER NAME/android/tools/

./android

Select Platform tools and click update or install

pakages.jpg

7. After sdk is downloaded and installed type the following in terminal:

cd 

./adb devices 

or

adb devices

You should see something like this

[email protected]:~$ adb devices
List of devices attached 
0123456789ABCDEF	device

[email protected]:~$

If you see that, then you are set and ready to play with android sdk and adb.

if you get “???????????? no permissions” then go back to step 5 and check to make sure everything is in the right place.

 

[http://forums.team-nocturnal.com/showthread.php/773]

Ubuntu下安装adb

1. 下载SDK:

地址:http://developer.android.com/sdk/index.html

下载后解压到某个目录中,如:~/Downloads/android-sdk-linux

2. 根据readme,更新需要的文件包

cd ~/Downloads/android-sdk-linux/tools
./android update sdk --no-ui

3. 将adb路径加入PATH。

在~/.bash_profile 或者 ~/.bashrc文件中,加入一行内容(我加在.bashrc中)

export PATH=${PATH}:<存放目录>/platform-tools

4. 连接上手机,通过终端,进入到platform-tools目录下,首次执行,输入命令adb kill-server