[Q] init.d deletes on its own on each reboot - Android Q&A, Help & Troubleshooting

Halo!
I have a Moto X Play running a 7.1.2 custom ROM.
I was trying to run some scripts on boot using the init.d folder, but since init.d was not natively supported by the kernel, I had to emulate it using Kernel Auditor. And using a file explorer, I moved my scripts to system/etc/init.d.
However, after a reboot, I found (using a file explorer) no init.d folder at system/etc.
Can someone suggest what might be happening?
Thanks a lot!
Edit: Its any folder that I create in the /system/etc folder. It deletes itself at reboot. Since init.d is not supported by the kernel, I created the folder myself. And I made sure the permissions were set to 0755.

Related

Can't create new folder without root

Okay, I had this problem, that I can't create a new folder without root. It worked fine after flashing fserve v18a cfs kernel , it still can create a folder, but after a reboot, I can't create a folder nor rename anymore, but I can move and delete a file and folder.
I tried installing and using root explorer, it worked, but after uninstalling it I can't create a folder anymore. I am using the default one in cm7, astro file manager does not work either.
I checked the owner and group of sdcard under root explorer, it says both 0-root. I can select other options like system.
So can anybody use root explorer and check their sdcard owners? Or have another solution?
Thanks in advanced
EDIT## tried changing owners and groups but root explorer crashed
EDIT2### used file expert and I saw file permissions for owner not tick(read and write), but root explorer is ticked. File expert can't change the permissions and root explorer FCs.
Sent from my LG-P500 using XDA App
have you tried ES File Manager?

[Q] Modify or add directories to SYS folder

hello I was wondering if there was any way to add directories to the sys folder... I tried to add the directories to the ROM before flashing and Ive also tried to add them in Root Explorer with all necesarry permissions enabled.
I need to add the directories so a init.d script I am trying to add will work?
My phone is a rooted Samsung Epic 4g Touch please ask if any more details are needed
Thanks in advance

[Q] init.d folder missing

Hi all, I'm trying to install boot up scripts for GPU undervolting and Scoobydoo. I need to paste those scripts under /etc/init.d directory. I do find the etc folder, but couldn't find the init.d folder. I use Es File explorer on a Samsung Galaxy S3 LTE with JB, rooted and with Perseus alpha 25.1 Kernel.
Also I'm not able to create an init.d directory. It says "Operation failed". Is it already existing there and not visible ? Or is it a permission issue ? Any help would be appreciated. Thanks in advance.
apvinod2003 said:
Hi all, I'm trying to install boot up scripts for GPU undervolting and Scoobydoo. I need to paste those scripts under /etc/init.d directory. I do find the etc folder, but couldn't find the init.d folder. I use Es File explorer on a Samsung Galaxy S3 LTE with JB, rooted and with Perseus alpha 25.1 Kernel.
Also I'm not able to create an init.d directory. It says "Operation failed". Is it already existing there and not visible ? Or is it a permission issue ? Any help would be appreciated. Thanks in advance.
Click to expand...
Click to collapse
Use a file manager with root and look for the init.d folder under system/etc if its not there simply create it
Sent from my GT-I9300 using xda premium
Create it with the script file inside and copy folder from PC to SD card and then copy and paste in system/etc using ESF
Then set permissions for both the script and folder to RWXRWXRWX
LenAsh said:
Create it with the script file inside and copy folder from PC to SD card and then copy and paste in system/etc using ESF
Then set permissions for both the script and folder to RWXRWXRWX
Click to expand...
Click to collapse
Im sorry but dont tell someone to set permissions for a script alot of scripts require different permissions and point to locations where specific permissions are needed
Sent from my GT-I9300 using xda premium
What? This one requires at least 755, so 777 will allow the script to at least run.
And don't tell me what to do or not...
Hey, Thanks guys, I was finally able to create the folder. I tried all different settings but to no avail. Finally I re-booted the phone, and was able to create the folder.

Viper4Android (SOFF WORKAROUND)

I have successfully created my own bypass to get viper4android to work. Always create a full backup before attempting =)
1. Download viper4android APK
2. Download Root Explorer from the playstore
3. Install Both Apps
4. Launch Root Explorer
5. In root explorer go to /system/lib/soundfx and copy the folder to /data/ (make a soundfx folder)
6. Also copy /system/etc/audio_effects.conf to the /data/soundfx/ folder
7. Using root explorers menu you can create a shortcut (symbolic link) make a shortcut of the /data/soundfx/ folder and a shortcut of the /data/soundfx/audio_effects.conf
8. Boot into TWRP
9.Mount the system partition
10. Rename /system/lib/soundfx to /system/lib/soundfx2
11. Copy soundfx shortcut create earlier to /system/lib/ it will look like a "file" to TWRP
12.Rename the /system/etc/audio_effects.conf to /system/etc/audio_effects.conf1
13. Copy the audio_effects shortcut into /system/etc/ (be sure its name matches the old exactly)
15. Reboot
16. Launch Viper and install driver
I haven't dealt with LPA yet (hasn't had an issue) nor have I done any other modifications at this time which are avail on the viper4android thread.
I was just thinking about symbolic links to get around this S-OFF/ON issue and it appears they work and technically as a workaround we could symbolically link everything in system to another location and access it all. This could easily be put into ROM builds now at least as well!
Build.Prop may be useful to move out via sym link as well
I'll try this in a bit. Thanks
Sent from my HTC One_M8 using Tapatalk

[Q] how to/should i add folders to backup scripts in addon.d

i want to save some custom apps that i have moved to system when i install CM updates. so i want to add them to a script in addon.d
these app folders seem to have the apk and an empty lib folder. adding the apk seems easy, but how exactly do i tell the script to also backup the 'lib' folder and restore it?
thanks.

Categories

Resources