SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#26 2011-05-21 00:27:04

popslee
#! Member
From: so cal
Registered: 2011-02-11
Posts: 51

Re: Rooting an android phone

JDP wrote:

I had a need to use adb to do some rooting for other people yesterday, and need to do it again. I had been using my Ubuntu 10.10 install and adb in the Android SDK tools worked fine, though it needed su privs to get adb working correctly.  Now on #! it's not working at all. I'm running the 2.6.32 Liquorix kernel and have chmod'd the abd binary with mode 777 and no dice either as user. I chown'd it to root:root and no luck with sudo/su either.

sounds like you need to add the device to udev

& export adb to your bashrc

#i export it to root bashrc, so i launch adb from root then exit out and and continue - there is an alternative to starting adb from root - but you should atleast start with what i mentioned first

Offline

Help fund CrunchBang, donate to the project!

#27 2011-05-21 00:33:48

EndlessDissent
#! CrunchBanger
From: Near Chicago
Registered: 2011-05-14
Posts: 131
Website

Re: Rooting an android phone

FiniteStateMachine wrote:

Sometimes though, the interfaces you can get from the modding community are really high quality, and a lot better than stock. MIUI is a great one if you want to look it up. It's like the difference between gnome and openbox. Not that MIUI is lighter, its just that much different.

This entire post is right on, but as a moderator at the www.miui.us forums, I wanted to whore out this amazing piece of software a bit.

A lot of people criticize it as being "too much like iOS", but those people never actually try it. Sure, it seems like iOS at first, since there is no app drawer, and all the app icons are on your homescreens, but they're easily organized and set out of the way with folders, and you can make a pseudo-app drawer by putting all your apps in a folder and putting the folder in your dock. It has a powerful, built-in theming engine, and there are so many themes, you may not ever be able to try them all, and they can make your phone look completely different.

There are a lot of neat, useful features, like a built-in screenshot function. On all other ROMs, you need an extra app for screenshots. They also include a lot of MIUI apps by default, like an amazing music player, notes app, file explorer with a built-in FTP server, and even a firewall/data usage monitor.

The best part is, it's available for a lot of phones. MIUI is a closed-source Chinese ROM, and they build it natively for about 6 or 7 different phones, like the Nexus S, Nexus 1, Galaxy S, Desire, HD2, and Motorola Defy. Then, it gets ported to a lot more phones. If your phone was considered high-end within the last year, there's a good chance you can find a port for your phone at www.miui.us. The most popular ports are for the Evo 4G (which is what I have) and the Droid Incredible.

There are weekly updates, and the changelog is always very long.

If anyone is interested in MIUI, check out the www.miui.us forums, the official English site at en.miui.com, and/or the official Chinese (main) site at www.miui.com (or www.miui.cn). It's worth a look.

Offline

#28 2011-05-21 00:36:57

EndlessDissent
#! CrunchBanger
From: Near Chicago
Registered: 2011-05-14
Posts: 131
Website

Re: Rooting an android phone

JDP wrote:

I had a need to use adb to do some rooting for other people yesterday, and need to do it again. I had been using my Ubuntu 10.10 install and adb in the Android SDK tools worked fine, though it needed su privs to get adb working correctly.  Now on #! it's not working at all. I'm running the 2.6.32 Liquorix kernel and have chmod'd the abd binary with mode 777 and no dice either as user. I chown'd it to root:root and no luck with sudo/su either.

Try

sudo ./adb start-server
sudo ./adb devices

Is your serial number listed?

Offline

#29 2011-05-21 02:27:24

JDP
#! Member
Registered: 2011-04-22
Posts: 76

Re: Rooting an android phone

popslee wrote:

sounds like you need to add the device to udev

I added a udev rule file as described here. I changed the idVendor to the one that shows up in lsusb for my Samsung phone, 04e8. I unplugged the phone ran "udevadm control --reload-rules" and plugged it back in. No change in behavior.

EndlessDissent wrote:

Is your serial number listed?

I don't get any response out of adb at all, root account or not or using sudo. Thunar does show the file as executable, as the permissions have been set in the shell.

root@leon:/home/jon/android-sdk-linux_x86/platform-tools# ./adb devices
bash: ./adb: No such file or directory
root@leon:/home/jon/android-sdk-linux_x86/platform-tools# ls -l
total 20152
-rwxrwxrwx 1 jon  jon   3747857 May 18 21:24 aapt
-rwxrwxrwx 1 root root   363197 May 18 21:24 adb
-rwxrwxrwx 1 jon  jon    906338 May 18 21:24 aidl
-rwxrwxrwx 1 jon  jon    328445 May 18 21:24 dexdump
-rwxrwxrwx 1 jon  jon      2603 May 18 21:24 dx
drwxr-xr-x 2 jon  jon      4096 May 18 21:24 lib
-rwxrwxrwx 1 jon  jon  14929076 May 18 21:24 llvm-rs-cc
-rw-r--r-- 1 jon  jon    332494 May 18 21:24 NOTICE.txt
-rw-r--r-- 1 jon  jon       291 May 18 21:24 source.properties
root@leon:/home/jon/android-sdk-linux_x86/platform-tools#

dmesg shows that the system sees the phone when it is plugged in. I just triple checked and USB Debugging is enabled on the phone. It's something about not being ableto run adb itself on #!:

usb 1-7: new high speed USB device using ehci_hcd and address 7
usb 1-7: device descriptor read/64, error -71
usb 1-7: device descriptor read/64, error -71
usb 1-7: new high speed USB device using ehci_hcd and address 8
usb 1-7: device descriptor read/64, error -71
usb 1-7: device descriptor read/64, error -71
usb 1-7: new high speed USB device using ehci_hcd and address 9
usb 1-7: device not accepting address 9, error -71
usb 1-7: new high speed USB device using ehci_hcd and address 10
usb 1-7: device not accepting address 10, error -71
hub 1-0:1.0: unable to enumerate USB device on port 7
usb 5-1: new full speed USB device using uhci_hcd and address 3
usb 5-1: not running at top speed; connect to a high speed hub
usb 5-1: New USB device found, idVendor=04e8, idProduct=681c
usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 5-1: Product: SAMSUNG_Android
usb 5-1: Manufacturer: SAMSUNG
usb 5-1: SerialNumber: M910bb017d97
cdc_acm 5-1:1.0: This device cannot do calls on its own. It is not a modem.
cdc_acm 5-1:1.0: ttyACM0: USB ACM device
scsi5 : usb-storage 5-1:1.2
scsi 5:0:0:0: Direct-Access     Android    UMS Composite    00 PQ: 0 ANSI: 2
sd 5:0:0:0: Attached scsi generic sg3 type 0
sd 5:0:0:0: [sdc] Attached SCSI removable disk
root@leon:/home/jon/android-sdk-linux_x86/platform-tools# ./adb devices
bash: ./adb: No such file or directory
root@leon:/home/jon/android-sdk-linux_x86/platform-tools# 

Offline

#30 2011-05-21 02:38:30

EndlessDissent
#! CrunchBanger
From: Near Chicago
Registered: 2011-05-14
Posts: 131
Website

Re: Rooting an android phone

JDP wrote:

dmesg shows that the system sees the phone when it is plugged in. I just triple checked and USB Debugging is enabled on the phone. It's something about not being ableto run adb itself on #!:


OK. I wish I had tried ADB earlier. I just tried and got the same result. It's set as executable, but no matter what, I get no response out of it. This is strange. It worked perfectly in Debian Squeeze, and that's all Crunchbang is supposed to be, right? This makes no sense. Even fastboot doesn't respond.

