清除没有root的dalvik缓存? -- updates 领域 和 boot-loop 领域 和 cache 领域 和 dalvik 领域 android 相关 的问题

Clearing Dalvik Cache without root?


简体版||繁體版
6
vote

问题

中文

我最近尝试更新我的摩托罗拉atrix 4g。它下载了,然后启动它以尝试更新。但是,而不是更新,它最终启动到刚刚说

的屏幕
  Failed to boot 2 Starting RSD mode   

如果我拿出电池,我会在手机上启动大约60秒,然后再次开始关闭。

手机rooted,它似乎一旦Android开始发出root权限,就会开始关闭。

通过在线看不同的论坛,似乎是停止手机尝试更新的最佳解决方案(如果通过将手机重置为出厂设置而不用擦除所有数据)是清除Dalvik缓存。

问题是我所拥有的问题是,到目前为止,似乎是为了清除缓存,我需要root,但一旦我的手机已经长时间才能提供root,它可以重新启动,我可以" T做任何事情。要使问题更糟,我似乎无法启动恢复...

是有没有办法清除Dalvik缓存(真的,真正快速,并且)没有root(或恢复)?

英文原文

I recently tried updating my Motorola Atrix 4g. It downloaded, and then it booted down to try to update. However, instead of updating, it ends up booting to a screen that just says

Failed to boot 2 Starting RSD mode 

If I take out the battery, I boot up the phone for about 60 seconds before it starts shutting down again.

The phone is rooted, and it seems like it starts shutting down as soon as Android starts giving out root privileges.

Looking through different forums online, it seems as though the best solution to stop the phone from trying to update (without erasing all my data by resetting the phone to factory settings) is to clear the Dalvik cache.

The problem I am having is that so far, it seems that in order to clear the cache, I need root, but as soon as my phone has been on long enough to give out root, it restarts, and I can't do anything with it. To make the problem worse, I seem to be unable to boot into recovery...

Is there any way to clear the Dalvik Cache (really, really fast, and) without root (or recovery)?

           

回答列表

7
 
vote

我终于想到了它,这就是我的方式:

虽然adb无法获得root,而手机是自我无法获得root,事实证明,实际上还有一个方法可以在不完全启动手机的情况下清除缓存。

  • 关闭电话
  • 确保您在计算机上的FastBoot工作
  • 按手机上的电源按钮,然后按住音量向下按钮,直到看到 fastboot ,然后按音量按钮。
  • 打开终端窗口,然后键入以下

      sudo su fastboot erase cache   

和(显然)vootÃ!缓存已清除!!

 

I finally figured it out, here's how I did it:

Even though adb can't get root, and the phone it's self can't get root, as it turns out, there is in fact one more way to clear the cache without fully booting the phone.

  • Turn the phone off
  • Make sure you have fastboot working on your computer
  • Press the power button on the phone and then hold down the volume down button until you see fastboot, then hit the volume up button.
  • Open a terminal window, and type the following

    sudo su fastboot erase cache 

And (apparently) voilxc3xa0! The cache is cleared!!

 
 
     
     
4
 
vote

这不太可能。 dalvik缓存存储在 /data/dalvik-cache 中,并执行 ls -l /data (以roothy)显示:

  drwxrwx--x system   system            2013-03-29 14:54 dalvik-cache   

如您所见,它由用户拥有 system system ,所有其他用户只有"执行" 权限(即它们仅允许它们更改为该目录)。挖掘<代码> ABCDEFGHIJKLMNABCDEFGHIJKLMN5 显示e.g。:

  -rw-r--r-- system   app_17    6416640 2013-03-02 00:28 data@app@com.google.android.apps.maps-1.apk@classes.dex   

此处的所有文件再次由 system 拥有,这是唯一具有写入权限的唯一用户(即,也是唯一可以删除文件的人)。对应于每个 .dex 文件的应用程序表示为组;但作为所有"其他" 用户,只有读取权限。

结论: root 可以删除这里的东西 - 从常规shell或通过自定义恢复,如例如, ClockworkMod。或者通过a factory-reset ,当然...


虽然,你可以尝试的一件事是启动进入安全模式。如果任何用户应用程序导致麻烦,则设备应启动精细(因为所有用户应用程序都跳过安全模式)。第二个建议是通过USB附加您的设备,并尝试捕获Logcat(通过 ls -l /data0 )来获得一些可能导致麻烦的提示。这当然需要启用 USB调试。如果它尚未启用,您可能可以从安全模式下执行此操作(我不确定,正如我从未尝试过的那样)。
 

