Create a gist now

Instantly share code, notes, and snippets.

Android Application Downgrade

Android Application Downgrade

I'm using BakaReader EX (com.erakk.lnreader) as an example.

Instructions

  1. Download desired version of your application, e.g.: https://github.com/calvinaquino/LNReader-Android/releases/download/1.1.34/BakaReader-EX-1.1.34.apk and copy the APK to your phone.

  2. Download and install adb on your PC. Conveniently small package can be found here: http://forum.xda-developers.com/showthread.php?t=2588979

  3. Download and install adb drivers for your phone, e.g.: http://developer.sonymobile.com/downloads/drivers/xperia-z1-compact-driver/

  4. Invoke adb shell and run following command in it

     pm install -r -d /full/path/to/your.apk
    

    -r replaces existing application without removing data
    -d allows downgrading

Reason

I had to downgrade BakaReader EX, because 1.1.35 changed DB schema, yet I have already downloaded unread stuff, which is no longer available on Baka-Tsuki, so I'm not performing any data updates.

Just for the record, the error I was getting in 1.1.35 is:

class android.database.sqlite.SQLiteException:
no such table: page_categories (code 1): , while compiling:
select * from page_categories where page = ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment