[SCRIPT][MOD]Init.d Simulator [Simulate init.d compatibility for kernels without it!] - Android Software/Hacking General [Developers Only]

The init.d simulator
Simulates init.d compatibility, for kernels without it!​
INTRODUCTION
Init.d scripting and modding is an essential part of the android modding community, and devices without that feature buildin or without even ROMs/Kernels build for them, are missing out.
Luckily there's many apps out there that allow files to be executed during boot-time, some even made for the soul purpose of simulating the init.d feature. But they all take space, maybe even a lot of it, and slow down the boot process. This script doesn't.
It installs an script into android that will be called during bootup.
If the init.d folder doesn't exist for some reason, it creates it, otherwise it eecutes all files inside /system/etc/init.d.
It also prints a log file into /system/etc/init.d/INTILOG.log so the user can see what files were executed.
HOW TO USE & REQUIREMENTS
All you need to do is to download the script and run it as root. Smanager from PLayStore is recommended.
Also you need busybox installed for the script to function properly
THAT'S IT!
DOWNLOAD & CHANGELOG
Version 1.2 Click me!
Changelog:
Code:
Version 1.2
- Fixed Logging
- Fixed file executing
- Fixed a bug that prevented the whole script from running
- Fixed installing and updating
Version 1.0
Initial release
Thanks to for my tester:
- @pbedard
Ask before using my work in yours and add proper credits
Donations aren't expected, but are appreciated
XDA:DevDB Information
Init.d Simulator, Tool/Utility for all devices (see above for details)
Contributors
_Bon_Bon
Version Information
Status: Beta
Current Stable Version: 1.0
Stable Release Date: 2015-10-05
Created 2015-10-05
Last Updated 2015-10-05

please specify the instruction to install.. I try run used script manager but failed..

afeeq said:
please specify the instruction to install.. I try run used script manager but failed..
Click to expand...
Click to collapse
Did you run it as root? It will say Done when it's installed
And if the script gave an error please tell me what error

_Bon_Bon said:
Did you run it as root? It will say Done when it's installed
And if the script gave an error please tell me what error
Click to expand...
Click to collapse
what do you mean run it as root? any specific apps?

Moderator, please delete this project

Related

[APP][4.1+][ROOT] Odin Package Creator v1.3

