Java library for access to memory and OS (49R)

My library permits to access extra functions what I added to SW.

Compiled class file and source v0.3:
Download


Library functions
  • static void jmp(int address)

This method making jump to ASM code in flash or RAM.
Read more in Tips & Tricks.

  • static String readhex(int address)

This method reading one byte from phone memory as String (HEX value)

  • static int readbyte(int address)

This method reading one byte from phone memory as integer val.
Returns value 0-255.

  • static void writebyte(int address,int value)

This method writing one byte to memory (you can write only to RAM or peripherals, you can't edit flash memory [write byte to flash can reset phone])
Value must be from range
0-255.

  • static String inttohex(int a)

Converts integer to hex string

  • static void reset()

This feature not working now. To reset phone write any byte to flash area.

  • static void powerdown()

Powerdown phone.

  • static void sendtoos(int eventid,int param2,int param3)

This method sends event request to Motorola operating system.
param2 and param3 is not used yet.

  • static int getfeatureavailability(int address)

Reads one bit from motrola database (this bits is from SEEM32)
Returns
0 or 1.

  • static int featuregetcurrentstate(int address)

Reads one byte from moto DB (bytes is from seem 4A, 4C)
Returns value
0-255.

  • static String getfeatureavailabilityhex(int address)

Returns one byte from SEEM32 as HEX string.

  • static int featuregetdefaultstate(int address)

Reads one byte from moto DB (bytes is from seem 4B, 4D)
Returns value
0-255.

  • static int featuregetvalue(int param1,int param2)

Reads one value from moto DB. (SEEM 4E).
Returns value
0-4294967295.

  • static int featurestorestate(int address,int value)

Writes one byte DB. (seem 4A, 4C)
Returns 0 if byte written successfully, if not returns error code.

  • static int featurestorevalue(int address,int value)

Writes value to DB. (seem 4E)
Returns 0 if value written successfully, if not returns error code.
© Copyright 2006 elektro255. All rights reserved.