Skip to main content

[Android] Ganti runtime ART dan Dalvik via ADB

ART is a new Android runtime being introduced experimentally in the 4.4 release KitKat. This is a preview of work in progress in KitKat. It is available for the purpose of obtaining early developer and partner feedback. - Android developers
Android Recovery

Bisa dikatakan bahwa ART ini masih belum rilis dan masih dalam tahap pengembangan. Namun runtime ini sudah tersedia di Android KitKat. Saya sudah pernah mencoba runtime ini pada Moto G saya, dimana masih ada beberapa bug yang membuat saya berpindah kembali ke Dalvik.

Mengapa saya menulis ini ? Sedikit cerita, pagi hari ini saya mengalami soft brick gegara pindah ke ART, dimana HP saya cuma terkunci di lock-screen dan ketika dibuka, beberapa detik kemudian masuk kembali ke lock-screen gegara ada crash pada com.systemui-nya. Setelah bingung mencari cara agar bisa masuk ke Settings untuk kembali ke mode Dalvik, saya akhirnya terpikirkan untuk menggantinya lewat ADB. Caranya cukup simpel dan hanya untuk yang sudah di ROOT saja.

Pastikan anda mempunyai koneksi ke smartphone anda untuk melakukan koneksi ADB. Saya kebetulan mempunyai WiFi ADB yang bisa membuka koneksi ADB melalui jaringan WiFi. Kabel USB sudah saya coba dan tidak bisa pada keadaan normal. Jika anda ingin menggunakan kabel USB, coba jalankan pada mode fastboot, cara ini belum saya coba, karena tadi sudah bisa dikembalikan lewat WiFi.

Langsung saja buka program ADB di komputer anda yang bisa diunduh di sini dan ikuti cara berikut :
  1. Pada kasus saya, jika anda melakukan akses melalui WiFi, smartphone anda akan memiliki IP Address sendiri, langsung saja tembak IP nya dengan mengetikan adb connect 192.168.xxx.xxx diisi sesuai dengan IP anda.
  2. Tunggu sampai ada tulisan connected ke blablabla.. Brarti device anda sudah siap.
  3. Masuk ke shell dengan cara ketikkan adb shell 
  4. Seperti yang sudah saya bilang tadi, cara ini membutuhkan device yang sudah di ROOT. Langkah selanjutnya ketikkan su
  5. Jika anda menunggu lama untuk masuk ke root, coba buka lock screenya, siapa tahu aplikasi Super User di smarthpone sedang memberikan konfirmasi akses root. Jika ya, langsung disetujui saja.
  6. Jika sudah berhasil masuk ke root, ditandai dengan adanya tulisan root pada command line.
    Root mode di ADB
  7. Masuk ke direktori /data/property dengan mengetikan cd /data/property dan buka isi dari persist.sys.dalvik.vm.lib dengan mengetikkan cat persist.sys.dalvik.vm.lib
  8. Lihat isinya, jika berisi libart.so brarti anda sedang pada mode ART. 
  9. Anda bisa langsung menggantinya dengan Dalvik dengan mengetikkan echo libdvm.so > persist.sys.dalvik.vm.lib
    Ganti ART ke Dalvik
  10. Coba cek lagi dengan mengetikkan cat persist.sys.dalvik.vm.lib apakah sudah berisi dengan libdvm.so. 
  11. Sudah ? silahkan reboot kembali smartphone anda, dan berharap semuanya kembali normal seperti smartphone saya tadi :)
  12. Jika ingin kembali ke mode ART, ganti menjadi libart.so
Good Luck :)

Comments

Popular posts from this blog

HackRF Mayhem Failed to Update - M0 Guru Meditation Hard

I was on Mayhem Portapack v2.0.1 and want to upgrade to the latest stable release v2.1.0. The update went okay using the web upgrade https://hackrf.app/. But then I saw the latest nightly update and want to try it, since it has many new tools that are not yet included in the stable release. But then the update failed :( Disclaimer: I didn't take any photos of the errors, since I was focused on googling the solution. So the error was " Bad Firmware or Failed W/R error" during the upgrade process, and it was stuck. So I had to restart the device, and it was booting to the Mayhem menu, but on the bottom left, which should show the current firmware version, it was showing a  "FLASH ERR"  message. I think I should go back to the stable release, but I can't. Every time I want to flash the stable release version, the portapack will shows an error M0 Guru Meditation - Hard Fault.  There's an issue that was closed on the Mayhem GIT repo that has the same issue a...

Macintosh Classic II Brightness Issue

The Problem My Macintosh Classic II suffers from an issue where the display CRT goes dim after a few minutes on a cold boot. Every time it happens, I need to crank up the cut-off and brightness  pot behind the machine to show the image. The Analyze At first, I thought it must be the brightness issue, so I searched for the Macintosh Classic analog board schematic to check the brightness line. I found the schematic from Bomarc, and the schematic is suitable with my board, since there are two analog board versions.  I started to suspect the resistors and potentiometer on the brightness line. This Macintosh version has software-controlled brightness, so the analog board will get a 22.25 kHz square wave PBM signal from the logic board to control the brightness. I checked and replaced some resistors and cleaned the potentiometer, but nothing seems to work. The signal is there, and no sign of degradation that makes the screen dim after a few minutes.  Brightness Line So I suspec...

Fiberhome HG6145D2 Superadmin Login

Maybe some of you are using In**ehome ISP as your home internet and found out that using the provided login has minimal options to configure the router: user  user1234 I know it’s not the admin login, and that must be a full-control user account that can be used to control this router fully. So I searched and found some posts on the net and most of them are telling me to use: admin %0|F?H@f!berhO3e I tested it and it doesn’t work! But there’s more to it, you need to reset the router first by pressing the reset button on the side of the router. Then after resetting, you can log in using the admin superaccount! But keep in mind, never use the user log in again, because it will lock the super admin login until you reset the router again. Cheers 🍺