Android 29中的kernel-ranchu [英] kernel-ranchu in Android 29

查看:706
本文介绍了Android 29中的kernel-ranchu的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在使用APACHE CORDOVAwithout Ionic`.

So I'm using APACHE CORDOVA, withoutIonic`.

我通常使用提示

cordova创建myApp br.com.carcleo myApp

我创建了2个AVD's,一个用于 Android 22 ,另一个用于 Android 28 .

I created 2 AVD's, one for Android 22 and another for Android 28.

对于 Android 22 emulator可以正常工作.但是对于 Android 28 模拟器不起作用.

For the Android 22 the emulator works correctly. But for the Android 28 emulator does not work.

它要求kernel-qemu应该放在Android 28 image 文件夹中,但是那里没有这样的文件.

It asks for kernel-qemu which should be in the image folder of Android 28 but there is no such file there.

但是,该文件在Android 22文件夹中.

However, in the Android 22 folder the file exists.

那么,有两个名称相似的文件,分别是kernel-qemukernel-ranchu. 在这种情况下,Android 28仅具有kernel-ranchu.

Well, there are 2 files with similar names, kernel-qemu andkernel-ranchu. In this case, Android 28 only haskernel-ranchu.

我什至尝试将kernel-qemuAndroid 22文件夹复制到Android 28上的相同文件夹. Android甚至启动,但是它在模拟器的黑屏上停止,并且Android桌面也没有显示.

I even tried copying kernel-qemu fromAndroid 22 folders to the same folders on Android 28. Android even starts, but it stops on the black screen of the simulator and neither does theAndroid desktop show.

我注意到以下情况:它在Android 28文件夹中寻找kernel-qemu.但是,Android 22文件夹中只有此文件. 在Android 23文件夹中,只有kernel-ranchu.

I've noticed the following: it looks for kernel-qemu in theAndroid 28 folder. However, there is only this file in Android 22 folder down. In the Android 23 folders, there is only thekernel-ranchu.

但是如何解决这个问题呢?我应该为Android的旧版本进行构建吗?这些就是出路吗?还是您必须编辑 config.ini 来解决此问题?如果是,该如何进行?

But what can be done to get around this problem? Should I make a build for the old version of Android? Was it just these the way out? Or do you have to edit config.ini to solve this? If so, how to proceed?

感谢任何可以提供帮助的人!

Thanks to anyone who can help!

推荐答案

即使已经很老了,对于自Google寻求帮助并登陆这里的人们,截至2019年:

Even if this is old, for people googling for help and landing here, as of 2019 :

  • 当仿真器无法使用首选的现代仿真模式(ranchu)和内核版本(内核)引导时,使用现代版本的仿真器来查找此内核-qemu是第二次机会"(使用旧的仿真器模式,金鱼) -ranchu).

对于较旧的Android版本,系统文件文件(如Android 22)都可以在金鱼"和"ranchu"模式下使用kernel-qemu和kernel-ranchu.而且对于可怕的旧版本,无法使用kernel-ranchu.

For older Android versions system files files (like Android 22), kernel-qemu and kernel-ranchu were both available and working, in both "goldfish" and "ranchu" mode. And for scary old versions, kernel-ranchu wasn't available.

但是kernel-qemu(用于金鱼"模式)是一种非常过时的内核类型(基于qemu 1的旧仿真模式).没有足够的最新"kernel-qemu"内核版本可将现代Android版本引导至金鱼模式":金鱼模式支持将在近期或之后终止.

But kernel-qemu (used for "goldfish" mode) is a pretty out of date kernel kind (old emulation mode based on qemu 1). There is no up to date enough "kernel-qemu" kernels versions for booting modern Android versions into "goldfish mode" : goldfish mode support will be dropped soon or late.

话虽如此:这可能意味着您在使用Android 28(9.0.0)模拟器时遇到了问题,这使"ranchu"模式和相关的内核无法在该版本上启动,您的计算机,以及您当前的文件.

That being said : it probably means that you have a problem with the Android 28 (9.0.0) emulator, something makes "ranchu" mode and associated kernel unable to boot on this version, on your machine, with your current files.

检查您是否可以做某事真的很简单(关于模拟器的了解/检查/重置很少,可以确保您测试了所有东西).调试可以通过这种方式完成:

It's really simple to check if you can do something or not (there is very few things to know/check/reset about the emulator to make sure you tested everything). Debugging can be done this way :

  • 转到c:\ Users \ Username.android \ avd \
  • 对于每个创建的AVD,您都有一个* .ini文件和一个子文件夹
  • 进入子文件夹,删除config.ini文件之外的所有内容:如果其中一个文件损坏或卡住,它将无法工作.如果将其删除,则会创建新的.您可以随时查看config.ini中的内容.
  • 您可以从命令行运行仿真器:
    • C:\ Users \ Username \ AppData \ Local \ Android \ Sdk \ emulator> emulator.exe @ExampleName(-engine qemu2)
    • 甚至对于金鱼模式或更多调试信息,还可以使用其他参数
    • C:\ Users \ Username \ AppData \ Local \ Android \ Sdk \ emulator> emulator.exe @ExampleName -verbose -show-kernel -engine classic
    • Go to c:\Users\Username.android\avd\
    • For each created AVD, you have one *.ini file and one subfolder
    • into the subfolder, delete everything apart from config.ini file : if one of those files is corrupt or stuck, it won't be able to work. If it's deleted, it creates fresh new ones. You can always take a look at what's inside config.ini if you want.
    • You can run the emulator from command line :
      • C:\Users\Username\AppData\Local\Android\Sdk\emulator>emulator.exe @ExampleName (-engine qemu2)
      • or even, for goldfish mode, or more debug informations, additional parameters are available
      • C:\Users\Username\AppData\Local\Android\Sdk\emulator>emulator.exe @ExampleName -verbose -show-kernel -engine classic

      最后,如果您的系统映像文件(指向config.ini的链接)已损坏,则可以删除它们,删除所有AVD文件,然后干净下载,创建并重新启动AVD. 就我而言,我的硬件无法在仿真器上正常工作(HAXM错误和过旧的CPU).但是它可以在Linux中运行(但没有KVM支持:非常慢).

      Finally, if your system-image files (link into config.ini) are corrupt, you can delete them, delete all your AVD files, and clean downloading, creating and starting again your AVD. In my case, my hardware is just unable to work fine with the emulator (HAXM bugs and too old CPU). But it works in Linux (but without KVM support : very slow).

      这篇关于Android 29中的kernel-ranchu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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