G1 network code hex - Android Software Development

Anyone know where it is? I'm assuming the G1 doesn't come with the algorithm pre-installed so you can only use one network unlock code. It must be stored somewhere, where's that hex at?
edit: It would seem that it does use an algorithm with only one possible outcome. After receiving the IMEI from hardware ROM it spits out a code to be matched up with the network unlock code.... Gotta see how I'm going to work this out.

Related

International smartdialing/intellidialer for Wizard

Thought more people would be interested. So I post it here. Now you can comfortably dial using any accented/language specific characters in smartdialer. You only have to modify your smardialing.dll for international characters:
http://buzzdev.net/component/option,com_simpleboard/Itemid,59/func,view/id,10204/catid,45/
8)
It only suprises me HTC smartdialer is written so badly that the look-up tables are hardcoded in the dll library. Isn't it narrow-minded? Why HTC cannot program the code to load the tables from the registry? I don't code, but don't they lack structural thinking at HTC? Best practices? Or maybe, they don't get it there are other countries in the world...
Good luck,
Seff
Is there a german version for the vario already? Don't know too much about HEX tables and stuff.....

Reading the Cell ID (not displaying cell messages)

Can anyone point me in the right direction for a bit of code to read the current CellID from a windows mobile phone? (Hermes - but I'd like to make it work on all phones if possible and release it here)
I'm trying to reimplement an application that I had on my Symbian phone that was incredibly useful and for it to work I need to read the Cell ID..
When I search I find a few app's that do it and display the info.. but that's not really what i need.. I just need to read the Cell ID itself into my code. (none of the apps i've found that do it have sources unfortunately)
TIA, Sam
You can use RIL_Initialize. .. and RIL_GetCellTowerInfo.. This is an asyncronus call .. so you'll need to implement a callback/ handler for this..
It's worth to be noted.. that i believe RIL is a restriced API .. so you'll either need to unlock your phone.. or add a trusted certificate that you sign your dll/exe with..

IMEI changer for Polaris available?

need one to change my IMEI to fit the GPS software runs on specific IMEIs..
AFAIK, changing IMEI is illegal...
windirt said:
need one to change my IMEI to fit the GPS software runs on specific IMEIs..
Click to expand...
Click to collapse
It's away much easier to change GPS software than IMEI.
The IMEI is likely hardcoded into the hardware and WM reads directly off the hard code..Good luck!
you can change the imei of your device but it will cost both in time and money and you have to get your self a golden box( check infinity) but it's going to be easier for you to change your GPS software.
windirt said:
need one to change my IMEI to fit the GPS software runs on specific IMEIs..
Click to expand...
Click to collapse
Its easyer to use mr google to find a new GPS software then change the imei, and i dont think u can do that at all, the net is full of softwares... just pick one
No, the IMEI is not hardcoded into the device. It can be overwritten/changed but its a very dangerous process and if you're not an absolute pro you'll most likely brick your device. And this would be a final brick, not recoverable.
Appart from that: it's absolutely illegal in most countrys in the world. I actually don't know a single country where it isn't. In the countries I know the punishment wouldn't just be a fine but definitifely prison. And even if it's legal in your country, if you'd enter another country with a modded device you'd be guilty if caught at the border.
In the end it's easier to get a pirated copy of a GPS software including maps for your region, activators, keygens and cracks, all that USING GOOGLE ONLY, than changing your IMEI.
I've never programmed for WinCE but on WinNT I would go the following way:
1. Read MSDN to get an idea where from IMEI is to be obtained (I don't think every user space application reads hw registers, there should be some interfacing library (dll) which provides required functions).
2. Look for articles on dll injection (google for this trick) on WinCE.
3. Build custom dll providing all but IMEI query functions tunneled from original dll, IMEI retrival functions should be handled by your library, providing preprogrammed constants to user level app.
4. Program dll injector for putting hook into the specific app.
actually believe it or not it is not illegal to change your imei number here in canada but reasons for changing it end up being not so legal!
i hate fido
they locked me into a 3-yr contract and trick me into signing up for the $15 "unlimited surfing option" and only to tell me they have to bill me $120 extra backdate to my previous two invoices claiming my phone is not compatable with their "unlimited surfing option" and hence have to bill me by $/kB and claiming i had used over $2000 worth of data (WTF?!?!) over the past two month which i already paid my invoices in full & on time and there was nothing mentioned about any data usage whatsoever!
hence, i would very much like to change my IMEI to screw them back. Appreciate any help.

Cell id Command line

Hi All,
Is there a tool which can get Cell id and LAC from command line for it to be used by other apps
Say I have script (mortscript)
Then I can call <Cellid APP> and get Cellid location where the device is
Then take action based on the Cell id.
Idea is to track the phone and let the owner know where all the phone on a web page.
I go from HOME -> LOC1 -> LOC2 ->Office (everyday)
Incase phone shows a path HOME -> LOC1 -> LOCX -> <UNKNOWN> .. the send a TEXT(SMS)/update page etc ... to alert the users.
Kind of way to make your phone secure.
Any suggestion if it can be done with any exiting tools and mortscript etc ...
http://www.xs4all.nl/~itsme/projects/xda/tools.html
has something called riltest ...
riltest - dumps all kinds of info from the phone via ril
But the zip files does not have this file... Could any one let me know if this file is available any where else.
Ok Got a riltest from Another forum which does similar ... ALMOST....
what it can do is dump all to a LOG file ... I am using a Mortscript
1. Run the app
2. make app to dump logs
3. get the details from the file.
4. close the app.
Now loop this for with a sleep ...
But still looking for better way.. Attached is the file for anyone who is looking for similar stuff.
Hi,
I too was looking for something in this line and ended up writing it myself.
Props to this chap for the code to get me started:
http://dalelane.co.uk/blog/?p=241
Basically you call 'RilCmdLine.exe' with a parameter indicating what field you want. It returns the field as an int to MortScript (I think you need MortScript 4.3b1 or above?).
Supports LAC, Country Code and Cell Tower ID.
The zip includes a test mortscript - you may just need to edit the path to RilCmdLine.exe
(Source code on request. I may even support it )
Hope this helps!
onion
Hi
Thanks for the exe file. However I am unable to see any result when I run the exe/mscr on my mobile (HTC 3300 WM6). I did edit the path also executed from cmd line on mobile.
Also Mortscript RunWait and Run will not return any results as per the Mortscript doc. So the result has to be redirected to a file.
Could you please check and let me know if the exe is required to be executed with different parameters.
Thanks
What version of Mortscript are you running?
I had to upgrade to 4.3b2 to get the return code from the exe.
Get it here
http://www.sto-helit.de/index.php?module=download&action=view&entry=125
In the notes for b1 mentioned the return code functionality being added.
Hope this sorts it for you
Perfect !! Thats works perfectly ... I updated to MortScript you have suggested.
Excellent Work !! ... Really good. Thanks man
Will it be possible that if I don't pass any Command line parameter ... Can I get all the values... Like CELL ID, LAC etc ..
Glad you like it
Unfortunately you can get all the values at once (at the minute you can only return numbers from the exe, so there is no way to separate them).
My original idea is something along what you suggest - if I get that working I will post a new exe up here.
Thanks
Thanks onionfx! This is just what I was looking for as well. Trying to do something similar to what wishme said. ;-) The common profile switchers out there are not very useful to me because I'm more of in a rural area, and cell towers are farther apart, so my home and work cellid overlap sometimes, so I want to also take into account signal strength to see if I can fine tune it better. Will probably use Mortscript since it's the only thing I've learnt to code with for Windows Mobile.
I'm bookmarking this page to see if you eventually get the prog to output all in one line (and reduce the CPU churn of calling the same prog several times).
BTW, how about also returning nearby cells in order of signal strength? That would be awesome to fine-tune your location even more!
Good work!
Cesar
Doing some thinking about this
I can't see any way of returning all the values at once.
The C code can only return an int in the range -2,147,483,648 to 2,147,483,647 and my CellID and LAC are 5 digits each so if they ever started with a digit greater than 2 I couldn't return it.
The 2 best options I think are writing another exe that dumps the data either to a file, or to the registry in a similar way as riltest above, but without the UI part.
Then write a script that could be included, and which has nice subs to access each parameter (or you are free to write your own script calls to do this).
I'm tending to the file as I imagine reading from the registry is a bit slower than reading the file (in one go and storing all the params as variables)?
Also I can do less damage if I use a dedicated file!
Anybody got any better ideas, or has a good reason to use the registry?
Goodnight
Are we talking about GSM signal strength
REGISTRY entry: HKLM\System\State\Phone\Signal Strength (DWORD value)
More here: http://wiki.modaco.com/index.php/Windows_Mobile_5_Registry_Tweaks
Also is it possible to get all other the cellids at any point not the one phone is connected to ? I have not see any app providing this info.
Except for Google maps on mobile (without GPS) it uses triangulation technique to get the Latitude and longitude of a location with all cell id locations available. for this method to work we requires atleast 3 cell id.
Does RILCELLTOWERINFO gives details about other towers also ?
I wonder what the requirements are for the command line tool?
It locks up when I run it on my MotoQ smartphone.
onionfx said:
Supports LAC, Country Code and Cell Tower ID.
The zip includes a test mortscript - you may just need to edit the path to RilCmdLine.exe
(Source code on request. I may even support it )
Click to expand...
Click to collapse
I can't get this to work. I get "-1" for all 3 values. Anyone offer any reasoning as to why this may be? I believe my ROM includes .Net framwork, but I'm not sure how to check.
Thanks
onionfx said:
Basically you call 'RilCmdLine.exe' with a parameter indicating what field you want. It returns the field as an int to MortScript (I think you need MortScript 4.3b1 or above?).
Supports LAC, Country Code and Cell Tower ID.
The zip includes a test mortscript - you may just need to edit the path to RilCmdLine.exe
(Source code on request. I may even support it )
Hope this helps!
onion
Click to expand...
Click to collapse
Excellent work! Thank you!
Thanks onionfx for your contribution. I might need it for a use similar to the one described by wishme.

Hidden Menu

Only hidden menu's I have found so far is ##3282#. It shows a Data section. Just looking for some hidden menus that could help out on root or unlocks.
vhicke said:
Only hidden menu's I have found so far is ##3282#. It shows a Data section. Just looking for some hidden menus that could help out on root or unlocks.
Click to expand...
Click to collapse
It doesn't work on 305SH japan mobile: what is the menu ?
Here of pictures
*#*#4636#*#* goes to the phone information screen (AKA Testing screen). I am looking for Sharp codes as well given that I have a rooted Sharp Aquos Sh-02E and would like to change some settings which prohibit me from using even the FM functionality of this phone for not being a Softbank registered SIM user... Lame
The data menu pulls up fine but *#*#4636#*#* doesn't do anything on my boost phone. Is the data menu the only hidden one on 306sh?
Sent from my 306SH
Hidden Menus
I tried the code and when i entered it it took ok as in the sequence
I dialed the numbers they dissappeared. However it did not open
A menu and i think the difference is in the build number and software ver
On the phone. Please post your build number and software ver.
There are several source code kernel files ect. That i have found.
However they are for specific build numbers.
The importance is that if anyone out there has a phone with
The assosiated build numbers a developer can use the source
Code to unlock the phone.
Once we get 1 build unlocked we will know what is needed
To unlock the rest.
TEAM :highfive:

Categories

Resources