相关疑难解决方法(0)

如何克隆仅Git存储库的子目录?

我有我的Git存储库,它在根目录下有两个子目录:

/finisht
/static
Run Code Online (Sandbox Code Playgroud)

当这是在SVN,/finisht在一个地方签出,而/static在其他地方查出来,像这样:

svn co svn+ssh://admin@domain.com/home/admin/repos/finisht/static static
Run Code Online (Sandbox Code Playgroud)

有没有办法用Git做到这一点?

git repository git-clone subdirectory sparse-checkout

1298
推荐指数
18
解决办法
73万
查看次数

为ARM编写的原生android代码如何在x86上运行?

摩托罗拉刚刚发布了基于x86的Android手机.关于为ARM编写的本机应用程序/库(例如netflix)如何在这款手机上运行,​​我有点困惑.

如果有人能解释,我将不胜感激.

android arm native android-ndk android-x86

30
推荐指数
3
解决办法
3万
查看次数

从源代码构建Android后运行模拟器

我能够将最新的android源代码下载到32位的Ubuntu虚拟机中(主机:Windows 7 64位).构建完成没有任何错误.

然后我尝试按照这些说明进行操作,其中提到我应该在源代码的根目录上运行模拟器.但是,当我尝试这个时,我收到一条错误,指出找不到此命令.

所以我去了文件夹out/host/linux-x86/bin,我发现有几个文件emulator*:

  • emulator
  • emulator-arm
  • emulator_renderer
  • emulator-ui
  • emulator-x86

当我键入emulatoremulator-x86在这里时,它也不起作用.这是我得到的错误:

xxxx/out/host/linux-x86/bin$ ./emulator-x86
emulator: ERROR: You did not specify a virtual device name, and the system
directory could not be found.

If you are an Android SDK user, please use '@<name>' or '-avd <name>'
to start a given virtual device (see -help-avd for details).

Otherwise, follow the instructions in -help-disk-images to start the emulator
Run Code Online (Sandbox Code Playgroud)

所以当我跑步时./emulator-x86 -help-disk-images,我看到以下内容:

If you …
Run Code Online (Sandbox Code Playgroud)

android linux-kernel android-emulator

25
推荐指数
3
解决办法
4万
查看次数

How do you create a loadable kernel module for Android?

I know there a number of walkthroughs and tutorials floating around out there which describe this activity, but after having read many of them I still can't get this working. If anyone has the patience to wade through the steps I've taken (posted below) and suggest where I may have gone off track I'd be very appreciative. I've spent about a day and a half staring at make files and reading walkthroughs so literally any suggestions would be helpful.

Environment: …

android kernel-module android-source

16
推荐指数
2
解决办法
4万
查看次数

AOSP repo sync需要太长时间

我正在尝试从同名书中学习嵌入式Android.作者建议与AOSP姜饼分公司合作.所以我按照下载源代码:

$ repo init -u https://android.googlesource.com/platform/manifest.git
-b gingerbread

$ repo sync
Run Code Online (Sandbox Code Playgroud)

但这花了太长时间.从输出,在我看来,它似乎也从其他分支机构下载源代码(我看到android-5 .....)这不是我想要的.我想知道这是否需要这么长时间.

有没有人有同样的问题?请给我一个建议!谢谢!

linux embedded android platform android-source

16
推荐指数
4
解决办法
2万
查看次数

在Android Emulator上运行自定义ROM

我下载了第三方ROM,我想先将它在模拟器上运行,然后再将其刷入手机.这是以下内容cm-11-20140911-NIGHTLY-p3110.zip:

 1. boot.img
 2. file_contexts
 3. META-INF/
 4. recovery/
 5. system/
Run Code Online (Sandbox Code Playgroud)

boot.img使用脚本解压缩unpack-bootimg.pl并获取boot.img-kernel,boot.img-ramdisk.cpio.gz.然后我使用make_ext4fs和重新打包系统system.img.

我创建了一个AVD并执行:

emulator -system ~/cm11/system_new.img -ramdisk ~/cm11/boot.img-ramdisk.cpio.gz -kernel ~/cm11/boot.img-kernel -avd and442

但我得到的只是一无所获,模拟器屏幕只是黑色.没有来自的日志消息adb -s emulator-5554.

现在我很困惑:

  • 可以通过模拟器测试第三方ROM吗?
  • 我做得对吗?

android android-emulator

15
推荐指数
1
解决办法
2万
查看次数

如何将模拟器重新启动到恢复模式

有没有办法重启仿真器进入恢复模式?

android reboot

10
推荐指数
1
解决办法
7875
查看次数

修改Android模拟器源代码

我想修改qemu源代码以从Android模拟器获取一些较低级别的信息.

我在哪里可以获得Android模拟器源代码?(我假设源代码也可能包含qemu源代码)

提前致谢

android qemu android-emulator

10
推荐指数
1
解决办法
9835
查看次数

进程系统在android模拟器中没有响应

当我在android studio中启动android模拟器时; 启动完成后,此窗口打开: 在此输入图像描述

和模拟器挂起.我该如何解决这个问题?

android-studio

10
推荐指数
2
解决办法
3万
查看次数

如何开始学习Android内核开发

我将开始在Android系统内核开发下工作,我没有想法。我所知道的是,我必须具备 Linux、c 和 C++ 方面的知识,而且我拥有所有这些知识,但我应该开始一些培训,所以我需要一些第一步。任何帮助,将不胜感激。谢谢大家

android linux-kernel embedded-linux

5
推荐指数
1
解决办法
2万
查看次数