endlessdissent@potpal:~$ cd ./Android_Tools/
endlessdissent@potpal:~/Android_Tools$ sudo ./adb start-server
[sudo] password for endlessdissent: 
endlessdissent@potpal:~/Android_Tools$ sudo ./adb devices
endlessdissent@potpal:~/Android_Tools$ sudo ./adb shell
endlessdissent@potpal:~/Android_Tools$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0bb4:0c8d High Tech Computer Corp. EVO 4G (debug)
endlessdissent@potpal:~/Android_Tools$ ls
adb                Gallery.apk    MIUI_Weather_Dev.apk       unyaffs
evosplash1.rgb565  miui_city.db   splash1.img
fastboot           MiuiMusic.apk  stock-blackonwhite.rgb565
endlessdissent@potpal:~/Android_Tools$ sudo ./fastboot devices
endlessdissent@potpal:~/Android_Tools$ sudo ./fastboot flash splash1 evosplash1.rgb565
endlessdissent@potpal:~/Android_Tools$ 

Offline

#31 2011-05-21 04:06:40

popslee
#! Member
From: so cal
Registered: 2011-02-11
Posts: 51

Re: Rooting an android phone

you guys should try this:
http://crunchbanglinux.org/pastebin/1044

some stuff I came across trying to work out adb - this should work

Offline

#32 2011-05-21 05:11:39

JDP
#! Member
Registered: 2011-04-22
Posts: 76

Re: Rooting an android phone

Before anything is even plugged in adb should show some sort of output. Running the adb server with nothing plugged in should just show an empty list of devices. It does nothing at all. Running it with an unrecognized device, or without correct permissions should show a device but with ??????? instead of the device id. At this point on Statler we aren't even getting adb to run at all.

Offline

#33 2011-05-21 06:17:04

popslee
#! Member
From: so cal
Registered: 2011-02-11
Posts: 51

Re: Rooting an android phone

hmm, I don't recall ever having problems with statler (openbox or xfce).

my only suggestion at this point is rm the sdk and go grab the lasted ver.

there was a cb-script i did rm but I don't remember ... think it was udev related

and also the lib32's if running 64

Offline

#34 2011-05-21 08:17:51

EndlessDissent
#! CrunchBanger
From: Near Chicago
Registered: 2011-05-14
Posts: 131
Website

Re: Rooting an android phone

popslee wrote:

and also the lib32's if running 64


I actually thought about that while I was working. I think the ia32 libs got installed for some reason in Debian. I don't think they've been installed in #!. I haven't been able to try yet, but I'll report back when I do.

Edit: We have a winner! The 32-bit libs were the missing piece.

endlessdissent@potpal:~$ cd ./Android_Tools/
endlessdissent@potpal:~/Android_Tools$ sudo ./adb start-server
[sudo] password for endlessdissent: 
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
endlessdissent@potpal:~/Android_Tools$ sudo ./adb devices
List of devices attached 
0123456789ABCDEF	device

And yes, my serial number got messed up, possibly during a radio update, but I'm not sure. It doesn't affect the operation of the phone or anything, but I didn't fake anything up there, in case anyone might have thought so.

Last edited by EndlessDissent (2011-05-21 09:46:51)

Offline

#35 2011-05-21 09:52:40

GuruX
#! Die Hard
Registered: 2009-01-18
Posts: 527

Re: Rooting an android phone

kook wrote:

The binary has to be uploaded to the device via "adb push"
inside a writable and executable directory:

/data/local/tmp

is right where i fail again, thanks to my very carefull sense-ui provider(?). But im setting my sights on n900 smile

I have the N900. It's the worst and the most fun phone I've ever had. Expect to tinker around quite a lot with your N900. The Maemo OS is abandoned by Nokia, so right now the development is made by the community.
It's a fun phone, quite a lot of applications, but not the type of applications you'll find on an android device. Battery time is quite bad also.
Perhaps we will see MeeGo sometime in the future. The problem with MeeGo right now is that drivers for the cellphone part is closed source. So it's not possible to use the phone for calling in MeeGo. Well, you can call, and get called. You can hear the other person, but they can't hear you.
Oh, and really. It's not a phone. It's a small ARM based computer that you can use to call from.

