[Q] Init.d on stock rom&kernel? - T-Mobile Samsung Galaxy Note II

Is it possible to get init.d working on a SGH-T889 that is rooted, and running the latest stock rom and kernel?
I managed to make the folder, and chmod it to 777 via a terminal, and my tweaking apps create scripts in said folder that are pre-modded to 777, but they fail to launch at boot.
I would like to stay as close to stock as possible, but I love being rooted.
What can I do to find a happy medium?
Sent from my SGH-T889 using xda premium

EncryptedFile said:
Is it possible to get init.d working on a SGH-T889 that is rooted, and running the latest stock rom and kernel?
I managed to make the folder, and chmod it to 777 via a terminal, and my tweaking apps create scripts in said folder that are pre-modded to 777, but they fail to launch at boot.
I would like to stay as close to stock as possible, but I love being rooted.
What can I do to find a happy medium?
Sent from my SGH-T889 using xda premium
Click to expand...
Click to collapse
You have to enable this in the ramdisk
Sent from my SGH-T889 using xda app-developers app

I believe apps like script manager can do this, but you can also get init.d support using busybox and an edited script in /system/etc/. Otherwise - what ptmr3 said

Busybox run-parts with installrecovery.sh, it works on many, many devices with stock kernels. Just make sure you don't inadvertently delete the script from recovery.

Darkshado said:
Busybox run-parts with installrecovery.sh, it works on many, many devices with stock kernels. Just make sure you don't inadvertently delete the script from recovery.
Click to expand...
Click to collapse
That would be the one

headscratch.gif
I'm extremely computer literate, but only fairly adept at matters pertaining to android/rooted actions.
I have above basic Linux knowledge as well, so if you point me in the right direction, I should be able to take it from there.
//I meant to add I have busy box installed.
Sent from my SGH-T889 using xda premium

Related

How do u make script run at system start?

I've made a couple of scripts that I would like to run when android starts. Currently I manually run them via terminal. I currently have these scripts in my /system/xbin. Trying to learn how to develop.
Sent from my MB525 using XDA App
Jason78729 said:
I've made a couple of scripts that I would like to run when android starts. Currently I manually run them via terminal. I currently have these scripts in my /system/xbin. Trying to learn how to develop.
Sent from my MB525 using XDA App
Click to expand...
Click to collapse
put it to /system/etc/install-recovery.sh
I'd like to have a script run at system startup. I'm running an official Froyo ROM. Could someone please tell me how to do it?

[SCRIPT]Adrenaline Shot Script

