Advertisement
hlxanthus

NEWart.enable.disable

Apr 23rd, 2014
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. #!/sbin/sh
  2.  
  3. if [ ! -f /data/property/persist.sys.dalvik.vm.lib ]; then
  4.  
  5.     echo -n libart.so > /data/property/persist.sys.dalvik.vm.lib
  6.    
  7. else
  8.  
  9.     libart=$(stat -c%s /system/lib/libart.so)
  10.     libdvm=$(stat -c%s /system/lib/libdvm.so)
  11.     runtime=$(stat -c%s /data/property/persist.sys.dalvik.vm.lib)
  12.  
  13.     if [ $libart=$runtime ] then
  14.         echo -n libart.so > /data/property/persist.sys.dalvik.vm.lib
  15.     fi
  16.    
  17.     if [ $libdvm=$runtime ] then
  18.         echo -n libdvm.so > /data/property/persist.sys.dalvik.vm.lib
  19.     fi
  20. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement