[Q] Init. d support? - ZenFone 2 Q&A, Help & Troubleshooting

Do we have init.d support? I can't find the folder so I assume not. I wanted to flash some scripts that will hopefully help with memory management/governor tweaks.

Hi,
Unfortunately, I don't think we have init.d support on Android 5.x yet. All the known methods that I am aware of to enable init.d support doesn't work in Lollipop. I think it has something to do with SELinux.
At the moment, I use Tasker to run scripts upon bootup. Works for me.
Cheers.

If I want to flash L speed mod, would i have to manual extract the scripts to run them at boot? It installs scripts to init.d, so would it make the folder?

wolfdude said:
I use Tasker to run scripts upon bootup. Works for me.
Cheers.
Click to expand...
Click to collapse
Can it also be done with Terminal Emulator?

Hi,
Don't think you can use Terminal Emulator. You need some ways to run the scripts upon bootup. Try check ing the playstore for any apps that can run scripts on bootup and has support for root.
Cheers.

Related

12/08 1.4 - MoDaCo Hero Patch (A2SD / root / busybox + much more)

On the back of my previous hybrid root effort, I now have an even easier root solution!
Benefits of using this...
- auto A2SD pulled from Cyanogen's ROM (muchos kudos to him...) - just create your partition (I use EXT3) and you're done!
- much easier install process than before!
- root access (with 'adb remount' permissions for full access)
- superuser APK
- busybox is installed and configured, meaning you can use apps that use things such as 'swapon' (e.g. swapper)
- /data/init.sh is called at startup so you can create your own startup commands
- if you're a bit mad (like me) you can set the system partition to always mount RW using init.sh, to save adb remount'ing all the time (this is dangerous potentially ofc!)
- MORE TO COME - gimme your requests!
[caveat: i'm pretty new to Android tweaking, so use at your own risk!]
Details and download:
http://android.modaco.com/content/h...1-1-modaco-hero-patch-root-busybox-much-more/
Changelog
1.4
- Fixed WiFI issues (tested on fresh built Hero)
- USB debugging is now enabled by default
1.3
- A2SD from Cyanogen's latest ROM (full credit to Cyanogen!)
1.2
- Performance fix
1.1
- Initial Release
Well,
First off all, thank you for putting your effort in this. I really appriciate youre work sofar.
Nick
Brill - I would like to have a go, but worried that I'll be messed up cos already rooted (XDA Method) and also applied your Update from your rooting method to get adb remount (ta!!)
Can I just apply the update zip with no problems from those other rootings?
Hugs Dayzee
Other rootings have no impact, so it's cool.
Checking out a reported WiFi issue atm however...
P
no wifi problem here, no problem with previously rooted too
busybox works fine, trying ap2sd soon
stupid question.. how do i use ap2sd now
i applied update.zip once again
any help on the appstosd ????
We need to download the application, or is it built in to transfer all apps to the sd card?? Do we need to format the card with fat32 and ext2??
No probs with my install. Not done anything with it mind you, but no probs been thrown up as a result of doing it and wifi working fine. xxx
Dayzz
Why does the wifi work for some and not for other? Maybe thoose with a root already gets a working wifi and thoose without root before applying this gets a not functioning wifi...
wifi doesnt work for me... i really need it to work.. so im reverting back until it gets fixed..
I had already rooted using method here, then updated using this method and no wifi, restored nandroid backup and wifi back again.
I have the white sim free model, not sure if that makes any differance.
Also was rooted with the 1.2 method, then gave the 1.3 a try and no wifi... Anyone figure out how to get the apps to sd working???
@atsavlis what phone do you have? sim free or locked?
modaco said:
Other rootings have no impact, so it's cool.
Checking out a reported WiFi issue atm however...
P
Click to expand...
Click to collapse
Wifi doesn't work because the wlan.ko module of the people who are having problems is compiled for a different kernel version.
To solve the wifi issue, just include your(or the one of the same build of your boot.img) wlan.ko module in the "update".
You can find it in /system/lib/modules/
enlightener said:
Wifi doesn't work because the wlan.ko module of the people who are having problems is compiled for a different kernel version.
To solve the wifi issue, just include your(or the one of the same build of your boot.img) wlan.ko module in the "update".
You can find it in /system/lib/modules/
Click to expand...
Click to collapse
Not right actually... as the original kernel is being used.
Investigating now, I probably screwed up something in the init.rc in the boot image
P
For A2SD, as with other ROMs, just ensure you have a second partition on your SD card that is EXT3, and the A2SD app will do the magic itself.
P
ext3 ok ... i formated with ext2
That should work too...
P
modaco said:
Not right actually... as the original kernel is being used.
Investigating now, I probably screwed up something in the init.rc in the boot image
P
Click to expand...
Click to collapse
Have you checked that your kernel is the same as the kernel of the people who's wifi doesnt work?
Maybe it's simple to check logcat for any error while atempting to enable wifi

Fun things to do now that we have Root!

Hey everyone, most people might already know this, but I think it would be nice to compile everything we can do with our Glide's now that we have root, feel free to add to the list!
1. Install Root Explorer or similar file explorer:
This program will allow you to access areas of the Android file system that weren't accessible before having root.
2. Install Titanium Backup:
This program allows you to backup all of your apps, app data, and settings. great if you are messing around with the phone and run into trouble, just remember to save the backup to another source in case you can't access your phone at all.
3. Supercharge your phone!! (by zeppelinrox)
go and read this thread, follow the steps and see the results! I did this and it worked. Also an interesting read.
What other cool things are you guys doing with root? post it here!
I'm on the same boat with you as root explorer and titanium backup , but never heard of supercharger till now.. I had an HTC Desire HD (still do but never use it anymore) but it wasn't my regular use phone, it was more of a "HTC Player." And I tried the supercharger, but it kept coming up as "[[: not found" which was out of the ordinary. Don't think I'll be sticking with it sadly.
Still have to do that update in an hour, really hate how AT&T doesn't allow you to "update" more than once a day.
I'm still trying to learn the in-out of modding. Not that experienced yet
doode2011 said:
I'm on the same boat with you as root explorer and titanium backup , but never heard of supercharger till now.. I had an HTC Desire HD (still do but never use it anymore) but it wasn't my regular use phone, it was more of a "HTC Player." And I tried the supercharger, but it kept coming up as "[[: not found" which was out of the ordinary. Don't think I'll be sticking with it sadly.
Still have to do that update in an hour, really hate how AT&T doesn't allow you to "update" more than once a day.
I'm still trying to learn the in-out of modding. Not that experienced yet
Click to expand...
Click to collapse
Hey, did you install BusyBox? I had trouble at first as well, then I installed a different version of BusyBox from the BusyBox installer and I installed it to a different location, Supercharger worked after that
adamdipro said:
Hey, did you install BusyBox? I had trouble at first as well, then I installed a different version of BusyBox from the BusyBox installer and I installed it to a different location, Supercharger worked after that
Click to expand...
Click to collapse
There are two busybox installer programs I use, one is from Stericson, and from JRummy16. JRummy's busybox worked for my SGS Glide, but stericson does not even install. A complete opposite to my Captivate and Infuse, I have stericson's busybox on them but jrummy's doesn't work.
If you don't like to get Root Explorer, try File Expert, it also has root access which can be activated in settings, it also has file sharing like web, ftp(s), http(s). I have both, but prefer Root explorer for it's very basic and easy to use.
adamdipro said:
3. Supercharge your phone!! (by zeppelinrox)
go and read this thread, follow the steps and see the results! I did this and it worked. Also an interesting read.
What other cool things are you guys doing with root? post it here!
Click to expand...
Click to collapse
Just curious, which supercharge setting are you using?
I tried to get the update first, but "Update is Failed" yet again, and when I tried to do script manager, it said I didn't have root access, so i was confused. Checked titanium backup, no root access either. Then I had to re-root the phone, delete bloatware. I checked titanium backup again but it said I didn't have root access, but everything else did (Script Manager, SetCPU, Busybox Installer). Supercharger is working now though.
Living the life of Trial and Errors.
doode2011 said:
I tried to get the update first, but "Update is Failed" yet again, and when I tried to do script manager, it said I didn't have root access, so i was confused. Checked titanium backup, no root access either. Then I had to re-root the phone, delete bloatware. I checked titanium backup again but it said I didn't have root access, but everything else did (Script Manager, SetCPU, Busybox Installer). Supercharger is working now though.
Living the life of Trial and Errors.
Click to expand...
Click to collapse
Hey, I think the same thing happened to me as well, after successfully getting the supercharger script to work, I went and tried to run the BusyBox installer again to find out the version I installed, and it said "Error Root access not detected"
It appeared I had root in all other apps, so I uninstalled Super User and BusyBox installer, and re installed them, now Root isn't working for any program.
adamdipro said:
Hey, I think the same thing happened to me as well, after successfully getting the supercharger script to work, I went and tried to run the BusyBox installer again to find out the version I installed, and it said "Error Root access not detected"
It appeared I had root in all other apps, so I uninstalled Super User and BusyBox installer, and re installed them, now Root isn't working for any program.
Click to expand...
Click to collapse
You have to re-root again, sorry Do you still have titanium backup? Because the busybox version for that is 1.18.4, not the recommended 1.18.2. Uninstall titanium before or after re-rooting, and get busybox installer from jRummy16. Then run the script and you should be okay.
But if you have a backup folder for titanium backup, move the folder onto the computer where it'll stay there forever.
My list:
- Static the phone's IP on your DHCP server
- Install Samba. Then create a link on your desktop to \\yourphone\sdcard or smbmount on your *nix box. Great way to transfer media.
- Install QuickSSHd, and bind on :22 (yay)
- Install your choice of full VPN services (ie. openvpn) so you don't have to constantly redial with the built-in client
- Bring up a chroot()'d Debian environment, and apt-get install build-essential; full GNU toolchain on your phone!
- Install ROM Toolbox and remove all the carrier-bundled crapware
- Overclock (running stable @ 1.2ghz, currently)
- Install Better Terminal Emulator Pro (though this doesn't require root, you can also dump a lot of useful binaries in /system/xbin; be careful!)
After all of this, you'll have a nice portable linux workstation that you can access directly via CIFS & SSH/SFTP.
lambgx02 said:
My list:
- Static the phone's IP on your DHCP server
- Install Samba. Then create a link on your desktop to \\yourphone\sdcard or smbmount on your *nix box. Great way to transfer media.
- Install QuickSSHd, and bind on :22 (yay)
- Install your choice of full VPN services (ie. openvpn) so you don't have to constantly redial with the built-in client
- Bring up a chroot()'d Debian environment, and apt-get install build-essential; full GNU toolchain on your phone!
- Install ROM Toolbox and remove all the carrier-bundled crapware
- Overclock (running stable @ 1.2ghz, currently)
- Install Better Terminal Emulator Pro (though this doesn't require root, you can also dump a lot of useful binaries in /system/xbin; be careful!)
After all of this, you'll have a nice portable linux workstation that you can access directly via CIFS & SSH/SFTP.
Click to expand...
Click to collapse
nice....i'm not surprise to see these specially from an N900 user.
Oh.....so you overclock? Is the kernel from the I9103 be used? or it's gonna screw up coz glide has keyboard?
EDIT: ooops....i just knew that there is a stock glide kernel posted, I'll test myself, thanks...
EDIT 2: thread says "for Samsung Galaxy R (I9103) only" LOL! nvm
"status indicator"
is there a way to clear out the status indicator in the pull-down notification bar? For awhile I used super status bar, but got tired of it refusing to withdraw. The "indicators" use up half the screen, and are totally unneeded.

Enable a2sd in stock rom

It's a simple procedure.I've got it working on my DDKL2.But you need a custom kernel.
1.Partition your sd card with cwm or minitool partition
2.Follow the procedures below to add init.d support
http://forum.xda-developers.com/showthread.php?t=1422061
3.Flash dt a2sd zip through cwm
http://forum.xda-developers.com/showthread.php?t=715940
4.Flash mr.maroc's pre-final 2.0 kernel by any method you want
http://forum.xda-developers.com/showthread.php?t=1550065
You can also use Terma's kernel for this.Because merruk kernel has some bugs in recovery.
you can get it here http://www.mediafire.com/?81d1acx1c19m9k5
5.Now open android terminal emulator and type the a2sd commands,it'll work
do this at your own risk
please thank the real devs who made cwm,a2sd scripts,kernels,init.d support, not me
nice tut. you can remove the step to add init.d support since it won't work on sgy. merruk kernel is already support a2sd and it should be run without any problem. if you want to activate init.d script, you can find the working step on mikstev's post about droidwall.
thnks mate.But i was unable to flash dt a2sd from merruk 2.0 cwm.So i had to flash the zip before flashing the kernel.And i think flashing scripts need init.d.So i had to add init.d support to stock rom.I've tried flashing kernel first then the script.It is somehow not working.
merruk said that his kernel is support init.d script. maybe its not really working. another option for a2sd you can use terma's kernel. it support init.d and a2sd script.
yeah, but i heard it is not booting up with stock.And merruk one is fast.Almost 2.5 fps increase in 2d alone.But the only problem is that it not restoring my nandroid.Any idea?
__________________________________
sent while doin' some burnouts
his cwm is not working for backup and restore. sometimes it has problem with update files too.
so that's why i was not able to flash a2sd script through his cwm.
_________________________________
sent while doin' some burnouts
kurotsugi said:
nice tut. you can remove the step to add init.d support since it won't work on sgy. merruk kernel is already support a2sd and it should be run without any problem. if you want to activate init.d script, you can find the working step on mikstev's post about droidwall.
Click to expand...
Click to collapse
i'm gonna try that in my stock ddla3.And will try to see if a2sd works
sent while doin' some burnouts
kurotsugi said:
his cwm is not working for backup and restore. sometimes it has problem with update files too.
Click to expand...
Click to collapse
Never try for backup and restore but for update files just unmount system and/or change update-binary file.

ASKS v1.2 security and new kernel issues

Well to assist with peeps installing new Samsung Kitkat firmwares released this year, I made a quick list of odd issues that will pop up with rooting.
The new kernal will not allow titanium backup to find su. I use super su, so depending on which su you use, you may be able to operate titanium backup.
My fix, custom kernel.
Smanager fails to use rw permissions in terminal, though you can set rw permissions in advanced.
I removed asks packages, as with knox packages, so as far as I can tell asks v1.2 has no effect and is a bridge to selinux and knox.
Will try using busybox pro intead of a generic busybox with smanager, but feel the issue is within the app its self.
Will end up using jack term as a work around, until smanger is updated.
Would like to see titanium backup updated as well. So I can use the stock kernel and be happy this Kitkat is the best and most secure without the vulnerability issues still being addressed with newer builds of amdroid.
Found I get a wee better speeds, not just by the kernel replacement, but possibley from fixes done and tuning of this build.
If I find anything new I will add, but xposed and its modules seems bug free with is new kitkat.
Ok, I found the issue with term usage with rw permission.
You must use the mount remount command when at a terminal session. Unless your terminal app has a command toggle or macro to perform the proper command without typing.
Remember to also do the mount remount command for ro to close the rw session.
Everything else seems good to go. The new security seems more in tune to linux with apps needing to be more careful with setting permissions through the system perameters.
Looks like Samsung is making headway with blocking Google apps... starting with Chrome browser. Using Boeffla kernel on 4.4.2 you must use a script to make selinux passive. Never had to do that with any kernel running bare without a kernel manager before.

how to autostart scripts?

does anyone know whats a simple way to autostart scripts in lineage OS?
like scripts that contain commands that need to be executed as root
I don't want to use an app so I wonder if there is a simple way thats already integrated in the OS.
Kernel audiutor did the trick for me because I already use it anyways.

Categories

Resources