Tuesday 26 July 2016

Start service using an init.d script



Hello all!

How can I turn some commands from init.rc and ueventd.rc files under boot.img into bash scripts put in init.d folder?

Reason: I have a device with TV, but most ROMs are made for its brother model without TV. Trying to port TV after installing any of these ROM, I've already found all libs, apk and framework files needed for it to work. But I still need to flash stock ROM kernel, which is not always the best choice or even possible depending on the ROM I'm using (e.g. AOSP based).

These are the commands contained in ueventd.rc:

Code:


#latin Mobile TV
/dev/isdbt                                                                0660        system                        system


And these are the commands contained in init.d:

Code:


#++latin_mm:lkj for MobileTV [ISDBT]
    mkdir /data/one-seg 0775 system system
    chown system system /data/one-seg
    chmod 0775 /data/one-seg
#--latin_mm:lkj for MobileTV [ISDBT]

#++latin_mm:lkj for MobileTV [ISDBT]
service mobileTV /system/bin/broadcastProcessObserver_ltn
    class main
    user system
    group system audio camera graphics inet net_bt net_bt_admin net_raw sdcard_rw

service nexplayer /system/bin/nexprocess_ltn
    class main
    user system
    group system audio camera graphics inet net_bt net_bt_admin net_raw sdcard_rw
#--latin_mm:lkj for MobileTV [ISDBT]





No comments:

Post a Comment