Flash Lineage on top of "incompatible" data

galets

Senior Member
Apr 1, 2006
279
25
28
I built lineageos myself a while ago, and now I want to return back to stock lineageos. It gives me "can not flash on top of incompatible data". I'm pretty sure data is fine and going to work. Does anyone know what I need to tweak in it so that it does flash?

Just to be clear here, wiping the data and starting from scratch is not an option

*UPDATE* found one method. Edit following file : `META-INF/com/google/android/updater-script` commenting out following line with "#" such as:

# run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
 
Last edited:

SGH-i200

Senior Member
Aug 31, 2009
1,039
241
93
Edit following file: `META-INF/com/google/android/updater-script`
How do edited this file inside the ZIP archive before flashing? Extract the file via 7zip on Windows?

Edit: I deleted the two lines that included the text "Can't install this package on top of incompatible data. Please try another package or run a factory reset" directly in the 7zip internal text editor and was able to flash the ZIP afterwards via TWRP! :)
 
Last edited:
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone