Whatsapp ART support

Search This thread

forgus

New member
Nov 15, 2013
3
0
Guys, I'm using ART now in my Nexus 4, my WhatsApp is the version 2.11.50.

Now I wanna back to DAVILK, can I just back without problem and later update my WPP or do I should do something before back?
 
Last edited:

acilsekirlet

Senior Member
Dec 29, 2010
150
25
Which part of Google's guys saying the problem is with ART and not Whatsapp is causing you to believe that?

There and there.

Project Member #46 b...@google.com This really isn't a WhatsApp issue. They have bytecode that fails to verify for ART, but verified just fine for Dalvik. In ART we tried to add more aggressive checking of monitorenter/monitorexit balance where Dalvik did not but we are going to back that off now that it is clear there are apps relying on this pattern.
Project Member #77 b...@google.com I'll reiterate that this is not the fault of the WhatsApp application. The ART verifier was blocking the installation of this app, but we are going to fix ART to address this issue. I'll update this bug when the fix is in AOSP.
 
Last edited:

sooramma

Member
Jul 15, 2010
45
2
whatsup installation problem

I have installed KitKat through ota. Whatsup working well initially. Later changed to ART . Whatsup cashed. Then I changed to dalvik. Even then Whatsup not worked. Tried to reinstall it using .50 and .42 versions. No use . Always showing 24 error. Please help me to install Whatsup.
 

sooramma

Member
Jul 15, 2010
45
2
Thanks for your nice help and swift reply.
The thing is I don't want to shift to ART as of now.
I want to stay back in Dalvik only. But In Dalvik when I try to reinstall Whatsup it is always showing "24" code error. How to reinstali in Dalvik.
I tried .50 and .42 versions also but invain.
On stock and not rooted
 
Last edited:

qwerp_

Senior Member
Oct 8, 2010
387
159
I guess, its a google issue after all.

if you use the patched "libart.so" and install latest whatsapp, it will be able to generate the OAT file.

It seems that if you temporary replace the original "libart.so", install Whatsapp (get OAT file available), then switch back to the stock "libart.so", whatsapp will still be happly running.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 59
    Per the hints from Google, I was able to get current versions of WhatsApp to install under ART by overriding one of the verifier checks.

    Here is the procedure to replace libart.so and clean up any partially-installed WhatsApp package, tested on a Nexus 5 running AOSP 4.4:

    Code:
    adb root
    adb remount
    adb shell "rm -rf /data/data/com.whatsapp"
    adb pull /system/lib/libart.so libart.so.bak
    adb push libart.so /system/lib/

    If something goes wrong it may well result in a bootloop, so if you need to restore from backup, boot to recovery and use:

    Code:
    adb shell "mount /system"
    adb push libart.so.bak /system/lib/libart.so

    Source changes: https://github.com/cernekee/android_art/commit/fc2ac71d0d9e147c607bff9371fe2ef25d8470af

    Note that I have not tested this on a Nexus 4 (despite this thread's current location).

    Update 2013/12/07: Google's official fix is posted here. This was included in KK 4.4.1.
    33
    let me put this here...

    0K4JaM7.jpg
    30
    So, according to the devs of whatsapp, ART doesn't support their app... Do they understand what a runtime environment means? I'm guessing someone is laughing hard at the Google offices with the bug they've "reported".
    "Yep, we're going to modify our runtime environment because their app doesn't run with it.".

    Sent from my Nexus 4 using Tapatalk
    18
    Shah, exactly. It's like asking Linus to change Linux so it can run Outlook 2013.

    Sent from my Nexus 4 using Tapatalk
    10
    There's a piece of news for all of you ART converters who are waiting for a Whatsapp update (WA currently crashes on ART runtime).
    I've sent an email to WA support team to ask when a future update will be available which will solve the fc when running ART.

    Here's the reply from the support team:

    "Hi,
    Thanks for your message. Currently, ART does not support WhatsApp. Since ART is still in beta stage, WhatsApp will continue to run in Dalvik until Android has been fully converted to ART. A bug has been reported to Google regarding this issue. We apologize for any inconvenience this may have caused.
    If you have any other questions or concerns, please feel free to contact us. We would be happy to help!".

    So, take your own conclusions. Mine is that we will not see any update of any app currently having issues with ART until Android will take it out of the beta stage and will make it the default compiler (Android 5?).