首页 > 其他分享 >kali connect Android

kali connect Android

时间:2024-04-24 22:02:57浏览次数:16  
标签:scrcpy kali sudo dev adb connect release Android

目录

Intro

OS:kali2023
Mem: 4G
CPU: 4U

在linux上连接Android系统

sudo apt update
sudo apt install -y ffmpeg libsdl2-2.0-0 adb \
wget git pkg-config meson ninja-build libsdl2-dev \
libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \
libswresample-dev libusb-1.0-0 libusb-1.0-0-dev \
android-sdk-platform-tools  android-libsparse  fastboot

# start adb service
sudo adb start-server

clone project

git clone https://github.com/Genymobile/scrcpy
cd scrcpy && ./install_release.sh

# Connect to Android via scrcpy
scrcpy

Notice: The mobile phone is connected to linux through a data cable

when a new release is out,update the repo and reinstall

git pull && ./install_release.sh

before connecting you android you need to enable developer options and usb debugging on you phone...

uninstall

sudo njnja -Cbuild-auto uninstall

remark

1、手机上的"USB调试"功能必须打开
2、adb必须检测到您的设备,scrcpy才能工作(即adb devices -l 必须列出您的设备)
3、列出设备时出现下面的情况则需要在手机上点确认来验证
$ adb devices -l
List of devices attached
T12109280xxxxxx  unauthorized

防走丢

QQ群1:905201396
QQ群2:756805267
QQ群3:912567610

标签:scrcpy,kali,sudo,dev,adb,connect,release,Android
From: https://www.cnblogs.com/smlile-you-me/p/18156457

相关文章

  • ebpf在Android安全上的应用:ebpf的一些基础知识(上篇)
    ebpf在Android安全上的应用:ebpf的一些基础知识(上篇)一、ebpf介绍eBPF是一项革命性的技术,起源于Linux内核,它可以在特权上下文中(如操作系统内核)运行沙盒程序。它用于安全有效地扩展内核的功能,而无需通过更改内核源代码或加载内核模块的方式来实现。(PS:介绍来源于https://ebpf.i......
  • Android逆向与安全——360 dex加固与脱壳
    参考:https://zhuanlan.zhihu.com/p/566412180前言现在市面上对APP的安全合规管控越来越严格了,也就要求了APP在上架之前一定要做合规检测和加固处理。对APP就是加固的好处,可以提高APP的安全性,提高APP被逆向分析破解的门槛,同时通过加固保护可以提高过安全合规的检测。由于APP加......
  • 关于使用UE5打包Android的测试
    UE5打包Android,不同于UE4,在官方文档中需要Androidstudio4.0或者3.5,还有AndroidSDK,NDK等设置SetupAndroid, 在UE5Editor配置如下:  其中 gamedatainside.apk需要打钩,否则会出现报错:TherewasanerrorinstallingthegameortheobbfileProjectSDKOverri......
  • 在Kali下安装w4af软件
    教程音乐FM:Paradise一、简介w4af是一款Web高级应用程序攻击和审计python3框架。主要帮助开发人员和渗透测试人员识别和利用他们的web应用程序中的漏洞。w4af最初基于w3af开发,由于w3af依赖于较为老旧的Python模块,kali系统在迭代版本的过程中逐渐移除了对老旧python模块的支持,......
  • 连接mysql -- host is not allowed to connect to this mysql server的解决
    今天通过navicat连接服务器的MySQL,报错:hostisnotallowedtoconnecttothismysqlserver去网上搜了一摞,有些方法不太管用,踩了点坑,在此记录下。版本:MYSQL8.0.36,CentOS7mysql-uroot-pusemysql;selectuser,hostfromuser;这时候可以看到:只允许localhost......
  • Android开发笔记[18]-使用本地模块
    摘要将摄像头预览页面封装到Android模块中并在app中使用这个本地模块.关键信息AndroidStudio:Iguana|2023.2.1Gradle:distributionUrl=https://services.gradle.org/distributions/gradle-8.4-bin.zipjvmTarget='1.8'minSdk26targetSdk34compileSdk34开发语言:K......
  • 【android】获取手机安装的所有程序
     1.获取包管理器对象PackageManagerpm=context.getPackageManager();2.得到所有安装的程序包名List<PackageInfo>infos=pm.getInstallPackages(PackageManager.GET_UNINSTALLED_PACKAGES);3.然后遍历这个集合for(PackageInfopackInfo:infos){Drawabl......
  • 使用 MediaCodec 在 Android 上进行硬解码
    要使用MediaCodec在Android上进行硬解码,并获取RGBA数据,你可以按照以下步骤进行操作:创建MediaExtractor对象并设置要解码的MP4文件路径:MediaExtractorextractor=newMediaExtractor();extractor.setDataSource(filePath);根据需要选择音频或视频轨道:inttrackCo......
  • Android Studio 蓝牙 示例代码(转)
    原文:https://blog.csdn.net/qq_40511184/article/details/122698077因为androidstudio升级,下面代码中的startactivityresult函数有变化,不能使用,需要更换为publicActivityResultLauncher<Intent>register;ActivityResultLauncher<Intent>startBlueTooth=registerForActi......
  • Pycharm报错:ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org‘
    今天在pycharm里面pipinstall库的时候报了这个错,如图所示:第一种,设置超时时间,命令如下:pip--default-timeout=1000install-U模块名第二种,用镜像网站进行下载,这种方法下载的速度超快的哦=.=,命令如下:pip--default-timeout=100install库名称-ihttp://pypi.douban.com/......