Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Low level network information?

Received: by 10.180.106.3 with SMTP id gq3mr4328093wib.1.1343003341977;
        Sun, 22 Jul 2012 17:29:01 -0700 (PDT)
X-BeenThere: android-platform@googlegroups.com
Received: by 10.216.151.146 with SMTP id b18ls6083623wek.6.gmail; Sun, 22 Jul
 2012 17:28:29 -0700 (PDT)
Received: by 10.180.104.133 with SMTP id ge5mr4343964wib.1.1343003309660;
        Sun, 22 Jul 2012 17:28:29 -0700 (PDT)
Received: by 10.180.104.133 with SMTP id ge5mr4343963wib.1.1343003309598;
        Sun, 22 Jul 2012 17:28:29 -0700 (PDT)
Return-Path: <ch...@floor51.com>
Received: from floor51.com (s15349310.onlinehome-server.info. [87.106.129.210])
        by gmr-mx.google.com with ESMTPS id e5si1366864wiw.0.2012.07.22.17.28.29
        (version=TLSv1/SSLv3 cipher=OTHER);
        Sun, 22 Jul 2012 17:28:29 -0700 (PDT)
Received-SPF: neutral (google.com: 87.106.129.210 is neither permitted nor denied by best guess record for domain of ch...@floor51.com) client-ip=87.106.129.210;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 87.106.129.210 is neither permitted nor denied by best guess record for domain of ch...@floor51.com) smtp.mail=ch...@floor51.com
Received: from [192.168.11.128] (cpc2-cmbg14-2-0-cust30.5-4.cable.virginmedia.com [86.26.0.31])
	(using TLSv1 with cipher AES128-SHA (128/128 bits))
	(No client certificate requested)
	by floor51.com (Postfix) with ESMTP id 5CC773BC
	for <android-platform@googlegroups.com>; Mon, 23 Jul 2012 01:27:51 +0100 (BST)
Subject: Re: Low level network information?
References: <58f98b0d-3c14-4ea9-9873-2d32ce05a920@j28g2000vbl.googlegroups.com> <9458398.1551.1334760922805.JavaMail.geo-discussion-forums@vbug19> <23816704.131.1335173125435.JavaMail.geo-discussion-forums@yndm3> <9714a0be-f21e-4633-97c3-67e6c18ace09@f30g2000vbz.googlegroups.com> <3413908.2680.1336953837856.JavaMail.geo-discussion-forums@ynll26> <dafdadf2-75ac-4ac0-9e06-c39396b38777@c8g2000vbw.googlegroups.com> <5e5cfced-e667-4d95-bd29-e0c286e260be@googlegroups.com> <8d8de4b4-0e7f-4573-a642-a0072f426359@googlegroups.com> <997663e5-ac1f-4f6c-98db-f26565bd2d5a@googlegroups.com> <261dbdde-a414-4f9a-9f42-f3f4509f7a4b@googlegroups.com>
From: Chris Newman <ch...@floor51.com>
Content-Type: multipart/alternative;
	boundary=Apple-Mail-3F6088F3-626B-4814-AF87-7F6C5254FEE6
X-Mailer: iPad Mail (9B206)
In-Reply-To: <261dbdde-a414-4f9a-9f42-f3f4509f7a4b@googlegroups.com>
Message-Id: <50D179E8-4403-4BBD-8D67-2043811EA...@floor51.com>
Date: Mon, 23 Jul 2012 01:32:18 +0100
To: "android-platform@googlegroups.com" <android-platform@googlegroups.com>
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (1.0)


--Apple-Mail-3F6088F3-626B-4814-AF87-7F6C5254FEE6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi Felix the FieldTest app on the XDA forum is signed with test keys. To run=
 it on a production HTC One X it needs to be signed with the live keys other=
wise it really shouldn't work. Unless you have the live HTC Android platform=
 key (!) to sign it with you will need to flash on something like the Cyanog=
enMod firmware or your own. Then you will have a firmware signed with the sa=
me test keys. You'll need to do this for you own stuff but you could extract=
 HTC's FieldTest from a normal production phone and use that instead of the X=
DA one without flashing. I'm surprised the One X doesn't already have it tho=
ugh.

I'm not quite sure what Ricardo means by debug/engineering mode either so wi=
ll be good to hear back on this. It sounds like a way to switch off the secu=
rity (!) so then it wouldn't matter which key is used.

I haven't checked out the ICS installer so maybe there is also a change that=
 breaks just copying to /system/app.

Chris

On 22 Jul 2012, at 20:26, FelixG <felixgrou...@gmail.com> wrote:

