[Xposed General] JulesJam:
Hi, I have a kind of unusual question I think. I am looking for information on how to prevent the Xposed Installer zip from refusing to install when you try to install it via TWRP .

Those of us on the Verizon Moto X 2014 XT1096 running lollipop 5.0 have very recently gotten root via an unconventional method in that we purchase a piece of software (mofo.exe) that can flash unsigned ext4 files to our system partition. But write protection is still enabled.

So as long as something is "baked" into an ext4 system image prior to flashing, it flashes and sticks on reboot but since write protection is not disabled, any changes to system made while running Android are lost on reboot.

Another poster has successfully made a pre-rooted ext4 5.0 system image for the XT0196 using an unlocked N7 with TWRP as the custom recovery. He created this image by wiping the system partition of his unlocked N7, then mounting the unrooted ext4 5.0 system image for the XT1096 and installing the SuperSU zip in the ext4 5.0 XT1096 system image via TWRP.

http://xdaforums.com/showpost.php?p=60389310&postcount=177

It worked for root and now we are trying to do the same thing to get Xposed installer baked into our pre-rooted 5.0 image.

There are people who have baked the Xposed Installer into the pre-rooted ext4 kit kat system images for the Droid Turbo and successfully flashed them with mofo.exe so we know it can be done at least with kit kat. But they modified their images by hand using linux and we were looking for an easier way to do it by using our unlocked devices (an N7 running CM12.1 in one person's case and a Moto X 2013 XT1060 running 4.4.4 in mine), both having TWRP as a custom recovery.

My Moto X 2013 is running 4.4.4 but I wiped the system partition before I tried to install the Xposed Installer zip into the 5.0 ext4 image via TWRP. The other guy's N7 is running a CM12.1 lollipop ROM. Anyhow we are both getting the same error when we try to install the Xposed Installer zip into the 5.0 ext4 pre-rooted system image for the XT1096 - we get the error that we have the wrong SDK version expected 21 - 21 Please download the correct package for your platform/ROM!

So it appears that the zip is checking something and refuses to install. Can you give us any insight about what we need to do to circumvent this check so we can get Xposed installer installed in our pre-rooted 5.0 ext4 system image for the XT1096? Again, the device I am using for this is on 4.4.4 and do has a dalvik cache so maybe that is the problem? But the other guy's n7 is running CM12.1, which is a lollipop ROM.

And I know this is a lot to ask, but would you be able to release a version of the zip w/o a check for whatever it is checking for so that we could get it installed in our pre-rooted ext4 system image?

Any insight would be helpful, thanks!

ETA

:

I set XVALID=true (instead of false) and then deleted these lines from the updater-binary:

if [ "$ARCH" = "$XARCH" ]; then

if [ "$API" -ge "$XMINSDK" ]; then

if [ "$API" -le "$XMAXSDK" ]; then

XVALID=true

else

ui_print "! Wrong SDK version: $API, expected $XMINSDK - $XMAXSDK"

fi

else

ui_print "! Wrong SDK version: $API, expected $XMINSDK - $XMAXSDK"

fi

else

ui_print "! Wrong platform: $ARCH, expected: $XARCH"

fi

using NotePad++ and then rezipped using 7-zip.

When I try to install the zip through TWRP, it just fails as if there is something wrong with the file - it just says error flashing zip.