Related
is there a way to use ubuntu to root the epic? I have ubuntu and I want to root my epic but I can't figure out how to use the one-click method because I can't really use the drivers. I was trying to use the terminal with adb but I don't really know what I am doing.
linux doesnt need drivers i made a one click script for linux ill see if i cant find it
http://www.mediafire.com/?hk59z8j5dve6tgf
download that and run the clickhere.sh it should root you just fine, you may need to make the script and adb executable
You can try following along the run.bat script included in the one click root. I did not need to install any drivers to root using Ubuntu, but I did download the Linux version of the android sdk (from Google) just in case (instead of using the adb included in the one-click-root download.
If you have your android-sdk-linux_x86 directory in ~/Downloads/, and you extracted the one.click.root file into ~/Downloads/ as well, here's what you could do:
cd ~/Downloads/one.click.root
(Now you're in the location of the one click root files.)
Next, type each line of the run.bat file manually. Any time you see "adb" replace it with:
sudo ../android-sdk-linux_x86/tools/adb (command)
You'll need to adapt a bit to your situation, but because most of the adb commands are native to adb and run on the phone, they should work verbatim on your Ubuntu system.
Didn't someone put out a Linux one click root, though?
EDIT: Yes, shabbypenguin did. Looks like he posted it above me before I finished typing my post. Whoops.
Complete Big edit....
I thought I bricked my phone but I didn't. I ended up getting the permanent root. I used this guide http://forum.sdx-developers.com/epic-development/adb-root-exploit-test/
Is there anything special I am missing? like busybox? or remount scripts? not sure what either of those are.
remount allows your system to have rw access with a simple command, busybox.. think of it as an extended shell
the zip i included in my post is based off noobnl's latest version and works fine with linux. i made it while using ubuntu
shabbypenguin said:
linux doesnt need drivers i made a one click script for linux ill see if i cant find it
[snip]
download that and run the clickhere.sh it should root you just fine, you may need to make the script and adb executable
Click to expand...
Click to collapse
Thank you so much for this! ... "You have no chance to survive make your time" means I'm rooted?
i made version 2, its in my sig, will root and install clockwork mod 2.5.1.0
[Linux/Mac] ADB & Fastboot Install Script
I have created a script to be used to install ADB and Fastboot on a Mac or a Linux computer. Simply run the script in Terminal or a similar application and it will copy ADB and Fastboot to /usr/local/bin/
Also, as of Version 3.1 this also installs the JDK for Linux-based systems.
While advanced users probably won't need this, it would be good for new users who need help using the ADB and Fastboot commands.
You can see the source at GitHub.
Download
If you have any problems or errors, let me know.
Changelog:
20171202
Moved entirely to GitHub
On Debian-based Linux, installs the adb and fastboot packages
Other systems, the binaries are pulled from Google's website
Executables are given +x permissions
Version 5.0
Hosted on GitHub and Google Code
Uses latest adb and fastboot (as of April 3, 2014)
Install to /usr/local/bin/
Version 4.1
Uses cp rather than mv
Hosted on GitHub again
Team BlueRidge project
Version 4.0
Now installs adb and fastboot to /usr/bin/ which is a more appropriate directory for the files.
Includes Readme now!
Version 3.1
Added JDK Install for Linux
Version 3
Created separate scripts for Linux & Mac
Updated uninstall script
Version 2.1.1
Fixed errors in installer
Version 2.1
More code efficient.
Better comments in script.
Version 2
Combined installer scripts into one Universal
Updated Uninstall.sh to remove udev rules
Version 1.1
Added udev rules for Linux
Version 1
Initial release
Linux
Didn't work on linux, I suggest making a seperate script for linux, I believe the problem is where it detects linux. It gets sudo but nothing more. I ran each command by itself under linux and it worked. Thanks.
shootind5nukes said:
Didn't work on linux, I suggest making a seperate script for linux, I believe the problem is where it detects linux. It gets sudo but nothing more. I ran each command by itself under linux and it worked. Thanks.
Click to expand...
Click to collapse
Thanks! I'll fix that and post an update soon!
JDK is now installed on Linux systems!
Now hosted on Google Code rather than GitHub.
Now installs to /usr/bin/, which is a more appropriate directory as these files are not required for normal system booting or are required for the general functions of your operating system.
i know this thread is old but i need some help.
my devices are not showing up after running the script.
i used adb devices and ./adb devices
boneskid1 said:
i know this thread is old but i need some help.
my devices are not showing up after running the script.
i used adb devices and ./adb devices
Click to expand...
Click to collapse
Does it say that ADB is not found or your devices?
Try enabling ADB (USB Debugging) on your device if it says no devices were found.
Gingerbread: Settings>Applications>Development>USB Debugging
Ice Cream Sandwich: Settings>Developer options>Android debugging
Thanks!!!! This worked perfectly. Using Ubuntu 11.10.
romuloxiii said:
Thanks!!!! This worked perfectly. Using Ubuntu 11.10.
Click to expand...
Click to collapse
I'm happy I could help! Don't forget to click "Thanks" if you liked it!
If you have any issues in the future with it, please feel free to let me know!
Good news!!! This is now a Team BlueRidge project and is on Team BlueRidge's GitHub
since tar.gz files are linux that means I download the zip file on my mac right? sorry if the question is obvious
prflash3 said:
since tar.gz files are linux that means I download the zip file on my mac right? sorry if the question is obvious
Click to expand...
Click to collapse
Download whichever for whichever platform. It's the script inside that you use that matters.
Trying to run the script on OSX, but when I am prompted to enter my password I can't type anything. Please help.
Ditto ul49, being prompted for a password, please advise
Simply type your account password. It won't look like anything is being typed but it is. This is how the "sudo" command works. It is for security.
really glad i found this.
i run "sh "sh script name" and i get this error
ADB-Install-Linux.sh: 5: ADB-Install-Linux.sh: Syntax error: newline unexpected
not sure if it's installed or what
thanks for making this set of scripts and if u could advise me on that error id be grateful.
---------- Post added at 05:46 PM ---------- Previous post was at 05:44 PM ----------
crazy
apt-get install android-tools-fastboot
and
apt-get install android-tools-adb
worked
Just released the first update in two years. Sorry to leave this project unmaintained. The files are now hosted by Team BlueRidge as Google Code no longer supports downloads.
First, thank you very much for putting this together for fellow users. While I'm not the most savy of guys I thought I might just share my experience while installing this ADB + Fastboot package on my MacBook Pro (mid 2012) running OS X Mavericks 10.9.3 in the hopes that somebody might benefit from it as well.
So here it goes:
I tried running the installation script found in "Androidv5.zip" which up until now is the latest version (I think). The script failed to install:
"This will install ADB and Fastboot on your computer.
Root Permissions required. Please type your password.
Password:
Changed directory to /Users/User/Downloads/Androidv5
Moving ADB
cp: /usr/local/bin/adb: No such file or directory
ADB Moved to /usr/local/bin/adb
moving Fastboot
cp: /usr/local/bin/fastboot: No such file or directory
Fastboot moved to /usr/local/bin/fastboot
You may now run Android Debug Bridge and Fastboot commands
Have a nice day."
So I figured I'd open the script file and run each command manually but they would still not work. I then decided to open the target directory
from terminal and it couldn't find it either, so I openned the /usr/ directory to find where the /bin/ directory was... and I found it at | /usr/bin | instead of | /usr/local/bin |.
I ran the commands in the script again manually one by one with the target directory set to | /usr/bin | and then closed terminal and reopened. After that I tried running "adb devices" and the output was "permission denied".
I then applied a "chmod 775 /usr/bin/adb" "chmod 775 /usr/bin/fastboot", closed & reopened terminal and voilà it worked!
Again I'm not a savy guy... there might probably be a better way to do this or perhaps I didn't run the install script as it was supposed to but anyway I decided to let you guys know how it went just in case it proves useful to somebody else....
Then again thanks a lot for sharing this! I finally have ADB + Fastboot on my Mac without having to nag about downloading the Android SDK. :laugh: :good:
This will void your warranty, like all root exploits. Use this at your own risk. Do not take OTAs on rooted devices unless you know what you are doing, as it may cause a bootloop or a soft brick.
RockMyMoto is designed for MotoXs that have recieved the Camera update, patching PwnMyMoto. If you are unsure of your firmware, try PwnMyMoto first.
First step is to install Cydia Impactor, by Saurik. http://www.cydiaimpactor.com/ This is required. You will also need adb installed and working, and be comfortable with the command line. Your phone must be on the same network as your PC.
Figure out the ip address of your phone:
adb shell getprop dhcp.wlan0.ipaddress
Click to expand...
Click to collapse
unzip RockMyMoto-{version}.zip and push the exploit and su to /sdcard/:
adb push su /sdcard/
adb push RockMyMoto.jar /sdcard/
Click to expand...
Click to collapse
Run Impactor and select "# start telnetd as system on port 2222", then hit start.
Once the process is complete, run telnet:
telnet {your phone's ipaddress} 2222
Click to expand...
Click to collapse
Run the exploit through telnet
dalvikvm -cp /sdcard/RockMyMoto.jar RockMyMoto
Click to expand...
Click to collapse
The exploit will tell you to use adb to reboot:
adb reboot
Click to expand...
Click to collapse
Run the exploit through telnet for the second time, it will reboot on it's own:
dalvikvm -cp /sdcard/RockMyMoto.jar RockMyMoto
Click to expand...
Click to collapse
Run the exploit through telnet for the third time, it will not reboot:
dalvikvm -cp /sdcard/RockMyMoto.jar RockMyMoto
Click to expand...
Click to collapse
Wait 0-60 seconds, for su to install, then install SuperSu from the market.
Enjoy!
Known issues:
If you have AP isolation mode enabled in your AP (aka WiFi router) you won't be able to connect to your phone via telnet, disable isolation.
Windows users having trouble see here
Amazing! Trying now...
You are the man!!!!!!!!!!
Sent from my XT1060 using Tapatalk
Doing this now. Wonderful job jcase.
Edit: It works.
OMG It worked like a charm! Thank you jcase!!!
one thing though
adb push RockMyMoto-1.0.zip /sdcard/
Click to expand...
Click to collapse
should have been
adb push RockMyMoto.jar /sdcard/
which should have been extracted with su from the zip.
Okay. I have never rooted like this before. Adb = command prompt? Do I need the SDK? Or just the rockmymoto and the other program?
Sent from my XT1060 using Tapatalk
holyevilcow said:
OMG It worked like a charm! Thank you jcase!!!
one thing though
should have been
adb push RockMyMoto.jar /sdcard/
which should have been extracted with su from the zip.
Click to expand...
Click to collapse
Thanks, fixed
Quick question, does this method force us to reboot recovery for system r/w like pwnmymoto?
d4mi3n said:
Quick question, does this method force us to reboot recovery for system r/w like pwnmymoto?
Click to expand...
Click to collapse
yes it does
Works on windows perfectly. AWESOME WORK !
You never cease to amaze. Nice work bro,
Thanks a ton
Sent from my Nexus 7 using Tapatalk
Major Kudoos to Jcase and saurik. Up and running like a boss.
Thanks jcase! Followed your steps and worked like a charm.
Sent from my XT1058 using XDA Premium 4 mobile app
I haven't taken the update so could I just unfreeze apps, unroot, uninstall root apps, take the update, then run this? I don't want to RSD a third time today.
Sent from my Moto Ghost
Thanks bro, amazing work as usual!
Sent from my XT1058 using XDA Premium 4 mobile app
---------- Post added at 03:22 AM ---------- Previous post was at 03:13 AM ----------
Also if anyone is not by a PC you can just type getprop and whatever command to get the info you need using terminal emulator. Just don't type adb shell before getprop. And just typing getprop in terminal emulator will list your whole build.prop or you can just type getprop ro.secure & hit enter & that will tell you whether your s-off or not by listing a 0 or a 1. That was just a example if you just want to find out just 1 line like jcase first command to get your ipaddress. You would just type getprop dhcp.wlan0.ipaddress & hit enter & terminal emulator will list your sensitive data if your not by a PC
Sent from my XT1058 using XDA Premium 4 mobile app
thanks bro! worked beautifully
does anyone know of a way to get the native tethering working after rooting this way on a camera updated vz moto x? thanks
edit: this works: http://forum.xda-developers.com/showthread.php?t=2443562
Quote:
adb push su /sdcard/
adb push RockMyMoto.zip /sdcard/
When I do this step I get an error about no such directory. Please help
---------- Post added at 02:48 AM ---------- Previous post was at 02:38 AM ----------
Now says "read only file system"
---------- Post added at 03:09 AM ---------- Previous post was at 02:48 AM ----------
Okay got past that.
Know saying telnet is not reconized as command
---------- Post added at 03:50 AM ---------- Previous post was at 03:09 AM ----------
Okay I finally got it!! Yay Root!
When I try the telnet action, I get an error that the 'link failed File exists'. If I try to proceed to the next step, same error. My router is an Asus router and I made sure Isolation was unchecked, and there was a setting for telnet (never used this before) and I tried both on and off for that one.
Anybody have a clue how I can get through this?
Thanks!
CLOCKWORKMOD TETHER via USB for Linux Users
-- This guide is in reference to Ubuntu 13.10 (May work for other versions)
-- These are NOT instructions for Windows users - So please stop here if you do not use Linux
The main reason I had trouble is that the included adb file with the linux Clockworkmod Tether app would not work. Period. Nothing I tried would execute it, ./adb devices for example would return adb: No such file or directory, even after changing it to executable with chmod or with the properties dialog...
-- I have gotten this to work with the help of several posts on various websites and will be reposting some code that helped.
-- This guide has been written while currently tethering from my device. Let's begin....
1. Download and install the Clockworkmod Tether app on to your phone.
2. Open a terminal in Ubuntu (I use Guake Terminal), and enter:
Code:
[B]sudo apt-get install android-tools-adb[/B]
-- This will install the proper adb files on to your system
-- If you have already done this previously in the past, then step 2 is not required.
3. Open a browser E.g. Firefox and search for Clockworkmod Tether. Go the the google play website for the app, scroll down and click to download for the Linux version.
-- Also, you can open up the app on your device and download it from there and then transfer the file over to your computer.
4. You should have a .tgz file now. Extract it to wherever you want. I personally have it kept in a folder called 'development' in my home directory. You should now have a folder named Tether.
5. Open the Tether folder and navigate to the linux sub-dir. Here you should have 2 files: adb and run.sh. Open run.sh with a text editor.
6. Replace the line that looks like:
Code:
[B]../linux/adb start-server[/B]
with
Code:
[B]adb start-server[/B]
7. Save and exit ./run.sh.
8. Now go back to the Tether dir and go to node-tuntap dir. Open adb.js in a text editor.
9. Replace the line that looks like:
Code:
[B]adbPath = '"' + path.join(process.cwd(), adbPath) + '"';[/B]
with
Code:
[B]adbPath = '/usr/bin/adb';[/B]
10. Save and exit adb.js
11. Go back to the terminal and enter:
Code:
[B]sudo gedit /etc/udev/rules.d/70-android.rules[/B]
then paste in this:
Code:
[B]SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"[/B]
12. Save and exit 70-android.rules.
13. You need to compile CLockwork Tether before running run.sh. To do so, make sure you have the proper dependencies installed like g++ then go to Tether/node dir in terminal and enter:
Code:
[B]./configure[/B]
then enter
Code:
[B]make[/B]
If everything went well, you should be able to run ./run.sh
14. Plug in your phone to the computer via usb, make sure it's not set to mass storage (the disk drive shouldn't be mounted). Start the tether app on your phone.
15. Disconnect from all networks (ethernet, wifi, etc.) on Ubuntu.
16. Back in your Ubuntu terminal change directory to the Tether dir, then enter:
Code:
[B]sudo linux/run.sh[/B]
-- Only if necessary, in another terminal enter:
Code:
sudo ifup tun
Congratulations, if all went well, you should be able to load web pages in your browser, as well as do other things online so long as you have good cell reception.
--- Happy Hunting!!
well, kinda good, but what if? no Wi-Fi or internet connection? then sudo apt-get can not work lol
also, it was much easier when I did it this really seems like the long way around lol
#EDIT
I also got it working with downloading what I needed via phone, then transferring it to the Linux box, without available internet connection to the computer, until I got clockworkmod tether running, of course
---------- Post added at 07:12 PM ---------- Previous post was at 07:06 PM ----------
it is good to see this here though, I repo synced using my 4g lol(so fast)
---------- Post added at 07:17 PM ---------- Previous post was at 07:12 PM ----------
Modding.MyMind said:
Code:
sudo ifup tun
Click to expand...
Click to collapse
also, what's this? For
---------- Post added at 07:21 PM ---------- Previous post was at 07:17 PM ----------
I bought a usb-to-Ethernet coupler so when I plug it in to use clockworkmod tether it's recognised by the Ubuntu Software Center as a wired connection, without it just running it through usb port 3.0 or 2.0 I could never click the install button I had to Google the apt-get for installing additional add-ons and software
---------- Post added at 07:28 PM ---------- Previous post was at 07:21 PM ----------
ps
I'm running on no sleep the past 46 hours and lots of red bull and rockstar! Sorry if I'm coming off...heh, different..
Hahahahaha you need sleep bro
Sent from my C525c using Tapatalk
I used my cell phone also. I don't have WiFi so there was no choice but to use my device and then transfer everything over, but that should be relatively explanatory for those with no WiFi lol.
Sent from my C525c using Tapatalk
I'm working on it, gotta change my usual sleeping habits, my chick got a graveyard shift(second job)
I'm playing Mr mom watching the kiddo and working the watching the kiddo some more, he's git lots of energy
The steps I provided literally took me about ten minutes at most. The longest part was compiling using gcc and g++
Sent from my C525c using Tapatalk
russellvone said:
I'm working on it, gotta change my usual sleeping habits, my chick got a graveyard shift(second job)
I'm playing Mr mom watching the kiddo and working the watching the kiddo some more, he's git lots of energy
Click to expand...
Click to collapse
I know how that is. Prior military lol.
Sent from my C525c using Tapatalk
ditto, what branch?
regular Army here
88 Mike truck driver lol
russellvone said:
ditto, what branch?
regular Army here
88 Mike truck driver lol
Click to expand...
Click to collapse
Marines, 3531, Motor Transport Operator.
Sent from my C525c using Tapatalk
sweet, he's out....my turn
you learn in military service that 4 hours is ask you need per 24, hopefully I'll get 8 tonight
---------- Post added at 08:09 PM ---------- Previous post was at 08:05 PM ----------
Modding.MyMind said:
Marines, 3531, Motor Transport Operator.
Sent from my C525c using Tapatalk
Click to expand...
Click to collapse
hoo rah friend, I've got an extra usb to Ethernet if you want it.
got a multi pack from Amazon for small price, do you have the same issue I did with the software center in ubuntu?
russellvone said:
sweet, he's out....my turn
you learn in military service that 4 hours is ask you need per 24, hopefully I'll get 8 tonight
---------- Post added at 08:09 PM ---------- Previous post was at 08:05 PM ----------
hoo rah friend, I've got an extra usb to Ethernet if you want it.
got a multi pack from Amazon for small price, do you have the same issue I did with the software center in ubuntu?
Click to expand...
Click to collapse
Not yet. Seems good so far.
Sent from my C525c using Tapatalk
I'll take it though lol.
Sent from my C525c using Tapatalk
you can click 'install' while using clockworkmod tether?
I never could
PM me a P.O. box or whatever your comfortable with, I'll send it your way soldier
russellvone said:
you can click 'install' while using clockworkmod tether?
I never could
Click to expand...
Click to collapse
Probably because I have certain stuff installed. When I first got Ubuntu up and going I was installing all kinds of stuff. Couldn't tell you off the top of my head lol.
Sent from my C525c using Tapatalk
Thanks for a superb guide.
I manage it to work on 2 different machines.
Now I am googling and cannot find how to add shortcut on desktop, so user do not need to run it from terminal.
I have a shorcut on desktop now, but after a while window dissapear and script is not running.
There is *internet.desktop file - which is a shortcut I believe. Inside it is:
[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
StartupNotify=true
Icon[en_GB]=gnome-panel-launcher
Name[en_GB]=internet
Exec=/home/marta/Templates/Tether/linux/run.sh
Comment[en_GB]=Run program as root
Name=internet
Comment=Run program as root
Icon=gnome-panel-launcher
GenericName[en_GB]=tethering from usb
I am on 12.04.
Any advice appreciated.
p.s.
just forgot to add that main user is not geek so I want to be simple as possible.
mazak23 said:
Thanks for a superb guide.
I manage it to work on 2 different machines.
Now I am googling and cannot find how to add shortcut on desktop, so user do not need to run it from terminal.
I have a shortcut on desktop now, but after a while window dissapear and script is not running.
There is *internet.desktop file - which is a shortcut I believe. Inside it is:
[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
StartupNotify=true
Icon[en_GB]=gnome-panel-launcher
Name[en_GB]=internet
Exec=/home/marta/Templates/Tether/linux/run.sh
Comment[en_GB]=Run program as root
Name=internet
Comment=Run program as root
Icon=gnome-panel-launcher
GenericName[en_GB]=tethering from usb
I am on 12.04.
Any advice appreciated.
Click to expand...
Click to collapse
I wish I could help, but I keep my desktop clear in all honesty. I run mostly everything in the terminal. A habit you could say lol. Though, when I get by my computer again I will take a look at what you mentioned. I haven't noticed it personally, but like I said; Using terminal is my preferred method.
Sent from my C525c using Tapatalk
You ROCK!
I know this thread is a bit aged but I had just installed Clockworkmod Tether on my Funtoo linux machine and had the same issues you mentioned.
I basically followed the guide with a few differences.
First off...anyone using Gentoo/Funtoo the best way to grab ADB is to emerge dev-util/android-tools (MUCH smaller install) or dev-util/android-sdk-update-manager (newer ADB but not sure it makes a huge difference)
If you have a problem with the compiling phase make sure to 'eselect python list' and then do 'eselect python set #' and substitute the # with the actual number that contains python 2.7. In my case I did 'eselect python set 1'. After that it should compile fine.
I have tested it and it is working great man! Thanks a lot!
If you read this then Merry Christmas and Happy New Year!
Thanks!
This guide worked perfectly on the latest version of Ubuntu 16 as of 2017-04-26
Thank you very much for taking the time to create it.
hello here, i have follow all the step but wen i trying to compile with ./configure and Make it show me this error:
Traceback (most recent call last):
File "./configure", line 463, in <module>
configure_node(output)
File "./configure", line 370, in configure_node
o['variables']['gcc_version'] = 10 * cc_version[0] + cc_version[1]
how to solve it please???
Hi,
My Android phone (I9100G) is on stock firmware, but I rooted it. I want to dump (copy and paste) /system folder's files from phone to PC. I tried adb pull /system system/ in cmd.exe but he skips special files in system folder. It says "skipping special file" and doesn't copy all files to PC. I also followed this tutorial: http://forum.xda-developers.com/showthread.php?t=2450045 but I have no system partition. I have these partitions only (Look at attachment).
I'd appreciate your solutions. Please find a way to dump system files to PC.
Thanks in advance.
**Bump**
Really need help.
I could be wrong cause I use Linux not Windows (i assume your using Windows 7 or vista) but your command seems wrong.
Let's say you want to pull system to a folder on your desktop called system. Command should read.
Adb pull /system /users/yourusername/desktop/system.
NOTE: also as your using Windows I don't know if you need to provide the drive letter in the path to you folder on the desktop. e.g c:/users/yourusername/desktop/system.
Hope this helps good luck ?
Sent from my HTC One - ARHD 53 using xda developers app
---------- Post added at 10:11 AM ---------- Previous post was at 10:04 AM ----------
One more thing, when you luanch cmd.exe do so as administrator, right click cmd.exe and select run as administrator.
Sent from my HTC One - ARHD 53 using xda developers app
@Danny201281 Thanks for help, but I lately realized that this may be a permission problem. Here is my /system/app folder in Root Browser app: (Look at attachment)
I realized lots of files have 0.00 bytes. And adb cannot pull these files and calls them "special". Also /system/bin folder's all files have 0.00 bytes.
Waiting replies, thanks.
Possibly a partition or file system problem.
Running check disk in adb can fix these type of problems.
e2fsck -fvy /dev/block/mmcblk0p35
Works for my HTC One you may need to check the device specific forum for the correct command for your phone
Check this link
http://www.linuxspy.info/606/when-and-how-to-runexecute-e2fsck/
Sent from my HTC One - ARHD 53 using xda developers app