Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Whatsapp ART support

OP scleone1987

23rd November 2013, 09:25 PM   |  #131  
Senior Member
Thanks Meter: 2
 
109 posts
Join Date:Joined: Jul 2007
Quote:
Originally Posted by carblanco

Why does this fix not work with CM11 KRT16S?

So, any fix to continue with CM11 KRT16S? I don't know the difference between CM11 KRT16S and other KRT16S based ROMs...
25th November 2013, 12:23 AM   |  #132  
Senior Member
Thanks Meter: 25
 
150 posts
Join Date:Joined: Dec 2010
Quote:
Originally Posted by alienmind

It's impossible to cause any drain. That fix only removes a few lines of code...!

Sent with my cold fingers from the grave

In fact, the modified libart removes ALL the checks introduced in libart.so. We all know that some Google engineers were identified those checks as "excessively restrictive" but mere disabling is not a good idea in my point of view, as this may also cause vulnerability.

I believe it is still on Whatsapp's end to make their software to be compatible for such flags. I can't just simply take a Google guy's words approaching this issue with words such as "if dalvik is accepting the package, so should art".

A package verifier should be restrictive by nature. We, nevertheless should either go for certain relaxation for letting only Whatsapp package or pressure the developers of Whatsapp to make their apps compatible with art.
The Following User Says Thank You to acilsekirlet For This Useful Post: [ View ]
25th November 2013, 12:44 AM   |  #133  
Senior Member
Thanks Meter: 383
 
186 posts
Join Date:Joined: Jun 2013
Quote:
Originally Posted by acilsekirlet

In fact, the modified libart removes ALL the checks introduced in libart.so.

It bypasses the checks that try to make sure MonitorEnter and MonitorExit match up. Nothing else.

MonitorEnter and MonitorExit are used to implement Java locking (the "synchronize" keyword).

Quote:

I believe it is still on Whatsapp's end to make their software to be compatible for such flags.

I haven't looked at the .dex files in detail, but I suspect that Whatsapp and TitaniumBackup may be failing verification due to the use of bytecode obfuscators.

If this output is coming from ProGuard (Google's official obfuscator), that's a Google problem. If the unobfuscated output from the SDK also fails, that is also a Google problem.

If the output is coming from a third-party obfuscator, one could argue that it is the app vendor's responsibility to make sure it works consistently across all client devices (and change obfuscators if it doesn't).
The Following 3 Users Say Thank You to cernekee For This Useful Post: [ View ]
25th November 2013, 06:04 AM   |  #134  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Feb 2013
whatsapp 2.11.42
hey can someone please provide the download link dor whatsapp 2.11.42...whatsapp 2.11.50 not installing on dalvik nor on art...
Thank you
25th November 2013, 07:21 AM   |  #135  
nmlssit's Avatar
Senior Member
Flag Reggio Emilia
Thanks Meter: 157
 
468 posts
Join Date:Joined: Oct 2012
More
Quote:
Originally Posted by cernekee

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_...fe2ef25d8470af

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

Edit: Managed to make it work! Thank you very much
Last edited by nmlssit; 25th November 2013 at 08:43 AM.
25th November 2013, 01:34 PM   |  #136  
Rusty!'s Avatar
Recognized Contributor
Flag Portsmouth
Thanks Meter: 1,787
 
8,004 posts
Join Date:Joined: Jan 2010
More
Quote:
Originally Posted by acilsekirlet

I believe it is still on Whatsapp's end to make their software to be compatible for such flags. I can't just simply take a Google guy's words approaching this issue with words such as "if dalvik is accepting the package, so should art".

Which part of Google's guys saying the problem is with ART and not Whatsapp is causing you to believe that?
25th November 2013, 05:33 PM   |  #137  
Junior Member
Thanks Meter: 1
 
13 posts
Join Date:Joined: Sep 2011
Whatsapp install failed after ART to Dalvik runtime swtich?
Hi.

Could somone please help me fix the issue with whatsapp. I switched to ART runtime. Unable to run whatsapp. I uninstalled and reinstalled whatsapp . Got error 24 during install.

Now i went back to Dalvik runtime. Now I am unable to install whatsapp from web or from phone.

My phone is not rooted. is there any workaround to install whatsapp again without having to factory reset or root my phone ?
25th November 2013, 06:11 PM   |  #138  
Senior Member
Thanks Meter: 383
 
186 posts
Join Date:Joined: Jun 2013
Quote:
Originally Posted by apurvaappu

Could somone please help me fix the issue with whatsapp. I switched to ART runtime. Unable to run whatsapp. I uninstalled and reinstalled whatsapp . Got error 24 during install.

Now i went back to Dalvik runtime. Now I am unable to install whatsapp from web or from phone.

My phone is not rooted. is there any workaround to install whatsapp again without having to factory reset or root my phone ?

In this scenario, error -24 (INSTALL_FAILED_UID_CHANGED) typically means there is a stale copy of the app's data directory lying around from the failed installation attempt. According to Google, this is a long-standing Android bug.

Try this, then install the package:

Code:
adb root
adb shell "rm -rf /data/data/com.whatsapp"
25th November 2013, 07:31 PM   |  #139  
dexviajiboy's Avatar
Senior Member
Flag Golden Sandy
Thanks Meter: 178
 
383 posts
Join Date:Joined: Dec 2012
More
v2.11.50 ART compatible
*Tested on CM11 KRT16S ART runtime
Last edited by dexviajiboy; 30th November 2013 at 10:11 PM.
The Following 3 Users Say Thank You to dexviajiboy For This Useful Post: [ View ]
25th November 2013, 11:20 PM   |  #140  
Senior Member
Thanks Meter: 74
 
339 posts
Join Date:Joined: Jul 2009
More
Quote:
Originally Posted by dexviajiboy

v2.11.50 ART compatible
*Tested on CM11 KRT16S ART runtime

Refuses to install on my nexus 5

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes