yashsingh1/xdaforums huggingface dataset:
[X 2014 General] JulesJam:
I did it after I tried to install the Xposed Installer using the modified update-binary, which failed, and got this:

grep ro.build.version.sdk= system/build.prop

ro.build.version.sdk=21
[X 2014 General] trimax84:
Oh good! So your at least recognized as being on SDK 21. So that's not causing the failure (of the non modified update-binary). I wonder why xposed doesn't see that and install....
[X 2014 General] JulesJam:
Is there any way to run the commands in the updater-binary by hand?
[X 2014 General] Haxxa:
Wordpad will mess with formatting - follow this guide for changing script - http://xda-university.com/as-a-user/zip-based-rom-tweaking - (using an app called Notepad++) or if you prefer I can upload a zip to test if you want?
[X 2014 General] JulesJam:
I prefer this, lol! I did download NotePad++ b/c someone on the Xposed Discussion thread recommended it but I got the same result when I used it to edit. Thanks!
[X 2014 General] JulesJam:
Also when I did it in NotePad++, I set

XVALID=true (instead of false)

and then deleted this:

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

then rezipped using 7-zip but it won't flash at all after editing.
[X 2014 General] TokedUp:
Thank you for the replies. Can someone build a rooted IMG with google dialer for me? I will donate!
[X 2014 General] tacosrdelicioso:
I just had a total lock up while watching an html5 video from chrome. Has never happened since owning the phone since release date. No root apps installed. It just froze on the video and wouldn't respond to any inputs. Hard reset
[X 2014 General] old&slow:
I think the problem might be the extracting and then rezipping the file. Can you try editing the update-binary and then sticking it back in the zip without ever extracting.

Edit: Here's the zip with your edits if you want to try it.
[X 2014 General] trimax84:
Currently my efforts are going towards getting Xposed working. However, I won't mind trying this when that is accomplished. Have you done any research to see if there is more to it than just placing an apk in the /system/app folder? Would be helpful to know the steps prior to attempting anything. (and I don't know about others, but I don't care for a donation)

---------- Post added at 08:37 PM ---------- Previous post was at 08:30 PM ----------

Thanks for the file. It did successfully flash so now I'm pulling the img file to see if we have a functional rooted+tether+Xposed ROM.

It's a good start; thanks!
[X 2014 General] old&slow:
Cool! :highfive: Now get to work so I can go buy this phone. :p
[X 2014 General] trimax84:
Haha, I'm trying! (we're all trying!)

Flashing the img on my Moto X now, however the file size is only 2.2GB which is far from the original rooted system image that I loaded of 2.7GB so I'm a bit pessimistic. Any tips on what may have gone wrong? I followed these instructions from btdownloads7:

1. Make sure that you have at least 6 GB free on the SD card, and boot into TWRP

2. Copy the clean ext4 image file to the SD card (the links are a few pages back in this thread)

3. Copy the SuperSU update zup to the SD card

4. In TWRP gui, wipe the system partition (this may not have been necessary, but I did it just in case)

5. In TWRP gui, unmount the system partition from the TWRP menus

6. open ADB shell

7. run "rm -r /system", and disregard any errors that it gives you. This will clear the mount point for our image

7a. run "mkdir /system", and ignore any errors it gives you

8. run "mount -t ext4 -o loop /sdcard/system.img /system"

9. Back in TWRP, go to install, and flash the SuperSU updade zip on the SD card . The script should run without any errors

10. In ADB shell, run "mount", and that should list all the partitions. Remember which path is for the system partition (on my end it was "/dev/block/loop0")

11. run "dd if=dev/block/loop0 of=/sdcard/new_image.img". Obviously replace "/dev/block/loop0" with whatever you got in the previous step

And thats it. Copy the new image back to your PC, and you're ready to flash it with mofo
[X 2014 General] GatorsUF:
I 2nd the Google dialer request, on other phones it was always a simple replacing of the apk. There were issues with the Google dialer working on some phones though, so no guarantee it will work properly on our phone.

Anywho I know xposed is tops on the list so I'll be patient ;)
[X 2014 General] old&slow:
Only thing I can think of would be an incomplete file transfer. It shouldn't have gotten smaller.
[X 2014 General] trimax84:
I have good news and bad news....

Good news is, that smaller img actually booted and I get no erros/FC/issues

Bad news is that Xposed is not working. Despite getting a "Success" message in TWRP after running your .zip, it doesn't look like any of the files copied over.
[X 2014 General] old&slow:
I wonder what would happen if you manually placed the files in /system and the ran the .zip to let it set up links.
[X 2014 General] TokedUp:
Whoa whoa! Why do u want this phone [MENTION=3074508]old&slow[/MENTION]? Don't u have the almighty N6? Wanna trade?
[X 2014 General] JulesJam:
Thanks! That installed!
[X 2014 General] old&slow:
Nah. I've still got my S4. N6 is too big for me.

Can you tell if it actually copied any files over?
[X 2014 General] trimax84:
Copied all of the files over in hopes of just chmod and chcon via ADB shell, yet I got Illegal Instruction error when I tried to change anything in the /system/lib folder (yet everything worked in the /system/bin folder). So now I ran the xposed zip hoping that it fixes permissions/context. If not, I'll load it into my Ubunto virtual box and edit things from there.....

Cross your toes! (and give some advice if you think of any tricks!)
[X 2014 General] old&slow:
Well, you can put the lib files in /system, chmod them and then move them to /system/lib/.
[X 2014 General] JulesJam:
I sent my N6 back. Loved the phone except for the size and I really missed Assist, Always Listening and the great other Moto X features. Besides the damn thing was GRAY!!!

If the N6 goes on sale I will buy it, but for $750 after you figure in the sales tax, it didn't bring me $750 worth of happiness. I am not one for flashing custom ROMs and the Moto X fits my needs very well. I don't need a DSLR camera in my phone but I DO need my phone to work reliably as a phone, free WiFi tether and my text messages read out to me when I am driving. Find My Phone is pretty cool, too. And I have one of those portable chargers that connects to my phone by bluetooth on my key chain so I never lose my keys!!!

Wireless charging would be great though.
[X 2014 General] JulesJam:
The file I pulled from my MX2013 was the exact same size as the pre-rooted image and I am mofo'ing it now - at about 40%. Hoping for the best!!!!
[X 2014 General] JulesJam:
Doesn't boot :( Just hangs at the M. Sigh. I will try again starting from scratch and see if it works the second time around.
[X 2014 General] trimax84:
Yur smert.

What is meant by the link part of this: install_and_link /system/bin/app_process32

When adding root there was a symlink required for app_process32
[X 2014 General] old&slow:
Not that smart. :) I'm sure it's just creating symlinks.
[X 2014 General] JulesJam:
Just pulled the image from my MX2013 - the Xposed update-binary installed fine no errors and the image is the same size as all of the others. Mofo'ing it now, typically takes about 25 minutes for that.
[X 2014 General] trimax84:
That TWRP method wasn't working for me so I resorted to Ubuntu modding.

I'll race you ;)

Edit: bootloop; you win.
[X 2014 General] JulesJam:
I will gladly let you win, lol!!!

It booted but I don't see any evidence that Xposed is installed. But I know there is more to it:

http://xdaforums.com/droid-turbo/general/guide-getting-xposed-t3066084
[X 2014 General] JulesJam:
No I didn't :(
[X 2014 General] trimax84:
Failure is never final!

When you click on "Framework," do you see dashes under "active" and "bundled" ?

I had a value under XposedBridge.jar which was mildly encouraging. However, I am back to rooted stock until I can invest more time.

Edit: just saw your second screenshot....yeah, your system isn't recognizing anything. I think modifying the img file will be a better route to go. Maybe someone more experienced can chime in and get this up quicker than us!
[X 2014 General] JulesJam:
What was I supposed to do with the Xposed apk when I was making the image on my MX2013? I just had it on the sdcard.
[X 2014 General] trimax84:
Supposed to install it like any other app. Looks like you already did though, given the fact that you opened the app to see the framework page.
[X 2014 General] JulesJam:
I am talking about when I was in TWRP on MX2013 - I didn't do anything with the apk, just the zip.

I put that on my MX2014's sdcard and then opened it.

I am talking about when I was doing things on my MX2013 via TWRP - what was I supposed to do with the Xposed apk? I just had it on the sdcard and didn't do anything with it. I just installed the Xposed zip.
[X 2014 General] btdownloads7:
Sorry, I've been a bit busy. And honestly, I don't use Xposed, so I'm not really trying to get it working. But to answer your question, there is nothing that you need to do with the apk. Once the xposed installer is properly installled on the pre-rooted image, after you boot your phone, you just install the apk from your SD card, and it'll detect that the Xposed framework has already been installed, and then let you manage it.

However, I did learn something that may help you (or make your life more difficult, but either way it's just more info). I've installed sqlite3 and busybox on my pre-rooted image, and with both of them, I had to run the shell commands manually. Busybox came with an update zip to be installed using TWRP, but it didn't work as easily as the SuperSU one. I found a line in it that was moutning and unmounting the system partition, which is a no-no with the way that we're doing this. So, I had to go through the script and selectively run the commands and move the files to their proper locations. So, I'm guessing that you'll need to do the same thing with Xposed. Just go through the script line-by-line, and figure out exactly what it's doing, and then manually enter those commands in the ADB shell (or you can write your own script to do this). I'm not at all sure that this is the problem that you guys are running into, but I thought that this info will help.
[X 2014 General] JulesJam:
I am pretty sure the xposed update-binary is doing that too. It has these lines:

ui_print "- Mounting /system and rootfs"

mount /system

mount -o rw,remount /system

mount -o rw,remount /system /system

mount -o rw,remount /

mount -o rw,remount / /

This is what I figured needs to be done. I am pretty sure this is what needs to be done:

install_and_link /system/bin/app_process32 0 2000 0755 u:object_r:zygote_exec:s0

install_overwrite /system/bin/dex2oat 0 2000 0755 u:object_r:dex2oat_exec:s0

install_overwrite /system/bin/oatdump 0 2000 0755

install_overwrite /system/bin/patchoat 0 2000 0755 u:object_r:dex2oat_exec:s0

install_overwrite /system/lib/libart.so 0 0 0644

install_overwrite /system/lib/libart-compiler.so 0 0 0644

install_overwrite /system/lib/libart-disassembler.so 0 0 0644

install_overwrite /system/lib/libsigchain.so 0 0 0644

install_overwrite /system/lib/libxposed_art.so 0 0 0644

edited - hahahahaha at ": o" being replaced by the smiley face.
[X 2014 General] Haxxa:
Yes it is likely this, I was reading through the ZIP installer and given the nature of how the files are installed it might be easier to simply copy the files over give them the right permissions and call it a day. There are a only a few files that are copied so doing this shouldn't be too hard by simply mounting the image in linux. - On a side note, could you upload the image with busybox added?
[X 2014 General] JulesJam:
install_and_link /system/bin/app_process32 0 2000 0755 u:object_r:zygote_exec:s0

install_overwrite /system/bin/dex2oat 0 2000 0755 u:object_r:dex2oat_exec:s0

install_overwrite /system/bin/oatdump 0 2000 0755

install_overwrite /system/bin/patchoat 0 2000 0755 u:object_r:dex2oat_exec:s0

install_overwrite /system/lib/libart.so 0 0 0644

install_overwrite /system/lib/libart-compiler.so 0 0 0644

install_overwrite /system/lib/libart-disassembler.so 0 0 0644

install_overwrite /system/lib/libsigchain.so 0 0 0644

install_overwrite /system/lib/libxposed_art.so 0 0 0644

and of course the smiley face is : o with no space b/t the colon and the o.
[X 2014 General] IkeBiker:
Do you think you could post your pre-rooted image(w/busybox-sqlite) integrated?
[X 2014 General] JulesJam:
What do you do with busybox and sqlite?
[X 2014 General] IkeBiker:
I'm trying to get apps like Trickster Mod and kernel auditor to work. Is there anyway around having to get busy box? Or is there anyway to flash an image with write protection disabled
[X 2014 General] JulesJam:
Idk anything about busybox.

Write protection is something that is enforced by the bootloader. It is not something in the system image. So no. This explains it:

http://xdaforums.com/showpost.php?p=60412113&postcount=292
[X 2014 General] IkeBiker:
I found the link to a busybox explantion here... http://xdaforums.com/showthread.php?t=1261946. But basically it allows you to run more unix/linux command certain rooted apps need for functionality. Without it most of the powerful root apps you need cant really be utilized. And ok thanks for clearing up the flash misconception
[X 2014 General] tjohnstone3:
Just wanted to chime in and say that I was able to install the pre-rooted image that was shared and everything seems to be good after wiping the cache. i had issues with apps force closing the first time I booted (and superSU app wouldn't let me grant permissions to apps requesting them, but that also seems to have been resolved by wiping cache).

Thanks to those who have put in the effort, really looking forward to someone figuring out the xposed install. Keep up the good work ladies and gents!!!
[X 2014 General] trimax84:
Anyone else on pre-rooted 5.0 having a problem with the Motorola and/or Google camera apps? I get errors like "cannot connect to camera"
[X 2014 General] tjohnstone3:
hmm, mine is doing something a little weird...

1) Open camera

2) take picture

3) swipe to gallery (if I swipe to gallery without taking a picture first, there aren't issues)

4) says camera stopped

5) tried to re-open camera and just get black screen

6) closed camera and opened snapchat

7) camera worked fine in snapchat

8) closed snapchat, re-open camera

9) camera works fine again

I have been able to re-create this pretty consistently...very odd.
[X 2014 General] JulesJam:
Working fine on mine but I am running the pre-rooted image that I tried to get Xposed installed on so not the exact same thing, although maybe it is b/c I can't see any evidence that I installed anything on the phone.

I would try re-mofo'ing the pre-rooted image and see what happens.
[X 2014 General] JulesJam:
I followed your steps and did not get errors. Try clearing the camera app's data. Disable it then reenable it.
[X 2014 General] JulesJam:
I thought this was an interesting suggestion if an ad blocker needed to write to host files stored on the system partition - you could have symlinks baked in the pre-rooted image.

http://www.reddit.com/r/MotoX/comme...ction_vs_root_verizon_xt1096_has_root/cqt6gkd
[X 2014 General] trimax84:
Or there is an ad blocker for Xposed if we could get that working!
[X 2014 General] JulesJam:
But isn't Adaway better?
[X 2014 General] trimax84:
Could be, I've never used the Xposed minminsomething app that blocks ads (only adaway), so I'll try and compare if/when we get Xposed!

Make any progress? I've been tripped up on the "install_and_link" thing for the app_process32....what do you think is meant by link? Symlink? App_process32 was already symlinked to /system/xbin/daemon just by the rooting method. So I'm not sure if we should write over app_process32 in the /system/bin folder or what.....
[X 2014 General] JulesJam:
there are 2 different commands - install_and_link and install_overwrite so I am assuming they mean 2 different things.

I found this online:

Android 5.0 has /system/bin/app_process as a symlink to /system/bin/app_process32

so I assume it must be a symlink.

http://stackoverflow.com/questions/...ll-app-process-who-and-when-creates-the-app-p
[X 2014 General] trimax84:
I've been doing a lot of reading too. This post (and subsequent ones) seems helpful: http://xdaforums.com/showpost.php?p=58936894&postcount=2111

Although not sure if linking app_process and app_process32 to app_process32_xposed will screw up root. Only one way to find out.
[X 2014 General] redwings73:
Anyone tried the link associated with 5.0 on the MOFO thread here:

http://xdaforums.com/general/paid-software/mofo-root-turbo-t3064404

It looks like a rooted XT1096 5.0 22.21.11 file, but I was thinking no one had a rooted 5.0 .img to use with MOFO, yet.

If that is in fact was it is, will it work using MOFO to root?
[X 2014 General] ClydeDroid:
That is a rooted image. It works to root 5.0, I am successfully tethering and using Root Explorer!
[X 2014 General] JulesJam:
Any links that maiko1 posts on the first page of MoFo have been tested. So yes, that link is a 5.0 pre-rooted image with a modified build.prop to give you free WiFi tether that works on the XT1096.

If you scroll back in this thread, you can read the history of how that image was created and tested.
[X 2014 General] redwings73:
Thank you, maam! I swear I've been following this thread since the beginning, but everything recently happened so quickly and slightly above my head that the "root" portion of that .img got lost in my confusion.
[X 2014 General] smelkus:
Has anyone with the rooted image installed tried cf.Lumen? I'd imagine the root required element of that app works fine. Just curious if anyone has tried it. https://play.google.com/store/apps/details?id=eu.chainfire.lumen
[X 2014 General] en_pneumati@netzero.net:
so, we've reached a concensus that the issue reported about the camera not working after flashing the rooted 5.0 img with mofo is nothing to worry about?

just asking before i make the plunge ;)
[X 2014 General] jmsfang:
I haven't had any problem with that

I have gotten some "___ has stopped responding", mainly with Reddit Sync but not a huge deal for me
[X 2014 General] en_pneumati@netzero.net:
another noob question... is there a step by step, including every little thing that needs to be done, for flashing with mofo? even when and which buttons on the phone to press and hold to do a given step.

the mofo website seems a little sparse on details.

thanks in advance
[X 2014 General] JulesJam:
I tried but CF Lumen requires a reboot to install it's driver. Driver never gets installed on reboot so it must be writing the driver to /system. The driver would have to be baked into the pre-rooted image.
[X 2014 General] trimax84:
Yes, I reloaded to ROM via MoFo and tried to reproduce the camera error but can't.

Also something to note.... MoFo does not root the device (there was a comment a page back about that). Instead, it allows for the installation of modified ROMs (which, in our case, happens to be a rooted ROM). Subtle, but important distinction when considering the capabilities of MoFo and creators of ROMs.
[X 2014 General] JulesJam:
I am working on that. I will post it shortly.
[X 2014 General] en_pneumati@netzero.net:
i appreciate it!

figured i'd do all the free stuff first...

i have updated to 5.0, installed the python program, as per the Mofo page, and downloaded the pre-rooted img file

do i extract the zipped img file, or is it flashed in zipped format?

then, i get to this step "You need to install usb drivers" and go to the website

https://developer.android.com/tools/extras/oem-usb.html

and it totally makes no sense. if i scroll down and go to the site that supposedly has the OEM Moto usb drivers, they are not there (or not clearly labeled!). was i supposed to follow the instructions at the top to install Android usb drivers (even though the text seems to indicate those drivers are for Google Nexus device, which is not what we are working with)? i don't seem to be able to find those on my computer following the isntructions...

sorry to be a lame-o ... and thanks again for the assistance
[X 2014 General] JulesJam:
When I am using Google Now Launcher, I have no problems. When I am using Nova Launcher, camera works fine when I open it with the gesture, but if I touch the camera icon, I get the error Unfortunately Photos has stopped.

So that to me is a problem with Nova Launcher, not the pre-rooted image.
[X 2014 General] JulesJam:
Noob Guide for Using MoFo on an XT1096 Running Android Version 5.0

Please see this thread:

http://xdaforums.com/moto-x-2014/general/noob-guide-rooting-verizon-moto-x-2014-t3097375
[X 2014 General] fakieskr8333:
Xposed?

I am aware that xposed isnt quite working yet but if/when it is will it be likely that we will be able to flash it over the prerooted image without having to restore to stock? And also would it be possible to flash the rooted image over the xposed/rooted image without restoring?

Thanks for the awesome tool! Until xposed is working I am really only using wifi tether but to me that is worth the $20 alone. Just hoping that 5.1 doesn't break this amazing tool. Keep it up guys!
[X 2014 General] JulesJam:
You only have to restore to stock /system to take an OTA.
[X 2014 General] JulesJam:
Yes, the only time you have to return to stock is to take an OTA.
[X 2014 General] btdownloads7:
Here's an image with busybox and sqlite3 integrated. Could someone please test it, and if there are no problems, I'll see if Maiko wants to add it to his mofo thread. It's not the same version that I'm using on my device -- mine has a bunch more mods (different boot animation and a few build.prop tweaks), so I created this one without those mods, but I haven't tested it.
[X 2014 General] joshnat:
How would we test whether busybox and sqlite3 are working? Or do you just want to see if there are no errors on boot, apps, etc?
[X 2014 General] btdownloads7:
I know for a fact that those are working, and I'm almost certain that there should be no problems with the image at all. But I would like to make sure that it boots, and there aren't any new issues that were introduced when I modified my other stuff, and then removed my modifications.
[X 2014 General] JulesJam:
I deleted the camera icon and then went into the app drawer and put it back on my homescreen and that solved my Nova Launcher problems with opening the camera from the camera icon.
[X 2014 General] JulesJam:
I will flash it now and let you know.

Are there any apps that use busy box and sqlite that I could download to test?

[MENTION=2278321]btdownloads7[/MENTION] - it boots fine and WiFi tether works. I didn't see BB in my app drawer so I downloaded it from the Playstore and installed it. It said it installed fine. Was I supposed to do that?

What about sqlite?
[X 2014 General] trottellumme:
Modify Image

Guys, 1st let me thank you for the great work. Who would have thought that we eventually may have the option to have fun with the XT1096 ;)

I'm ready to modify the rooted image - in theory. I'd like to remove all the Verizon apps, replace the dialer etc. Is there a tutorial how to do that? I understood that the "Droid Turbo System Image Tutorial" only works for KitKat?

TIA!
[X 2014 General] btdownloads7:
Both of those won't show up as apps. They are linux binaries to be used by other apps. What you installed was the bysubox installer, and it doesn't do anything because it needs to write to the /system partition. But again, I'm positive that both of those work fine. I just wanted to make sure that nothing else got messed up with me modifying and then un-modifying my other stuff
[X 2014 General] Interflop:
Try using something like Trickster MOD Kernel Settings that requires BusyBox.