How to root Android device using ADB

How to do things, solutions, recipes, tutorials
Message
Author
Plume
Posts: 34
Joined: Mon 12 May 2008, 19:05

#21 Post by Plume »

@nooby
Airdroid works fine with my Huawei smartphone (Honour, Android 2.3.6).

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#22 Post by nooby »

Thanks plume
http://www.airdroid.com/

they say

Transfer files to and from your device via web browser.
Wireless operation via WiFi connection.

That would allow us to bring over a file that can root it then hopefully?
Looks promising indeed.
I use Google Search on Puppy Forum
not an ideal solution though

Plume
Posts: 34
Joined: Mon 12 May 2008, 19:05

#23 Post by Plume »

We can do a lot of things with Airdroid, such:
- look at our photos,
- listen to our music,
- look at our contacts or add new contacts,
- look at the call log,
- look at our messages or send new ones,
- browse the files on the smartphone, download them or upload other files from the PC.
But I'm not able to upload files in "System" and I'm afraid Airdroid can't help rooting the device if this was your idea.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#24 Post by don570 »

I had my second nasty black screen incident with
my Android device. I now see why people complaing that
Android isn't as stable as Linux.

Cause: installing latest version of FBReader from external SDcard ???

Fix: remove external SD card . This allowed booting to proceed.

Then I went thru rooting procedure as described on first page.

I put back external SD card and everything is fine.

____________________________________________________

I discovered that Superuser.apk is confusing to use
because it is actually a commercial program. The writer
is trying to sell a different program named 'Elite'. This confuses
the interface greatly


http://androidsu.com/elite/




___________________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#25 Post by don570 »

Here are instructions to use the Superuser apk with ES File Explorer.

First launch 'ES File Explorer' and look under 'Settings'
Make sure 'Up to root' is ticked.

Image


Next launch Superuser app (It has an icon). Somehow??? it
knows that 'ES File Explorer' is installed and can be given root access.

Image

Note: screenshots were taken using this method


_______________________________________________________

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#26 Post by nooby »

Don thanks for that one and for the drawings of the OTG cable.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#27 Post by don570 »

The newest version of ES File Explorer (es_file_explorer_v1.6.2.4.apk)
that came out before Christmas has fixed a bug with 'Root Explorer'.

Under 'Settings' there is 'Root Settings' which allows 'Root Explorer'
which works now for me. Android version 4.04

_____________________________________________________

esrom02
Posts: 8
Joined: Wed 01 Jun 2011, 02:45

Help?

#28 Post by esrom02 »

First of all sorry for replying in this old thread.

My problem is whenever I try to use adb command, It says permission denied? How can I fix it? Thank you.. And do I need particular drivers for my phone? so puppy will recognize my phone?

User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

#29 Post by Ted Dog »

thanks any other android package that do not requre google shop setup.

really need a flash player ...

esrom02
Posts: 8
Joined: Wed 01 Jun 2011, 02:45

Problem Fix !

#30 Post by esrom02 »

My bad for not making it executable..

Now my problem is whenever I push the files, it prints permission not permitted.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#31 Post by don570 »

Note to teddog : 'adb' doesn't need JAVA or flash to be installed
to obtain the basic commands like 'push' and 'pull'.
I did have to install the JDK(Java Development Kit)
to take a screenshot of Android device.

Note to esrom2: Puppy linux always runs as the root user so
you should never get the message 'permission not permitted'

Some linux apps don't like to run by the root user, but adb isn't one of them.

I wonder if your phone manufacturer has found some way of blocking
adb commands?? Android devices have ways of blocking viruses.
So maybe your phone thinks it's being attacked by a virus.

All I can suggest is use the latest version of adb and cross your fingers.

Here's a tutorial on using adb that might be of use.
http://forum.xda-developers.com/showthr ... p=17123601

____________________________________________________

oldaolgeezer
Posts: 64
Joined: Sun 03 Dec 2006, 19:34

How to root Android device using ADB

#32 Post by oldaolgeezer »

A comment on my use of adb:

I have been using Puppy Linux 5.2.8 V4 successfully with adb on my first generation Kindle Fire tablet.

I have used Puppy and adb to flash various recovery partition programs and Android Gingerbread and Jellybean ROMs designed for the first generation Kindle Fire via an ordinary micro USB cable.

(I've learned from the forums on xda-developers.com that, there is a forum for many of the different models of phone and tablet hardware. There may be user developed flashable ROMs and/or installable apk programs for many of the specific models there too.)

As don570 reported above, some of these phones or tablets require the normally unused pin 4 of the micro USB cable end to be grounded (in the case of the OTG ("On the Go") cable), but some other brands or model phones or tablets sometimes need the unused pin 4 of the micro USB cable end to be connected to the +5 volt wire with a current limiting resistor (these micro USB cables are called a "Factory Cable").
The xda-developers.com has lists of what cable is required for a specific model phone or tablet with adb or what cable is required for even resurrecting a "brick"!

Also I wanted to thank 01micko for mentioning the useful Android apk: airdroid.
As a newbie in the world of Android, I have found the sheer number of available apps (even just ones with four or five star reviews) to be overwhelming.

For my simple needs, I haven't wanted to go through an endless cycle of installing, trying and then un-installing hundreds of apps.

Thanks again don570 and 01micko.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#33 Post by don570 »

Here's an interesting video on how to make
an OTG cable with a female end rather than
the normal male plug.

This is useful with Android tablets.

http://www.youtube.com/watch?v=COkLEJGo6vo

To buy a new cable is not expensive but few stores have this special
cable in stock.
___________________________________________________
It's possible to attach keyboards and USB sticks to nexus7
and probably other tablets.


http://www.amazon.ca/Asuxtek%C2%AE-Nexu ... B008ZBGC5S

Here's a review..

1 of 1 people found the following review helpful
5.0 out of 5 stars OTG good ta go!
This little cable lives up to it's name. Works fine on a rooted Nexus 7 combined with stickmount app to add much needed USB storage to the tablet. You can't go wrong for $6.00 free shipping. You just have to wait two weeks for it to get here from Hong Kong.
This is same cable (I believe)

http://www.adafruit.com/products/1099
_______________________________________________





___________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#34 Post by don570 »

To play downloaded flash videos without installing Flash itself
I found the following player works on recent Android tablets.

BSP v1.5.136 [4.0+].apk


However I found that mp4 videos were out of sync with audio,
but Android's builtin video player can handle mp4 fine.

.

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

How about doing a test run

#35 Post by Dromeno »

I do not have an android device so I do not know if this is useful, but I can imagine that you would like to be able to test the rooting procedure before you do it on an expensive phone.

Here are several android iso's whch can be installed on a computer (or even within puppy in a virtual box environment)

http://www.android-x86.org/

the only annoting part when you want to make a puppy/android multiboot system is that Grub4DOS does not recognize the android, so you will have to go back to Grub (ideas for workarounds are welcome)

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#36 Post by don570 »

I've just downloaded it. I'll try it out.

_______________________________________
the only annoting part when you want to make a puppy/android
multiboot system is that Grub4DOS does not recognize the android, so you
will have to go back to Grub (ideas for workarounds are welcome)
Have you tried a boot manager (such as plop) that will work with grub4dos?

grub4dos starts the boot process then plop puts a menu on screen
to choose what to do next.

http://www.plop.at/en/home.html

http://www.linuxjournal.com/content/usi ... r-usb-boot


________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#37 Post by don570 »

Here's a well written site to explain how to use adb
including how to install a .apk file

http://www.androidcentral.com/android-2 ... hould-know

_______________________________________________

I explain how to use Plop linux to boot
Android-x86

http://mail.murga-projects.com/puppy/vi ... 09864ac338

_______________________________________________

User avatar
Eastern Counties
Posts: 145
Joined: Tue 31 Jan 2006, 18:09
Location: UK

How to root Android device using ADB

#38 Post by Eastern Counties »

Has anybody figured out how to get over the error message that /system is Read Only?

I'm trying to root an HTC Wildfire S with Android 2.3.5 - a previous poster on this thread has done this, so it must be possible.

When I enter the commands to push Superuser.apk, etc., from /root on my Puppy laptop to /system on the phone, I get the message that /system is Read Only. I've searched, but can't find how to make /system Read/Write.

Anybody now how it's done?

Thanks

User avatar
n0ukf
Posts: 129
Joined: Tue 14 Feb 2012, 21:53

#39 Post by n0ukf »

I just tried ADB and got it to read my LG Optimus Dynamic (L35G running 2.3) with a straight cable but when I tried the TOUCH I got 'permission denied'. What now?

I still can't read a Trio Stealth G2 and Emerson (4.04 and 4.1.1 respectively) with ADB. Perhaps an OTG cable will help.

I want to root all three of these and hope to get them all up to KitKat.
"Cogito, ergo es. I think, therefore you is." [i]Ray D. Tutto (King of the Moon) to Baron Munschaussen[/i]

User avatar
n0ukf
Posts: 129
Joined: Tue 14 Feb 2012, 21:53

#40 Post by n0ukf »

I have now tried an OTG cable and neither tablet did anything different. I then got a "factory cable" and tried. At least this time the tablets indicate "USB debugging connected, but "adb devices" still shows nothing for these two tablets and trying touch or ls gives a device not found.

Trying the OTG and factory cables on the phone gives the debugging connection like the regular USB cable but push still gives me permission denied like with the regular USB cable.

How do I get past this permission denied on the phone and the lack of any kind of response in ADB from the tablets?
"Cogito, ergo es. I think, therefore you is." [i]Ray D. Tutto (King of the Moon) to Baron Munschaussen[/i]

Post Reply