I'm using the AK Purity kernel 0.30 along with Andorid 4.2.2 stock. I've notice a file named 99zipalign in /system/etc/init.d/ so I've supposed that this kernel supports init.d. I've placed a custom file 00akkern in that folder, for setting the kernel governor at boot time:
Code:
#!/system/bin/sh
# ==============================================================
# CPU settings
# ==============================================================
echo interactivex > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor;
echo 350000 > /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq;
These commands work fine in terminal. Then I've fixed permissions:
Code:
chmod 755 00akkern
But it's not working!
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Still getting interactive, that's the default.
Thanks :fingers-crossed:
Why not just use Trickster MOD?
lost_ said:
Why not just use Trickster MOD?
Click to expand...
Click to collapse
I want to learn how this stuff works and because I don't need an app just to tweak two settings...
No one?
supporting init.d scripts or not isn't the kernel thing... it's the ROM thing.
if you are using stock rom (probably the factory image I guess...), you should get rooted your phone and install busybox on rom
after that init.d scripts will work fine
R: /etc/init.d support in AK Purity kernel?
dozingblack said:
supporting init.d scripts or not isn't the kernel thing... it's the ROM thing.
if you are using stock rom (probably the factory image I guess...), you should get rooted your phone and install busybox on rom
after that init.d scripts will work fine
Click to expand...
Click to collapse
Thank you very much! I've asked a question in the AK thread about support for init.d and no one has mentioned the fact that's it's a ROM feature. Yes, I'm stock. Which busybox should I install? Should I configure it for enabling init.d support?
Inviato dal mio Galaxy Nexus con Tapatalk 2
Gremo said:
Which busybox should I install? Should I configure it for enabling init.d support?
Click to expand...
Click to collapse
I'm not remembering precise name of it... maybe Stericson's Busybox in Play Store. Download it and install busybox at /system/xbin folder.
And after that if your device's permission of /system/etc/init.d and scripts file inside of it has set right(755, check it via root explorer or other file explorers that can have root access), one rebooting of nexus will make the scripts start to work
[sorry for my awful english i know mine is quite bad... but i'm learning and practicing it!]
dozingblack said:
I'm not remembering precise name of it... maybe Stericson's Busybox in Play Store. Download it and install busybox at /system/xbin folder.
And after that if your device's permission of /system/etc/init.d and scripts file inside of it has set right(755, check it via root explorer or other file explorers that can have root access), one rebooting of nexus will make the scripts start to work
[sorry for my awful english i know mine is quite bad... but i'm learning and practicing it!]
Click to expand...
Click to collapse
I've ended up installing busybox lmanually (busybox --install -s /system/xbin). Busybox commands works fine, but my init.d script still doesn't work! Any idea?
Permissions of /system/etc:
Code:
drwxr-xr-x root root 2013-03-09 22:14 init.d
Inside /system/etc/init.d:
Code:
-rwxr-xr-x root shell 1425 2008-08-01 14:00 99zipalign
-rwxr-xr-x root shell 317 2013-03-09 16:47 99akkernel
init.d is fully working into kernel.
Have you launch script with scriptmanager before put into init.d folder?
Do you have any errors?
anarkia1976 said:
init.d is fully working into kernel.
Have you launch script with scriptmanager before put into init.d folder?
Do you have any errors?
Click to expand...
Click to collapse
Thank you for helping anarkia! You were right: there was a problem with the file (line endings). I've edited it using vi and now the governor part works. The only think that does not work is setting the screen_off_max_freq.
When i boot i get interactivex and 700000 (wrong). After manually executing sh 99akkernel i get the correct values: interactivex and 350000
Is there any restriction about screen_off_max_freq that I don't know?
You can try to add "sleep x" command before screen off.
Related
So far fresh users can't post in development forum, I make post here.
maybe moderators can move this topic...
This is custom recovery for Optimus Me P350 based on AmonRA-GNM 2.2.1
How to install:
1. Yes, you need to have root GingerBreak APK
2. Download zip file in attachment and unpack, you get 3 files:
- recovery-RA-pecan-2.2.1-GNM-drap.img
- flash_image
- md5sum
3. check md5sum
Code:
md5sum -c md5sum
4. copy .img file and flash_image to sdcard
Code:
adb push recovery-RA-pecan-2.2.1-GNM-drap.img /sdcard/
adb push flash_image /sdcard/
5. login, remount /system in rw mode and "install" flash_image util
Code:
adb shell
$ su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
# cat /sdcard/flash_image > /system/bin/flash_image
# chmod 755 /system/bin/flash_image
# sync
6. and last but not least, flash it
RECOMMENDED
because there sometimes not enough virtual ram, it is recommended reboot phone before flashing
Code:
adb shell
$ su
# flash_image recovery /sdcard/recovery-RA-pecan-2.2.1-GNM-drap.img
# sync
7. reboot
Code:
# reboot recovery
Profit!
Update:
Now with custom recovery you can install customized linux kernel
Sources on Github
This is custom recovery for Micromax A60 based on AmonRA-GNM 2.2.1
DO NOT USE IT FOR LG P350
Is there a advantage to using this recovery over milks clockwork???? Or original recovery thunderdog?????
Sent from my LG-P500 using XDA Premium App running CM7 over clocked at 787
dislplin01 said:
Is there a advantage to using this recovery over milks clockwork???? Or original recovery thunderdog?????
787
Click to expand...
Click to collapse
No, you can't use it on P500 this is only for P350,
a post here because the is no forum for 350,
not yet ;-) I hope it comes in near future.
You did a great job mate. Finally,LG Optimus Me/Life(P350) is starting to get hacked.
thank you!!!
drapalyuk said:
No, you can't use it on P500 this is only for P350,
a post here because the is no forum for 350,
not yet ;-) I hope it comes in near future.
Click to expand...
Click to collapse
Good to know thanks
Sent from my LG-P500 using XDA Premium App running CM7 over clocked at 787
any custom roms for this device?
Pecamod for LG Optimus Me
Pecamod v0.5
FEATURES::
# Android 2.2.2 (V10F)
# root and BusyBox
# Deodex & Zipalign apks
# HW acceleration enabled + JIT enabled
# Heap size = 40MB
# Franciscofranco's tweaks applied on boot
# Script for SD-card
# Patch Hosts file
# Patch libsqlite.so
# Ad-hoc Wi-Fi
# New sound
# Front Honeycomb
megaupload . com/ ?d=J4L72S1K
Have you tried it? Is it good?
I from Russia. I make this ROM. This ROM is good....IMHO. Create backup and flash this rom)
I use p500 and my sister use p350..
She ask me for repair her optimus-me about memory drain, so i answered that nothing i can do for her phone.
So, Is this rom can help me?
Sent From a Long Time ago...
I can't register to the russian forum to get the recovery
EDIT: I got it. Thank you!
dislplin01 said:
Is there a advantage to using this recovery over milks clockwork???? Or original recovery thunderdog?????
Sent from my LG-P500 using XDA Premium App running CM7 over clocked at 787
Click to expand...
Click to collapse
lol
Sent from my... you know the rest.
method77 said:
I can't register to the russian forum to get the recovery
Click to expand...
Click to collapse
recovery in first message of this topic Custom Recovery AmonRA-GNM 2.2.1 for Optimus Me P350
drapalyuk said:
This is custom recovery for Micromax A60 based on AmonRA-GNM 2.2.1
DO NOT USE IT FOR LG P350
Click to expand...
Click to collapse
Well just now i have also tested it ant it works.
If you please let me know the fix it will be great, I am asking this because keys isn't matching as expected.
Also can you share the source code or the branch you have used?
Screenshots my ROM
help me i want to install recovery on P350
someone can give me tutorial how to use ADB on P350, it is same with P500??
or i can use Terminal-Emulator?
Please help me..
Sorry for my bad english.
ngage_me said:
Well just now i have also tested it ant it works.
If you please let me know the fix it will be great, I am asking this because keys isn't matching as expected.
Also can you share the source code or the branch you have used?
Click to expand...
Click to collapse
sure, i just need to clean up a lite bit remove tons of debug outputs
cupliz said:
someone can give me tutorial how to use ADB on P350, it is same with P500??
or i can use Terminal-Emulator?
Please help me..
Sorry for my bad english.
Click to expand...
Click to collapse
1. yes adb work similar for all android devices
2. and yes, you can use terminal emulator to execute commands
and just copy files to sd card in usual way
in our case we use adb to copy a files and for remote shell
some basic information about adb
Hey guys, i'am newbie in XDA I just want directory init.d work and not use custom kernel....its just simple code..
you just put the code:
# init.d support
busybox run-parts /system/etc/init.d/
In >install-recovery.sh< in directory /system/etc, click instal-recovery.sh and click execute, and you will be get
Init.d work..
________________
YOU CAN TEST INIT.D with 99test(create a new file in /system/etc/init.d
And gift name 99test or other...
And this the code:
( #!/system/bin/sh
touch /data/local/tmp/init.d_log_test.txt
echo "done" >> /data/local/tmp/init.d_log_test.txt
),
If have file :
init.d_log_test.txt in
/data/local/temp/
Init.d its work
__________
NOTE: you must have BUSYBOX, you can execute instal-recovery.sh again if 99test not work
Ok, good luck
Sorry if my english so bad
Sent from my GT-S5360 using XDA
shoutokuyaki said:
Hey guys, i'am newbie in XDA I just want directory init.d work and not use custom kernel....its just simple code..
you just put the code:
# init.d support
busybox run-parts /system/etc/init.d/
In >install-recovery.sh< in directory /system/etc, click instal-recovery.sh and click execute, and you will be get
Init.d work..
________________
YOU CAN TEST INIT.D with 99test(create a new file in /system/etc/init.d
And gift name 99test or other...
And this the code:
( #!/system/bin/sh
touch /data/local/tmp/init.d_log_test.txt
echo "done" >> /data/local/tmp/init.d_log_test.txt
),
If have file :
init.d_log_test.txt in
/data/local/temp/
Init.d its work
__________
NOTE: you must have BUSYBOX, you can execute instal-recovery.sh again if 99test not work
Ok, good luck
Sorry if my english so bad
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
I ran this
# init.d support
busybox run-parts /system/etc/init.d/
and I guess it ran cuz I got a wall of text. But the 99test didn't execute. But there was a init.d_log_test.txt in /data/local/tml/
So does that mean its working or that it was ALREADY working?
sorry brother but i have already made a thread about this in dev section...
it won't work.
hell_lock said:
sorry brother but i have already made a thread about this in dev section...
Click to expand...
Click to collapse
Sorry if I repost
Sent from my GT-S5360 using XDA
raolemo said:
I ran this
# init.d support
busybox run-parts /system/etc/init.d/
and I guess it ran cuz I got a wall of text. But the 99test didn't execute. But there was a init.d_log_test.txt in /data/local/tml/
So does that mean its working or that it was ALREADY working?
Click to expand...
Click to collapse
Yeah sure..
Sent from my GT-S5360 using XDA
delete /data/local/temp/init.d_log_test.txt then reboot the phone. please check if we could find the same file after reboot.
kurotsugi said:
it won't work.
Click to expand...
Click to collapse
why it will not work? please give me a clue where the fault
Sent from my GT-S5360 using XDA
kurotsugi said:
delete /data/local/temp/init.d_log_test.txt then reboot the phone. please check if we could find the same file after reboot.
Click to expand...
Click to collapse
follow above test. please confirm the result
kurotsugi said:
follow above test. please confirm the result
Click to expand...
Click to collapse
Ok I will try...
Sent from my GT-S5360 using XDA
This will enable the loading of scripts in /system/etc/init.d without editing the boot.img.
This will work for ALL dual core S3 variants.
There are two versions, one with my ondemand profile and one without. The one that has CPUProfile has it, this is a script that runs at boot setting the ondemand options to favor battery without sacrificing performance. Most user saw a GREAT increase in battery life especially when idle. See the link in my sig to use the full cpu editor. (works on the S3 with this mod)
To add init.d manually to your own rom just open /system/etc/init.qcom.post_boot.sh and add this line to the end of the file:
Code:
/system/etc/init.d/*
This mod also installs busybox which enables alot of tools native to busybox see here for busybox usage.
To install flash in recovery.
Download:
Add init.d ONLY:
EZ_Init.d ONLY
Add init.d and CPUProfile Script:
EZ_Init.d AND CPUProfile
So does this tweak the onDemand governor? Is it safe to use with setCPU? Is it safe with the Sammy kernel?
Nevermind...found the Sammy kernel thread under "original development"
good work man nice another great addition to the gs3
Works as advertised, thanks for this!
Sent from my SPH-L710 using Tapatalk 2
thanx but
Not sure why do you need to mount /system as writable in init.d script. Does that mean regular init.d scripts won't work?
bravomail said:
Not sure why do you need to mount /system as writable in init.d script. Does that mean regular init.d scripts won't work?
Click to expand...
Click to collapse
I do in all my scripts guess Its habit lol. But Its not necessary for most scripts
Sent from my SAMSUNG-SGH-I747 using xda premium
smokin1337 said:
I do in all my scripts guess Its habit lol. But Its not necessary for most scripts
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
Then pls fix it if it is not too much trouble. I know publishing is kinda pain.
Mounting system as writable is a no-no.
bravomail said:
Then pls fix it if it is not too much trouble. I know publishing is kinda pain.
Mounting system as writable is a no-no.
Click to expand...
Click to collapse
I'm not trying to be a wise ass here but why is mounting system as writable a bad thing? Every device I've had never gave me a problem when I did it actually makes a few things easier when your in a pinch.
Is it because of Odin?
Sent from my HTC VLE_U using xda premium
Can we see some proof or evidence from users that this does indeed give significantly better battery usage when idling without impacting performance?
smokin1337 said:
This will enable the loading of scripts in /system/etc/init.d without editing the boot.img.
This will work for ALL dual core S3 variants.
There are two versions, one with my ondemand profile and one without. The one that has CPUProfile has it, this is a script that runs at boot setting the ondemand options to favor battery without sacrificing performance. Most user saw a GREAT increase in battery life especially when idle. See the link in my sig to use the full cpu editor. (works on the S3 with this mod)
To add init.d manually to your own rom just open /system/etc/init.qcom.post_boot.sh and add this line to the end of the file:
Code:
/system/etc/init.d/*
This mod also installs busybox which enables alot of tools native to busybox see here for busybox usage.
To install flash in recovery.
Download:
Add init.d ONLY:
EZ_Init.d ONLY
Add init.d and CPUProfile Script:
EZ_Init.d AND CPUProfile
Click to expand...
Click to collapse
Do you flash this in stock recovery or cwm?
Worked at flash... Does this conflict with the CPU disabler script?
Sent from my SPH-L710 using xda premium
---------- Post added at 12:15 PM ---------- Previous post was at 12:08 PM ----------
bgs_piece said:
Do you flash this in stock recovery or cwm?
Click to expand...
Click to collapse
CWM for me...I also added the ramscript to the folder http://forum.xda-developers.com/showthread.php?t=1111145...along with the CPU disabler script too...
---------- Post added at 12:27 PM ---------- Previous post was at 12:15 PM ----------
smokin1337 said:
This will enable the loading of scripts in /system/etc/init.d without editing the boot.img.
This will work for ALL dual core S3 variants.
There are two versions, one with my ondemand profile and one without. The one that has CPUProfile has it, this is a script that runs at boot setting the ondemand options to favor battery without sacrificing performance. Most user saw a GREAT increase in battery life especially when idle. See the link in my sig to use the full cpu editor. (works on the S3 with this mod)
To add init.d manually to your own rom just open /system/etc/init.qcom.post_boot.sh and add this line to the end of the file:
Code:
/system/etc/init.d/*
This mod also installs busybox which enables alot of tools native to busybox see here for busybox usage.
To install flash in recovery.
Download:
Add init.d ONLY:
EZ_Init.d ONLY
Add init.d and CPUProfile Script:
EZ_Init.d AND CPUProfile
Click to expand...
Click to collapse
smokin OP and Dev of this mod.
I copied the CPU Sleeper script (Eugene373) http://forum.xda-developers.com/showthread.php?t=1745517 and the Ram Manager script (Juwe11) http://forum.xda-developers.com/showthread.php?t=1745517 into the flashable you made...can I share it if I give you props?:fingers-crossed:
I flashed this in CWM and found the init.d folder with scripts installed.
When I opened the 99test script, I noted that a test file with "done" should have been created in data/local/tmp. I could not find this file anywhere.
Am I looking in the wrong place or am I correct in assuming that init.d functionality is not working?
Pj
Phoenix, AZ
This may be a noob question, but I didn't see it in the OP. How do I uninstall this??
the links are dead is there another place i can download this file
Bump
Sent from my SGH-I747 using Tapatalk 2
mvaughn12 said:
the links are dead is there another place i can download this file
Click to expand...
Click to collapse
+1
Sent from my SGH-T999 using xda app-developers app
jjlean said:
+1
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Here is a working link
http://sourceforge.net/projects/xquizit/files/T999/Apps/init.d Support.zip/download
Sent from my SGH-T999 using Tapatalk 2
Wildchld said:
Here is a working link
http://sourceforge.net/projects/xquizit/files/T999/Apps/init.d Support.zip/download
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
Install fails?????
bradld said:
Install fails?????
Click to expand...
Click to collapse
No he fixed it. Installs fine. You can Odex after running it.
Sent from my SGH-T999 using xda app-developers app
is this still working on stock JB?
cuz I can't get my scripts to work.
First off, I did not come up with this idea but I adapted it from smokin1337 and his thread: [MOD] EZ InitD - init.d the EZ way !!
How to make it work...
Take file in the attached zip and use your favorite root explorer and paste it in /system/etc/ overwriting the file that is there.
Set permissions of the file to be rwx, rx, rx
Create an init.d folder inside of /system/etc and set permisions to rwx, rx, rx
Add init.d scripts and make sure they are also set to rwx, rx, rx.
Reboot and enjoy your init.d scripts!
All credits to smokin1337 for the mod, I just added the line to our postboot.sh.
I tested it and it works as it should :good:
Enjoy!
-Scott
EDIT: Changed the permissions of the scripts to 755 from 777 to guard against possible malware. Info courtesy of jcase.
Just a note, I use ES File Explorer to do this but any root level explorer should work. I just use ES because I am familiar with it.
Some init.d scripts can rely upon the use of BusyBox so install that from the market.
Sorry for the stupid question but what does this actually do.
What can I get out of it if I install it?
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
azz72 said:
Sorry for the stupid question but what does this actually do.
What can I get out of it if I install it?
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
Click to expand...
Click to collapse
Good question... If you have to ask it then this is not something for you. Haha, Just kidding... But seriously..
Basically init.d scripts are scripts that run when the phone boots up. You can make them do various things like setting system level tweaks, cleaning and purgin databases, and on and on and on...
In the ROMS I build I use an init.d script that remounts the file system more efficiently (in theory anyways) but there are other uses for init.d scripts.
A real popular one is called "V6 Supercharger" Its a collection of scripts that are designed to really tweak out the operating system for the supreme performance (once again, debatable).
There are other things that could be done... If your familiar with old school computing and you know autoexec.bat this is basically that for Android.
-Scott
Gotcha
Ive tried the super charger v6 for my htc inspire a long time ago couldnt tell if it worked or not so I kinda got what ur saying.
Thanks for clearing it up for me
azz72 said:
Gotcha
Ive tried the super charger v6 for my htc inspire a long time ago couldnt tell if it worked or not so I kinda got what ur saying.
Thanks for clearing it up for me
Click to expand...
Click to collapse
Yeah, no problem at all.
scrosler said:
Good question... If you have to ask it then this is not something for you. Haha, Just kidding... But seriously..
Basically init.d scripts are scripts that run when the phone boots up. You can make them do various things like setting system level tweaks, cleaning and purgin databases, and on and on and on...
In the ROMS I build I use an init.d script that remounts the file system more efficiently (in theory anyways) but there are other uses for init.d scripts.
A real popular one is called "V6 Supercharger" Its a collection of scripts that are designed to really tweak out the operating system for the supreme performance (once again, debatable).
There are other things that could be done... If your familiar with old school computing and you know autoexec.bat this is basically that for Android.
-Scott
Click to expand...
Click to collapse
Thanks for the explanation i really needed too before perform this mod thanks
elvin9 said:
Thanks for the explanation i really needed too before perform this mod thanks
Click to expand...
Click to collapse
Yeah, this mod is not your ordinary mod. Most people will never use this type of mod.... Or they do use it in the custom ROM they use and never even know about what it does.
Try using 755 instead of 777, otherwise you are opening yourself up to potential problems.
scrosler said:
First off, I did not come up with this idea but I adapted it from smokin1337 and his thread: [MOD] EZ InitD - init.d the EZ way !!
How to make it work...
Take file in the attached zip and use your favorite root explorer and paste it in /system/etc/ overwriting the file that is there.
Set permissions of the file to be rwx, r, r
Create an init.d folder inside of /system/etc and set permisions to rwx, rwx, rwx
Add init.d scripts and make sure they are also set to rwx, rwx, rwx.
Reboot and enjoy your init.d scripts!
All credits to smokin1337 for the mod, I just added the line to our postboot.sh.
I tested it and it works as it should :good:
Enjoy!
-Scott
Click to expand...
Click to collapse
jcase said:
Try using 755 instead of 777, otherwise you are opening yourself up to potential problems.
Click to expand...
Click to collapse
Responded in updater script thread.
So do we have to find make scripts I'm assuming this just set up the device to work with the scripts
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
DJsCrIBbLe said:
So do we have to find make scripts I'm assuming this just set up the device to work with the scripts
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
Right, exactly.
You can peruse the forums and find your favorite "battery saving" and "super charger" scripts.
Gotcha thanks .
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
I've discovered the same thing you achieve here before, when i was trying to create a swap internal SD for the external, but unfortunately it didn't work, i used your rom on my old Note 2, it was amazing hope to see CleanROM for this one. Thanks for publishing this.
juanyunis said:
I've discovered the same thing you achieve here before, when i was trying to create a swap internal SD for the external, but unfortunately it didn't work, i used your rom on my old Note 2, it was amazing hope to see CleanROM for this one. Thanks for publishing this.
Click to expand...
Click to collapse
Yeah, I am starting to grow frustrated. Hopefully soon!
Hi,
I've found a quick and dirty fix for kernel issue related with tun.ko module in OmniRom/KitKang roms with kernel 2.6.38.8-evervolv-02127-...
Just create file /data/local/userinit.sh containing folowing lines (or add, if you've already have a file):
#!/system/bin/sh
rm -rf /dev/tun
insmod /system/lib/modules/tun.ko
Click to expand...
Click to collapse
Next reboot, or run it with:
sh /data/local/userinit.sh
Click to expand...
Click to collapse
I'm using openvpn binary from OpenVPN Installer app and it works like a charm!
If this fix is already known, please remove this thread (I can't write to thread related to OmniRom). Probably there is a better fix for this issue.
Greetings