Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.mobile.android > #45298 > unrolled thread
| Started by | "Charles T. Smith" <cts.private.yahoo@gmail.com> |
|---|---|
| First post | 2017-07-19 22:35 +0000 |
| Last post | 2017-07-22 09:17 +0000 |
| Articles | 11 — 3 participants |
Back to article view | Back to comp.mobile.android
how to get and build the su(1) command for Motorola phones "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-19 22:35 +0000
Re: how to get and build the su(1) command for Motorola phones Desmond Riverton <des@private.invalid> - 2017-07-20 07:58 +0000
Re: how to get and build the su(1) command for Motorola phones "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-20 08:53 +0000
Re: how to get and build the su(1) command for Motorola phones "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-20 10:45 +0000
Re: how to get and build the su(1) command for Motorola phones "Carlos E.R." <robin_listas@es.invalid> - 2017-07-21 04:51 +0200
Re: how to get and build the su(1) command for Motorola phones "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-21 07:48 +0000
Re: how to get and build the su(1) command for Motorola phones "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-20 21:39 +0000
Re: how to get and build the su(1) command for Motorola phones Desmond Riverton <des@private.invalid> - 2017-07-21 07:51 +0000
Re: how to get and build the su(1) command for Motorola phones "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-21 08:01 +0000
Re: how to get and build the su(1) command for Motorola phones Desmond Riverton <des@private.invalid> - 2017-07-22 09:11 +0000
Re: how to get and build the su(1) command for Motorola phones "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-22 09:17 +0000
| From | "Charles T. Smith" <cts.private.yahoo@gmail.com> |
|---|---|
| Date | 2017-07-19 22:35 +0000 |
| Subject | how to get and build the su(1) command for Motorola phones |
| Message-ID | <okoms0$svl$1@dont-email.me> |
Hi, I've unlocked my phone according to the instructions on the Motorola web page, but that doesn't seem to give me anything. There is no su command on the device and "adb root" responds with: "adbd cannot run as root in production builds" I don't want to use somebody's binary - google/android makes the unix commands available, e.g. ls(1), sh(), etc. The su(1) command should be available, too. Or, perhaps I could just get a copy of su.c from linux and cross compile it? Does the android sdk also support the C parts of android, e.g. with cross compilers? TIA cts
[toc] | [next] | [standalone]
| From | Desmond Riverton <des@private.invalid> |
|---|---|
| Date | 2017-07-20 07:58 +0000 |
| Message-ID | <GtZbB.467821$LJ4.74142@fx37.am4> |
| In reply to | #45298 |
"Charles T. Smith" wrote: > I've unlocked my phone according to the instructions on the > Motorola web page, but that doesn't seem to give me anything. > There is no su command on the device The su binary usually is at /system/xbin/su on Android. > and "adb root" responds > with: > > "adbd cannot run as root in production builds" > > I don't want to use somebody's binary - google/android makes > the unix commands available, e.g. ls(1), sh(), etc. The su(1) > command should be available, too. To get the Android su source: https://android.googlesource.com/platform/system/extras/+/master/su/ To build: start reading from here: https://source.android.com/source/requirements
[toc] | [prev] | [next] | [standalone]
| From | "Charles T. Smith" <cts.private.yahoo@gmail.com> |
|---|---|
| Date | 2017-07-20 08:53 +0000 |
| Message-ID | <okpr2h$b9i$1@dont-email.me> |
| In reply to | #45317 |
On Thu, 20 Jul 2017 07:58:45 +0000, Desmond Riverton wrote: > "Charles T. Smith" wrote: > >> I've unlocked my phone according to the instructions on the >> Motorola web page, but that doesn't seem to give me anything. >> There is no su command on the device > > The su binary usually is at /system/xbin/su on Android. $ adb shell ls /system/xbin backup dexdump run_backup run_restore $ > >> and "adb root" responds >> with: >> >> "adbd cannot run as root in production builds" >> >> I don't want to use somebody's binary - google/android makes >> the unix commands available, e.g. ls(1), sh(), etc. The su(1) >> command should be available, too. > > To get the Android su source: > https://android.googlesource.com/platform/system/extras/+/master/su/ Thank you. > > To build: start reading from here: > https://source.android.com/source/requirements
[toc] | [prev] | [next] | [standalone]
| From | "Charles T. Smith" <cts.private.yahoo@gmail.com> |
|---|---|
| Date | 2017-07-20 10:45 +0000 |
| Message-ID | <okq1kv$b9i$2@dont-email.me> |
| In reply to | #45317 |
On Thu, 20 Jul 2017 07:58:45 +0000, Desmond Riverton wrote: > > To get the Android su source: > https://android.googlesource.com/platform/system/extras/+/master/su/ Can you give me a hint how I could download that file, other than by copy-and-paste? There's a button on the lower right-side of the status bar labeled "txt" but that just yields: LyoKICogQ29weXJpZ2h0IChDKSAyMDA4IFRoZSBBbmRyb2lkIE9wZW4gU291cmNlIFByb2p... I wish I knew what that was. Also, saving the file gives pretty obfuscated html code. Copy and paste works, so it's more of an academic question.
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2017-07-21 04:51 +0200 |
| Message-ID | <5q684e-cev.ln1@Telcontar.valinor> |
| In reply to | #45321 |
On 2017-07-20 12:45, Charles T. Smith wrote: > On Thu, 20 Jul 2017 07:58:45 +0000, Desmond Riverton wrote: > > >> >> To get the Android su source: >> https://android.googlesource.com/platform/system/extras/+/master/su/ > > > Can you give me a hint how I could download that file, other than by copy-and-paste? Click on "tgz" -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | "Charles T. Smith" <cts.private.yahoo@gmail.com> |
|---|---|
| Date | 2017-07-21 07:48 +0000 |
| Message-ID | <oksbl6$tto$5@dont-email.me> |
| In reply to | #45349 |
On Fri, 21 Jul 2017 04:51:17 +0200, Carlos E.R. wrote: > On 2017-07-20 12:45, Charles T. Smith wrote: >> On Thu, 20 Jul 2017 07:58:45 +0000, Desmond Riverton wrote: >> >> >>> >>> To get the Android su source: >>> https://android.googlesource.com/platform/system/extras/+/master/su/ >> >> >> Can you give me a hint how I could download that file, other than by copy-and-paste? > > Click on "tgz" :) Thank you.
[toc] | [prev] | [next] | [standalone]
| From | "Charles T. Smith" <cts.private.yahoo@gmail.com> |
|---|---|
| Date | 2017-07-20 21:39 +0000 |
| Message-ID | <okr7ug$via$3@dont-email.me> |
| In reply to | #45317 |
On Thu, 20 Jul 2017 07:58:45 +0000, Desmond Riverton wrote: > "Charles T. Smith" wrote: > >> I've unlocked my phone according to the instructions on the >> Motorola web page, but that doesn't seem to give me anything. >> There is no su command on the device > > The su binary usually is at /system/xbin/su on Android. Is it only there because you flashed the memory of your phone with some third-party image?
[toc] | [prev] | [next] | [standalone]
| From | Desmond Riverton <des@private.invalid> |
|---|---|
| Date | 2017-07-21 07:51 +0000 |
| Message-ID | <JsicB.444771$h63.302233@fx34.am4> |
| In reply to | #45344 |
Charles T. Smith wrote: > On Thu, 20 Jul 2017 07:58:45 +0000, Desmond Riverton wrote: > >> "Charles T. Smith" wrote: >> >>> I've unlocked my phone according to the instructions on the >>> Motorola web page, but that doesn't seem to give me anything. >>> There is no su command on the device >> >> The su binary usually is at /system/xbin/su on Android. > > > Is it only there because you flashed the memory of your phone > with some third-party image? No. Manufacturer's original ROM.
[toc] | [prev] | [next] | [standalone]
| From | "Charles T. Smith" <cts.private.yahoo@gmail.com> |
|---|---|
| Date | 2017-07-21 08:01 +0000 |
| Message-ID | <oksccl$tto$8@dont-email.me> |
| In reply to | #45360 |
On Fri, 21 Jul 2017 07:51:16 +0000, Desmond Riverton wrote: > Charles T. Smith wrote: >> On Thu, 20 Jul 2017 07:58:45 +0000, Desmond Riverton wrote: >> >>> "Charles T. Smith" wrote: >>> >>>> I've unlocked my phone according to the instructions on the >>>> Motorola web page, but that doesn't seem to give me anything. >>>> There is no su command on the device >>> >>> The su binary usually is at /system/xbin/su on Android. >> >> >> Is it only there because you flashed the memory of your phone >> with some third-party image? > > No. Manufacturer's original ROM. Oh cool! That's the hint I've been searching for! You say that you have /system/xbin/su on a stock ROM, right? Is it "rooted"? Can the su command be executed?
[toc] | [prev] | [next] | [standalone]
| From | Desmond Riverton <des@private.invalid> |
|---|---|
| Date | 2017-07-22 09:11 +0000 |
| Message-ID | <PyEcB.116702$_N3.88089@fx04.iad> |
| In reply to | #45364 |
Charles T. Smith wrote: > On Fri, 21 Jul 2017 07:51:16 +0000, Desmond Riverton wrote: >> Charles T. Smith wrote: >>> On Thu, 20 Jul 2017 07:58:45 +0000, Desmond Riverton wrote: >>> >>>> The su binary usually is at /system/xbin/su on Android. >>> >>> Is it only there because you flashed the memory of your phone >>> with some third-party image? >> >> No. Manufacturer's original ROM. > > Oh cool! That's the hint I've been searching for! > > You say that you have /system/xbin/su on a stock ROM, right? Yes. > Is it "rooted"? Can the su command be executed? It is not yet "rooted" in the sense in which most Android users use the term. The Android stock su always rejects requests from apps such as ES File Explorer. The Android stock su does grant requests from adbd.
[toc] | [prev] | [next] | [standalone]
| From | "Charles T. Smith" <cts.private.yahoo@gmail.com> |
|---|---|
| Date | 2017-07-22 09:17 +0000 |
| Message-ID | <okv56v$ff3$3@dont-email.me> |
| In reply to | #45391 |
On Sat, 22 Jul 2017 09:11:34 +0000, Desmond Riverton wrote: > Charles T. Smith wrote: >> On Fri, 21 Jul 2017 07:51:16 +0000, Desmond Riverton wrote: >>> Charles T. Smith wrote: >>>> On Thu, 20 Jul 2017 07:58:45 +0000, Desmond Riverton wrote: >>>> >>>>> The su binary usually is at /system/xbin/su on Android. >>>> >>>> Is it only there because you flashed the memory of your phone >>>> with some third-party image? >>> >>> No. Manufacturer's original ROM. >> >> Oh cool! That's the hint I've been searching for! >> >> You say that you have /system/xbin/su on a stock ROM, right? > > Yes. > >> Is it "rooted"? Can the su command be executed? > > It is not yet "rooted" in the sense in which most Android users use the > term. > > The Android stock su always rejects requests from apps such as ES File > Explorer. The Android stock su does grant requests from adbd. Yes, that's exactly what I'm looking for, for starters. Thank you for the info.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.mobile.android
csiph-web