How to make service auto-start on boot

Discussion in 'Android Tablet Hacking' started by JimBalo, Jun 23, 2012.

  1. JimBalo

    JimBalo Member

    Joined:
    Jun 14, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    60
    I am using Dropbear SSH server on a rooted Samsung Galaxy Tab 2 tablet running Android 4.0.3 (ICS). The problem is that the SSH server does not automatically start on boot.


    I tried adding this to /init.rc:


    Code:
    service sshd /system/xbin/dropbear
       user  root
       group root
       oneshot
    

    But that did not work, and the lines were gone from init.rc after reboot, so I assume that init.rc is re-created as part of the boot process.


    How can I make Dropbear start automatically on boot?
     

Share This Page

Search tags for this page

android autostart dropbear

,
android autostart ssh