上一页 1 2 3 4 5 6 7 ··· 63 下一页
  2025年3月4日
摘要: code /** * 产生随机字符串 64位 * */ public static String generateSecretToken() { SecureRandom secRandom = new SecureRandom(); byte[] result = new byte[32]; se 阅读全文
posted @ 2025-03-04 16:43 邢帅杰 阅读(164) 评论(0) 推荐(0)
  2025年2月25日
摘要: 1.执行ADB命令 adb shell am broadcast -a android.intent.action.REBOOT2.使用PowerManager import android.content.Context; import android.os.PowerManager; publi 阅读全文
posted @ 2025-02-25 10:21 邢帅杰 阅读(227) 评论(0) 推荐(0)
  2025年2月14日
摘要: 1. adb 查看文件读写权限可以使用 adb shell ls -l 命令查看文件或文件夹的读写权限。adb shell ls -l /sdcard/myfolder系统会显示文件夹的详细信息,其中包括权限信息。例如: total 40 drwxr-xr-x 2 root root 4096 20 阅读全文
posted @ 2025-02-14 16:29 邢帅杰 阅读(916) 评论(0) 推荐(0)
摘要: 来源百度AI回答1. Windows系统在Windows系统上,你可以使用SystemInformation类(属于System.Windows.Forms命名空间)来获取一些基本的设备信息,例如制造商、型号等。但是,请注意,这种方法可能不会提供所有设备的详细型号信息。 using System; 阅读全文
posted @ 2025-02-14 13:14 邢帅杰 阅读(101) 评论(0) 推荐(0)
  2025年2月13日
摘要: ps脚本,获取进程可执行程序路径:Get-Process -Name Cmd | Select-Object Path 必须是正在运行的进程,否则报错。ps脚本,列出正在运行的进程信息:tasklistcmd脚本,获取进程可执行程序路径:wmic process where name="cmd.ex 阅读全文
posted @ 2025-02-13 09:50 邢帅杰 阅读(207) 评论(0) 推荐(0)
  2025年1月22日
摘要: 使用Cjwdev.WindowsApi /// <summary> /// 执行BAT(前端) /// 创建一个进程,并以指定的会话身份运行一个应用程序或命令。 /// 这对于需要模拟用户上下文或在特定权限下执行操作的应用程序特别有用。 /// </summary> /// <param name= 阅读全文
posted @ 2025-01-22 13:45 邢帅杰 阅读(37) 评论(0) 推荐(0)
  2025年1月13日
摘要: code <activity android:name=".YourSplashActivity" android:theme="@style/Theme.AppCompat.NoActionBar"> <intent-filter> <action android:name="android.in 阅读全文
posted @ 2025-01-13 11:36 邢帅杰 阅读(8) 评论(0) 推荐(0)
  2025年1月6日
摘要: 服务端 using System; using System.Collections.Generic; using System.Net.Sockets; using System.Net; using System.Text; namespace XCGConsoleApp { internal 阅读全文
posted @ 2025-01-06 15:32 邢帅杰 阅读(210) 评论(0) 推荐(0)
  2024年12月30日
摘要: 来源:https://blog.51cto.com/u_16213385/12575668整个安装过程一般可以分为以下几个步骤:获取 APK 文件的路径、请求权限、调用安装 Intent、完成安装在 Android 7.0(API Level 24)及以上版本中,安装应用包需要用户人工干预并且设备需 阅读全文
posted @ 2024-12-30 15:01 邢帅杰 阅读(228) 评论(0) 推荐(0)
  2024年12月26日
摘要: 打开 PowerShell 命令行界面(按下 Win+R,输入“powershel”,然后按回车键),输入 Test-NetConnection -ComputerName <主机名或IP地址> -Port <端口号>示例:Test-NetConnection -ComputerName local 阅读全文
posted @ 2024-12-26 14:42 邢帅杰 阅读(886) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 63 下一页