Android-Studio中Device-File-Explorer的作用是什么

时间:2017-10-30 12:34:40

标签: android android-permissions android-sharedpreferences android-studio-3.0 android-device-monitor

Android Studio 3.0具有Device-File-Explorer功能,可帮助我们查看Android设备上的文件。对于非root设备来说这很令人兴奋。我知道Android Studio实际上使用ul li { display: inline-block; margin: 0 10px } .demo-3 { position: relative; width: 300px; height: 200px; overflow: hidden; float: left; margin-right: 20px } .demo-3 figure { margin: 0; padding: 0; position: relative; cursor: pointer; margin-left: -50px } .demo-3 figure img { display: block; position: relative; z-index: 10; margin: -15px 0 } .demo-3 figure figcaption { display: block; position: absolute; z-index: 5; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box } .demo-3 figure h2 { font-family: 'Lato'; color: #fff; font-size: 20px; text-align: left } .demo-3 figure p { display: block; font-family: 'Lato'; font-size: 12px; line-height: 18px; margin: 0; color: #fff; text-align: left } .demo-3 figure figcaption { top: 0; left: 0; width: 100%; height: 100%; padding: 29px 44px; background-color: rgba(26, 76, 110, 0.5); text-align: center; backface-visibility: hidden; -webkit-transform: rotateY(-180deg); -moz-transform: rotateY(-180deg); transform: rotateY(-180deg); -webkit-transition: all .5s; -moz-transition: all .5s; transition: all .5s } .demo-3 figure img { backface-visibility: hidden; -webkit-transition: all .5s; -moz-transition: all .5s; transition: all .5s } .demo-3 figure:hover img, figure.hover img { -webkit-transform: rotateY(180deg); -moz-transform: rotateY(180deg); transform: rotateY(180deg) } .demo-3 figure:hover figcaption, figure.hover figcaption { -webkit-transform: rotateY(0); -moz-transform: rotateY(0); transform: rotateY(0) } a { display: block } /* MODAL BOX*/ .modalDialog { position: fixed; font-family: Arial, Helvetica, sans-serif; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.8); z-index: 99999; opacity: 0; -webkit-transition: opacity 400ms ease-in; -moz-transition: opacity 400ms ease-in; transition: opacity 400ms ease-in; pointer-events: none; } .modalDialog:target { opacity: 1; pointer-events: auto; } .modalDialog>div { width: 400px; position: relative; margin: 10% auto; padding: 5px 20px 13px 20px; border-radius: 10px; background: #fff; background: -moz-linear-gradient(#fff, #999); background: -webkit-linear-gradient(#fff, #999); background: -o-linear-gradient(#fff, #999); } .close { background: #606061; color: #FFFFFF; line-height: 25px; position: absolute; right: -12px; text-align: center; top: -10px; width: 24px; text-decoration: none; font-weight: bold; -webkit-border-radius: 12px; -moz-border-radius: 12px; border-radius: 12px; -moz-box-shadow: 1px 1px 3px #000; -webkit-box-shadow: 1px 1px 3px #000; box-shadow: 1px 1px 3px #000; } .close:hover { background: #00d9ff; }命令来提取文件。

这是一个捕获: enter image description here

如您所见,有一个名为<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic|Raleway:400,200,300,500,600,700,800,900' rel='stylesheet' type='text/css'> <ul> <li> <ul class="demo-3"> <li> <figure> <a href="#1stDay"><img src="images/1.jpg" alt="" / id="1stDayActive"> <figcaption> <h2>The 1st Day of Christmas</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nost.</p> </figcaption> </a> </figure> </li> </ul> <div id="1stDay" class="modalDialog"> <div> <a href="#close" title="Close" class="close">X</a> <h2>The 1st Day of Christmas</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nost.</p> <p><img src="images/4.jpg" alt="" /></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nost.</p> </div> </div> </li> <li> <ul class="demo-3"> <li> <figure> <a href="#2ndDay"><img src="images/2.jpg" alt="" / id="2ndDayActive"> <figcaption> <h2>The 2nd Day of Christmas</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nost.</p> </figcaption> </a> </figure> </li> </ul> <div id="2ndDay" class="modalDialog"> <div> <a href="#close" title="Close" class="close">X</a> <h2>The 2nd Day of Christmas</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nost.</p> <p><img src="images/5.jpg" alt="" /></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nost.</p> </div> </div> </li> <li> <ul class="demo-3"> <li> <figure> <a href="#3rdDay"><img src="images/3.jpg" alt="" / id="3rdDayActive"> <figcaption> <h2>The 3rd Day of Christmas</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nost.</p> </figcaption> </a> </figure> </li> </ul> <div id="3rdDay" class="modalDialog"> <div> <a href="#close" title="Close" class="close">X</a> <h2>The 3rd Day of Christmas</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nost.</p> <p><img src="images/6.jpg" alt="" /></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nost.</p> </div> </div> </li> </ul>的列。 **我想知道adb exec-out run-as

的作用

另外,如果我们有写入权限,我们可以将某些内容写入Permissions文件等文件吗?

修改

事实上,我想知道Device-File-Explorer的许可,例如所有者或团体或其他人。

1 个答案:

答案 0 :(得分:2)

  

Device File Explorer允许您查看,复制和删除文件   一个Android设备。在检查文件时这很有用   由您的应用程序创建,或者您想要与文件进行传输   设备

注意:除非您使用带有标准的Android(AOSP)系统映像(不是Google API或Google Play系统映像之一)的有根设备或模拟器,否则大多数设备数据都不可见。使用连接的设备时,请务必启用USB调试。

  

如果我们有写权限,我们可以写一些文件,比如   SharedPreference文件?

enter image description here

检查this descriptions

示例:

  

drwxrw-x表示:

     

文件类型:d(目录),

     

所有者权限:rwx(读/写/执行),

     

组权限:rwx(读/写/执行),

     

世界许可: - x(仅执行),无法读取内部数据   目录,或写入目录。