xiaoyaocz 发布的文章

今天重装完Android Studio,启动模拟器时出现了以下问题

Emulator: dsound: Could not initialize DirectSoundCapture 15:37 Emulator: dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID 15:37 Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object 15:37 Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object 15:37 Emulator: audio: Failed to create voice goldfish_audio_in‘ 15:37 Emulator: D:\buildSoft\android-studio\sdk\emulator\qemu\windows-x86_64\qemu-system-i386.exe: warning: opening audio input failed 15:37 Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object 15:37 Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object 15:37 Emulator: audio: Failed to create voice adc’

找了好久终于找到了解决方法:

https://jingyan.baidu.com/article/a65957f434890a24e67f9bfc.html

1、打开系统声音设置,打开声音控制面板

QQ截图20190322172307-768x435.png

2、将录制里的立体声混音打开

QQ图片20190322172353-238x300.png

3、重启模拟器,OK

Android7.0以上默认不再信任用户证书,我们就无法抓取HTTPS包。

我们需要下面两个工具来使我们能够简单免Root的抓取Https包:

VirtualXposed 是基于VirtualApp 和 epic 在非ROOT环境下运行Xposed模块的实现。

JustTrustMe 是一个Xposed模块,用来信任全部证书。

首先安装VirtualXposed,运行Xposed模块

下载地址:https://github.com/android-hacker/VirtualXposed

VirtualXposed安装完成后下载JustTrustMe

下载地址:https://github.com/Fuzion24/JustTrustMe

将JustTrustMe安装在VirtualXposed中,并启用JustTrustMe模块,再将需要抓包的APP添加到VirtualXposed中

接下来按常规抓包方式,安装证书、设置代理,在VirtualXposed中打开需要抓包的APP就可以正常抓包了

安卓7.0以后不在默认信任用户根证书,需要在network_security_config.xml中信任用户根证书。

1、首先需要使用apktool反编译APK

2、更改res/xml中的network_security_config.xml

<network-security-config>
<base-config>
<trust-anchors>
<!– Trust preinstalled CAs –>
<certificates src=”system” />
<!– Additionally trust user added CAs –>
<certificates src=”user” />
</trust-anchors>
</base-config>
</network-security-config>

3、重新打包APK安装,抓包即可

参考:

https://www.kalvin.cn/article/14

Android 7: Intercepting App Traffic

http://www.freebuf.com/articles/terminal/158492.html

https://www.jianshu.com/p/eb766d2bb837

UWP项目(SDK 16299)生成项目时出现下列问题

*1>C:Program Files (x86)Windows Kits10bin10.0.16299.0XamlCompilerMicrosoft.Windows.UI.Xaml.Common.targets(387,13): error MSB4064: “CompileXaml”任务不支持“PlatformXmlDir”参数。请确认该参数存在于此任务中,并且是可设置的公共实例属性。
1>C:Program Files (x86)Windows Kits10bin10.0.16299.0XamlCompilerMicrosoft.Windows.UI.Xaml.Common.targets(353,5): error MSB4063: 未能使用“CompileXaml”任务的输入参数初始化该任务。*

解决方法:
更改目标SDK版本

或者

编辑C:Program Files (x86)Windows Kits10bin10.0.16299.0XamlCompilerMicrosoft.Windows.UI.Xaml.Common.targets

删除或注释到下面三行

PlatformXmlDir=”$(PlatformXmlDir)”

<Output ItemName=”FileWrites” TaskParameter=”GeneratedXamlPagesFiles” />

<Output ItemName=”GeneratedXamlPagesFiles” TaskParameter=”GeneratedXamlPagesFiles” />

参考:

https://developercommunity.visualstudio.com/content/problem/145097/msb4064-the-platformxmldir.html

启动后若无法使用管理员打开应用,需要进入安全模式

1、尝试netsh winsock reset重置winsock服务

若出现NSHTTP.DLL错误,继续第二步

2、进入注册表,regedit,进入“HKEY_LOCAL_MACHINE-SYSTEM-CurrentControlSet-service”;找到该目录下的Winsock和Winsock2,右键删除,然后重启电脑

3、下载https://pan.baidu.com/s/1kUFemI7,解压

导入到注册表,重复第一步,重启

http://tieba.baidu.com/p/4962569472?red_tag=q0323092213

https://zhidao.baidu.com/question/328405156968044525.html

https://blog.csdn.net/yeyinglingfeng/article/details/68952639