Previously to create a Odin flashable package you need a Linux distribution.
So I created this light and simple application to do the job easily.
To create a package compatible with Odin is necessary UStar(Uniform Standard Tape ARchive)
compression by POSIX, Android does not support this type of compression, So it was necessary
to use the original GNU tar cross-compiled to ARM.
I created this application after my device(I9070) has come into loop after flash a kernel
under development. The recovery of my device is not in a reserved partition
but with the ramdisk, if the kernel does not run the recovery does not work.
Not wanting to install a firmware because it would lose my data, I had to create a functional
kernel flashable by Odin using a Linux distribution.
Features
Create any single package, it is of a kernel, recovery, etc.
Create multiple files in one package like firmware.
Generate MD5 for package to Odin check.
Requirements
Any device running Android 4.1.2+
Latest busybox and Root.
Changelog
Release 1.3 - STABLE
Reduced the number of calls BufferredWrite() on Logger()
Now the BufferredWrite() is called only if input is valid.
Improved the accuracy of controls, now the result
comes from OnPostExecute() and not the catch block in AsyncTask.
Updated method to install binary(Recently got an LG device and saw
that OPC was unable to mount /system, but now it works!)
Now I can say that OPC is stable for use.
Click to expand...
Click to collapse
Release 1.0
Initial TESTING release.
Click to expand...
Click to collapse
Release 1.01
Fix statusbar color issue.
Updated screens to Lollipop.
Click to expand...
Click to collapse
Release 1.1
Fix app orientation issue.
Improved app stability.
Now you can create multiple files in a package as firmware!
Click to expand...
Click to collapse
Release 1.2 BETA
Fixed all errors when installing the binary!
Improved stability (Fixed misc issues).
Click to expand...
Click to collapse
Get it on DOWNLOAD page.
If you need something to dump your partitions, can use my UAPM application.
XDA:DevDB Information
Odin Package Creator, App for all devices (see above for details)
Contributors
ferreirawax
Version Information
Status: Stable
Stable Release Date: 2015-01-08
Current Beta Version: v1.2
Beta Release Date: 2015-01-02
Created 2014-12-28
Last Updated 2015-01-08
How to use Odin Package Creator?
First you need the file you want to create the package, for example a Kernel,
You need to rename your file to the same name on the firmware. If your device
kernel has the name "kernel.bin" in the firmware, you need to rename your file
to "kernel.bin" and create the package using that name.
How to create "firmware" using Odin Package Creator?
Create a folder and place the files inside, Open the application and choose to create
a multiple package, select all files in the folder and give an output name. Remember to
use the same file names that are in the firmware!
Invalid Package on Odin
Invalid package happens when the error in package name, for example if the
kernel of your device is called "kernel.bin.md5" on firmware you should use
"kernel" as output, For if you leave "kernel.bin.md5" the output will be
"kernel.bin.md5.tar.md5" and Odin will accuse invalid package.
Error installing binary
This error can happen when the application can not read the sdcard or when you can
not mount the /system partition. Share log(located in /sdcard/OdinCreator/Common/outputs.txt)
here to me solve the problem on your device.
New release v1.01
I cant download?.....
hazri1974 said:
I cant download?.....
Click to expand...
Click to collapse
Try now
New release v1.1
New BETA release guys!
Thank you for this work!
New v1.3 release guys!
Release 1.3 - STABLE
Reduced the number of calls BufferredWrite() on Logger()
Now the BufferredWrite() is called only if input is valid.
Improved the accuracy of controls, now the result
comes from OnPostExecute() and not the catch block in AsyncTask.
Updated method to install binary(Recently got an LG device and saw
that OPC was unable to mount /system, but now it works!)
Now I can say that OPC is stable for use.
Click to expand...
Click to collapse
PS: I have not received any feedback, but someone besides me has managed to create a package and install normally on your device?:fingers-crossed:
ferreirawax said:
New v1.3 release guys!
PS: I have not received any feedback, but someone besides me has managed to create a package and install normally on your device?:fingers-crossed:
Click to expand...
Click to collapse
Hi Mate
This looks really interesting!
Ill give it a go over the weekend just in case something goes really wrong haha but i will report back of course!
Ed
ferreirawax said:
Previously to create a Odin flashable package you need a Linux distribution.
So I created this light and simple application to do the job easily.
To create a package compatible with Odin is necessary UStar(Uniform Standard Tape ARchive)
compression by POSIX, Android does not support this type of compression, So it was necessary
to use the original GNU tar cross-compiled to ARM.
I created this application after my device(I9070) has come into loop after flash a kernel
under development. The recovery of my device is not in a reserved partition
but with the ramdisk, if the kernel does not run the recovery does not work.
Not wanting to install a firmware because it would lose my data, I had to create a functional
kernel flashable by Odin using a Linux distribution.
Features
Create any single package, it is of a kernel, recovery, etc.
Create multiple files in one package like firmware.
Generate MD5 for package to Odin check.
Requirements
Any device running Android 4.1.2+
Latest busybox and Root.
Changelog
Get it on DOWNLOAD page.
If you need something to dump your partitions, can use my UAPM application.
XDA:DevDB Information
Odin Package Creator, App for all devices (see above for details)
Contributors
ferreirawax
Version Information
Status: Stable
Stable Release Date: 2015-01-08
Current Beta Version: v1.2
Beta Release Date: 2015-01-02
Created 2014-12-28
Last Updated 2015-01-08
Click to expand...
Click to collapse
Can u port it for ics or gingerbread
ferreirawax said:
New BETA release guys!
Click to expand...
Click to collapse
Can this be used to flash a full firmware like the Odin used in flashing samsung firmwares?
Eg.MODEM,PDF etc
use case ?
ferreirawax said:
Not wanting to install a firmware because it would lose my data, I had to create a functional
kernel flashable by Odin using a Linux distribution.
Click to expand...
Click to collapse
how about a non-wiping stock rom ? it preserves /data
usually people have the ROM image on hard disk from where they can extract kernels , boot.img, ... asf. maybe quicker than with an app , no ?
ferreirawax said:
Previously to create a Odin flashable package you need a Linux distribution.
So I created this light and simple application to do the job easily.
To create a package compatible with Odin is necessary UStar(Uniform Standard Tape ARchive)
compression by POSIX, Android does not support this type of compression, So it was necessary
to use the original GNU tar cross-compiled to ARM.
I created this application after my device(I9070) has come into loop after flash a kernel
under development. The recovery of my device is not in a reserved partition
but with the ramdisk, if the kernel does not run the recovery does not work.
Not wanting to install a firmware because it would lose my data, I had to create a functional
kernel flashable by Odin using a Linux distribution.
Features
Create any single package, it is of a kernel, recovery, etc.
Create multiple files in one package like firmware.
Generate MD5 for package to Odin check.
Requirements
Any device running Android 4.1.2+
Latest busybox and Root.
Changelog
Get it on DOWNLOAD page.
If you need something to dump your partitions, can use my UAPM application.
XDA:DevDB Information
Odin Package Creator, App for all devices (see above for details)
Contributors
ferreirawax
Version Information
Status: Stable
Stable Release Date: 2015-01-08
Current Beta Version: v1.2
Beta Release Date: 2015-01-02
Created 2014-12-28
Last Updated 2015-01-08
Click to expand...
Click to collapse
Looks promising bro. Will surely give it a go this weekend. ! !
Khizar Ali said:
Can u port it for ics or gingerbread
Click to expand...
Click to collapse
If demand is great for 2.3+, I will make a special version for 2.3-4.0.
natibongo said:
Can this be used to flash a full firmware like the Odin used in flashing samsung firmwares?
Eg.MODEM,PDF etc
Click to expand...
Click to collapse
This application does not flash odin packages as Mobile Odin. This application is used only to create Odin packages.
Yes, you can create a complete firmware with Odin Package Creator and install using Odin/Mobile Odin.
mai77 said:
how about a non-wiping stock rom ? it preserves /data
usually people have the ROM image on hard disk from where they can extract kernels , boot.img, ... asf. maybe quicker than with an app , no ?
Click to expand...
Click to collapse
At that time I was using a custom ROM.
I created a package using own ROM Kernel. Remembering that my device did not enter the recovery, for he uses the recovery from the ramdisk.
This varies depending on the situation.
ok
ferreirawax said:
If demand is great for 2.3+, I will make a special version for 2.3-4.0.
Click to expand...
Click to collapse
Please!
much appreciated, this will for sure come in handy :highfive:
Sent From S3 USER
ferreirawax said:
Previously to create a Odin flashable package you need a Linux distribution.
So I created this light and simple application to do the job easily.
To create a package compatible with Odin is necessary UStar(Uniform Standard Tape ARchive)
compression by POSIX, Android does not support this type of compression, So it was necessary
to use the original GNU tar cross-compiled to ARM.
I created this application after my device(I9070) has come into loop after flash a kernel
under development. The recovery of my device is not in a reserved partition
but with the ramdisk, if the kernel does not run the recovery does not work.
Not wanting to install a firmware because it would lose my data, I had to create a functional
kernel flashable by Odin using a Linux distribution.
Features
Create any single package, it is of a kernel, recovery, etc.
Create multiple files in one package like firmware.
Generate MD5 for package to Odin check.
Requirements
Any device running Android 4.1.2+
Latest busybox and Root.
Changelog
Get it on DOWNLOAD page.
If you need something to dump your partitions, can use my UAPM application.
XDA:DevDB Information
Odin Package Creator, App for all devices (see above for details)
Contributors
ferreirawax
Version Information
Status: Stable
Stable Release Date: 2015-01-08
Current Beta Version: v1.2
Beta Release Date: 2015-01-02
Created 2014-12-28
Last Updated 2015-01-08
Click to expand...
Click to collapse
Thank you so much for tool with apk file work direct with devices !! but on S3 devices it has big size that odin can't flash !! if u can please make the loop size for some devices has different system type of back up method to work !!

NaruHaxorModv1.0

To Start off im trying to get this to work in all aspects of android including main OS and recovery for any device
ANTI-CELEBRITE HACK​
To begin i have found a way to block any and all form of usb data pull while the system is in opperation
This is done by blocking / shutting down all USB traffic other then charging. My main issue i am coming across is figuring out how to get this same mod to run inside a custom recovery.. anybody Interested in helping please let me know and test things out.
My current mod is attached and uses the init.d script and secondary scripts inside /bin the commands are "usb-on" and "usb-off"
The Init.d script is in place so that during boot it automatic locks out the USB
WARNING DO NOT INSTALL OVER A FRESHLY INSTALLED ROM
make sure that when you install this its over a working rom that already has the user data setup
-------------------DISCLAIMER----------------------
by installing this you cannot hold anything against me if you brick your ROM
-----------------------------------------------------
if you have please ask nicely and ill email you the install zip to remove the init.d script (or you can just use recoveries built in file manger if you have one)
Please let me know of any bugs and if you wish to help out in making this for recoveries please let me know as well
Enjoy
XDA:DevDB Information
AntiLawHax, Tool/Utility for all devices (see above for details)
Contributors
NaruHaxor
Version Information
Status: Testing
Current Stable Version: v1.0
Stable Release Date: 2015-01-10
Created 2015-01-11
Last Updated 2015-01-11

[MOD][SCRIPT]BonBon's Init.d Simulator

The init.d simulator
Simulates init.d compatibility, for ROMs / KERNELs without it!​
INTRODUCTION
Init.d scripting and modding is an essential part of the android tweaking community, and devices without that feature build-in or any replacement ROMs / KERNELs build for them, are missing out.
Luckily there's many apps out there that allow files to be executed during boot-time, some even made for the soul purpose of simulating the init.d feature. But they all take space, maybe even a lot of it, and slow down the boot process. This script doesn't.
It installs a script into android that will be called during bootup.
If the init.d folder doesn't exist for some reason, it creates it, otherwise it executes all files inside /system/etc/init.d.
It also prints a log file into /system/etc/init.d/INTILOG.txt so the user can see what files were executed.
HOW TO USE & REQUIREMENTS
- You need busybox installed for the script to function properly
If you lack one, use mine from here
To use the script, you have to run it, either by terminal:
Code:
su
/directory/where/you/downloaded/the/script/Initd_Simulator
And let it do its magic.
Or, you can use Smanager, from PlayStore [Recommended]
Navigate to where you downloaded the script using Smanager and run it with root enabled.
THAT'S IT!
DOWNLOAD & CHANGELOG
Version 2.1 Click me!
Changelog:
Code:
Version 2.1
- Fixed mounting
- Fixed small bugs
- Improved root check
Version 2.0
- Rebuild the whole script
- Cleaned the code
- Made init.d status checking more accurate
- Made the user-interface better looking and more convenient
- Implemented error free init.d simulation
- Implemented non-destructive init.d simulation
- Improved logging
Version 1.2
- Fixed Logging
- Fixed file executing
- Fixed a bug that prevented the whole script from running
- Fixed installing and updating
Version 1.0
Initial release
Ask before using my work in yours and add proper credits
Donations aren't expected, but are appreciated
XDA:DevDB Information
_Bon_Bon's Init.d Simulator, Tool/Utility for all devices (see above for details)
Contributors
_Bon_Bon
Version Information
Status: Stable
Current Stable Version: 2.1
Stable Release Date: 2016-03-01
Created 2016-02-27
Last Updated 2016-03-01
Reserved
_Bon_Bon said:
Reserved
Click to expand...
Click to collapse
in line 50 etx=etc
52 -f1=-d\ -f1
125 .sh is missing...
These three are main mistakes in your script sir..

ARAI V1.1: Android Root App Install V1.1

