Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 30 Oct 2014, 12:49
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to root Android device using ADB
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 3 of 3 Posts_count   Goto page: Previous 1, 2, 3
Author Message
don570


Joined: 10 Mar 2010
Posts: 3355
Location: Ontario

PostPosted: Tue 02 Apr 2013, 12:48    Post_subject:  

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/showthread.php?p=17123601

____________________________________________________
Back to top
View user's profile Send_private_message 
oldaolgeezer

Joined: 03 Dec 2006
Posts: 14

PostPosted: Fri 05 Apr 2013, 20:22    Post_subject: How to root Android device using ADB
Sub_title: Puppy Linux 5.2.8 V4 with adb on my first generation Kindle Fire tablet
 

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.
Back to top
View user's profile Send_private_message 
don570


Joined: 10 Mar 2010
Posts: 3355
Location: Ontario

PostPosted: Mon 13 May 2013, 15:43    Post_subject:  

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-Nexus-Tablet-Micro-Cable/dp/B008ZBGC5S

Here's a review..

Quote:


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
_______________________________________________





___________________________________________________
Back to top
View user's profile Send_private_message 
don570


Joined: 10 Mar 2010
Posts: 3355
Location: Ontario

PostPosted: Wed 15 May 2013, 18:35    Post_subject:  

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.

.
Back to top
View user's profile Send_private_message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Thu 30 May 2013, 05:09    Post_subject: How about doing a test run  

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)
Back to top
View user's profile Send_private_message 
don570


Joined: 10 Mar 2010
Posts: 3355
Location: Ontario

PostPosted: Thu 30 May 2013, 19:48    Post_subject:  

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

_______________________________________

Quote:
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/using-plop-boot-manager-usb-boot


________________________________________
Back to top
View user's profile Send_private_message 
don570


Joined: 10 Mar 2010
Posts: 3355
Location: Ontario

PostPosted: Mon 03 Jun 2013, 19:29    Post_subject:  

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

http://www.androidcentral.com/android-201-10-basic-terminal-commands-you-should-know

_______________________________________________

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

http://mail.murga-projects.com/puppy/viewtopic.php?t=86514&sid=787ca351e283a3c686cc5b09864ac338

_______________________________________________
Back to top
View user's profile Send_private_message 
Eastern Counties


Joined: 31 Jan 2006
Posts: 142
Location: UK

PostPosted: Fri 16 Aug 2013, 14:04    Post_subject: How to root Android device using ADB  

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
Back to top
View user's profile Send_private_message 
n0ukf


Joined: 14 Feb 2012
Posts: 129

PostPosted: Sun 07 Sep 2014, 19:29    Post_subject:  

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." Ray D. Tutto (King of the Moon) to Baron Munschaussen
Back to top
View user's profile Send_private_message 
n0ukf


Joined: 14 Feb 2012
Posts: 129

PostPosted: Sat 20 Sep 2014, 03:59    Post_subject:  

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." Ray D. Tutto (King of the Moon) to Baron Munschaussen
Back to top
View user's profile Send_private_message 
don570


Joined: 10 Mar 2010
Posts: 3355
Location: Ontario

PostPosted: Sat 20 Sep 2014, 16:28    Post_subject:  

Code:

adb push su /system/xbin


All I can suggest is put a 'su' after push command

______________________________
Back to top
View user's profile Send_private_message 
JustGreg

Joined: 24 May 2005
Posts: 719
Location: Connecticut USA

PostPosted: Wed 08 Oct 2014, 21:48    Post_subject:
Sub_title: Connection Information
 

Thank you, don570 for providing the information in this post. I have two android tables that I have been using for experiments. Both have already been rooted by another method. But, I have not had much luck in getting adb to work. It is working now for me. Both tablets have android version 4.2.2 version on them. Here is some additional information for everyone's use.

Both tablets required these steps to get the developer option to work. First with the settings application under the "About Tablet" menu entry, one has to "tap" the "Build Number" seven (7) times to get the developer permission so the "Developer Options" menu entry to be shown. Once the "Developer Options" menu entry is available, then one has to turn them on by moving the unlabeled switch (upper left corner) to the left so it has a green bar shown. Once that is done, all the developer options are available for use.

The first tablet is a Lenovo Model B6000F. I found once I used the adb you listed, my previous problems disappeared. The Lenovo did not require a special cable. It connected with its normal charging cable, a micro USB to a normal male USB connector. Using the information on adb including its internal help discription, I was able to access and manipulate the tablet's files.

The second tablet is an inexpensive NextBook model NX785OCBG sold by Walmart. I got it to use it as an Internet radio. I could not connect adb to it using the usb interface. I tried several different cable configurations using a standard charging cable or OTG cable. It would not connect. I do know the USB port is a OTG type. I did find the reason, the tablet does not correctly identify itself to adb. The vendor usb ID (2922) is not listed in the available vendor databases. I managed to connect it using a wifi IP connection. Because the tablet is already rooted, I was able to use the android application ADB Wireless Port by Lu Chao to set up the tablet to connect to adb via wifi. It did work. There are many other andriod adb wireless applications available that claim to be able to do this without root privileges. I have not tested them because Lu Chao application worked so well for me. It is very simple to use. This does solve the cable problem. In a terminal window, one uses the command adb connect ###.###.###.### to make the connection to the adb deamon. So far, it appears all adb operations can be done.

I an using Fatdog64 700 beta 1 to do this. I hope this helps.

_________________
Enjoy life, Just Greg
Live Well, Laugh Often, Love Much
Back to top
View user's profile Send_private_message 
JustGreg

Joined: 24 May 2005
Posts: 719
Location: Connecticut USA

PostPosted: Fri 10 Oct 2014, 10:03    Post_subject:
Sub_title: File adb_usb.ini is needed.
 

I solved the problem of my Nextbook not connecting to adb via USB. When adb is first run, it creates a hidden directory (.android) in the root directory. The .android directory contains the keys to connect with Android version 4.2 or newer. After some web research, I found adb also needs another file, adb_usb.ini in this directory.

The file adb_usb.ini contains the vendors' usb ID value. I created it with Geany (or another text editor), provided the needed hex values. The Nextbook now connects using USB with the standard charging cable to adb for adb operations.

Here is the contents of my adb_usb.ini file:
Code:
# ANDROID USB VENDOR ID LIST.
# 1 USB VENDOR ID PER LINE.
# Nextbook value
0x2922
# Lenovo
0x17EF

_________________
Enjoy life, Just Greg
Live Well, Laugh Often, Love Much
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2533
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Fri 10 Oct 2014, 13:23    Post_subject:
Sub_title: File adb_usb.ini is needed.
 

JustGreg wrote:
The file adb_usb.ini contains the vendors' usb ID value. I created it with Geany (or another text editor), provided the needed hex values.
Here is how to find easily this vendors' usb ID value:
compare the output of
Code:
lsusb
- cable connected and
- not connected
and you will find the actual needed ID

my 0.02 $

Thank you, Don, for this useful thread.
Back to top
View user's profile Send_private_message 
JustGreg

Joined: 24 May 2005
Posts: 719
Location: Connecticut USA

PostPosted: Fri 10 Oct 2014, 18:21    Post_subject:  

Thanks L18L for the information. That is what I did, I forgot to mention it.
_________________
Enjoy life, Just Greg
Live Well, Laugh Often, Love Much
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 3 of 3 Posts_count   Goto page: Previous 1, 2, 3
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1034s ][ Queries: 13 (0.0080s) ][ GZIP on ]