I just used this script found HERE
Follow the directions...
Required:
rooted phone
busybox installed [get from market]
Terminal Emulator [get from market]
make sure your rooted and busybox installed....
Im using my deodexed rom, not debloated, my ram is hanging at 183-185mb
any questions about script ask in the original thread.
any questions on working on continuum, post in this thread
phone is amazingly faster!
NOTE: looks like it unroots phone.
To reroot use superoneclick 2. 3. 3
I'm working on what we can do to stop this...
Good find! This is a good boost.. What this does is:
The phone has a selected amount of memory for it's tasks. Over time this memory gets used up. When the phone's memory reaches a specific amount the phone automatically deletes specific files.. In the process of all of this, everything is slowed down. What this script does is delete the cache which is using up the ram/memory. Instead of allowing the phone to manage this, this script deletes the files in a specific interval.. In this case, i think it is every hour(don't quote me)..
I utulized something similar to this in my previous rom.. it however lowered the point the phone deleted the items out of memory automatically.
Many scripts like this are out.
Code:
#!/system/bin/sh
# Adrenaline Shot
sync;
sleep 1
echo "3" > /proc/sys/vm/drop_caches;
echo "1" > /proc/sys/vm/drop_caches;
sleep 1
echo " ** Turbo Boosted ** ";
One option you could do is create an init.d script to automatically run this(as long as you have imnuts' custom kernel installed)
Likewise, as long as you have busybox installed you should be able to make an sysctl script that will run this on boot.
pattielipp said:
Good find! This is a good boost.. What this does is:
The phone has a selected amount of memory for it's tasks. Over time this memory gets used up. When the phone's memory reaches a specific amount the phone automatically deletes specific files.. In the process of all of this, everything is slowed down. What this script does is delete the cache which is using up the ram/memory. Instead of allowing the phone to manage this, this script deletes the files in a specific interval.. In this case, i think it is every hour(don't quote me)..
I utulized something similar to this in my previous rom.. it however lowered the point the phone deleted the items out of memory automatically.
Many scripts like this are out.
Code:
#!/system/bin/sh
# Adrenaline Shot
sync;
sleep 1
echo "3" > /proc/sys/vm/drop_caches;
echo "1" > /proc/sys/vm/drop_caches;
sleep 1
echo " ** Turbo Boosted ** ";
One option you could do is create an init.d script to automatically run this(as long as you have imnuts' custom kernel installed)
Likewise, as long as you have busybox installed you should be able to make an sysctl script that will run this on boot.
Click to expand...
Click to collapse
Thanks for explaining it. Did imnuts get unit.d to work? I did not see a confirmation
Sent from my SCH-I400 using xda premium
So I flashed this on ec09 and I lost root. Any ideas?
Sent from my SCH-I400 using xda premium
With imnuts kernel init.d scripts are working.. they are finicky, but i did have them working for a period of time when i was looking into init.d and sysctl scripts.
biznazz said:
So I flashed this on ec09 and I lost root. Any ideas?
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
flash another ec09 build.. most include root capabilities.. If you want a stock deodexed and rooted build go with ciscoo's build.. if you want deodexed adn debloated, i have a release out.. Both of these are rooted...
biznazz said:
So I flashed this on ec09 and I lost root. Any ideas?
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
As did i lol... superoneclick 2.3.3 works
Sent from my SCH-I400 using xda premium
Ok thanks ciscoo. Could you add that bit of info into the op for others that decide to flash this. thanks duder
Sent from my SCH-I400 using xda premium
Sure will. I wasn't sure until u mentioned it.
Sent from my SCH-I400 using xda premium
Just tried this,FREAKIN AWESOME!
Sent from my SCH-I400 using Tapatalk
abby_nitewolf said:
Just tried this,FREAKIN AWESOME!
Sent from my SCH-I400 using Tapatalk
Click to expand...
Click to collapse
Did it unroot ya though?
Sent from my SCH-I400 using xda premium
ciscogee said:
Did it unroot ya though?
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
Just flashed. Insta unroot. S1c rerooted fine. Here's my question. I looked, before I rooted again. Su is still in bin, and su and busybox are both in xbin. Maybe someone better with scripts can clear this up, but i can't see where the boost script should affect su at all. I looked at the updater script, and the boost script itself. I'd be very curious, if someone knows.
Sent from my SCH-I400 using Tapatalk
When you run this it removes all running scripts and applications from the ramdisk that are stored in the cache. Root is given at startup as well as other scripts being run only once, however they stay in the ram until the memory is needed, then they are replaced. This completly clears the cache.. for those running this, if you reroot your phone does this unroot it again after a specific amount of time? 1 hour or 1 day after the script is run?
pattielipp said:
When you run this it removes all running scripts and applications from the ramdisk that are stored in the cache. Root is given at startup as well as other scripts being run only once, however they stay in the ram until the memory is needed, then they are replaced. This completly clears the cache.. for those running this, if you reroot your phone does this unroot it again after a specific amount of time? 1 hour or 1 day after the script is run?
Click to expand...
Click to collapse
Rerooted at 0730. It's 1245 now. Just checked and i still have root.
Sent from my SCH-I400 using Tapatalk
Txwolf1980 said:
Rerooted at 0730. It's 1245 now. Just checked and i still have root.
Sent from my SCH-I400 using Tapatalk
Click to expand...
Click to collapse
Is ram still down also?
Sent from my SCH-I400 using xda premium
To be honest, There was only an 11mb drop with me. But, that (such as it was) is back up. Just ran it again, kept SU, but usage actually increased... Figures, I'd have the retarded phone of the bunch. Kinda supports the whole 'phone reflects it's user' line of thought.
yeah i was confused when it unrooted me. i just pushed the files back in and activated root again. It has been a day already and i still have root. i had about a 30mb difference with me. it may not be much for others but for me every mb counts.
In script OP. not this threads OP. Is the fix for unroot problem.
Sent from my SCH-I400 using xda premium
ciscogee said:
In script OP. not this threads OP. Is the fix for unroot problem.
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
Lol you beat me to it, i was about to post that
Sent from my ADR6425LVW using Tapatalk

extract rom from phone for Dsixda kitchen

I am trying to Deodex my rom in my phone. I've customized it and i want to extract it to the PC. Then I will deodex it with the DSIDXA Kitchen and then I will put it back.
How can i extract the rom in a form that the kitchen can use.
I tried CWM Touch 6.0.1.2 backup, export and image. The backup as both normal and tar.
None of them were compatible with the kitchen.
Any help would be appreciated
Thanks in advance....
Hmm. I thought it could use the nandroid img.
Did you rename the extension to.img?
Otherwise just grab the firmware for the build you want and use it instead.
Stickies in development.
Sent from my SGH-T999 using xda app-developers app
DocHoliday77 said:
Hmm. I thought it could use the nandroid img.
Did you rename the extension to.img?
Otherwise just grab the firmware for the build you want and use it instead.
Stickies in development.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
from tar to img?
No it should be something like .ext4.cwm
I know in twrp its .ext4.win
Dont know if itll work but u can try.
Why not just use the original fw?
Sent from my SGH-T999 using xda app-developers app
DocHoliday77 said:
No it should be something like .ext4.cwm
I know in twrp its .ext4.win
Dont know if itll work but u can try.
Why not just use the original fw?
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Because I have made several mods to the stock roms on the phone already (beats, using supersu, pimp my room, debloating, etc). And I don't feel like having to redo all of that.
There must be a simple way to do this. This is at least one of the ways that stock rom images are acquired so they can get posted.
In ClockWorkMod i have tried all of the following:
from the backup and restore menu
Create image.zip
Backup to external sdcard dup format
Backup to external sedcard tar format
None of them worked.
For image.zipo I copied the image.zip file and tried it zipped and unzipped and neither way worked.
For backup I copied all of the files from the /mnt/extSdCard/clockworkmod/backup/<DateOfTheBackup> directory.
I must be missing something stupid here
Thanks again...
Ok. Lets try something entirely different. Find a tool called Apk Manager, (google wanam apk manager ics).
Now extract all your files into a folder, or if you prefer you can plug into the computer and do adb pull /system.
Install/set up apk manager per instructions you should see where you download it. Then basically follow instructions to deodex the app and framework folders.
Sent from my SGH-T999 using xda app-developers app
DocHoliday77 said:
Ok. Lets try something entirely different. Find a tool called Apk Manager, (google wanam apk manager ics).
Now extract all your files into a folder, or if you prefer you can plug into the computer and do adb pull /system.
Install/set up apk manager per instructions you should see where you download it. Then basically follow instructions to deodex the app and framework folders.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
thanks for your help. That will deodex my rom but not let me load it into the kitchen.
deodexing is just step one towards my attempts at themeing.
how can i download the rom from my phone so i can use it in the kitchen.
Thanks again...
Well, it not only would deodex, but you can also use apk mgr to decompile, mod/theme, recompile....pretty much do everything you want to do.
But if you are insistent on the kitchen, use tge stock fw to get started, then adb pull your system and plug your files in place of the ones from the stock fw.
Sent from my SGH-T999 using xda app-developers app
DocHoliday77 said:
Well, it not only would deodex, but you can also use apk mgr to decompile, mod/theme, recompile....pretty much do everything you want to do.
But if you are insistent on the kitchen, use tge stock fw to get started, then adb pull your system and plug your files in place of the ones from the stock fw.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Thanks i will give it a try.
I still would like learn how to copy the rom image in a kitchen compatible format.
Thank you again...
Ill look over dsixdas instructions to see. I know it should be possible to do, I just havent used it that way.
Itll be a bit later before I can look though.
Have you read through his threads here and the one he links to. Hes got pretty detailed instructions.
Sent from my SGH-T999 using xda app-developers app
DocHoliday77 said:
Ill look over dsixdas instructions to see. I know it should be possible to do, I just havent used it that way.
Itll be a bit later before I can look though.
Have you read through his threads here and the one he links to. Hes got pretty detailed instructions.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Thank you for your time and effort. I did wade through some of them but most of them seem to assume that you already have the rom image. I guess I'm just trying to do thinks backwards. I get like that sometimes, just ask my wife
I really appreciate your help. It's really difficult to not be a newb but trying to learn something new when you know half of what you are doing.
Please there's no real rush my phone is up and running fine just trying to tweak it a bit more.
Thanks....
Hi, did you manage to get an image of your current ROM?
The easiest way is to use Root Explorer and the "Zip this folder" option, by long-pressing on the system folder.
Another way is to use ADB:
e.g. #1 (Copy all files and folders to your PC)
Type on your PC:
Code:
mkdir my_system_dir
adb pull /system my_system_dir
e.g. #2 (Pull all files into an image file)
Code:
adb shell
su
mount -o remount,rw /dev/block/mmcblk0p14 /system
dd if=/dev/block/mmcblk0p14 of=/sdcard/system.img
Likewise, I believe you could do the same for the boot.img (mmcblk0p7).

v6 supercharger question

How do you know when it's running and do you have to run it
Every time you reboot?
You need too locate the init.d file and set it to run at boot. If it's working you will know because when you run the script it will say you are supercharged 100%
Sent from my SGH-T989 using xda premium
rymanh said:
You need too locate the init.d file and set it to run at boot. If it's working you will know because when you run the script it will say you are supercharged 100%
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
I thought I'm remember reading that you were not Supposed to set it at boot. If you read the original thread it will tell you how to tell if it is working. And that is after you install it use 17 to reboot and open it with script manager again and when it come up the options list it will say your super charged below the list
Sent from my SGH-T989 using xda premium
In the script it advises not to run the script at boot but you are supposed to go to etc/init.d and set the S99SuperCharger and Bulletproof aps to run at boot.. Other wise you will need to run the script every time you start your phone
Sent from my SGH-T989 using xda premium
rymanh said:
In the script it advises not to run the script at boot but you are supposed to go to etc/init.d and set the S99SuperCharger and Bulletproof aps to run at boot.. Other wise you will need to run the script every time you start your phone
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
I have been in the intd folder before but I never seen
Anything about making run at boot. And by the way I am running
Cm10 official and it says I am 75% supercharged. I think that's
Because my ROM deletes something every time I boot.
edshawn911 said:
I have been in the intd folder before but I never seen
Anything about making run at boot. And by the way I am running
Cm10 official and it says I am 75% supercharged. I think that's
Because my ROM deletes something every time I boot.
Click to expand...
Click to collapse
Until I figured out I would have the same problem as you.. Only 75% whenever I reboot my phone.. After you set the file to run at boot it will be 100% every time I promise... Btw bulletproof apps is optional and doesn't count in your supercharger percentage.. But if you want it to work properly ou need to set it to run at boot as well
Sent from my SGH-T989 using xda premium
rymanh said:
Until I figured out I would have the same problem as you.. Only 75% whenever I reboot my phone.. After you set the file to run at boot it will be 100% every time I promise... Btw bulletproof apps is optional and doesn't count in your supercharger percentage.. But if you want it to work properly ou need to set it to run at boot as well
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
thanks a lot for your help. could you maybe give me your exact steps
so that i can use that as a guide. thanks in advance..
I use the smanager app... After you set up V6 the way you want it navigate to the file location specified near the top of the screenshot... etc/init.d/S99SuperCharger and make sure SU, and boot are set.
That's all you have to do
Sent from my SGH-T989 using xda premium

MOD ProjectXtreme

So I just stumbled across this mod:
http://forum.xda-developers.com/show....php?t=2272317
I.e. It's not mine and I take no responsibility or credit, but so far it's made my phone even more blazingly fast and buttery smooth.
It was in the Lg optimus g at&t... I used it on my og and just installed it on my pro seems to be working great!!! will test for the next 24hrs. Theres a app on post 5.
Gotroot said:
So I just stumbled across this mod:
http://forum.xda-developers.com/show....php?t=2272317
Click to expand...
Click to collapse
Here's a clickable version of the link.
it says init.d is required, do we have init.d on the stock kernel?
Erik
download the init.d installer from the market for 99 cents, run it and it will install init.d. after reboot mount your system as rw and then install the projectxtreme app open it and click install and your done. check in the ect/init.d folder using a root file explorer and you'll see the projectelxtreme scripts in there. if not run install from app again reboot and check. ilan easy way to know is by seeing its granted su permissions at the bottom of your screen when you turn your phone on or reboot.
ricco333 said:
it says init.d is required, do we have init.d on the stock kernel?
Erik
Click to expand...
Click to collapse
Pimp my rom(free) can do that for you
Sent from my LT30p using xda premium
Which version did you apply in cwm?
Sent from my LG-E980 using Tapatalk 2

Categories

Resources