yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] arter97:
permission?

After download, make sure you have the right permission of term-inst

chown 0.0 with chmod 777

---------- Post added at 03:25 PM ---------- Previous post was at 03:20 PM ----------

First, thanks for this mod!!

Works beautifully.

I'd like to give you some suggestion.

1. Remove the annoying sleep command in the script.

This whole process doesn't take a second yet, your script includes a lots of "sleep" command.

Remove this!! It's completely useless.

2. Improve 00test in /system/etc/init.d/

You included this to test out init.d.

Now I've found that this doesn't remove when fully operated.

After echoing some text to /data/Test.log, please remove 00test itself.

This is possible.

3. Improve fixing init.d directory owner&permission and all its included file's owner&permission.

This is implemented in some famous custom kernels.

And this script also includes fixing this in init.d.

Fixing init.d in init.d folder?

When init.d has wrong permission or owner, that script doesn't work either!

Remove that useless init.d script.

(And also change

chmod 777 /system/etc/init.d/08setperm

chmod 777 /system/etc/init.d/00test

to chmod 777 /system/etc/init.d/*

)

(That also remounts /system as R/W. Pretty dangerous you know.)
[Android Software/Hacking General [Developers Only]] ic92:
It's Works!

Working nicely on Stock Xperia Neo L, rooted
[Android Software/Hacking General [Developers Only]] dybestboy:
I have found the init.d can not work with franco.Kernel - r30 4.1/4.2. nexus7 16g 4.2.1~~~
[Android Software/Hacking General [Developers Only]] encik_racun:
not working on stock XXLI2 galaxy y
[Android Software/Hacking General [Developers Only]] morrisx:
I have a galaxy ACEi, it has the same hardware as yours. I had the same problem... read back few pages, ryuinferno gave me a quick solution with script manager. Maybe it can solve your issue too.

Sorry for my english!
[Android Software/Hacking General [Developers Only]] encik_racun:
solve it, in sysinit lines..

"run-parts /system/etc/init.d"

for galaxy y is...

"system/xbin/run-parts /system/etc/init.d" :)
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Thanks for the suggestions but I do not do all those for no reason...

1. sleep command is there so users can actually see things going on step by step, not with just a flash

2. 00test can do more than testing init.d...it shows when the scripts are excecuted for custom tuning and debugging...and for it to auto remove? Just delete it manually if you do not want it...I do not see the need of removing it yet...

3. Many users place scipts in init.d folder without setting the correct permissions...so that script is to correct it if they did not do it correctly...it is not useless...if term-init was used from the start it will be excecuted correctly...and for not using the * wildcard when setting permissions in the script, that was just because of an early typo and I do not see the need to change it...it works either way right? And of course I have to remount /system as r/w as many scripts (like mine, in this case) does some tuning to /system...

So thats all and please, soften your words...;)
[Android Software/Hacking General [Developers Only]] haysuzuki:
Great work on Pantech SKY A800S Stock ICS 4.0.4.Thank!
[Android Software/Hacking General [Developers Only]] FlemishDroid:
It works on samsung galaxy gio with aosp ics rom! The cwm solution gives an error 0 installation aborted (updater-script problem i think) but the terminal emulator solution works great. Thx

Verstuurd van mijn GT-S5660 met AOSP ICS van MaclawStudio.
[Android Software/Hacking General [Developers Only]] free2choose:
Checked with root explorer on galaxy ace rooted... init.d is there. But after instaling intit2ext.... Not working
[Android Software/Hacking General [Developers Only]] XIItribes:
I enabled init.d support in my device and added some tweaks to edit values in the /proc/sys/... directory but when I check, it looks like nothing has changed there. Anything I'm missing?
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Is there a Test.log in /data? How is your script? I need to look at it because there may be formatting problems...:)
[Android Software/Hacking General [Developers Only]] XIItribes:
Yes, I got the Test.log and then run this command “/system/xbin/busybox run-parts /system/etc/init.d" in the terminal after the script failed to run. Now all the changes have been made except the following lines:

echo "4096 8192 16384" > /proc/sys/net/ipv4/tcp_rmem;

echo "4096 8192 16384" > /proc/sys/net/ipv4/tcp_wmem;

These lines revert to the default every time I reboot but the rest of the tweaks are permanent
[Android Software/Hacking General [Developers Only]] Ryuinferno:
If all changes are applied except those, then I can only say that those files cannot be manipulated using your values because those are actually kernel related...you can only modify it if the value is allowed, no adding/deleting files are allowed...or maybe you have to delay the excecution of those commands by adding 'sleep' because some things can't be changed at boot time...and one more thing, since you have Test.log, init.d is definately working for you, so what happens next is totally dependent on your scripts, nothing to do with my methods anymore as the aim is only to enable init.d...;)
[Android Software/Hacking General [Developers Only]] Ryuinferno:
New method released! :D

v1.0

init.d support through an app!!!​

But how? :confused:

Concept:

I have recently learnt some linux scripting and was searching for a method to enable init.d scripts support for my phone which has a stock kernel. Inspired by this thread by iridaki, I finally managed to get init.d working in my phone!!! :D However, I thought of the other users who still do not have a proper custom recovery...how are they gonna flash zip packages? And if it has to be done manually, it requires a lot of typing, changing file permissions etc....a very tedious process...

Therefore, I've decided to come up with a script to automate this process!!! *Drum rolls*...lol

BUT now, with the aid of Androguide.fr (creator of Pimp My ROM), we managed to integrate the script into an app to save the hassle of typing commands in terminal emulator! With just a button click, the commands will be carried out! With just a button click, the app will verify whether is there init.d support or not! :D

Features:

- Utilises install-recovery.sh (if your kernel supports that, but of course, but most do...:)) to enable init.d scripts (busybox run-parts required)

- Will add lines in install-recovery.sh if it already exists (will not replace install-recovery.sh because certain apps such as Link2SD requires that to work), creates it if it doesn't

- Creates the init.d folder with correct permissions

- Adds 2 init.d scripts: one for testing (shows time of execution), another to ensure that the scripts in init.d folder always have the correct permissions

- Adds sysinit in /system/bin, will add the required lines if it already exists

- Deletes duplicate files and lines to ensure the least of errors

Requirements:

- a rooted phone of course...:p

- busybox with required applets (especially run-parts), if not sure what is this, just install this by Stericson: Link and please reboot after installing before running this script...:)...use "normal install" method, don't use "smart install"...

Instructions:

1. Download the apk.

2. Install the apk like any normal app.

3. Launch the app.

4. The rest are pretty self-explanatory...;)

Screenshots:

**To check whether init.d is really working or not, reboot your phone and navigate to /data...you should find a Test.log in there...If it is present, congrats, you have a WORKING init.d support! :)

Download:

If you have already read all the instructions and understand them, then click here to download:

Uni-init v1.0.apk

Credits:

Thanks to:

Androguide.fr for the android app base! :D

Feel free to posts questions below...I will try my best to help...:)...By the way, those who used the app and found that it works, please leave a post here, stating you phone model, android version and ROM...thanks! :) but don't just leave comnents saying 'it doesn't work' etc...give more details if possible...:)

Please don't mirror / modify my work, ask for permissions first...;)​
[Android Software/Hacking General [Developers Only]] twwillyin:
my phone cant reboot

pls help me!!

after i installed busybox i forgot to reboot. then i proceed with the next step. it works just fine until i reboot my phone for the last step. now it stucks at samsung galaxy y. what to do??
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Flash a fresh firmware via ODIN...:)

You don't have to install busybox again...usually when you root your phone, busybox will also be installed...
[Android Software/Hacking General [Developers Only]] twwillyin:
but my phone cant restart after that. i still stuck at samsung galaxy y page.

---------- Post added at 11:36 PM ---------- Previous post was at 11:27 PM ----------

pls help me i cant on my phone at all. did it take long time to reboot? because my phone do not seem to open.

---------- Post added at 11:57 PM ---------- Previous post was at 11:36 PM ----------

pls anyone can help me this is really urgent. this is the only phone i have. pls3x
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Okok...chillax...you most probably have soft-bricked your phone...and I see that you are a new user...:)

First things first, do you know how to flash a firmware via ODIN? Check the forum section for your device for more info on this...

If you do not mind about your data in your phone, you can try to reboot into recovery to factory reset your phone...it might solve your problem...
[Android Software/Hacking General [Developers Only]] shawner47:
Can't seem to get it to work

This doesn't seem to want to work for me. I tried both the term and the apk and both say that it was succesful but I don't get the test.log file in /data.

I did a bit of poking around to try and get it going, I went through the troubleshooting steps and when I got to using SManager I set it to run at boot and root. Just as a test I let it it run right then as well and it told me there was a syntax error: 'else' unexpected.

Attached is the screenshot of SManager and a copy of the install-recovery.sh file. Any guesses? This is on a rooted stock Bionic ICS.

Thank you!
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Your install-recovery.sh seems to be utilised by your device...but it restores stock recovery at boot...which does not really matter...for now, make a backup of that file and run the app again...;)
[Android Software/Hacking General [Developers Only]] SinAkira:
I had the same issue too so i just changed it a little bit :o and worked :laugh:

With SolidExplorer make a new file named 00test and paste this script (and DO NOT flash!) into system/etc/init.d.

Change the permissions of the init.d folder and of the file 00test into rwxrwxrwx (if you change permission, you'll see that the X (for execution) will not been checked)

Reboot

Test it

:o
[Android Software/Hacking General [Developers Only]] Ryuinferno:
This has nothing to do at all with his problem...this script gets generated automatically...
[Android Software/Hacking General [Developers Only]] shawner47:
That was it! I don't know why I didn't think to just try that. Probably because I was afraid that it would bork it somehow. Looks like I have init.d now! Thank you! Now to decide what kind of mischief I want to get in with it. :victory:
[Android Software/Hacking General [Developers Only]] twwillyin:
my phone does not stuck anymore..i've reboot into recovery and reset my phone but i cant open my gmail..i cant install anything from play store since my i cant sign in my gmail account..
[Android Software/Hacking General [Developers Only]] alberan:
Thanks @Ryuinferno, I instaled the apk and worked fine... I have test.log, now what to do, uninstall it (the app) or keep it installed?

Cheers
[Android Software/Hacking General [Developers Only]] Ryuinferno:
You must sign in to your google account but I don't know what's wrong...if there is no account in use, once you launch play store it will prompt you...

You can uninstall it...;)
[Android Software/Hacking General [Developers Only]] lys0529:
Motorola XT531 with gingerbread（2.3.4 Chinese fireware） works well，thanks a lot！
[Android Software/Hacking General [Developers Only]] NicoCaldo:
I have check and init.d in my devices is active thanks!

Inviato dal mio LG-P690 con Tapatalk 2
[Android Software/Hacking General [Developers Only]] pepoluan:
Hello @ryuinferno, I had thought this looked like something you'd cook up... and it is! Heh :D

Just a question : Why 'Normal Install' instead of 'Smart Install'?

-- Sent from a GT-I8150 running ICS perfectly well. F'U, Sams#!t --
[Android Software/Hacking General [Developers Only]] logout20:
htc wildfire s ..GB 2.3.5 sence......works well thnx man
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Howdy pal! Yeah...init.d is really useful and powerful, and I utilise scripts a lot...:D...but people just don't really appreciate stuff that is slightly technical...:sly:...at least things here are cleaner than the seeder thread...

I suggested normal install because many users do not know how smart install works, which may risk doing something wrong...so it is better for them to use normal install and install all applets again...:p
[Android Software/Hacking General [Developers Only]] pepoluan:
Ahaha, I see :D

Thanks for the frank explanation... thusly I'll still be using Smart Install but with special attention paid to problematic situations ;)

BTW, just in case anyone is wondering: no this is not for my phone, but for my El Cheapo tablet (an Ainol Novo 7 Crystal), running JB but sadly no CM10 yet. At least, not a stable one yet. Since the user of this tablet will be the Missus, I figure I'll save myself from countless nights on the sofa by not mucking with its stability ;)

-- Sent from a GT-I8150 running ICS perfectly well. F'U, Sams#!t --
[Android Software/Hacking General [Developers Only]] vvvvv5:
Working fine on Sony Xperia S running MIUI 4.11.5!!
[Android Software/Hacking General [Developers Only]] Luna 99:
Thanks so much

its working on my rooted S On HTC Wildfire S Stock Rom Stock Kernel Android 2.3.5.

Thanks for your work i relay appreciated it.:good::cool:
[Android Software/Hacking General [Developers Only]] eep1:
Just used it on Tribs 3.6
[Android Software/Hacking General [Developers Only]] raciborski11:
It works great, stock ROM for XperiaP .54. Methods I used, terminal. :)
[T-Mobile, Samsung Galaxy SIII] xXxShAmRoCkxXx:
Just a heads up, I had been running beats on my s2 since it came out, and I installed it on my new s3, and it froze me in boot. I installed it under the stock kernel and rom, with just root. ended up having to do a restore to get past it. anyone having luck with it on any of the custome roms/kernels or know of a solution or another comparable app?
[T-Mobile, Samsung Galaxy SIII] crazaytalent:
Welp im usin the Ac!d Audio tech hack that has beats included... as well as a bunch of other sound mods, and its awesome

you can find iit in the link below... hope it helps!

http://xdaforums.com/showthread.php?t=1883315
[T-Mobile, Samsung Galaxy SIII] Teo032:
I think there's a couple floating around. Not sure though... just came across through my readings
[T-Mobile, Samsung Galaxy SIII] falcons2:
I'm running the freegs3 rom and it has the awesome beats included and it makes music so much better
[Motorola Atrix 2] WraithTDK:
The ICS OTA update keeps failing on my A2. I rooted it quite some time ago, and I don't really remember what method I used. As I recall, I initially used super one click, but it became un-rooted some months ago when they the OTA update was released that added emergency updates and a few other tweaks. I then used the first exploit available to root the phone.

I imagine that root access is the most likely culprit, so I did a factory reset; and put in blank microSD card just for good measure, but somehow, it was STILL rooted. I tried unrooting with super one click, and during the process it says

Shell rooted...false

su rooted...True

and continues to say that no matter how many times I try to unroot it. I seem to be stuck. The only other possibility is that it won't update because I'm visiting my wife's family in Canada; but it ALERTED me to the update, and it DOWNLOADS it just fine, so I would imagine that is should install it regardless. Someone help me out?
[Motorola Atrix 2] theundecided:
yes im a noob...please help me not to be

I tried updating and ended up haveing to wipe to the original 2.3.5 install...then update all the way back...unfortunently I think that will kill your root.....

I was having your issue now I am not and am on 4.5.1 but un-rooted till I can find a way to root it again...

hope that helps
[Motorola Atrix 2] WraithTDK:
I was able to un-root it, from what I can tell. I found the exploit I used and there was an un-root option. Root check says it's lokced down, so does super one click, but it still won't update; so I suppose it's probably just more of AT&T's crap. I guess I'll know when I get back to the states next week; I'm just impatient.

Then again, I waited this long for the official OTA, fighting back the urge to just install the leak, so I guess I'm not TOO impatient.

I just want my freaking update!
[Motorola Atrix 2] dk-v1:
Having root will not affect being able to OTA update.

What else have you done to your phone?
[Motorola Atrix 2] WraithTDK:
Nothing. I've even un-rooted it. My next step is to try to locate a stock ROM and flashing instructions, roll it back and see if that helps. Can anyone point me in the direction for that.
[Motorola Atrix 2] WraithTDK:
Aaaaand now I've screwed myself up even further. Tried to flash back to 2.3.5 and it's failing at step 6/20. Guess I'll have to go dig up the 2.3.6 stock, which will put me all the way back at square 1.
[Motorola Atrix 2] SeekerLoki:
Sounds like you are trying to use the unmodifed 2.3.5 FXZ. Read this. It has everything you will need to recover.

Good luck!
[Motorola Atrix 2] WraithTDK:
Yup. That was the problem with that step. I'm not sure WHAT was going on when I was on 2.3.6, but that thing did NOT want to take the update. Going down to 2.3.5, then OTA to 2.3.6 FINALLY allowed me to OTA to ICS. Thanks everyone!
[Galaxy Note II Accessories] hyelton:
I contacted them about otterboxes and they said this
[Galaxy Note II Accessories] anonymous572:
This is normal. Same story as Galaxy Note. They told this shi.t to everyone who email them about case for Galaxy Note. After Galaxy Note released at USA they quickly released their case. Just wait for USA sales of Note 2. They don't care about europe and asia buyers.
[Galaxy Note II Accessories] DMax99:
Agree....I remember starting a petition for it when the note 1 first came out....we ended up having quite a large number of names...and they never cared...but the cases came out very soon after the US note 1 came out....

They don't care about international buyers at all
[Galaxy Note II Accessories] Kiahnlliya:
I suppose it's not good business for an American company to make cases for a device that isn't sold by the carriers over there, it's understandable of course. When the US Note II comes out, they will probably make cases for it, unless the Note II fails to grab the attention of US buyers.

It's not that they don't care. There are no German or English manufacturers who make cases for US-exclusive handsets either, I don't think... It's just not good for business, I imagine.
[Galaxy Note II Accessories] DMax99:
It's all about profit making. ...
[T-Mobile Samsung Galaxy S II SGH-T989] Diumlol:
I called T-Mobile asking what voids a warranty and the lady told me that I can do anything I want to my phone and it doesn't void the warranty! As long as it isn't physical or liquid damage.

I think that's pretty cool because from what I've read, doing anything like that to your phone voids your warranty.
[T-Mobile Samsung Galaxy S II SGH-T989] josh8901:
Well, she may had not been aware, but rooting your phone and installing custom roms also voids your warranty :p
[T-Mobile Samsung Galaxy S II SGH-T989] Diumlol:
yeah, probably.

too good to be true hehe
[T-Mobile Samsung Galaxy S II SGH-T989] jr_718:
Custom ROMs.. rooting voids warranty... physical damage, lost, stolen, water damage is all covered

Under warranty.. I believe $130.. since assurion handles those this now.
[T-Mobile Samsung Galaxy S II SGH-T989] PJcastaldo:
Warranty covers only things that are defective, like screen dieing or speakers going out things like that...

Damage and water damage cracked screen and things like that are covered ONLY if you pay for insurance .. and its a 130$

Rooting will VOID your warranty but won't affect insurance ..

Also, don't listen to T-Mobile reps... they don't know much and will steer you wrong.
[T-Mobile Samsung Galaxy S II SGH-T989] jcnbama:
I thought there was something on XDA TV about how these big companies wanna act like rooting voids your warranty but if call them and know what your talking about then they would have to complete a warranty repair. It's a episode from a few months back. Look it up. Good stuff.
[T-Mobile Samsung Galaxy S II SGH-T989] tickerman:
This is true. I bricked my phone because of a custom ROM that was not built correctly. I luckily had warranty still on it and they sent me a brand new one FREE OF CHARGE!!
[T-Mobile Samsung Galaxy S II SGH-T989] Nugenrules:
if you get the 8 dollar plan, physical damage and water damage is eh. I think it's an amazing deal, does anyone not agree?
[T-Mobile Samsung Galaxy S II SGH-T989] vassosman:
If you have that plan and do mess something up, you could always run it over with your car (or something a little more civil) :p
[T-Mobile Samsung Galaxy S II SGH-T989] Alarmmy:
Do you have an insurance, or just a regular warranty. Did you call Tmobile or samsung?
[T-Mobile Samsung Galaxy S II SGH-T989] napafats:
or just 15 sec in microwave.
[T-Mobile Samsung Galaxy S II SGH-T989] sirdowski:
+1.

Bad kernel flash bricked my phone and got a full warranty replacement.
[T-Mobile Samsung Galaxy S II SGH-T989] kienkham:
Same here. I flashed a custom ROM. Don't know how I bricked it. Can't get into download mode with the three button methods. The phone just started and then get into boot loop right away. Brought it to T-mobile store and play dump a little bit. The guy at the store order my replacement for $20 processing fee. Got my new phone last week. They received my return this Monday. Have not hear from them so I asummed it is okay. I got lucky because my phone will be out of warranty on October 24th.
[T-Mobile Samsung Galaxy S II SGH-T989] tdizzle404:
I heard T-Mobile is warranty replacing our sII's with ones S's lol.

Any one get one?
[T-Mobile Samsung Galaxy S II SGH-T989] blackangst:
Why would they do that?
[T-Mobile Samsung Galaxy S II SGH-T989] sirdowski:
Just a future reference for anyone. Always go straight to the manufacturer or third party when possible. T-mobile F-ing charges you BS fees for everything.
[T-Mobile Samsung Galaxy S II SGH-T989] jonb39:
When you do a warranty on the Black Galaxy S II right now, they give you the option of another Black S II or an HTC One S. It's been that way for a week or two. The reason they are doing that is because of low replacement inventory for the Black S II. If you choose the S II, your replacement will be on back order instead of the usual next day delivery. The HTC One S can be sent next day. The White S II does not have this option. Not sure why they are not offering the White S II as a replacement for the Black S II, except that they may be trying to conserve inventory on it, as it outsold the One S.
[T-Mobile Samsung Galaxy S II SGH-T989] Alarmmy:
I dont have php insurance. Can i get that option for a regular warranty