|
|
To change ring style in java use code:
featurestorestate(2038,xx) ;change ring style
featurestorestate(1420,xx) ;update ring record for apps
sendtoos(1745,0,0) ;update top bar icons
where xx=
0 Loud
1 Soft
2 Vibrate
3 Vibe then Ring
4 Silent
5 hidden ring :) (no name)
To change ring lights:
featurestorestate(1745,x);
where x=
0 - off
1 - Fusion
2 - Hyperactive
3 - Pulse
4 - Rhythmic
5 - Sonic
6 -Aqua
7 - Electron
8 - Grove
You can use read memory methods in java to backup software (on transflash), or dump memory.
You can read address with battery voltage, charger type, charging current, to draw diagrams in Java apps. [for charger and battery diagnostics]
You can read all information about GSM link, signal strength, SNR, CELLID etc.
Battery voltage address: 0x127D0F41 (one byte)
To calculate real battery voltage you must multiply this value by 0,0176V and add 1,12V
|
How to control keypad auto lock and low battery sound
|
To change state of my features use method:
featurestorestate(1555,val);
val is byte, where first bit is for low battery sound, second for keypad autolock
I'm added JMP instruction from JAVA:
public static void jmp(int address)
where parameter is address to any procedure on flash or RAM.
If you will JMP to procedure in Thumb code you must add 1 to adress, if you will make jump to ARM code don't increment.
All procedures must have return (BX LR).
If you making another jump from procedure you must save linkregister on stack PUSH {LR}.
This function is only for assembler programmers, or somebody who want teach ASM for ARM processors :)
To upload your code to RAM you can use Writebyte() from my lib, your code can use RAM to swap data between Java and ASM code.
Utility of this function:
You can use this for ultra fast low level calculations in Java :)
You can execute any exists procedure with any parameters (very useful for discovering new motorola procedures)
You can make ASM compiler for ARM processor :D
You can inject and execute any code by Java (for example to erase and flash NV memory in phone :P)
|