如何从Android Chrome浏览器中提取和查看Cookie? [英] How do I extract and view cookies from Android Chrome?

查看:412
本文介绍了如何从Android Chrome浏览器中提取和查看Cookie?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以通过Android Chrome浏览器获取和读取Cookie吗?

Is there any way for me to get and read cookies from my Android Chrome browser?

谢谢.

推荐答案

如果您通过USB将Android设备连接到PC/Mac/笔记本电脑,则可以在Android上的Chrome浏览器中查看Cookie.无需生根.笔记本电脑需要安装Chrome.然后,您可以访问 chrome://inspect/#devices

You can view cookies in Chrome on Android if you connect your Android device to a PC/Mac/laptop via USB. No rooting required. The laptop needs to have Chrome installed. You can then inspect the content on your Android device in Chrome on your laptop by visiting chrome://inspect/#devices

除此之外,您还需要在Android设备上启用开发人员模式:

There's a little more to it than that, you need to enable developer mode on your Android device:

设置->关于电话->内部版本号.点按内部版本号7次.

Settings -> About Phone -> Build number. Tap build number 7 times.

然后在设置"下,您将看到一个新项目-开发人员选项".

Then under Settings you will see a new item - "Developer Options".

在开发人员选项中启用USB调试.

Within Developer Options enable USB debugging.

如果笔记本电脑的Chrome URL上未列出已连接的设备: chrome://inspect/#devices ,则可能需要安装USB驱动程序.或在安装USB驱动程序后断开并重新连接设备.

If you don't see your connected device listed on your laptop Chrome URL: chrome://inspect/#devices then you might need to install a USB driver. Or disconnect and reconnect device after installing USB driver.

此处的详细信息- https://developer.chrome.com/devtools/docs/remote-调试

一旦您可以检查内容,就可以像在笔记本电脑上的Chrome中一样从网络"标签中获取Cookie.

Once you can inspect content you can get cookies from the network tab in the same way as you would in Chrome on your laptop.

注意:这不适用于inCognitoMode

Note : This doesn't work in inCognitoMode

这篇关于如何从Android Chrome浏览器中提取和查看Cookie?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