That's unlikely to be possible. Dalvik cache is stored in /data/dalvik-cache, and doing an ls -l /data (as root) shows:

drwxrwx--x system   system            2013-03-29 14:54 dalvik-cache 

As you can see, it is owned by user system of the group system, and all other users only have "execute" permission (i.e. they are only permitted to change into that directory). Digging a little deeper with ls -l /data/dalvik-cache shows e.g.:

-rw-r--r-- system   app_17    6416640 2013-03-02 00:28 data@app@com.google.android.apps.maps-1.apk@classes.dex 

All files in here are again owned by system, which is again the only user with write permission (i.e. also the only one who could delete files). The app corresponding to each .dex file is represented as group; but as all "other" users, only has read-permissions.

Conclusion: only root can delete stuff here -- be it from a regular shell or via a custom recovery like e.g. ClockworkMod. Or via a factory-reset, of course...


One thing you could try, though, is booting into safe-mode. If any user app is causing the trouble, the device should boot up fine (as all user apps are skipped in safe-mode). A second suggestion is to attach your device via USB and try to capture a logcat (via adb logcat) to get some more hints on what could causing the trouble. This would of course require USB Debugging to be enabled. In case it was not yet enabled, you might be able doing so from safe-mode (I'm not sure about this, as I've never tried).

 
 
1
 
vote

这样做:

sdk / platform-tools / adb shell

  ls -l /data1  

并重新启动手机。

 

Do this:

sdk/platform-tools/adb shell

 shell@android:/ $ su system                  # switch from user "root" to "system"  system@android:/ $ cd data/dalvik-cache/  system@android:/data/dalvik-cache $ rm *  system@android:/data/dalvik-cache $ exit  shell@android:/data $ exit 

and reboot your phone.

 
 
     
     
0
 
vote

做备份。

如果您有燃料现在工作,请安装:

  1. flashy现在

  2. 安装高级恢复,如twrp(fuel 特定的)。然后,您只能从工作系统运行恢复(尚未将键组合工作,从Flashy Dialogs到启动TWRP恢复)。

  3. 一次在恢复中,然后最后你的电脑可以做adb(最后得到shell,我在另一个燃料上测试),希望从那里锁定(像我一样)和可以解锁引导加载程序。

    因为,如果你不这样做,那么你会更换手机,如果它是掠过的。 LG表示,我的do(重复停止流程,不使用手机)只是通过定期自动更新!它进展无法设置访问。

 

Do backups.

If you a have Fuel that's now working, install:

  1. Flashy now

  2. Install an advanced recovery like TWRP (Fuel specific). Then you can only run recovery from a working system (no key combo works yet, get there from Flashy dialogs to start the TWRP recovery).

  3. Once in recovery then finally your computer can do ADB (finally getting shell, I tested on another Fuel) and hopefully from there you will not be locked out (like me) and can unlock the boot-loader.

    Because, if you don't then you will be replacing your phone, should it go loopy. LG said mine did (repeated stopped processes, no use of the phone) just by regular auto updates! It progressed to no settings access.

 
 
   
   
0
 
vote

您甚至不需要root来清除dalvik缓存。你可以用股票恢复来做。关闭电话&amp;启动恢复(我不知道ATRIX的关键组合是什么,因此您必须将其查找,因为关键组合与一个手机不同)&amp;寻找一个选择类似于"Clear Dalvik缓存" 命中音量的选项以突出显示它&amp;选择它&amp的权力;等到它的靴子可能需要比平时更长的靴子,这是正常的。在重建您的应用程序名单时,请留下一段时间。因为它植根了,我不知道可能是任何不同的。我听说过Dalvik文件夹和3 + GBS一样大。

 

You don't even need root to clear dalvik cache. You can do it with the stock recovery. Shut off the phone & boot into recovery (I don't know what the key combination for the atrix is, so you'll have to look it up as the key combination is different from one phone to another) & look for an option that says something like "clear dalvik cache" hit volume down to highlight it & power to select it & wait until it boots which will probably take a lot longer than usual, which is normal. Leave it sit awhile while it rebuilds your list of apps. I don't know that might be any different since it's rooted. I've heard of the dalvik folder being as big as 3+GBs.

 
 

