- 博客(261)
- 资源 (42)
- 收藏
- 关注
原创 android img 文件解包
Linux 下使用 Android 源码编译后的 simg2img 命令解包:~/android/out/host/linux-x86/bin/simg2img system.img system_raw.img mkdir system sudomount system-raw.img system-o loop -t ext4 或者直接用7zip打开Windows 下使用 windows 版本的 simg2img 解包,文件获取位置qqizai/simg2img_win (gi...
2022-01-11 19:04:31
5155
原创 repo init 失败
root@68b3ebd4a7ab:~/aosp# python3 ~/.bin/repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-9.0.0_r40Traceback (most recent call last): File "/root/aosp/.repo/repo/main.py", line 42, in <module> from git_config impor.
2021-12-19 09:08:12
2934
原创 android 9.0 selinux 策略配置
主要配置:(1)文件;在 file.te 中声明一个文件类型;type my_file, file_type, data_file_type, core_data_file_type;在 file_contexts 文件中关联实际的文件路径和文件类型;/data/my_file(/.*)? u:object_r:my_file:s0注意 my_file 的类型,如果是data目录下的,要添加 core_data_file_type; 是 vendor目
2021-10-19 18:14:27
2268
原创 qark win10 配置调试
预装软件:(1)安装 VS 2017 community 版本;(2)安装OpenSSL-Win64;(3)安装 Python 3.7.4 版本;(4)安装 JDK 1.8版本,我的是 1.8.0_191;(5)安装 Android SDK,NDK;(6)安装 git;环境变量设置:(1)ANDROID_HOME 指向Android SDK 目录;(2)ANDROID_SDK 指向ANDROID_HOME 同样路径;(3)ANDROID_N...
2021-10-12 11:12:54
559
原创 python 2.7 安装后无法执行
python 2.7 安装后,命令行执行 python 出现错误:C:\Users\xxx>python -VPython was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.开始菜单启动设置, 设置->应用,进入应用和功能界面,点击应用执行别
2021-10-11 17:16:51
1198
原创 ubuntu16.04 terminal 无法启动
REF: https://www.jb51.net/article/221434.htmubuntu16.04 terminal 无法启动 after installed python3.8.Open File explore and enter directory /usr/lib/python3/dist-packages/gi/right click menu "open in terminal"# 下面的36 改成38 表示从py3.6改到py3.8sudo cp _gi.
2021-09-23 10:25:43
453
原创 ubuntu16.04 mobsf 配置指南
一、安装 python3.8(1) 安装必要文件sudo apt update sudo apt install software-properties-commonsudo add-apt-repository ppa:deadsnakes/ppasudo apt install python3.8 python3.8-venv(2)配置 python3
2021-08-02 14:47:47
1622
原创 Window 10 VirtualBox 安装 Kali 2021 过程
我用的是 Virtualbox 5.2, 从kali os 网站下载iso文件:kali-linux-2021.1-installer-amd64.iso。安装过程参考:https://blog.youkuaiyun.com/qq_33336310/article/details/105456266a
2021-06-13 10:34:48
590
原创 android busybox vi 文件时出现乱码问题
参考https://blog.youkuaiyun.com/iteye_3854/article/details/82564476https://forum.xda-developers.com/t/adb-enhanced-putty-replacement-for-adb-shell-command.803225/在 windows 下使用 adb shell busybox vi 某个文件时显示乱码。网上查了下是系统编解码问题。下载http://github.com/sztupy/adbputt.
2021-05-25 12:32:40
864
原创 Windows 编译 LLVM 详细教程
https://www.jianshu.com/p/cfe6c4b11d75https://www.sunofbeach.net/a/1290427013433171968https://bbs.pediy.com/thread-258370.htm
2021-05-07 13:57:03
8462
原创 Kleopatra 启动时一直显示“正在装入证书缓存”
由于误删了 C:\users\xxx\.p2 目录,导致Kleopatra 启动时一直显示“正在装入证书缓存”。解决办法,在命令行下输入如下内容,然后再重启 Kleopatra 问题解除,又能看到正常列表了。C:\Users\xxx>gpg-connect-agent reloadagent /byeOK...
2021-04-28 15:44:30
1382
3
原创 compile ollvm for android P
(1) Download ollvmhttps://github.com/obfuscator-llvm/obfuscator/tree/llvm-4.0git clone very slow, so just download zip file.https://github.com/obfuscator-llvm/obfuscator/archive/llvm-4.0.zip(2) unzip llvm-4.0.zip(3) compile ollvmcd obfuscat..
2021-03-15 20:50:23
395
原创 Android 8.1 write HIDL
Below <company> <module> <mylib> replace with your own names.(1) edit <TOP>/Android.bp, add custom path:...........optional_subdirs = [ ................... "vendor/<company>/<module>/*/*",](2) create dir
2021-03-09 19:31:58
382
原创 make_ext4fs sourcecode
git clone git://git.openwrt.org/project/make_ext4fs.git
2021-02-22 17:03:41
493
原创 vendor.img 解压
out/host/linux-x86/bin/simg2img vendor.img vendor.img.rawmount -t ext4 -o loop vendor.img.raw mnt-vendor/
2020-11-20 10:15:46
2967
1
原创 openssl p12 证书转 p7格式
openssl pkcs12 -in pfx-0527.crt -out pfx-0527.cer -nokeys 转为pem公钥openssl pkcs12 -in pfx-0527.crt -out pfx-0527.key -nocerts -nodes 转为priv私钥
2020-10-15 20:41:37
470
原创 find and xargs
find -maxdepth 1 -name \*.apk -print | xargs basename -s .apk | xargs mkdir -p
2020-10-10 19:28:48
143
原创 PackageManager: Instruction set mismatch 问题分析
Android 系统支持 32位应用和64位应用。但是当共享系统 UID 的应用有32位或者64位时,并且开启预编译优化后,开机会出现问题:08-31 14:46:45.568 2445 2445 W PackageManager: Instruction set mismatch, PackageSetting{4bea45 com.beantechs.datatrackservice/1000} requires arm whereas PackageSetting{eaaa7ae com.l
2020-09-27 20:00:37
777
原创 Android keystore 文件和 platform key 转换
1. platform key 转换为 keystore 文件: 先将 pk8 文件转为 PEM 文件;再将 pem 公私钥合并为 p12 文件,生成p12的时候会提示设置密码;再将 p12 文件转为 keystore文件;openssl pkcs8 -in platform.pk8 -inform DER -outform PEM -out shared.priv.pem -nocryptopenssl pkcs12 -export -in platform.x509.pem -inkey..
2020-09-16 11:18:38
1618
原创 win10 远程桌面访问 ubuntu18.04
1.安装 xrdpsudo apt updatesudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utilssudo apt install xrdpsudo apt install xubuntu-desktopecho "fce4-session" >~/.xsessionsudo service restart xrdp2. 在 win10系统用远程桌面连接目标系统,在打开的桌面登录里选择xorg,然
2020-08-07 14:34:17
2294
原创 PKCS 各版本
RSA定义的 PKCS 各版本,用途各不相同;PKCS #1 定义私钥签名运算的填充方式, v1.5 是 PKCS1_PADDING, v2.1 是 PKCS1_PSS_PADING;PKCS#2:涉及了RSA的消息摘要加密,这已被并入PKCS#1中。PKCS#3:Diffie-Hellman密钥协议标准。PKCS#3描述了一种实现Diffie- Hellman密钥协议的方法。PKCS#4:最初是规定RSA密钥语法的,现已经被包含进PKCS#1中。PKCS #5 基于口令的加密标准。P.
2020-08-01 16:47:49
2463
原创 取 AOSP 模块代码
1. git clone https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifestcd manifest使用 git branch -a 命令查看可用版本然后 git checkout -b qr40 origin/android-10.0.0_r40 切换到想要的版本然后就看到 manifest 目录下有个 default.xml 文件,里面是 android q 项目用到的模块代码配置;2. git c...
2020-07-27 11:38:51
346
原创 编译 openssl 在 android 上测试
1. 下载 openssl 代码,这里以 openssl-1.1.1g 版本为例。2. 下载 ndk 工具包;3. 编辑编译脚本 build.sh:export ANDROID_NDK=/home/xxx/android-ndk-r21export PATH=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin:$ANDROID_NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linu
2020-07-09 16:47:16
482
原创 Ubuntu 下测试自签证书
1. 创建 catest 目录,复制 openssl.cnf 文件到此目录,然后编辑此文件,修改certificate 和 private_key的名称mkdir catestcd catest/catest$ cp /etc/ssl/openssl.cnf ./catest$ vim openssl.cnf...[ CA_default ]certificate = $dir/root/ca.crtprivate_key = $dir/private/ca.key..
2020-05-31 12:10:22
506
原创 Windows下 ndk 编译程序
环境变量添加 Android 相关设置:ANDROID_HOME C:\Users\zhanghb\AppData\Local\Android\SdkANDROID_NDK C:\Users\zhanghb\AppData\Local\Android\Sdk\ndk\21.1.6352462创建一个源码目录hello1. 创建子目录 jni2. 在 jni 目录创建2个文件,hello.c 和 Android.mkhello.c#include <stdi...
2020-05-22 18:25:07
1067
2
原创 Windows下编译 boringssl代码
1. 从 github 下载 boringssl 代码包,直接下载 zip 包即可,git clone 很慢; 网址:https://github.com/google/boringssl2. 安装必要工具:Android NDK Android SDK GO https://studygolang.com/dl/golang/go1.14.3.windows-amd64.msi3. 设置环境变量: ANDROID_NDK C:\Users\xxx\AppData...
2020-05-21 21:30:24
2117
2
原创 Word文档中插入代码
从 Android Studio 或者其他代码编辑工具,复制代码到 Word 中可以保持字体风格和颜色,但是代码不够对齐,行号也没有。经过搜索,找到一个提供自动化格式的网站:http://www.planetb.ca/syntax-highlight-word把代码黏贴到编辑框,选择语言,然后点击按钮Show Hilight,就会自动弹出格式化好的网页,直接复制内容到 word 即可。效果就是下面这样。...
2020-05-18 17:53:28
2276
原创 TLS协商 wireshark 抓包分析
分析环境在 windows 下,使用 windows 版本的nginx部署自签服务器,使用 openssl s_client 命令测试双向认证。准备工具:1. wireshark: 从腾讯软件中心搜索wireshark并下载64位版本:https://pc.qq.com/ https://dl.softmgr.qq.com/original/System/Wireshark-win64-3.2.2.exe2. npcap程序:https://nmap.org/download.html...
2020-05-13 11:01:31
2417
原创 windows 下 nginx 双向认证自签名证书配置
1. 创建根证书密钥、服务器证书私钥、客户端证书私钥:openssl genrsa -out root.key 2048openssl genrsa -out server.key 2048openssl genrsa -out client.key 20483. 创建证书申请请求openssl req -new -key root.key -out root.csropenssl req -new -key server.key -out server.csropenssl req
2020-05-11 16:59:24
1504
原创 windows 下配置 nginx 自签名证书
1. 下载 nginx windows 版本,位置:http://nginx.org/download/nginx-1.16.1.zip2. 下载后解压到 C:\ 根目录,目录名nginx-1.16.13. 解压完成直接点击启动nginx.exe 程序即可,这时候在浏览器输入 http://localhost/就会看到 nginx的欢迎页面;4. 安装openssl windows版本,位置:http://slproweb.com/download/Win64OpenSSL_Light-...
2020-05-09 15:09:53
1525
原创 boringssl + curl 编译配置
1. 下载和编译 boringssl$ git clone https://boringssl.googlesource.com/boringssl$ cd boringssl$ mkdir build$ cd build$ cmake ..$ make编译前需要安装 cmake,zlib,go等软件:sudo apt-get install -y build-esse...
2020-05-08 21:56:18
2467
原创 clion windows 找不到lib库问题
是一个clion在windows下写c程序时候,在cmakelists.txt里编辑了头文件路径和库文件路径。编译时总是提示中不到链接库,问题文件如下:# cmake_minimum_required(VERSION <specify CMake version here>)cmake_minimum_required(VERSION 3.16)project(untit...
2020-04-30 16:01:58
3458
2
原创 约束布局ConstraintLayout
这篇文章写的很详细:https://www.jianshu.com/p/17ec9bd6ca8a推荐大家以后少用线性布局和相对布局,多用约束布局。
2020-04-24 11:11:01
144
原创 Makefile 中常用定义
1. 符号$@ 目标文件$^ 所有的依赖文件$< 第一个依赖文件$? 比目标还要新的依赖文件列表$% 仅当目标是函数库文件中,表示规则中的目标成员名。例如,如果一个目标是“foo.a(bar.o)”,那么,“$%”就是“bar.o”,“$@”就是“foo.a”。如果目标不是函数库文件(Unix下是[.a],Windows下是[.lib]),那么,其值为空。$+ 这...
2020-04-23 17:31:48
279
原创 mint 19.04 qemu 安装 winxp 虚拟机
$ sudo apt install qemu$ qemu-system-i386 --versionQEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.23)Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers$ qemu-img cr...
2020-04-23 15:05:05
807
原创 mint19.04 wine 损坏
不知道wine怎么就挂了,用 sudo apt-get autoremove 和 dpkg -r 清理所有 wine 相关的组件后,再安装就装不上了。$ sudo apt-get install wineReading package lists... DoneBuilding dependency tree Reading state information... Don...
2020-04-21 17:07:53
232
原创 MTK Android Camera 录像、预览格式。
MTK Android 8.1 的camera实现部分并没有走标准Camera3 dev实现,而是自行实现了 v1 的 hal层内容。具体的代码模块位于vendor/mediatek/proprietary/hardware/mtkcam/middleware 目录下。在 mtk6763这个低端平台上,采用了 v1 的版本。预览的代码位于DisplayClient.BufOps.cpp...
2020-03-18 14:22:32
1019
原创 Android Studio 2.3.2 在Ubuntu系统更换字体后不显示文字问题
Ubuntu系统 更换了一款中文字体,然后启动 Android Studio 2.3.2 发现所有界面都不显示文字了。是这样的效果。经过一番摸索,原来是 Android Studio 默认使用了系统字体,导致显示不正常。在设置界面,更换字体即可解决问题。解决后是这样的。...
2020-02-16 20:50:55
358
原创 mint 19.3 解决 mtk flashtool 下载软件问题
系统升级到 mint 19.3,编译好 adnroid 软件后,使用 mtk flashtool下载,发现居然下载不了。经过baidu一番,现将解决办法说明如下:1. flashtool 下载地址:https://spflashtool.com/download/ 我使用的版本:SP_Flash_Tool_v5.1844_Linux.zip2. 安装 flashtool需要...
2020-02-15 12:04:06
595
unity5.0 插件 Mobile Movie Texture2.1.2
2016-06-28
libmodplug-0.8.8.5.tar.gz
2014-11-14
protobuf 2.6.1
2014-11-14
bluesoleil 蓝牙驱动 6.4 破解版
2014-11-14
tess-two-9.1.0-jni-libs.tar.gz
2020-03-02
tess-two.9.1.0.tar.gz
2020-03-02
SP_Flash_Tool_v5.1924_Win.zip
2020-02-15
SP_Flash_Tool-5.1916_Linux.zip
2020-02-15
rtl8812au_workable_20191212.tar.gz
2019-12-15
intel-graphics-update-tool_2.0.2.zip
2019-12-12
java-7-openjdk-linux-amd64.tar.bz2
2019-10-14
MediaCreationTool1903.7z
2019-09-07
LXC Android虚拟化技术论文
2018-07-10
android_speex_silk_codec实现源码.
2017-09-21
melp 语音编码
2017-09-04
android source code, openssh
2017-07-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人