> Hi Ricardo
>=20
> This was a big help but unfortunetly I could not solve it up to now. What I=
 have done:
> - I rooted my HTC One X.=20
> - I am not sure what you ment with "debug mode". Do you mean Settings->Dev=
elopment>USB-Debugging?=20
>=20
> Or does debug mode/engineering mode means that I need a engineering hboot-=
version?
>=20
> Then I tried what "chrisnew" wrote and I only copied the FieldTest app to /=
system/app. But I can't run it. I think the problem is, that the app is not i=
nstalled (maybe because the permission couldn't be set). I tried to start th=
e activity with the LauncherPro. It was not succesful. Then I tried it direc=
tly from adb shell with:
> adb shell
> am start -a android.intent.action.MAIN -n com.htc.fieldtest/.FieldTest
>=20
> But I only get the message, that the app does not exist...
>=20
> I would be happy, if you could give me a short hint how to fix it.
>=20
> Thanks
>=20
> Best regards
> Felix
>=20
>=20
> Am Montag, 9. Juli 2012 11:57:51 UTC+2 schrieb Ricardo Silva @ Lyncode:
> Hi,
>=20
> You need a Android system not only rooted, but running in debug mode (or e=
ngineering mode), to install applications with shared:userid =3D=3D system.
>=20
> Kind Regards,
> Ricardo Silva=20
> rica...@lyncode.com
>=20
> S=C3=A1bado, 7 de Julho de 2012 9:13:24 UTC+1, FelixG escreveu:
> Hello
>=20
> Does anybody know, if the device must be rooted to read these low level ne=
twork information?
>=20
> My little app is nice running on my HTC magic 32B (second developer phone)=
. Now I tested it on my new HTC One X and I get the message:
> Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]
>=20
> I also found the HTC FieldTest app for the HTC One XL but I can't install i=
t on my device. I get the same error:
> Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]
>=20
> You can download the FieldTest here, if anybody needs it:
> http://forum.xda-developers.com/showthread.php?t=3D1593126&page=3D11
>=20
> Would be happy for any hints.
> Felix
>=20
> Am Samstag, 23. Juni 2012 01:50:25 UTC+2 schrieb Damien O'Reilly:
> Can you share your code please?
>=20
> Im having trouble with reflection as im targeting SDK 2.3.3
>=20
> On Monday, 14 May 2012 13:34:24 UTC+1, felixad wrote:
> Hi citus=20
>=20
> Thank you very much! This was the solution!=20
>=20
> My RIL response looks like that:=20
> D/RILJ    (  235): [0079]>=20
> OEM_HOOK_RAW[0000000008000000010000005f000000]=20
> D/RILJ    (  235): [0080]> OEM_HOOK_STRINGS=20
> D/RILJ    (  235): [0079]< OEM_HOOK_RAW=20
> D/RILJ    (  235): [0080]< OEM_HOOK_STRINGS {UNIAT, $GSM:=20
> 560,"1b68","92","22803",0 -99,0 -99,0 -99,0 -99,0 -99,0=20
> -99,0,"22803","46a2bfb5",1530,1,5,-70,0=20
>=20
> For my first question it found the answer. I always reinstalled the=20
> app with "adb install -r ......". With this way I only installed=20
> updates which where deleted after a reboot and the first version of=20
> the app was restored. Now I deleted the app in /system/app and=20
> everything was fine.=20
>=20
> Thank you for your help.=20
>=20
> Cheers=20
> Felix=20
>=20
> On 14 Mai, 02:03, citus <cit...@gmail.com> wrote:=20
> > Instead of:=20
> > String[] gsm_page =3D {"A","T","$","G","S","M","?","=20
> > \r"};=20
> >=20
> > Try:=20
> > String[] commandString =3D {"UNIAT", "AT$GSM?\r"};=20
> >=20
> > I have used this and it does work. I don't know how the rest of your cod=
e=20
> > is setup, and I cannot guarantee that the AT$GSM? command will work, but=
=20
> > that is definitely how you call invokeOemRilRequestStrings.=20
> >=20
> >=20
> >=20
> >=20
> >=20
> >=20
> >=20
> > On Sunday, May 13, 2012 7:31:52 AM UTC-5, felixad wrote:=20
> >=20
> > > Hello=20
> >=20
> > > I am running Jo=C3=A3o code too. I have two question and hope somebody=
 will=20
> > > has an solution.=20
> >=20
> > > 1. Question=20
> > > -----------------=20
> > > When I restarted my phone and call the initial command, I get the=20
> > > following error.=20
> >=20
> > > D/RILJ    (  234): [0065]>=20
> > > OEM_HOOK_RAW[0000000008000000010000005f000000]=20
> > > D/RILJ    (  234): [0066]> OEM_HOOK_RAW[0210000000000000]=20
> > > D/RILJ    (  234): [0065]< OEM_HOOK_RAW=20
> > > D/RILJ    (  234): [0066]< OEM_HOOK_RAW error:=20
> > > com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED=
=20
> > > D/RILJ    (  234): [0067]>=20
> > > OEM_HOOK_RAW[0000000008000000000000005f000000]=20
> >=20
> > > I have to reinstall the app and then everything works fine. I think=20=

> > > the command "0210000000000000" tell us that, the request is not=20
> > > allowed. Does anybody not a solution?=20
> >=20
> > > Second question:=20
> > > -------------------------=20
> > > I found the command:=20
> > > invokeOemRilRequestStrings(java.lang.String[] strings, Message=20
> > > response)=20
> > > and the information that there exists AT-commands to call the modem.=20=

> > > When I am using my linux terminal I can get the some information, like=
=20
> > > the one described in this thread:=20
> > > $ adb shell=20
> > > # su=20
> > > # stop ril-daemon=20
> > > # echo -e 'AT$GSM?\r' > /dev/smd0=20
> >=20
> > > Now I tried to call the invokeOemRilRequestStrings() with this=20
> > > String[], but I don't know how it is formatted. I tried these two=20
> > > ways:=20
> > > String[] gsm_page =3D {"A","T","$","G","S","M","?","\r"};=20
> > > and=20
> > > String gsm_page2[] =3D new String[1];=20
> > > wcdma2[0] =3D "AT$GSM?\r";=20
> >=20
> > > But both will return a "REQUEST_NOT_SUPPORTD". Does anybody has an=20
> > > idea?=20
> >=20
> > > Thanks.=20
> > > Cheers=20
> > > Felix
> --=20
> You received this message because you are subscribed to the Google Groups "=
android-platform" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/a=
ndroid-platform/-/V71xddOUvjsJ.
> To post to this group, send email to android-platform@googlegroups.com.
> To unsubscribe from this group, send email to android-platform+unsubscribe=
@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/andro=
id-platform?hl=3Den.

--Apple-Mail-3F6088F3-626B-4814-AF87-7F6C5254FEE6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head></head><body bgcolor=3D"#FFFFFF"><div>Hi Felix the FieldTest app=
 on the XDA forum is signed with test keys. To run it on a production HTC On=
e X it needs to be signed with the live keys otherwise it really shouldn't w=
ork. Unless you have the live HTC Android platform key (!) to sign it with y=
ou will need to flash on something like the CyanogenMod firmware or your own=
. Then you will have a firmware signed with the same test keys. You'll need t=
o do this for you own stuff but you could extract HTC's FieldTest from a nor=
mal production phone and use that instead of the XDA one without flashing. I=
'm surprised the One X doesn't already have it though.</div><div><br></div><=
div>I'm not quite sure what Ricardo means by debug/engineering mode either s=
o will be good to hear back on this. It sounds like a way to switch off the s=
ecurity (!) so then it wouldn't matter which key is used.</div><div><br></di=
v><div>I haven't checked out the ICS installer so maybe there is also a chan=
ge that breaks just copying to /system/app.<br><br>Chris</div><div><br>On 22=
 Jul 2012, at 20:26, FelixG &lt;<a href=3D"mailto:felixgrou...@gmail.com">fe=
lixgrou...@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type=
=3D"cite"><div>Hi Ricardo<div><br></div><div>This was a big help but unfortu=
netly I could not solve it up to now. What I have done:</div><div>- I rooted=
 my HTC One X.&nbsp;</div><div>- I am not sure what you ment with "debug mod=
e". Do you mean Settings-&gt;Development&gt;USB-Debugging?&nbsp;</div><div><=
br></div><div>Or does debug mode/engineering mode means that I need a engine=
ering hboot-version?</div><div><br></div><div>Then I tried what "chrisnew" w=
rote and I only copied the FieldTest app to /system/app. But I can't run it.=
 I think the problem is, that the app is not installed (maybe because the pe=
rmission couldn't be set). I tried to start the activity with the LauncherPr=
o. It was not succesful. Then I tried it directly from adb shell with:</div>=
<div>adb shell</div><div>am start -a android.intent.action.MAIN -n com.htc.f=
ieldtest/.FieldTest<br></div><div><br></div><div>But I only get the message,=
 that the app does not exist...</div><div><br></div><div>I would be happy, i=
f you could give me a short hint how to fix it.</div><div><br></div><div>Tha=
nks</div><div><br></div><div>Best regards</div><div>Felix</div><div><br></di=
v><div><br>Am Montag, 9. Juli 2012 11:57:51 UTC+2 schrieb Ricardo Silva @ Ly=
ncode:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8e=
x;border-left: 1px #ccc solid;padding-left: 1ex;">Hi,<div><br></div><div>You=
 need a Android system not only rooted, but running in debug mode (or engine=
ering mode), to install applications with shared:userid =3D=3D system.</div>=
<div><br>Kind Regards,</div><div>Ricardo Silva&nbsp;<br><a href=3D"mailto:ri=
ca...@lyncode.com" target=3D"_blank">rica...@lyncode.com</a><br><br>S=C3=A1b=
ado, 7 de Julho de 2012 9:13:24 UTC+1, FelixG escreveu:<blockquote class=3D"=
gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;=
padding-left:1ex">Hello<div><br></div><div>Does anybody know, if the device m=
ust be rooted to read these low level network&nbsp;information?</div><div><b=
r></div><div>My little app is nice running on my HTC magic 32B (second devel=
oper phone). Now I tested it on my new HTC One X and I get the message:</div=
><div>Failure [INSTALL_FAILED_SHARED_USER_<wbr>INCOMPATIBLE]</div><div><br><=
/div><div>I also found the HTC FieldTest app for the HTC One XL but I can't i=
nstall it on my device. I get the same error:</div><div><div>Failure [INSTAL=
L_FAILED_SHARED_USER_<wbr>INCOMPATIBLE]</div></div><div><br></div><div>You c=
an download the FieldTest here, if anybody needs it:</div><div><a href=3D"ht=
tp://forum.xda-developers.com/showthread.php?t=3D1593126&amp;page=3D11" targ=
et=3D"_blank">http://forum.xda-developers.<wbr>com/showthread.php?t=3D159312=
6&amp;<wbr>page=3D11</a><br></div><div><br></div><div>Would be happy for any=
 hints.</div><div>Felix<br><br>Am Samstag, 23. Juni 2012 01:50:25 UTC+2 schr=
ieb Damien O'Reilly:<blockquote class=3D"gmail_quote" style=3D"margin:0;marg=
in-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Can you share you=
r code please?<div><br></div><div>Im having trouble with reflection as im ta=
rgeting SDK 2.3.3</div><br>On Monday, 14 May 2012 13:34:24 UTC+1, felixad  w=
rote:<blockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;b=
order-left:1px #ccc solid;padding-left:1ex">Hi citus
<br>
<br>Thank you very much! This was the solution!
<br>
<br>My RIL response looks like that:
<br>D/RILJ &nbsp; &nbsp;( &nbsp;235): [0079]&gt;
<br>OEM_HOOK_RAW[<wbr>0000000008000000010000005f0000<wbr>00]
<br>D/RILJ &nbsp; &nbsp;( &nbsp;235): [0080]&gt; OEM_HOOK_STRINGS
<br>D/RILJ &nbsp; &nbsp;( &nbsp;235): [0079]&lt; OEM_HOOK_RAW
<br>D/RILJ &nbsp; &nbsp;( &nbsp;235): [0080]&lt; OEM_HOOK_STRINGS {UNIAT, $G=
SM:
<br>560,"1b68","92","22803",0 -99,0 -99,0 -99,0 -99,0 -99,0
<br>-99,0,"22803","46a2bfb5",1530,<wbr>1,5,-70,0
<br>
<br>For my first question it found the answer. I always reinstalled the
<br>app with "adb install -r ......". With this way I only installed
<br>updates which where deleted after a reboot and the first version of
<br>the app was restored. Now I deleted the app in /system/app and
<br>everything was fine.
<br>
<br>Thank you for your help.
<br>
<br>Cheers
<br>Felix
<br>
<br>On 14 Mai, 02:03, citus &lt;<a>cit...@gmail.com</a>&gt; wrote:
<br>&gt; Instead of:
<br>&gt; String[] gsm_page =3D {"A","T","$","G","S","M","?","
<br>&gt; \r"};
<br>&gt;
<br>&gt; Try:
<br>&gt; String[] commandString =3D {"UNIAT", "AT$GSM?\r"};
<br>&gt;
<br>&gt; I have used this and it does work. I don't know how the rest of you=
r code
<br>&gt; is setup, and I cannot guarantee that the AT$GSM? command will work=
, but
<br>&gt; that is definitely how you call invokeOemRilRequestStrings.
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt; On Sunday, May 13, 2012 7:31:52 AM UTC-5, felixad wrote:
<br>&gt;
<br>&gt; &gt; Hello
<br>&gt;
<br>&gt; &gt; I am running Jo=C3=A3o code too. I have two question and hope s=
omebody will
<br>&gt; &gt; has an solution.
<br>&gt;
<br>&gt; &gt; 1. Question
<br>&gt; &gt; -----------------
<br>&gt; &gt; When I restarted my phone and call the initial command, I get t=
he
<br>&gt; &gt; following error.
<br>&gt;
<br>&gt; &gt; D/RILJ &nbsp; &nbsp;( &nbsp;234): [0065]&gt;
<br>&gt; &gt; OEM_HOOK_RAW[<wbr>0000000008000000010000005f0000<wbr>00]
<br>&gt; &gt; D/RILJ &nbsp; &nbsp;( &nbsp;234): [0066]&gt; OEM_HOOK_RAW[0210=
000000000000]
<br>&gt; &gt; D/RILJ &nbsp; &nbsp;( &nbsp;234): [0065]&lt; OEM_HOOK_RAW
<br>&gt; &gt; D/RILJ &nbsp; &nbsp;( &nbsp;234): [0066]&lt; OEM_HOOK_RAW erro=
r:
<br>&gt; &gt; com.android.internal.<wbr>telephony.CommandException: REQUEST_=
NOT_SUPPORTED
<br>&gt; &gt; D/RILJ &nbsp; &nbsp;( &nbsp;234): [0067]&gt;
<br>&gt; &gt; OEM_HOOK_RAW[<wbr>0000000008000000000000005f0000<wbr>00]
<br>&gt;
<br>&gt; &gt; I have to reinstall the app and then everything works fine. I t=
hink
<br>&gt; &gt; the command "0210000000000000" tell us that, the request is no=
t
<br>&gt; &gt; allowed. Does anybody not a solution?
<br>&gt;
<br>&gt; &gt; Second question:
<br>&gt; &gt; -------------------------
<br>&gt; &gt; I found the command:
<br>&gt; &gt; invokeOemRilRequestStrings(<wbr>java.lang.String[] strings, Me=
ssage
<br>&gt; &gt; response)
<br>&gt; &gt; and the information that there exists AT-commands to call the m=
odem.
<br>&gt; &gt; When I am using my linux terminal I can get the some informati=
on, like
<br>&gt; &gt; the one described in this thread:
<br>&gt; &gt; $ adb shell
<br>&gt; &gt; # su
<br>&gt; &gt; # stop ril-daemon
<br>&gt; &gt; # echo -e 'AT$GSM?\r' &gt; /dev/smd0
<br>&gt;
<br>&gt; &gt; Now I tried to call the invokeOemRilRequestStrings() with this=

<br>&gt; &gt; String[], but I don't know how it is formatted. I tried these t=
wo
<br>&gt; &gt; ways:
<br>&gt; &gt; String[] gsm_page =3D {"A","T","$","G","S","M","?","<wbr>\r"};=

<br>&gt; &gt; and
<br>&gt; &gt; String gsm_page2[] =3D new String[1];
<br>&gt; &gt; wcdma2[0] =3D "AT$GSM?\r";
<br>&gt;
<br>&gt; &gt; But both will return a "REQUEST_NOT_SUPPORTD". Does anybody ha=
s an
<br>&gt; &gt; idea?
<br>&gt;
<br>&gt; &gt; Thanks.
<br>&gt; &gt; Cheers
<br>&gt; &gt; Felix</blockquote></blockquote></div></blockquote></div></bloc=
kquote></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "a=
ndroid-platform" group.<br>
To view this discussion on the web visit <a href=3D"https://groups.google.co=
m/d/msg/android-platform/-/V71xddOUvjsJ">https://groups.google.com/d/msg/and=
roid-platform/-/V71xddOUvjsJ</a>.<br>=20
To post to this group, send email to <a href=3D"mailto:android-platform@goog=
legroups.com">android-platform@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:android-plat=
form+unsubscribe@googlegroups.com">android-platform+unsubscribe@googlegroups=
.com</a>.<br>

For more options, visit this group at <a href=3D"http://groups.google.com/gr=
oup/android-platform?hl=3Den">http://groups.google.com/group/android-platfor=
m?hl=3Den</a>.<br>


</div></blockquote></body></html>=

--Apple-Mail-3F6088F3-626B-4814-AF87-7F6C5254FEE6--