Offline

#36 2011-05-21 10:48:39

JDP
#! Member
Registered: 2011-04-22
Posts: 76

Re: Rooting an android phone

EndlessDissent wrote:

Edit: We have a winner! The 32-bit libs were the missing piece.

Which ones did you install? I'd thought about going into my Ubuntu install and jotting down which ones might be installed there but since you already have what works it'd be best.

Offline

#37 2011-05-21 10:50:14

EndlessDissent
#! CrunchBanger
From: Near Chicago
Registered: 2011-05-14
Posts: 131
Website

Re: Rooting an android phone

JDP wrote:
EndlessDissent wrote:

Edit: We have a winner! The 32-bit libs were the missing piece.

Which ones did you install? I'd thought about going into my Ubuntu install and jotting down which ones might be installed there but since you already have what works it'd be best.

I just opened Synaptic, typed "ia32", marked the first one, and installed that with its dependencies, which is pretty much all the 32-bit libs.

Edit: Just to be precise: the only package I marked myself was ia32-libs. Mark its dependencies (obviously), and install that and only that, and you'll be set.

Last edited by EndlessDissent (2011-05-21 10:55:21)

Offline

#38 2011-05-21 23:29:36

JDP
#! Member
Registered: 2011-04-22
Posts: 76

Re: Rooting an android phone

Ok, good. I'll be giving that a try tonight. I had started trying last night by using apt-get with lib32* and several conflicts cropped up. :-/

Offline

#39 2011-05-21 23:37:43

JDP
#! Member
Registered: 2011-04-22
Posts: 76

Re: Rooting an android phone

GuruX wrote:

I have the N900. It's the worst and the most fun phone I've ever had. Expect to tinker around quite a lot with your N900. The Maemo OS is abandoned by Nokia, so right now the development is made by the community.

Before Androids phones got more powerful and cheaper I was lusting after an N810/900. Now-a-days with sub-$200 phones and $25 data plans it's hard not to snap one up instead of a Nokia.

Offline

#40 2011-05-22 05:36:54

popslee
#! Member
From: so cal
Registered: 2011-02-11
Posts: 51

Re: Rooting an android phone

JDP wrote:

Ok, good. I'll be giving that a try tonight. I had started trying last night by using apt-get with lib32* and several conflicts cropped up. :-/

when you install ia32-libs it pulls all the dependencies

Offline

#41 2011-05-22 11:24:00

rich
#! Junkie
From: barcelona
Registered: 2009-01-26
Posts: 414
Website

Re: Rooting an android phone

I rooted my Galaxy 3 with z4root from the market. Rooted my Android in 5 minutes. My bosses did their Galaxy S's with it as well.

Now waiting to get a Galaxy S II, which I will also be rooting.

Offline

#42 2011-05-22 14:44:28

JDP
#! Member
Registered: 2011-04-22
Posts: 76

Re: Rooting an android phone

popslee wrote:

when you install ia32-libs it pulls all the dependencies

Yep, confirmed. adb is now functioning on my 64-bit install. Now it's time to push a new kernel to flash on my phone, and I don't have to reboot out of #! for it. Thanks for the help guys! It was a d'Oh moment when I read the tips on lib32.

Offline

#43 2012-11-30 20:57:46

Erik
#! CrunchBanger
From: Fort Worth, TX
Registered: 2009-03-28
Posts: 192

Re: Rooting an android phone

popslee wrote:

you guys should try this:
http://crunchbanglinux.org/pastebin/1044

some stuff I came across trying to work out adb - this should work

Fantastic! I had a problem with my UDEV rule that I copied from another website, but this step-by-step not only fixed it, it also shows you what's going on. Cool!

A tip I found somewhere else: to be able to easily run adb you can make a symbolic link to /usr/bin:

sudo ln -s [your location of adb] /bin/adb

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo