Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
xmRipper
Old
#1  
xmRipper's Avatar
Senior Member - OP
Thanks Meter 28
Posts: 448
Join Date: May 2010
Location: Istanbul

 
DONATE TO ME
Default [Q] My init.d script does not work, why?

Hello,

I want to change my voodoo colors at boot, so I made a script in init.d folder:

Code:
#!/system/bin/sh

echo 2447339790 >/sys/devices/virtual/misc/voodoo_color/red_multiplier

echo 2159029280 >/sys/devices/virtual/misc/voodoo_color/green_multiplier

echo 2782492160 >/sys/devices/virtual/misc/voodoo_color/blue_multiplier

echo -14 >/sys/devices/virtual/misc/voodoo_color/red_v1_offset

echo -17 >/sys/devices/virtual/misc/voodoo_color/green_v1_offset

echo -18 >/sys/devices/virtual/misc/voodoo_color/blue_v1_offset
And here is my init.d folder : http://i.imgur.com/nhkdy.png , 99voodoo is my script.

When I paste this codes to android terminal emulator, it is working flawlessly.

But it does not work in init.d folder. Tried different roms which support init.d scripting, but no luck.
What is wrong with it? Can anyone help?

Thanks.
 
demo23019
Old
(Last edited by demo23019; 5th January 2012 at 07:52 PM.)
#2  
demo23019's Avatar
Senior Member
Thanks Meter 607
Posts: 2,162
Join Date: Dec 2007
I had the same issue with couple of kernels not sure why im prety sure they even support (Eugene and glados)
you have to set full permissions on the script also but still didn't work for me

I gave up and just used ROM toolbox and made it run at startup works no problem
HTC Hermes
HTC Touch Diamond
HTC Nexus One
Samsung Vibrant

__________________

http://img846.imageshack.us/img846/7262/sigpic7292412gif.png
 
xmRipper
Old
#3  
xmRipper's Avatar
Senior Member - OP
Thanks Meter 28
Posts: 448
Join Date: May 2010
Location: Istanbul

 
DONATE TO ME
There must be a solution. What am I doing wrong!?
 
Hostile89
Old
#4  
Senior Member
Thanks Meter 20
Posts: 104
Join Date: Nov 2010
Location: Clearwater, Fl
Do you have Busybox installed?
 
xmRipper
Old
#5  
xmRipper's Avatar
Senior Member - OP
Thanks Meter 28
Posts: 448
Join Date: May 2010
Location: Istanbul

 
DONATE TO ME
Quote:
Originally Posted by Hostile89 View Post
Do you have Busybox installed?
Yes, preinstalled with the rom I've been using:
http://forum.xda-developers.com/show....php?t=1397358
features "root, busybox, zipalign, Bash, init.d scripts ... etc".
 
xmRipper
Old
#6  
xmRipper's Avatar
Senior Member - OP
Thanks Meter 28
Posts: 448
Join Date: May 2010
Location: Istanbul

 
DONATE TO ME
Any help? No solution?
 
suksit
Old
#7  
suksit's Avatar
Senior Member
Thanks Meter 83
Posts: 410
Join Date: Dec 2010
What is your ROM and kernel combination?
 
xmRipper
Old
#8  
xmRipper's Avatar
Senior Member - OP
Thanks Meter 28
Posts: 448
Join Date: May 2010
Location: Istanbul

 
DONATE TO ME
I was using Aosp+ Rom and ICUP-Speedy-3 kernel.

Now, I have just flashed CyberGR rom. Comes with GLaDOS 2.7 kernel. Feature list says "Init.d scripts support", but no luck for me. My script doesn't work with this rom too. What is wrong with it :S
 
xmRipper
Old
#9  
xmRipper's Avatar
Senior Member - OP
Thanks Meter 28
Posts: 448
Join Date: May 2010
Location: Istanbul

 
DONATE TO ME
I found the solution.

I was trying to move my script to init.d folder manually via RootExplorer app.
But pushing the same file via adb just worked.

Thanks to this: http://forum.xda-developers.com/show....php?t=1424032
The Following User Says Thank You to xmRipper For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more

Permanent Screen Off for the Visually Impaired

Most of us take the simple act of waking up our devices and having a quick glance at the … more

App Analytics, or the Death of the Independent App Developer

This is entry number one in a series of articles about tools for app developers, … more

Serajr Power Toggles Brings Settings to the Small App World

Ever since the introduction of multi-window with things like Cornerstone and … more