0

I want to flash TweakDrypT to my rooted android 4.4.2 device. But before, I must delete all the scripts in init.d. I've tried using universal init.d to remove them, but they won't. Anyone can help?

  • 1
    One urgent hint: Make sure to do a backup first, a complete one (see: nandroid). That's always the first to do before modifying things in /system. 2nd: I don't know why you "must delete all the scripts in init.d" (some background would be helpful; this might well be an XY problem ;) But before removing them, make sure you have a copy (see: backup). If things go nuts, you might need them again. – Izzy Jun 4 '15 at 10:22
1

Just use any root file manager like root browser and browse to system/etc/init.d and delete all scripts manually

Alternatively, download and install terminal emulator. Open it and enter these commands One by One->

su
mount -o rw,remount /system
mkdir /sdcard/init/
cp /system/etc/init.d /sdcard/init/
rm -r /system/etc/init.d/*

In first command, we gain the superuser rights. It should request you for root permission, grant it if it does. The second command is to mount the /system (partition where init.d scripts reside). And third command creates a new folder "init" in root of internal sdcard (this is where we will backup your scripts in case you will ever need them). The fourth command copies all scripts to folder we created in third step (backup). Fifth command finally removes all files inside init.d folder.

Hope this helps.

  • 1
    and again alternatively, use ADB: adb shell su -c "mount -o remount,rw /system && cp -a /system/etc/init.d /sdcard && rm -rf /system/etc/init.d/* && mount -o remount,ro / system". // Note: do NOT use *.*, as that would only remove files with a . in their name. This is not Windows ;) And don't forget to backup first. Might need that later when things go weird ;) – Izzy Jun 4 '15 at 10:17
  • 1
    Thanks for suggestions, I added the details to answer :) – Jaskaranbir Singh Jun 4 '15 at 12:52
  • 1
    And I upvoted it meanwhile. Warning for the missing first step (backup) is in my comments :) // Oops: typo in my first comment to your answer: at the end of the command, there must be NO space between / and system – Izzy Jun 4 '15 at 12:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.