当前位置:首页 » 安卓系统 » android获取根目录

android获取根目录

发布时间: 2022-05-08 22:20:18

安卓手机游戏的根目录在哪里

首先把手机root掉也就是获得底层权限,相当于越狱和电脑上获取管理员权限。然后进手机根目录,是本来看不见的根目录不是什么SD卡根目录!在data/data下面按文件名找,一般是com.xxxx,xxxx一般是游戏公司英文名加上游戏英文名,比较难认,自己悟性高点吧~~~

⑵ 如何用电脑打开安卓手机根目录

可以直接通过adb访问 / 根目录:

  1. adb shell 进入shell模式

  2. su 切换到root用户

  3. cd / 即可进入根目录

  4. exit 退出root用户

  5. ll 即可列出根目录的所有文件及文件夹

⑶ 安卓手机游戏的根目录在哪

手机根目录分为系统根目录和SD卡根目录,查找根目录操作步骤如下:

1.在网页上搜索ES文件浏览器,点击下载并安装。

(3)android获取根目录扩展阅读

1.智能手机同普通的个人电脑一样同样式具有C:// D:// E:// 的盘符的,这些盘符就是手机根目录,里面一般存放手机软件和内置系统。

2.部分智能手机具有WAP浏览器的功能,同时就会产生一些冗余数据,这些数据一般都存在在手机的根目录。

⑷ Android N版本获取根目录下文件的方法。答对追加最高分!

你还可以,@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
EditText keywordText = (EditText)this.findViewById(R.id.keyword);
Button button = (Button)this.findViewById(R.id.button);
TextView result = (TextView)this.findViewById(R.id.result);
button.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
String keyword = keywordText.getText().toString();
if (keyword.equals("")) {
result.setText("请勿输入空白的关键词!!");
}else {
result.setText(searchFile(keyword));
}
}
});
}

private String searchFile(String keyword) {
String result = "";
File[] files = new File("/").listFiles();
for (File file : files) {
if (fike.getName().indexOf(keyword) >= 0) {
result += file.getPath() + "\n";
}
}
if (result.equals("")){
result = "找不到文件!!";
}
return result;
}

⑸ 能用adb命令查看安卓手机根目录么

可以直接通过adb访问 / 根目录:

adb shell 进入shell模式
su 切换到root用户
cd / 即可进入根目录
exit 退出root用户
ll 即可列出根目录的所有文件及文件夹。

⑹ 电脑怎样进入安卓系统的系统根目录

recovery模式下只能搜索sd卡下文件进行卡刷,安卓系统目录需要进入安卓root后用文件阅读器看

⑺ 安卓手机的储存根目录在哪里

首先把手机root掉也就是获得底层权限,相当于越狱和电脑上获取管理员权限。然后进手机根目录,是本来看不见的根目录不是什么sd卡根目录!在data/data下面按文件名找,一般是com.xxxx,xxxx一般是游戏公司英文名加上游戏英文名,比较难认,自己悟性高点吧~~~

⑻ 各类Android手机的根目录如何获取

可以使用Android原生的的类Environment.getExternalStorageDirectory()来获取,一般用“/sdcard/”是可以获取大部分的手机内存的根目录,但是现在好像陆续的不推荐这样去做,而是用Android原生的方法。有一个前提是你必须加入读写权限才可以进行此操作,否则无效
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
记得在清单文件中加上

⑼ android中怎么获取指定目录下的文件夹

参考如下代码:
package com.Aina.Android;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import android.app.AlertDialog;
import android.app.ListActivity;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;

public class Test_ListFile extends ListActivity {
/** Called when the activity is first created. */
private List<String> items = null;//存放名称
private List<String> paths = null;//存放路径
private String rootPath = "/";
private TextView tv;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
tv = (TextView) this.findViewById(R.id.TextView);
this.getFileDir(rootPath);//获取rootPath目录下的文件.
}

public void getFileDir(String filePath) {
try{
this.tv.setText("当前路径:"+filePath);// 设置当前所在路径
items = new ArrayList<String>();
paths = new ArrayList<String>();
File f = new File(filePath);
File[] files = f.listFiles();// 列出所有文件
// 如果不是根目录,则列出返回根目录和上一目录选项
if (!filePath.equals(rootPath)) {
items.add("返回根目录");
paths.add(rootPath);
items.add("返回上一层目录");
paths.add(f.getParent());
}
// 将所有文件存入list中
if(files != null){
int count = files.length;// 文件个数
for (int i = 0; i < count; i++) {
File file = files[i];
items.add(file.getName());
paths.add(file.getPath());
}
}

ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, items);
this.setListAdapter(adapter);
}catch(Exception ex){
ex.printStackTrace();
}

}

@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
String path = paths.get(position);
File file = new File(path);
//如果是文件夹就继续分解
if(file.isDirectory()){
this.getFileDir(path);
}else{
new AlertDialog.Builder(this).setTitle("提示").setMessage(file.getName()+" 是一个文件!").setPositiveButton("OK", new DialogInterface.OnClickListener(){

public void onClick(DialogInterface dialog, int which) {

}

}).show();
}
}

}

⑽ android的根目录是哪个路径

根目录是获得root权限才可以使用功能的目录,,根目录没有路径的,他是最原始的路径,,,,打个比方,如果手机内存和内存卡,是电脑上的是c盘和d盘,那么根目录就是。我的电脑。。如果想找根目录的话,你需要下载个特殊的文件管理器,我现在用的是RE管理器(汉化版)

热点内容
qml文件修改后编译未生效 发布:2025-05-14 07:31:00 浏览:329
内到内算法 发布:2025-05-14 07:29:11 浏览:33
文件夹名字不显示 发布:2025-05-14 07:27:47 浏览:774
oracle的数据库驱动jar 发布:2025-05-14 07:23:20 浏览:555
我的世界电脑版服务器手机版能进吗 发布:2025-05-14 07:22:01 浏览:678
达内培训php多少钱 发布:2025-05-14 07:19:10 浏览:26
python字节转字符串 发布:2025-05-14 07:06:35 浏览:421
subplotpython 发布:2025-05-14 06:53:51 浏览:661
竖屏大屏导航工厂密码一般是多少 发布:2025-05-14 06:49:29 浏览:806
如何在手机里设置无线网密码 发布:2025-05-14 06:47:54 浏览:120