×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    21

    Keep running on shutdown

    Hi

    I want to keep my program running when user tries to shutdown mobile. I'm coding the app in C++ Symbian.

    When user pressed button to shutdown mobile, I want to close everything, like real shutdown, but my application should stay in memory and keep running. Everything should be closed, but my application should keep running, except SIM.

    When an SMS received, I want to turn mobile on. Is it possible? Shutdown process should be normal and user should see shutdown logo and animation for each phone, but my application should keep running until it receives an SMS. My application will hook SMS and when a command SMS arrived, it will re-launch phone, please advice about it.

    Thanks from now!

  2. #2
    Regular Contributor
    Join Date
    Aug 2005
    Location
    India
    Posts
    399

    Re: Keep running on shutdown

    This is not possible. During shutting down of phone your process can't sustain and will be Killed by Symbian kernel (Highest Priority).

    I know that few process keep running when the phone is switched off (until battery is removed), cause any of these process keep watch on Alarm etc. I don't know the name of that Process.

  3. #3
    Registered User
    Join Date
    Nov 2009
    Posts
    21

    Re: Keep running on shutdown

    Quote Originally Posted by aficianado_001 View Post
    This is not possible. During shutting down of phone your process can't sustain and will be Killed by Symbian kernel (Highest Priority).

    I know that few process keep running when the phone is switched off (until battery is removed), cause any of these process keep watch on Alarm etc. I don't know the name of that Process.
    So couldn't I make my process to be like Alarm process? I want to be similar to Alarm process, with difference of keeping SIM on, so when I received an SMS with WAKE UP command, my phone should wake up, is it possible?

    Thanks for your reply

  4. #4
    Super Contributor
    Join Date
    Sep 2007
    Posts
    1,005

    Re: Keep running on shutdown

    Quote Originally Posted by DashNeghab View Post
    So couldn't I make my process to be like Alarm process? I want to be similar to Alarm process, with difference of keeping SIM on, so when I received an SMS with WAKE UP command, my phone should wake up, is it possible?

    Thanks for your reply
    that s not possible, u r writting an app like a backdoor process,
    unless Symbian authorise, ur app can't not survived after power off.

    while i think an app is possible to be waken up by RScheduler class.

  5. #5
    Regular Contributor
    Join Date
    Aug 2005
    Location
    India
    Posts
    399

    Re: Keep running on shutdown

    More over, SIM will also signal to network that it is successfully switched off and you will not be able to use network services on SIM for messages.

  6. #6
    Registered User
    Join Date
    Nov 2009
    Posts
    21

    Re: Keep running on shutdown

    Quote Originally Posted by oracle3 View Post
    that s not possible, u r writting an app like a backdoor process,
    unless Symbian authorise, ur app can't not survived after power off.

    while i think an app is possible to be waken up by RScheduler class.
    It's not backdoor process, it's for a helpful solution for our company.
    How about cancelling real shutdown when received it's event? Then I can terminate some processes, close the LCD, etc. and keep mobile running...

    More over, SIM will also signal to network that it is successfully switched off and you will not be able to use network services on SIM for messages.
    Even if it's closed, couldn't I re-run it and re-enable it?

  7. #7
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: Keep running on shutdown

    Its not possible. Imagine what kind of applications would be developed if these kind of access was provided. It is a security threat.

  8. #8
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: Keep running on shutdown

    Hi,


    Quote Originally Posted by DashNeghab View Post
    How about cancelling real shutdown when received it's event? Then I can terminate some processes, close the LCD, etc. and keep mobile running...
    Even if it's closed, couldn't I re-run it and re-enable it?
    you can get the shutdown event from the system and if you have manufacture capabilities then you can terminate the lcd and other process. Without that, its not possible to stop the shutdown event.

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  9. #9
    Registered User
    Join Date
    Nov 2009
    Posts
    21

    Re: Keep running on shutdown

    Quote Originally Posted by mateen_maldar View Post
    Hi,




    you can get the shutdown event from the system and if you have manufacture capabilities then you can terminate the lcd and other process. Without that, its not possible to stop the shutdown event.

    Regards,
    Mateen Maldar
    I know we can capture shutdown event, but I think it's possible to stop shutdown event. Is there any status code or something like that to be set when that event fired? I can get shutdown even properly, before getting shutted down, I get it's notification properly....

    Now I want to stop it... Any ideas? Please advice, I'm sure it's possible...

    Also how about hooking power button? When user pressed power button we can kill LCD and processes. Is it possible? But 1 touch to power button is not enough, because user will hold that, so again power off event will be fired, we need to kill that process and stop shutdown event also. Any ideas?

    Thanks from now

  10. #10
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Keep running on shutdown

    I know we can capture shutdown event, but I think it's possible to stop shutdown event.
    yes you are right. there is no way.

  11. #11
    Registered User
    Join Date
    Nov 2009
    Posts
    21

    Re: Keep running on shutdown

    Quote Originally Posted by skumar_rao View Post
    yes you are right. there is no way.
    Is there Symbian OS itself available for download which I can use to analysis it and find some undocumented APIs? Maybe there is undocumented API for it and I can find it using IDA. Is there Symbian OS available for analysis or download?

  12. #12
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Keep running on shutdown

    As far as i know there is no known APIs but if you still want to analyze symbian OS source code i suggest you visit symbian.org

  13. #13
    Registered User
    Join Date
    Nov 2009
    Posts
    21

    Re: Keep running on shutdown

    Quote Originally Posted by skumar_rao View Post
    As far as i know there is no known APIs but if you still want to analyze symbian OS source code i suggest you visit symbian.org
    I went to symbian.org, every package I try to download (even I'm registered in symbian), I see this error:

    ERROR!!! ERROR!!!

    The page you are trying to access is restricted to members of the Symbian Foundation.


    So how can I download Symbian OS Source Code?

  14. #14
    Registered User
    Join Date
    Nov 2009
    Posts
    21

    Re: Keep running on shutdown

    Quote Originally Posted by skumar_rao View Post
    yes you are right. there is no way.
    There is a way, look at this:

    http://developer.symbian.org/main/do...PowerOff%28%29

    Description

    Cancels any power off request.

    Now do you know how I can call this?

  15. #15
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Keep running on shutdown

    Quote Originally Posted by DashNeghab View Post
    I went to symbian.org, every package I try to download (even I'm registered in symbian), I see this error:

    ERROR!!! ERROR!!!

    The page you are trying to access is restricted to members of the Symbian Foundation.


    So how can I download Symbian OS Source Code?
    Your company would have to become a member of the Symbian Foundation. Currently is likely only you that are a registered member of their web site, which is not the same thing.
    Symbian is not yet fully open source, although some parts of it are, you can find them under the OSS code brach in their repository. Until all of it is released as OSS, the code you are probably looking for is under SFL license and it is only available to Symbian Foundation members.
    Last edited by ltomuta; 2009-11-15 at 17:18.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. Error at the time of Running Client Midlet for accessing Web Service
    By anupdesai1248 in forum Mobile Java General
    Replies: 12
    Last Post: 2009-08-29, 13:08
  2. Running 'Hello World'
    By 76Richard76 in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2009-07-07, 14:44
  3. Replies: 4
    Last Post: 2009-04-27, 19:51
  4. Replies: 1
    Last Post: 2006-03-23, 07:42
  5. How to shutdown S60 or S80 phone?
    By timatima in forum Symbian
    Replies: 0
    Last Post: 2006-03-07, 13:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×