Optimized Dalvik? Or Art? - Moto X Q&A

How do I use the optimized dalvik binaries? In developer mode I only see option for Dalvik or ART

http://forum.xda-developers.com/showpost.php?p=52353481&postcount=21
It is one or the other. Art also has what seems to be a compatibility mode. But as many report, not for Xposed.

Related

Omni ART run faster than Dalvik

hi
Changed Omni (omni-4.4.2-20140204-mint-NIGHTLY) run time to ART, now Omni run faster and faster than dalvik and without any lag but "Deus Ex: The Fall" not able to run.
ART cpu benchmark Twice better than Dalvik cpu benckmark.(Quadrant advanced )
thanks
open-mind said:
hi
(...) but "Deus Ex: The Fall" not able to run.
Click to expand...
Click to collapse
Square Enix says Deus Ex: The Fall doesn't support ART and recommends you to switch back to Dalvik. Try Googling for "deus ex: the fall ART dalvik"
ART is experimental.
Yes, it's fast - but it's also not fully compatible yet. There's a reason that Omni and CM now pop up a big warning saying "don't file bug reports if you turn this on" when you attempt to turn on ART.

Framework not active no matter what i do

my phone is the Blu VIVO IV (aka Gionee ELIFE S5.5) with kit kat and I got it rooted by following this post
http://forum.xda-developers.com/android/development/root-blu-vivo-iv-kitkat-4-4-2-t2854480
-I have superSu pro installed
-Root checker shows that I am rooted
-Mobile uncle runs (shows root) and I have no problem loading the recovery image
-unknown sources enabled
But xposed framework does not work correctly and I can't figure out what is wrong
- Xposed framework 2.6, 2.6.1 and 2.7 installs but it keeps telling me
"The latest version of Xposed is currently not active. Did you install the framework and reboot"
When I look under active and bundle. The # of active is the same as the bundled (app_ process 58 green active/ 58 bundled red)
I have reinstalled with classical, recovery (flash automatically) and recovery (manual flash). Same thing happens in all cases
If i ignore it and install modules, they do not take effect because it keeps telling me that xposed framework is not active.
- I tried xposed framework 2.5 and 2.5.1. They install and after a reboot becomes xposed is active and i don't get the message that it is unactive but i get crashes on my system ui. Gallery, mobile uncle and etc.
so i did a little more digging and I found that if check the "disable resource hooks" xposed now runs as active but most of the modules I'm using don't run
my logs shows the following
errors during xposed initialization
java.lang.ClassCastExpection: class android content res XResources doesn't extend class amigo theme core res GioneeResources
I assume that means that theming engine on my phone is interfering with Xposed?
anyone know i can get this resolved? I like to use xposed framework on blu vivo IV
rolexconfuse said:
anyone know i can get this resolved? I like to use xposed framework on blu vivo IV
Click to expand...
Click to collapse
Sorry for the obvious question, but...
are you using ART ? If so Xposed automatically deactivates itself, since it's only compatible with Dalvik !
dev>null said:
Sorry for the obvious question, but...
are you using ART ? If so Xposed automatically deactivates itself, since it's only compatible with Dalvik !
Click to expand...
Click to collapse
sorry but can you explain what ART is? I believe the phone is running Dalvik
Sorry, I found what ART was and I have the option to run ART or Dalvik and I am running under Dalvik right now under "developers Option"
Digging around in the forum I know that the Huawei phones had the same issue but then they could just edit one line in the build.prop and it worked. Unfortunately this doesn't work for me since that line is specific to just huawei phones.
help
I'm having same problem with gionee, exposed framework won't installe
Having same problem as everyone else with Gionee s5.5.
dev>null said:
Sorry for the obvious question, but...
are you using ART ? If so Xposed automatically deactivates itself, since it's only compatible with Dalvik !
Click to expand...
Click to collapse
I think you have that backwards... It switches back to dalvik...
getting the same error
'
Errors during Xposed initialization
java.lang.ClassCastException: class android.content.res.XResources doesn't extend class amigo.theme.core.res.GioneeResources
ok I sort it out
http://forum.xda-developers.com/showthread.php?t=2681678
thanks to "mundraguda"
help
rolexconfuse said:
Sorry, I found what ART was and I have the option to run ART or Dalvik and I am running under Dalvik right now under "developers Option"
Digging around in the forum I know that the Huawei phones had the same issue but then they could just edit one line in the build.prop and it worked. Unfortunately this doesn't work for me since that line is specific to just huawei phones.
Click to expand...
Click to collapse
help me...
i've huawei g700 u-10
pfff
I'm having same problem with gionee, exposed framework won't install
1-Install the xpose and open
2-Go to the framework and tap to "install/update"
3-reboot your phone
4- Again open the xpose go to framework and tap to
Installation mode" classical (write to/ system directly)
5- change the classical (write to/ system directly) to
Recovery (flash zip automatically)
6- And version change to "beta (sum box to be expected) click
7- Disabled to resource hooks click and back
Click the reboot don't click the "install/update"
And reboot your phone and enjoy:
divakark you are a hero. My Tornado 348 wouldn't work whatsoever and I followed what you said and it works perfectly thanks so much

