Whatsapp ART support

Sturdy_99

Senior Member
Apr 7, 2012
415
208
0
Pune
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).
did it with toolkit...whatapp installed...and not force closing now...i did not do that adb shell command....i was not getting it bt everything is working great...
 
Last edited:

dhruvmalik

Senior Member
Dec 30, 2007
1,301
482
0
Chicago / India
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).
Just used Root Explorer and changed permissions accordingly, Rebooted and updated Whatsapp via Playstore. All is well.

Thanks so much.
 
  • Like
Reactions: chrone

tonyreimer

Senior Member
Mar 14, 2011
352
94
58
I just extracted it and copied and pasted into system/lib with root explorer. My phone did a soft reboot aaaand I updated whatsapp. :)

Sent from my Nexus 4 using XDA Premium 4 mobile app
 
  • Like
Reactions: chrone

mbutandola

Senior Member
Jan 3, 2011
1,236
212
0
Paris
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).
Do you think we could apply the same tweaks to get Titanium backup working?
 

HamsterHam

Senior Member
Jan 3, 2011
1,523
533
113
Can someone upload the new libart file please or explain how I download it from github? Thanks.

Edit: Just saw the attachment in the post.

Sent from my Nexus 4 using Tapatalk

---------- Post added at 07:50 AM ---------- Previous post was at 07:03 AM ----------

I just extracted it and copied and pasted into system/lib with root explorer. My phone did a soft reboot aaaand I updated whatsapp. :)

Sent from my Nexus 4 using XDA Premium 4 mobile app
I'm getting packaged file invalid on all play store updates.

Sent from my Nexus 4 using Tapatalk
 
Last edited:

HamsterHam

Senior Member
Jan 3, 2011
1,523
533
113
I fixed the play store updates by setting permissions to 777 but now I cannot install whatsapp. Is there anything else required? Cheers for the help btw.

The error is that 24 one.

Sorted it all out, I did it wrong lol.

Sent from my Nexus 4 using Tapatalk
 
Last edited:
  • Like
Reactions: wywerny

wywerny

Senior Member
Mar 10, 2011
203
38
58
Bangkok
I fixed the play store updates by setting permissions to 777 but now I cannot install whatsapp. Is there anything else required? Cheers for the help btw.

The error is that 24 one.

Sorted it all out, I did it wrong lol.

Sent from my Nexus 4 using Tapatalk
How can you solve it?
I've made the same mistake:crying:


I got it. I haven't clean /data/data/com.whatsapp
 
Last edited:
  • Like
Reactions: HamsterHam

deepayanneogi

Senior Member
Apr 15, 2012
525
92
0
Hyderabad
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).
This guy is great, this post should be sticky in general section.

---------- Post added at 03:19 PM ---------- Previous post was at 03:18 PM ----------

How can you solve it?
I've made the same mistake:crying:


I got it. I haven't clean /data/data/com.whatsapp
Replace the old libart with the new one, set perm as rw-r-r, reboot, profit.
 
  • Like
Reactions: chrone

beje86

Senior Member
Sep 2, 2010
179
66
0
I had a bootloop at first (stupid me forgot to set permissions) but I could easily fix that with TWRP and now it's working like a charm, Whatsapp and all. I'll check other apps but I guess if people haven't made that much noise I can live without them. After all, everything I use Titanium Backup for is nothing I cannot achieve with some adb commands :p

Thanks!
 

nitin.chobhe

Recognized Contributor
Jan 3, 2013
8,109
19,531
263
Pune
I had a bootloop at first (stupid me forgot to set permissions) but I could easily fix that with TWRP and now it's working like a charm, Whatsapp and all. I'll check other apps but I guess if people haven't made that much noise I can live without them. After all, everything I use Titanium Backup for is nothing I cannot achieve with some adb commands :p

Thanks!
What permissions do I need to set? rw- r-- r--? I'm using ES File explorer...