相关问题

1  在ARM Linux上安装/运行Android Skype?  ( Install run android skype on arm linux ) 
我有一个带臂处理器的Chromebook。 我在那个Chromebook上安装了Ubuntu。 但是,由于没有用于ARM Linux的Skype-Biary,因此可以使用Android APK的Skype版本,并在我的ARM Linux上运行它? 是有一些Dalvik环境或Arm Ubuntu的转换器吗? 如果...

17  如何保持Dalvik缓存的大小小?  ( How to keep the size of the dalvik cache small ) 
我有一个问题,Dalvik缓存很大,占据了我手机上的所有空间。我正在运行cyanogenmod 7.x.对于记录,我的手机上有大约5-6个小型应用程序(键盘,语音选择,Gmail等),但我在"管理应用程序" 中显示了大约187MB的使用和9.7MB的内部存储。 i简单 du -h -d 1 / 显示: 0 ...

1  Dalvik Speed补丁是什么?  ( What is the dalvik speed patch ) 
最近我一直听到Dalvik Speed补丁,以便通过Dalvik JVM增加应用程序的解释速度。谷歌的唯一提及是Facebook的"黑客" 的Dalvik JVM,允许Facebook应用程序安装在传统电话上。我相信这不是Dalvik速度补丁。 帖子在暂时谈论修补程序的位置: "新分数... PA 3.99 RC2...

3  为Micromax A50安装USB驱动程序  ( Installing usb driver for micromax a50 ) 
我必须为 Micromax A50 安装USB驱动程序。 我通过SDK Manager安装了Google USB驱动程序,但需要专门为此设备提供USB驱动程序。要安装此USB驱动程序我认为,我需要PC套件。从哪里可以得到这个? 我的目标是为Micromax A50安装USB驱动程序,以便在Dalvik调试监...

1  为什么应用程序数量“优化”不反映删除应用程序?  ( Why does the number of apps optimized not reflect removed apps ) 
我已经阅读了以下优化的详细信息:什么样的应用程序优化在第一次重新启动时做右上方的Android版本? 和我的问题略微跟进。 我使用twrp在我的tf700t上运行cm夜生星,以闪存,并每次擦除Dalvik缓存。我理解优化过程重建Dalvik缓存,但它看起来它试图使用我安装的每一个应用程序重建缓存,而不仅仅是当前安装...

2  为什么Dalvik虚拟机需要在每个过程中运行?  ( Why does dalvik virtual machine need to run in every process ) 
JVM和DVM都提供虚拟环境。 JVM不需要在每个过程中。 为什么DVM需要在每个过程中? 谢谢。 ...

6  清除没有root的dalvik缓存?  ( Clearing dalvik cache without root ) 
我最近尝试更新我的摩托罗拉atrix 4g。它下载了,然后启动它以尝试更新。但是,而不是更新,它最终启动到刚刚说的屏幕 Failed to boot 2 Starting RSD mode 如果我拿出电池,我会在手机上启动大约60秒,然后再次开始关闭。 手机rooted,它似乎一旦Android开始发出ro...

2  从Android中删除Dalvik  ( Removing dalvik from android ) 
我没有经验,所以如果听起来有点愚蠢,请原谅我: 是否可以从Android中删除所有"用户层" 应用程序和Dalvikvm,只需获取所有库和驱动程序的普通Linux的嵌入式操作系统已配置?图形环境是否需要dalvikvm?我可以在这种情况下获得经典终端吗? 也许有人已经完成了这样的事情或者知道有关它的良好资源? ...

1  “Android正在更新”每个启动  ( Android is updating on every boot ) 
在每个启动时,我得到"Android正在更新" (优化应用程序)屏幕。 我尝试了一些方法。我删除了 /data/app 字典中的所有自定义odex文件,并删除了dalvik缓存,但它仍然在每个启动时。我怎么能摆脱它? ...

4  在将运行时更改为艺术后,Moto E并不正确  ( Moto e not starting properly after changing runtime to art ) 
我最近买了一个 moto e ,它的工作很酷。然后我已经启用了开发人员选项并将我的运行时间从 dalvik 更改为艺术。之后我重新启动了我的设备。我收到了消息 android正在升级。填写过程后,我得到了例外,如 unfortunately the process com.android.phone has st...




© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有