[Q] Apps take forever to download and install. Any Ideas???

I have owned the Moto G 2014 since January. I like the phone but get very frustrated at how it slows down excessively. I am running Lollipop 5.0.2 which I received OTA bere in the USA. After I downloaded Lollipop, I did a full factory reset on the phone to make sure everything was cleared out. One of the major problems I am having is downloading apps and updating apps from the Play Store. The download time takes WAY longer than on any of my devices that are attached to the same network. Once the app or update downloads, it again take three or four times as long to install as on my other devices (including a Nexus 7 running Lollipop. Any ideas out there. I like the phone but it gets SO LAGGY and SLOW.
Clearing the dalvik cache may help.
Go to Settings > Apps > All > Download Manager > Clear Data and Cache and restart the phone. Then go to Playstore and download the apps.
Lollipop uses ART as compared to Kitkat which uses Dalvik VM. Google for the differences
ART (Ahead of Time) compiles the bytecode before execution as compared to Dalvik (Just In Time) which compiles it during run-time.
So at the time of installation apps take a bit to install as compared to Kitkat.

Why does Magisk always clear Dalvik cache when i activate or update or deactivate

a module ?
Xposed rootless for example, at each Snapchat logon i have to deactivate/activate it, and each deactivation it's a full dalvik remake (1h).
And the switch toggle of Xposed doesn't work for SafetyNET or SnapChat, so the module have to be deactivated
It's impossible and too long !
So i don't use XPosed and don't make Update of module !
pingopower said:
a module ?
Xposed rootless for example, at each Snapchat logon i have to deactivate/activate it, and each deactivation it's a full dalvik remake (1h).
And the switch toggle of Xposed doesn't work for SafetyNET or SnapChat, so the module have to be deactivated
It's impossible and too long !
So i don't use XPosed and don't make Update of module !
Click to expand...
Click to collapse
Easy, everything has to be optimized for Xposed. But... I don't have long boot time on my device. Activate and deactivate Xposed in magisk is very quick for me. Normal boot time for both. Moto e4 on nougat 7.1.1. so it may be something specific to your device or Android version. Your device may just be very slow optimizing. Do you have a ton of apps installed? Because that makes optimization even longer. It is a very resource intensive operation.
No other modules should have that besides Xposed. Like I said, Xposed MUST optimize EVERYTHING.
pingopower said:
a module ?
Xposed rootless for example, at each Snapchat logon i have to deactivate/activate it, and each deactivation it's a full dalvik remake (1h).
And the switch toggle of Xposed doesn't work for SafetyNET or SnapChat, so the module have to be deactivated
It's impossible and too long !
So i don't use XPosed and don't make Update of module !
Click to expand...
Click to collapse
I don't know why the switch inside Xposed dont work for you. It worked for me when I used Marshmallow.
But what happens about the dalvik is that Xposed is a very complex and extended modification that can hook (and therefore alter) pretty much every app on your device. So when you "remove" or "install" it by enabling or disabling the module on magisk a dalvik wipe is triggered by the system the next time you boot.
The process is similar to when you systemize an app or updates your device, but instead of one or few apps to recompile, the system has to recompile (aka "optimize") most, if not all the apps on your system.
On Marshmallow specially, the Android uses an Ahead Of Time (AOT) compiler, meaning that all this compilation will occur on next boot, before the rest of the system can be used. To fix this problem, Google started using Just In Time (JIT) compiler from Nougat on, meaning that the optimization will occur when and if necessary, and if possible when the device is idle or not being intensely used. That's why in Nougat or Oreo this problem does not happen.

[HELP] Xposed installed but not active on Oreo

I'm sorry for my poor English..:crying:
This problem has been questioned a lot but I still can't find an answer suitable for me.
I upgraded my LineageOS 14.1 to 15.1 yestdoday with wiping system, cache and dalvik cache, and data not wiped. And install magisk xposed 90.2, but it said 'framework installed but not active'.
I tried reboot (not soft reboot) my phone, then every thing keeps FC.
After a soft reboot, every thing seems to work fine, and Xposed Installer said framework is active. But some modules said 'module not active' while others work perfectly.
Modules not work: QXposed (for QQ), WeXposed (for WeChat), FingerprintPay (for payment apps)
Modules work: Xposed Edge, Android Phone Vibrator, Greenify, InstantFaceUnlock, etc.
Why I got this problem?
In a word, xposed doesn't work after a reboot (via app or power button), but works after a soft reboot. And modules that target for apps (not for system) don't work.
Thx very much!

Categories

Resources