ARAI V1.1​
ARAI stands for Android Root App Installer, it is a simple batch script intended for people to new to the rooting scene, but that doesn't mean it can't make quickly setting up freshly rooted phone easier for seasoned pros. As the name implies it installs some of the best root apps from around the web to make using the new found power in your phone easier.
Requirements:
1. An Android phone(duh)
2. The latest ADB drivers
4. The ARAI .zip file
3. A Windows PC(batch scripts don't run on OSX or Linux)
How to Use:
1. Download the files from the link farther down in the post
2. Unzip the file
3. If you want to see the apps included you can open the Apps.txt file
4. Run the .bat file and follow the prompts to either
4a. Install all included apps
4b. Install a select few apps
5. Check your Android to see if all apps have installed properly
5a. If not post about it in the reply section and I'll try to get back as soon as possible
6. Enjoy your new root apps
V1.1 Changelog
1.Added various new superuser apps
-Added Magisk
-Added SuperUser(ClockworkMod)
-Added KingoUser
-Added SuperUser(ChainsDD)
2.Fixed Viper4Android bug
-Wouldn't allow install in custom option
3.Fixed weird spacing on some menus
PS. If you would like to see any other apps included, Post them in the reply section.
DISCLAIMER: I DID NOT WRITE ANY OF THE APPS IN THIS PACKAGE AND AM NOT RESPONSIBLE FOR ANY DAMAGE DONE TO YOUR ANDROID DEVICE
BTW There is another version of this by MatrixGrenade, just wanted to everyone to know that is my old account and this is the one that will be updated from here on out
XDA:DevDB Information
ARAI: Android Root App Installer, Tool/Utility for all devices (see above for details)
Contributors
PwnedBySumo
Version Information
Status: Stable
Current Stable Version: 1.1
Created 2017-06-13
Last Updated 2017-06-23

[MODS][SCRIPTS] Zackptg5's Misc Projects

Many of you already know that I have them all of my projects listed with their respective xda threads and download links on my website, but not all of them had an xda thread. So rather than cluttering xda with a new thread for each individual mod I make, I decided to put the smaller ones here :victory:
Binaries
Cross Compiled Binaries For Android Build Script
The new home for my binary build script. Combines what was formerly GNU and Misc build scripts into one. It contains a good number of useful binaries such as aria2, bash, coreutils (with advanced cp/mv - adds progress bar functionality), curl, gawk (GNU awk), sed, vim, zsh, and more. Check it out to see the expanding list
Keycheck
Finally tracked down the source code for this. This will compile the keycheck binary so you can use vol key selections and what not. Uses a modified build script by @osms0sis. Instructions on the repo
Zip for Android
This builds the zip binary, prepared for android by cloudchou @github in addition to a build script by @osm0sis that I modified for this. Just clone the repo, cd to jni, chmod the build script, and run it
Mods
Cross Compiled Binaries For Android
This zip contains a term script which can install any number of the growing list of binaries I've managed to cross compile for android. Here's the repo where they're all stored
Codec Power Gating Disabler [Deprecated]
Another straightforward one. Disables codec power gating. It's needed for some audio mods like @chdloc's Biquads
Kernel Sepolicy Patcher [Deprecated]
Unlike most sepolicy mods out there, this one changes sepolicy at the kernel level - meaning no boot script crap so it'll work regardless of other mods/root solutions (or lack there of). You can choose between enforcing or permissive while flashing it - you can use this to switch at will to test stuff out or whatever
Module Manager [Deprecated - not needed with magisk v24]
Magisk Canary v23.x got rid of the magisk-modules-repo from the app. This term script replaces that temporarily until an in-app solution is implemented. Allows you to update and install mods with ease.
Overlay Mount Fix [Deprecated]
Fix for overlay mount related issues with magisk - often seen in oneplus devices with /product
Misc
Searx Instance
Searx is a metasearch engine with a focus on privacy. It allows you to search many search engines at once without being tracked by them - I use it to remain private while using google and to for scientific journal article searching (science tab). I have more details on what it is/setup here on my website
More will be added when I come out with them. For a complete list of all of the stuff I work on, check out my website linked at the top of this post
Audio Mod Troubleshooting Guide
XDA:DevDB Information
Zackptg5's Misc Projects, Tool/Utility for all devices (see above for details)
Contributors
Zackptg5
Earlier this week I got Android Auto in my car. I never considered that Viper4Android wouldn't work with it. I was hoping the USB Policy Patcher would fix that but it didn't. It looks like this is a problem for most, if not all people.
Has anyone found a way to use V4A while connected to Android Auto through a USB cable? If so, please explain what you had to do. Thanks.
Updated mods for new unity 2.2
Also added option to notification_helper remover to remove libvolumelistener.so
@Zackptg5
If i want to use your Bash for android in a kitkat stockrom.. then the following zip is fine?..
I extracted the main files from your zip and made a simple zip...
since in Magisk Manager ..description about your bash for android says it needs 5.0+.....
Thanks
HemanthJabalpuri said:
@Zackptg5
If i want to use your Bash for android in a kitkat stockrom.. then the following zip is fine?..
I extracted the main files from your zip and made a simple zip...
since in Magisk Manager ..description about your bash for android says it needs 5.0+.....
Thanks
Click to expand...
Click to collapse
The compiled zip is for lollipop+. If you want it for older, go to the bash build script link in the OP and compile arm binary for Api 19 (or older)
Zackptg5 said:
The compiled zip is for lollipop+. If you want it for older, go to the bash build script link in the OP and compile arm binary for Api 19 (or older)
Click to expand...
Click to collapse
Thanks for quick reply...
But I dont have a pc sir...
HemanthJabalpuri said:
Thanks for quick reply...
But I dont have a pc sir...
Click to expand...
Click to collapse
Build script is for Linux. I'll try building later today
HemanthJabalpuri said:
Thanks for quick reply...
But I dont have a pc sir...
Click to expand...
Click to collapse
Here you go, latest bash stable compiled for kitkat (API=19) (and newer) arm devices
Zackptg5 said:
Here you go, latest bash stable compiled for kitkat (API=19) (and newer) arm devices
Click to expand...
Click to collapse
Thanks a lot for your time..
and Happy New Year...
but I just place in xbin without any other files?
i.e., /system/etc/bash/bashrc
/system/etc/bash.bash_logout
/system/etc/bash.bashrc
are not needed?
HemanthJabalpuri said:
Thanks a lot for your time..
and Happy New Year...
but I just place in xbin without any other files?
Click to expand...
Click to collapse
Right. Then chmod 0755 it
Zackptg5 said:
Right. Then chmod 0755 it
Click to expand...
Click to collapse
/system/etc/bash/bashrc
/system/etc/bash.bash_logout
/system/etc/bash.bashrc
are not needed?
I saw these files in your main zip v1.8.4
HemanthJabalpuri said:
/system/etc/bash/bashrc
/system/etc/bash.bash_logout
/system/etc/bash.bashrc
are not needed?
Click to expand...
Click to collapse
They're technically not needed but can be useful. You can place them manually, or unzip the bash module zip and replace the bash binary in the arm folder in the custom.tar.xz folder with the one I attached
Added zip and zipalign binary build repos
Updated bash to v5.0 stable
Zackptg5 said:
Updated bash to v5.0 stable
Click to expand...
Click to collapse
API 19?
also why nanodroid bash is 4.*mb and yours is 1.*mb?
HemanthJabalpuri said:
API 19?
also why nanodroid bash is 4.*mb and yours is 1.*mb?
Click to expand...
Click to collapse
I have it as minimum of 21 because that's the magisk minapi so I'm just keeping it consistent. You can always compile it for 19 with my build script here: https://github.com/Zackptg5/Bash-for-Android-Build-Script
My compiled binaries are stripped which means that inessential stuff (things not required for normal functions) were removed. See more on that here: https://en.wikipedia.org/wiki/Strip_(Unix)
the Kernel Sepolicy Patcher dont work for j5 pro android 8.1 twrp says error 1 when try to install
tutibreaker said:
the Kernel Sepolicy Patcher dont work for j5 pro android 8.1 twrp says error 1 when try to install
Click to expand...
Click to collapse
Log?
That all the rom installed busybox, and i try 2 versions of it and Same results
tutibreaker said:
That all the rom installed busybox, and i try 2 versions of it and Same results
Click to expand...
Click to collapse
Can you save the actual recovery log so I can see the cause of the error? After flashing zip, go to advanced -> copy log

Categories

Resources