Whatsapp ART support

Dark Fear

Senior Member
Oct 12, 2011
828
135
73
Tehran
Good news, I manage to get version 2.11.42 running under art. The trick is however, you need to first switch back to dalvik, install it, then switch back to art again.

Go give it a try. Works for me.

One catch, the attach photo from gallery not working, but still can share from gallery to whatsapp, just not from whstsapp to pick from gallery. I can live with that.

The latest version I got running is 2.11.50
confirmed.. 2.11.42 working as you said
tnx bro :victory:
 

qwerp_

Senior Member
Oct 8, 2010
381
158
0
hi guys.

basically, there is 2 issue here.

1. The Package Installer.
(this is where under ART, it does not install properlly and then cause the -42 issue even when you switch back to dalvik).
This, google has confirm is a issue and needs to fix. the work around is to delete the /data/data/com.whatsapp.X directory, then you can re-install under dalvik.

2. Whatsapp apk itself is not ART compatible.
it seems that version 2.11.50 (i tested so far, or 2.11.42) can run/be compiled with linART.
so, if you able to install in under Dalvik, when switch to ART, the optimizing Application on start will then create .oat which will run.
any older version seems to have "obsolete" flag on whatsapp server. eg 2.11.12 which can be both install and run under ART.


In summary. to run whatsapp, you need either 2.11.42 or .50 (these 2 are tested) installed under dalvik mode. (Do not upgrade it), then switch to ART. Job done.
 
Last edited:

wietse1988

Senior Member
Mar 11, 2011
648
288
0
I was on V2.11.134 when I changed dalvik to art. After I rebooted, whatsapp didn't work. I deleted whatsapp and installed V2.11.42 (the one posted a few posts back) And it did install and work under ART. So it does work ;)
 

slg60

Senior Member
Feb 22, 2010
384
43
0
Ok, then I will stick with Dalvic for the moment. Whatsapp is too important. The difference between dalvic and Art is (in my opinion) not really recognizeable, so... lets wait untis this ART is stable. Must be a reason why it is not available for Nexus 10....!?
 

qwerp_

Senior Member
Oct 8, 2010
381
158
0
Ok, then I will stick with Dalvic for the moment. Whatsapp is too important. The difference between dalvic and Art is (in my opinion) not really recognizeable, so... lets wait untis this ART is stable. Must be a reason why it is not available for Nexus 10....!?
that is interesting. Its available for nexus 7 thou.
 

GTMoraes

Senior Member
Dec 3, 2010
1,553
337
0
Recife
Somebody tried to do a factory reset and then Install whatsapp?
When I interpret the last sentence from this Google Bug tracker url posted somewhere in this tread, then this should solve the issue.
I anyway have to do that because of Bootloader unlock, so when this is working, then I would stay with ART.???

https://code.google.com/p/android/is...ummary Stars
Link's incorrectly pasted!
 

Lanhoj

Member
Jul 26, 2011
39
17
0
Good news, I manage to get version 2.11.42 running under art. The trick is however, you need to first switch back to dalvik, install it, then switch back to art again.
...
Sweet, thanks!
2.11.42 worked for me. I didn't try any newer version though.
 

ashishv

Senior Member
Apr 24, 2011
901
255
83
Los Angeles
Ok, then I will stick with Dalvic for the moment. Whatsapp is too important. The difference between dalvic and Art is (in my opinion) not really recognizeable, so... lets wait untis this ART is stable. Must be a reason why it is not available for Nexus 10....!?
The reason it isnt available on N10 and N7(2012) is because art is supported only on qualcomm cpu's.:cool: