Jump to content


Photo
* * * * * 5 votes

[SCRIPT/UTILITY] ROOT RAZR M XT907 for LOCKED Devices on 9.18.78

ROOT FIX

  • This topic is locked This topic is locked
618 replies to this topic

#341 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 06 September 2013 - 12:03 PM

 

every time i execute ./run.sh on my mac using terminal i get this error someone please help me
 
-bash: ./run.sh: /bin/bash^M: bad interpreter: No such file or directory

 

My guess is the linefeed/carriage returns are goofed up. I have a Mac but dont have the M. If you open a terminal and just type "bash" without the quotes, does it put you into the bash shell prompt? if so then I believe my guess is correct.

 

I will download the utility and poke around.



#342 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 06 September 2013 - 12:21 PM

So I looked over the script and it looks fine, from a logic standpoint. Line 129 is the EoF so something seems to have gotten goofed in your script, most likely with how it was edited.

 

Se here for help...

Please Login or Register to see this Hidden Content

 

I cat'ed the file and looked at it in MacVim and vi and it looks fine to me with not odd linefeed/CR characters



#343 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 06 September 2013 - 12:32 PM

Alright, I found the error. The four IF statements checking the system.img files are all missing the closing FI command. So add the fi's in as follows:

 

Currently its like this:

 

if [ -f system/system.img ]; then
echo "[*] Flashing system.img..."
if [ -f system/system.img.ext4 ]; then
echo "[*] Flashing system.img.ext4..."
 
if [ -f system/system.img ]; then
$fastboot flash system system.img
if [ -f system/system.img.ext4 ]; then
$fastboot flash system system.img.ext4
 

NOW ADD IN THE fi's:

 

if [ -f system/system.img ]; then
echo "[*] Flashing system.img..."
fi 
if [ -f system/system.img.ext4 ]; then
echo "[*] Flashing system.img.ext4..."
fi
 
if [ -f system/system.img ]; then
$fastboot flash system system.img
fi
if [ -f system/system.img.ext4 ]; then
$fastboot flash system system.img.ext4
fi

 

Save the file and should be good.



#344 livinginkaos

livinginkaos

    I don't know what I'm doing anymore.....

  • Administrator
  • 15,282 posts
  • Google+:Hangouts - livinginkaos@gmail.com
  • LocationOregon
  • Current Device(s):Samsung S8+ / Pixel XL 128gb / iPhone 7+ 256gb / iPad Pro 12.9" / Samsung Chromrbook Plus / Pixel C / Nexus 6p 128gb / Nexus 6 / Nexus 6 on Fi / Nexus 9 / Moto 360^2 / Nvidia Shield TV Pro / Nvidia Shield Tablet / HTC EVODesign on FreedomPop / Chromecast / Surface Pro 3 i7 / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7

Posted 06 September 2013 - 12:35 PM

I will update the script and re-upload it here in a few.


  • cmh714 likes this

b2wvCBn.png

Sig by livinginkaos
Samsung S8+ / Pixel XL 128gb / iPhone 7+ 256gb / iPad Pro 12.9" / Samsung Chromrbook Plus / Pixel C / Nexus 6p 128gb / Nexus 6 / Nexus 6 on Fi / Nexus 9 / Moto 360^2 / Nvidia Shield TV Pro / Nvidia Shield Tablet / HTC EVODesign on FreedomPop / Chromecast / Surface Pro 3 i7 / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7


#345 livinginkaos

livinginkaos

    I don't know what I'm doing anymore.....

  • Administrator
  • 15,282 posts
  • Google+:Hangouts - livinginkaos@gmail.com
  • LocationOregon
  • Current Device(s):Samsung S8+ / Pixel XL 128gb / iPhone 7+ 256gb / iPad Pro 12.9" / Samsung Chromrbook Plus / Pixel C / Nexus 6p 128gb / Nexus 6 / Nexus 6 on Fi / Nexus 9 / Moto 360^2 / Nvidia Shield TV Pro / Nvidia Shield Tablet / HTC EVODesign on FreedomPop / Chromecast / Surface Pro 3 i7 / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7

Posted 06 September 2013 - 12:58 PM

OP Download link updated for repaired script


b2wvCBn.png

Sig by livinginkaos
Samsung S8+ / Pixel XL 128gb / iPhone 7+ 256gb / iPad Pro 12.9" / Samsung Chromrbook Plus / Pixel C / Nexus 6p 128gb / Nexus 6 / Nexus 6 on Fi / Nexus 9 / Moto 360^2 / Nvidia Shield TV Pro / Nvidia Shield Tablet / HTC EVODesign on FreedomPop / Chromecast / Surface Pro 3 i7 / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7


#346 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 44,204 posts
  • Current Device(s):S21 Ultra, Pixel 6

Posted 06 September 2013 - 01:17 PM

#blamekaos :D


  • livinginkaos likes this

Non potest esse nisi unus


#347 livinginkaos

livinginkaos

    I don't know what I'm doing anymore.....

  • Administrator
  • 15,282 posts
  • Google+:Hangouts - livinginkaos@gmail.com
  • LocationOregon
  • Current Device(s):Samsung S8+ / Pixel XL 128gb / iPhone 7+ 256gb / iPad Pro 12.9" / Samsung Chromrbook Plus / Pixel C / Nexus 6p 128gb / Nexus 6 / Nexus 6 on Fi / Nexus 9 / Moto 360^2 / Nvidia Shield TV Pro / Nvidia Shield Tablet / HTC EVODesign on FreedomPop / Chromecast / Surface Pro 3 i7 / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7

Posted 06 September 2013 - 01:20 PM

Yep


b2wvCBn.png

Sig by livinginkaos
Samsung S8+ / Pixel XL 128gb / iPhone 7+ 256gb / iPad Pro 12.9" / Samsung Chromrbook Plus / Pixel C / Nexus 6p 128gb / Nexus 6 / Nexus 6 on Fi / Nexus 9 / Moto 360^2 / Nvidia Shield TV Pro / Nvidia Shield Tablet / HTC EVODesign on FreedomPop / Chromecast / Surface Pro 3 i7 / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7


#348 dojiStar

dojiStar

    n00b

  • Members
  • Pip
  • 2 posts

Posted 07 September 2013 - 02:06 AM

Will it by the same if i full unroot with Super SU? I did the first step and root checker sais i am still unrooted; (although i got "daemon started successfully" when run CMD)...

 

Thank you for the hole effort... You guys really rock!!!



#349 hero913

hero913

    n00b

  • Members
  • Pip
  • 5 posts

Posted 07 September 2013 - 06:21 AM

Hey guys.

 

First of all, Thanks for the write up.

 

Do I need to install motorola drivers on my computer to make the root work or is it just plug and play?



#350 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 07 September 2013 - 06:25 AM

Yes the drivers are required.



#351 livinginkaos

livinginkaos

    I don't know what I'm doing anymore.....

  • Administrator
  • 15,282 posts
  • Google+:Hangouts - livinginkaos@gmail.com
  • LocationOregon
  • Current Device(s):Samsung S8+ / Pixel XL 128gb / iPhone 7+ 256gb / iPad Pro 12.9" / Samsung Chromrbook Plus / Pixel C / Nexus 6p 128gb / Nexus 6 / Nexus 6 on Fi / Nexus 9 / Moto 360^2 / Nvidia Shield TV Pro / Nvidia Shield Tablet / HTC EVODesign on FreedomPop / Chromecast / Surface Pro 3 i7 / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7

Posted 07 September 2013 - 06:25 AM

Get the drivers

From My S4 Dev Edition


b2wvCBn.png

Sig by livinginkaos
Samsung S8+ / Pixel XL 128gb / iPhone 7+ 256gb / iPad Pro 12.9" / Samsung Chromrbook Plus / Pixel C / Nexus 6p 128gb / Nexus 6 / Nexus 6 on Fi / Nexus 9 / Moto 360^2 / Nvidia Shield TV Pro / Nvidia Shield Tablet / HTC EVODesign on FreedomPop / Chromecast / Surface Pro 3 i7 / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7


#352 livinginkaos

livinginkaos

    I don't know what I'm doing anymore.....

  • Administrator
  • 15,282 posts
  • Google+:Hangouts - livinginkaos@gmail.com
  • LocationOregon
  • Current Device(s):Samsung S8+ / Pixel XL 128gb / iPhone 7+ 256gb / iPad Pro 12.9" / Samsung Chromrbook Plus / Pixel C / Nexus 6p 128gb / Nexus 6 / Nexus 6 on Fi / Nexus 9 / Moto 360^2 / Nvidia Shield TV Pro / Nvidia Shield Tablet / HTC EVODesign on FreedomPop / Chromecast / Surface Pro 3 i7 / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7

Posted 07 September 2013 - 06:26 AM

Ninja'd

From My S4 Dev Edition


  • cmh714 likes this

b2wvCBn.png

Sig by livinginkaos
Samsung S8+ / Pixel XL 128gb / iPhone 7+ 256gb / iPad Pro 12.9" / Samsung Chromrbook Plus / Pixel C / Nexus 6p 128gb / Nexus 6 / Nexus 6 on Fi / Nexus 9 / Moto 360^2 / Nvidia Shield TV Pro / Nvidia Shield Tablet / HTC EVODesign on FreedomPop / Chromecast / Surface Pro 3 i7 / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7


#353 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 44,204 posts
  • Current Device(s):S21 Ultra, Pixel 6

Posted 07 September 2013 - 12:20 PM

Updated the OP to make that clear.


Non potest esse nisi unus


#354 hero913

hero913

    n00b

  • Members
  • Pip
  • 5 posts

Posted 07 September 2013 - 06:28 PM

Thanks guys!

 

Where can I find the appropriate drivers?

 

Next question, if it is asking me for an image file during the root process, is it b/c it is lacking the drivers?



#355 CrocadileUT

CrocadileUT

    n00b

  • Members
  • Pip
  • 8 posts
  • Current Device(s):Droid Razr M, Nexus 10, HP TouchPad

Posted 07 September 2013 - 09:13 PM

Please Login or Register to see this Hidden Content



Sent from my Nexus 10 using Tapatalk 2


  • hero913 likes this

#356 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 08 September 2013 - 06:09 AM

Thanks guys!

 

Where can I find the appropriate drivers?

 

Next question, if it is asking me for an image file during the root process, is it b/c it is lacking the drivers?

Sounds like your not in the correct directory/folder



#357 hero913

hero913

    n00b

  • Members
  • Pip
  • 5 posts

Posted 08 September 2013 - 11:19 AM

Sounds like your not in the correct directory/folder

I installed the drivers.

 

Hit Run.bat

 

pushed enter to the commands then i get the request for the image file.



#358 hero913

hero913

    n00b

  • Members
  • Pip
  • 5 posts

Posted 08 September 2013 - 12:06 PM

Got it to root!!!

 

Thanks for the help guys!!

 

Any thoughts on unlocking the bootloader to install custom ROMs?

 

Really hate the ROM on there now... Uses up a ton of data and I constantly have to turn on the restrict background data app...



#359 RikRong

RikRong

    Cap'n Slow

  • Superuser
  • 2,117 posts
  • LocationNoDak
  • Current Device(s):Pixel 7

Posted 08 September 2013 - 05:50 PM

Got it to root!!!

 

Thanks for the help guys!!

 

Any thoughts on unlocking the bootloader to install custom ROMs?

 

Really hate the ROM on there now... Uses up a ton of data and I constantly have to turn on the restrict background data app...

If you're on the latest update, you won't be able to unlock the BL. 


R. Long: Pixel 5

 


#360 hero913

hero913

    n00b

  • Members
  • Pip
  • 5 posts

Posted 08 September 2013 - 06:42 PM

If you're on the latest update, you won't be able to unlock the BL. 

 

In that case, does anyone have any suggestions how to lower the background data usage? It is chewing through the data plan...

 

It ate up about 100 megs of data in one day!!!







Also tagged with one or more of these keywords: ROOT FIX

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users