Good day everybody!
Today I want to share with you the flashable ZIP I made to enable init.d support in our phones. Root not required!
Works for every MIUIv6 variant (including dev ones) and probably for MIUIv5 and many other phones and ROMs, although I can't confirm (the process is very similar in many phones, so I think it should work in EVERY kitkat-based ROM - and maybe in JB/LP ones).
WHAT IS INIT.D?
Google is your friend. If you don't know what init.d is you probably don't need it.
HOW IT WORKS
It checks at boot time if there are executable files in /data/init.d and executes them in lexical order. Files with executable flag unset will not be executed.
OK, but why init.d in /data?
Because every system update erases /system partition, which in turn would erase every init.d script you made or installed. Placing them in /data ensures OTA survival.
It is similar to CyanogenMod's userinit feature.
The standard directory /system/etc/init.d is created as a symlink to /data/init.d to make init.d-aware apps work without ever noticing the difference.
Features of this mod
I have included an example init.d file which creates a test file (useful to see if it works, see below)
If you never wrote init scripts, that can be used as a simple template to begin.
This mod doesn't alter the kernel in any way, so it's pretty safe to install.
HOW TO INSTALL
Requirements
CWM/TWRP recovery
BusyBox (MIUI has it out of the box)
Any KK-based ROM (maybe works on other versions too but I can't be sure about that, just try)
Instructions
Just flash this in recovery and you're all set. I flash it every week alongside MIUIv6 weekly update.
How to theck if it works
After install (and a reboot), navigate to /data/local/tmp. If you find the file init.d-test.txt, then init.d support is installed and active
CREDITS
@udda90
I tried to flash your file on my redmi note 3g with the latest miui V6 developer version and it gives me error. I am using twrp recovery.
Have you any idea what is going on?
Sent from my HM NOTE 1W using XDA Free mobile app
davorzilic said:
I tried to flash your file on my redmi note 3g with the latest miui V6 developer version and it gives me error. I am using twrp recovery.
Have you any idea what is going on?
Sent from my HM NOTE 1W using XDA Free mobile app
Click to expand...
Click to collapse
The only thing that comes to my mind is that you could have ZIP signature checking enabled. My ZIP is not signed so it will not install unless you disable it. (signature checking is a good thing, for example it keeps you from installing corrupted ROMs. Disable it only for this time.)
But I can be wrong, you told me nothing about the error you have experienced in your device. What kind of error are you seeing? Copy it here so I can be more helpful Also attach recovery.log if you can.
Thanks for very fast answer. I appreciate your efforts.
I didn't use zip verification option.
I have photographed error message in twrp so I uploading that photo.
If you have any suggestion please let me know.
Sent from my HM NOTE 1W using XDA Free mobile app
davorzilic said:
Thanks for very fast answer. I appreciate your efforts.
I didn't use zip verification option.
I have photographed error message in twrp so I uploading that photo.
If you have any suggestion please let me know.
Sent from my HM NOTE 1W using XDA Free mobile app
Click to expand...
Click to collapse
Try unmounting data and system before installing. I've heard of people solved this way, also MIUI updates sometime fail because of this.
If this won't work, would you mind to send me recovery.log? TWRP creates it in /tmp after an install. It contains exact error code and text.
If you have ADB installed in your PC you can get it by typing in terminal:
Code:
adb pull /tmp/recovery.log
(In your device that file may be named or placed differently. Search for it )
I didn't try unmouting system and data, but I found twrp log. How can I send this log file to you?
Sent from my HM NOTE 1W using XDA Free mobile app
You can attach it to a reply, or you can use a service like pastebin and write the link here, or if it's short you can write it here directly.
Log from twrp
udda90 said:
You can attach it to a reply, or you can use a service like pastebin and write the link here, or if it's short you can write it here directly.
Click to expand...
Click to collapse
Here is the log, I needed a PC to upload it.
Thanks
davorzilic said:
Here is the log, I needed a PC to upload it.
Thanks
Click to expand...
Click to collapse
OK I figured out. ZIP fails because of different partition layout between note 3G and note 4G (I tested on 4G), so it cannot mount /data and /system properly. I am writing a new ZIP that should work for you, will be ready in minutes please stay here!
If it works for you I will replace it in the first post.
Updated ZIP
@davorzilic try that. Let me know if it works!
Just to be sure, first unmount data and system.
Thanks, I will try as soon as possible. I wasn't be online since yesterday.
Sent from my HM NOTE 1W using XDA Free mobile app
---------- Post added at 11:34 AM ---------- Previous post was at 10:40 AM ----------
Still the same error message. But maybe I don't know how to unmount data and system. Twrp only give me option to mount not to unmount. I just unchecked the system and data.
Sent from my HM NOTE 1W using XDA Free mobile app
Yes that's the correct way to unmount. Please could you send me again your recovery.log? It would give me useful directions.
Related
This is something I realized when the init.d hack by naven was posted, it plain didn't work for me, and after some investigation i discovered that not all busybox versions had the run-parts applet.
It has come to my attention to that many users may not have the proper hack installed, at least the ones using my scripts, I had them check in /data for the zipaplign log and it was in fact not there.
I got it working by modding navens hack. Credit goes to him for his discovery.
Here is a link to the flashable zip. If you are using my scripts, check in /data for the zipalign log, if you don't have one, just flash this zip, reboot, and check again.
http://www.sendspace.com/file/9g6ngz
Thanks!
Edit (8/31/2011): Just so there is no confusion, this is not my new Speedy script, this is just a re-hack for init.d originally discovered by naven. This will just help those of you having problems with his hack. Obviously you need to be rooted and have recovery bootstrap.
Just flashed your zip. Log file in /data
Welcome back! Thanks for your work on the X2.
Sent from my DROID X2 using xda premium
Grapejelly!!
Sent from my DROID X2 using xda premium
Worked perfectly
Sent from my DROID X2 using XDA App
Is this a new version of your script then?
Do we have to flash this the same way with recovery (aka renaming it to update.zip) like i had to go with the manual gb update?
Nevermind, figured that out.. but why am i getting a signature verification on install? Where do i turn off sig verification?
SuBDivisions said:
Nevermind, figured that out.. but why am i getting a signature verification on install? Where do i turn off sig verification?
Click to expand...
Click to collapse
There is an option under advanced I think, in recovery, to enable/disable that.....
I dont have that option, unless now there is some other recovery peice im missing.. my recovery whichis Android System Recovery (3e) only has reboot, apply update, wipe data, wipe cache.
SuBDivisions said:
I dont have that option, unless now there is some other recovery peice im missing.. my recovery whichis Android System Recovery (3e) only has reboot, apply update, wipe data, wipe cache.
Click to expand...
Click to collapse
You need to use the modified boot -strap recovery available on this forum. D/L it & install it like any other app. When you open it, just read & follow the directions on the screen & you will get to the custom recovery where all good things flash from.
Sent from my DROID X2 using xda premium
SuBDivisions said:
I dont have that option, unless now there is some other recovery peice im missing.. my recovery whichis Android System Recovery (3e) only has reboot, apply update, wipe data, wipe cache.
Click to expand...
Click to collapse
You should be flashing this thru the Bootstrap Recovery, not the default Android Recovery.
Sent from my DROID X2 using Tapatalk
Ahh HA.. See i know i was missing something.. Thanks have been given.
Zip-align logs were not showing in /data/ for me, so I flashed this, and now they do.
I'm assuming that means the rest of the scripts weren't working either?
Cool. Going to flash this but need a quick question answered.
I have Busybox 1.19.0 installed. I downloaded "Busybox" from marketplace to install 1.18.4 but which location should I chose?
Options are /system/xbin/ or /system/bin/
Thanks
Sorry found this in original init.d hack thread:
BusyBox with run-parts binary, installed in /system/xbin - If you don't have BusyBox, you can download it from the market here.
Click to expand...
Click to collapse
hapyman said:
Cool. Going to flash this but need a quick question answered.
I have Busybox 1.19.0 installed. I downloaded "Busybox" from marketplace to install 1.18.4 but which location should I chose?
Options are /system/xbin/ or /system/bin/
Thanks
Sorry found this in original init.d hack thread:
Click to expand...
Click to collapse
You should be okay on 1.19.0 now, but busybox should always always be installed in xbin.
So which init is better or the working one?
gkitab said:
So which init is better or the working one?
Click to expand...
Click to collapse
Some people find that the re-hack (this thread) works (and the original does not), others find that the original hack works just fine. A way to test is to install my Speedy Gonzales scripts, reboot the phone, and then check in /data for a zipalign log. If not, then flash this re-hack.
I am running speedy. So should I us you init when using yours and his when trying his? How can we tell if yours is working and when using his if his is working? This is getting a bit confusing. I also noticed when I flashed speedy navens old oo got left behind. So I deleted al scripts in init folder and reflashed yours and all yours are now correct.
With his init and your script. Yours scripts are in there but no zipalign in data.
Should I start over by deleting unit folder flash your unit then speedy would that be the safe bet?
Thanks for staying.
gkitab said:
I am running speedy. So should I us you init when using yours and his when trying his? How can we tell if yours is working and when using his if his is working? This is getting a bit confusing.
Thanks for staying.
Click to expand...
Click to collapse
They are two separate things entirely. I posted the re-hack for those having troubles getting scripts to run with naven's original hack. The re-hack posted in this thread doesn't contain any init.d scripts, it's purely the hack. Like I said above, a good way to test his hack is to install my scripts (which it looks like you have), and then use a file manager like Root Explorer and navigate to /data, there should be a zipalign log, if there isn't then his hack isn't working.
Edit: Well, the biggest question is if the init hack you have installed is even working. I'm assuming you have naven's... try the above, let me know if the log is there or not.
I edited my post can you please check it and let me know what you think.
I do have his with your script.
I think I should I should delete init completely and start fresh with yours and your scripts. That sounds like safest bet. Or does naven init need to be there first then yours on top then your scripts. Thanks.
What is this?
These are pre-rooted Stock ROM Base's for Developer to use to create modified stock ROMs or for the average Joe to restore their device's to working order if they are stuck in a bootloop. You must have an unlocked bootloader and a working Custom Recovery to use this.
Downloads:
T-Mobile / Retail US - 139.11.6 - Odex ***Tested, will not go past the boot logo.
Instructions:
Put the .zip on your internal storage.
Boot up to your Custom Recovery of choice (example: Clockworkmod Recovery).
Make a complete backup of your device using the Custom Recovery, and store that backup on a computer or alternative storage.
Wipe data using the Custom Recovery.
Mount system using the Custom Recovery.
Format system using the Custom Recovery.
Install the .zip from your internal storage using the Custom Recovery.
Reboot and enjoy! (If it asks to disable recovery install, tell it not to.)
Thanks:
My testers.
The Firmware Team.
mhous33 for the base script/binary for the RAZR M DST ROM.
I'll try to get some more bases up since we now have the means to install them and have them working correctly.
Amazing!
Thanks alot man. Never hurts to have an extra backup on my Google Drive or something should the worst happen.
Flashing in 15 minutes or so, when it's done downloading.
THANK YOU for this!
I'll need the /tmp/recovery.log after the flash if anyone could provide it
Something isn't going right so I'll need it to see what isn't.
Sent from my SGH-M919 using Tapatalk 2
mattlgroff said:
I'll need the /tmp/recovery.log after the flash if anyone could provide it
Something isn't going right so I'll need it to see what isn't.
Sent from my SGH-M919 using Tapatalk 2
Click to expand...
Click to collapse
It's not booting, so I can't retrieve the file you need. Adb won't detect the device
Gonna have to restore my backup.
[edit] actually ADB is seeing it once I go to recovery... how do I retrieve the file you need?
figured it out, here is the file you requested: https://www.dropbox.com/sh/l2s290vdcokf38i/Ej6iIe2dqK
Extracted using adb while phone was in recovery, after flashing your file. Have to restore now =P
Thanks! Working on it.
Sent from my SGH-M919 using Tapatalk 2
mattlgroff said:
Thanks! Working on it.
Sent from my SGH-M919 using Tapatalk 2
Click to expand...
Click to collapse
Cheers. I can test the revised ROM whenever it's ready =)
Thanks again for your troubles, this will be the stepping stone all the ROM Cooks have been waiting for!
scorpion667 said:
Cheers. I can test the revised ROM whenever it's ready =)
Thanks again for your troubles, this will be the stepping stone all the ROM Cooks have been waiting for!
Click to expand...
Click to collapse
Updated the file, same link as OP.
I'll probably need the /tmp/recovery.log again if it fails.
Code:
adb pull /tmp/recovery.log
Thanks
mattlgroff said:
Updated the file, same link as OP.
I'll probably need the /tmp/recovery.log again if it fails.
Code:
adb pull /tmp/recovery.log
Thanks
Click to expand...
Click to collapse
On it. download eta 20 mins
No luck. Uploaded the new recovery.log https://www.dropbox.com/sh/l2s290vdcokf38i/Ej6iIe2dqK
Let me know if you need any other files/logs off the phone.
would a copy of my nandroid backup help you at all?
[Breakthrough?] After flashing your ROM I did Advanced Restore and selected to ONLY restore System (from my backup) and I managed to boot! No FC or anything - seems to work perfect. I suppose that's where the problem lies? [sidenote: I always follow the instructions in OP for flashing your ROM i.e wipe data, mount system, format system, just thought I'd mention I'm not taking any shortcuts]
I dunno when I flash the ROM it does it a little too fast (under 5s?)... faster than it took my N4 to flash a 96MB Rom lol. I wonder if it's writing to system at all.
It did that for me on the first rom, I don't know if Matt put something in the build prop to differentiate it from the stock rom
Sent on my Moto X
scorpion667 said:
On it. download eta 20 mins
No luck. Uploaded the new recovery.log https://www.dropbox.com/sh/l2s290vdcokf38i/Ej6iIe2dqK
Let me know if you need any other files/logs off the phone.
would a copy of my nandroid backup help you at all?
[Breakthrough?] After flashing your ROM I did Advanced Restore and selected to ONLY restore System (from my backup) and I managed to boot! No FC or anything - seems to work perfect. I suppose that's where the problem lies? [sidenote: I always follow the instructions in OP for flashing your ROM i.e wipe data, mount system, format system, just thought I'd mention I'm not taking any shortcuts]
I dunno when I flash the ROM it does it a little too fast (under 5s?)... faster than it took my N4 to flash a 96MB Rom lol. I wonder if it's writing to system at all.
Click to expand...
Click to collapse
Sounds like its not flashing to system at all
Shame the log isn't saying what is wrong with the ROM zip. Heck its not even showing it attempting to install the zip at all!
No sense.
Sent from my SGH-M919 using Tapatalk 2
Could it be a recovery issue? The updater script looks way different than what I usually see, normally the system is formated and flashed , sym links, permissions and finally the kernel is flashed
Sent from my A2109A using Tapatalk 4
flashallthetime said:
Could it be a recovery issue? The updater script looks way different than what I usually see, normally the system is formated and flashed , sym links, permissions and finally the kernel is flashed
Sent from my A2109A using Tapatalk 4
Click to expand...
Click to collapse
If Superuser.zip flashes its the ROM.zip as the issue.
Sent from my SGH-M919 using Tapatalk 2
New updater script?
There's missing files also meta-inf folder?
Sent from my A2109A using Tapatalk 4
flashallthetime said:
New updater script?
There's missing files also meta-inf folder?
Sent from my A2109A using Tapatalk 4
Click to expand...
Click to collapse
Once an OTA update comes out for any Moto X variant we'll have a much better idea of the META-INF folder as a whole. In the meantime everyone feel free to keep playing with it to try to get it to work right. Making small updater-script changes to re-upload the entire ROM.zip is a huge pain. Soon enough we'll have the Dev Edition and more Developers will be joining us to get everything squared away.
Thanks testers!
What is the filesystem it (Moto X)?
Jovistyle said:
What is the filesystem it (Moto X)?
Click to expand...
Click to collapse
Code:
# mount point fstype device [device2] [length=]
/boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot
/cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache
/recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery
/sdcard datamedia /dev/null
/data f2fs /dev/block/platform/msm_sdcc.1/by-name/userdata
/system ext4 /dev/block/platform/msm_sdcc.1/by-name/system
/modem ext4 /dev/block/platform/msm_sdcc.1/by-name/modem
/customize ext4 /dev/block/platform/msm_sdcc.1/by-name/customize
These,
seems pretty solid my co-worker tried it an seems great now
BLKWIDOW said:
seems pretty solid my co-worker tried it an seems great now
Click to expand...
Click to collapse
Wait, so it works now?
Sent from my XT1058 using Tapatalk 2
Is it deodex? No biggy if its not. Download link? Fantastic, getting flashing widthdrawls, shaking and i can't sleep at night
Sent on my Moto X
with the massive overhaul that is kitkat, google changed alot of files, and therefore a new way must be discovered to switch internal/external storages.
The editing vold.fstab option from 4.1-4.2 no longer works as vold.fstab was removed in 4.3, and the editing build.prop method for 4.3 no longer works.
Anyone know how to do it for 4.4?
thanks in advance
No Luck So Far
Been working for hours trying to figure this one out. Things to note is that now there are two mount points.
1) /mnt/media_rw/sdcard1 / sdcard0 (this has the actual /dev/block/vold/179:1 origin
2) /dev/fuse /storage/sdcard1 / sdcard 0
I've been unsuccessful trying any of the old build.prop tweaks. Hopefully someone smarter will come along and bang this one out.
Bump..... Stuck on 4.3 till a solution arises
Sent from my GT-I9100 using XDA Premium 4 mobile app
I've asked the compiler of the NeatKernel if he would fork it and swap out the sdcards in fstab.aries, but have yet to receive a reply....
Perhaps if you two went and posted the same, it might motivate him to do so.
Me too
alkspo said:
Bump..... Stuck on 4.3 till a solution arises
Sent from my GT-I9100 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
You got Company!
vivin007 said:
You got Company!
Click to expand...
Click to collapse
Same here! I upgraded to 4.4 and then realised that the build.prop 's changes made in 4.3 doesn't work for 4.4. Downgrading to 4.3 till there is a solution.
Still no "real" solution. but pretty convenient for me.
@fusionjack integrated swap option in the rom i was using which is slimsaber, so now i have swap
unfortunately, its only for this rom unless other rom makers incorporate it as well
alkspo said:
Still no "real" solution. but pretty convenient for me.
@fusionjack integrated swap option in the rom i was using which is slimsaber, so now i have swap
unfortunately, its only for this rom unless other rom makers incorporate it as well
Click to expand...
Click to collapse
Good news, so it's not impossible, it's just about time to see the swap method for 4.4 floating around.
I found an application that allows you to move the data from games to external sdcard, but you have to run the game through the application to play it though. Its called gl to sd, your phone must be rooted though.
Sent from my GT-I9100 using xda app-developers app
anatoliy0813 said:
I found an application that allows you to move the data from games to external sdcard, but you have to run the game through the application to play it though. Its called gl to sd, your phone must be rooted though.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Yeah I know it, but DirectoryBind is better m8. Once it moves and link the data to external you can forget about it.
I've been trying to swap the storage on my note 2 on 4.3 can abtobetell me how to do this tried so many methods and nothing works. I would really appreciate some help guys. Thanks in advance
bigevil124 said:
I've been trying to swap the storage on my note 2 on 4.3 can abtobetell me how to do this tried so many methods and nothing works. I would really appreciate some help guys. Thanks in advance
Click to expand...
Click to collapse
Try file, called "fstab.sun6i" in / folder. I keep trying, but all the changes, I made was unstable...If I'll make some progress I'll write it down
Hi im not sure if this helps but someone released a script for cm11 to swap sdcards. Worked fine on resurection for me all I tested.the thread is somewhere in galaxy2 forum I posted to his thread so one of my last replys. I will find the link and edit
http://forum.xda-developers.com/showthread.php?t=2595756
Sent from my GT-I9100 using XDA Premium HD app
swap internal sd to external
Hello
did anyone come up to a solution for this or have any info about it?
i want to swap mine too and nothing seems to work on Kitkat
thank you
rictec said:
Hello
did anyone come up to a solution for this or have any info about it?
i want to swap mine too and nothing seems to work on Kitkat
thank you
Click to expand...
Click to collapse
Hi
on kitkat, you should unpack your boot.img file, update the fstab.* files inside, repack it, and flash it.
The way the img file is built depends on your device manufacturer. I did it successfully on my mtk tablet with the tools I found in this forum.
I am pretty sure that unpack/pack tools exist for samsung as well (for example: http://forum.xda-developers.com/galaxy-s3/help/how-to-unpack-split-samsung-boot-img-t1810907 )
Good luck in your search.
tried that but it failed
seb_131 said:
Hi
on kitkat, you should unpack your boot.img file, update the fstab.* files inside, repack it, and flash it.
The way the img file is built depends on your device manufacturer. I did it successfully on my mtk tablet with the tools I found in this forum.
I am pretty sure that unpack/pack tools exist for samsung as well (for example: http://forum.xda-developers.com/galaxy-s3/help/how-to-unpack-split-samsung-boot-img-t1810907 )
Good luck in your search.
Click to expand...
Click to collapse
thank you for you reply i already try that had some trouble to flash back the boot and when i manage to do it fstab got ignored
i m currently doing that with a boot script but have to run it every time the table reboots
its not a samsung is a storex A31 based device
rictec said:
thank you for you reply i already try that had some trouble to flash back the boot and when i manage to do it fstab got ignored
i m currently doing that with a boot script but have to run it every time the table reboots
its not a samsung is a storex A31 based device
Click to expand...
Click to collapse
You have to look for the dev kit dedicated to your processor. Have a look there : http://www.slatedroid.com/topic/73913-onda-kitchen-a31-a31s/
I have a mtk based device. I found the tools in this forum. I edited the 3 fstab.* files I found, and then all worked fine.
thank you
seb_131 said:
Hi
on kitkat, you should unpack your boot.img file, update the fstab.* files inside, repack it, and flash it.
The way the img file is built depends on your device manufacturer. I did it successfully on my mtk tablet with the tools I found in this forum.
I am pretty sure that unpack/pack tools exist for samsung as well (for example: http://forum.xda-developers.com/galaxy-s3/help/how-to-unpack-split-samsung-boot-img-t1810907 )
Good luck in your search.
Click to expand...
Click to collapse
seb_131 said:
You have to look for the dev kit dedicated to your processor. Have a look there : http://www.slatedroid.com/topic/73913-onda-kitchen-a31-a31s/
I have a mtk based device. I found the tools in this forum. I edited the 3 fstab.* files I found, and then all worked fine.
Click to expand...
Click to collapse
i have those thank you did not wanted to do a entire img just to change some files on boot but it looks like i have to maybe i do some more twicks and be great
Foldermount maybe a good solution
alkspo said:
with the massive overhaul that is kitkat, google changed alot of files, and therefore a new way must be discovered to switch internal/external storages.
The editing vold.fstab option from 4.1-4.2 no longer works as vold.fstab was removed in 4.3, and the editing build.prop method for 4.3 no longer works.
Anyone know how to do it for 4.4?
thanks in advance
Click to expand...
Click to collapse
Before 4.4 I could do it by "Android Internal to External sdcard" app, but this app couldn't do the trick on 4.4 KitKat OS, so "Foldermount" could be a good solution for you. All this app does is make a image of your apps (that you want to) to sdcard. The real files are located in external sdcard and only the clone file ( of max few KB) will residue at internal sdcard. If you are a gamer, this will help you until the real solution arrives.
Good Luck.
There is real solution! Or at least it works for me.
biopsin said:
Since Android 4.2 and the intro of multiusers there is a problem with bind folders across sdcards, making any attempt on mount bind folders as root would result in visible to root only.
Solution is to fool Android with temporary hijack debuggerd to create the mount binds for us. Thanks Chainfire for this workaround!
* Download both files and rename without .txt
* edit debuggerd.mnt to suit your needs (using any other dir then /emulated/legacy/ will result in read only if browsing folders from sdcard0)
* move debuggerd.mnt to /system/bin
* move mount.sh to any place with execute permissions
* execute mount.sh with any preferred method.
cheers!
Click to expand...
Click to collapse
Quoted from http://forum.xda-developers.com/showthread.php?t=2718760.
Thank You biopsin! Thank You Chainfire!
I'm including my files, but 'mount.sh' was not really changed in practical sense.
In case of 'debugger.mnt' it all depends on Your device. You need to check which block for You is internal and which external storage. Just 'mount' command should help.
You can also use it to mount only one folder - like 'obb', which will let You keep applications data on external card.
Just use "mount -o bind /storage/sdcard1/Android /obb /storage/sdcard0/Android/obb" command in debuggerd.mnt file.
You can also have different 'debuggerd.mnt' files (of course called somehow different - like 'debuggerd02.mnt') and different 'mount.sh' files which will let You mount different things whenever You like.
Enjoy!
-----
And for easier usage You can try $cripter - https://play.google.com/store/apps/details?id=sites.mjwhitta.scripter&hl=en .
It's the best I found.
I created this file in 2012 for the EVO3D I had as a alternative to init.d scripts.
This is intended to create real performance. Not performance to create crazy benchmark numbers like done on the 3D forums before. For shiggles....I am getting 22k on AnTuTu Bench. This is a rough post as I just spent 4 hrs creating a biology study guide and I am quite tired.
*DISCLAIMER*
I AM NOT LIABLE FOR YOU JACKING THINGS UP
I have a ATT Moto X(XT1058). Rooted, unlocked, on 4.4.2....Still stock recovery. Though this should work on any Moto X.
Keep in mind this should be considered a beta as I tweak it for the Moto X and add things like I had done before.
Version 1.0
Initial Release for Moto X
Cleaned useless code from orginal that doesn't apply to our phone. Cpu 2 & 3 settings IE.
[Stock uses Interactive as the governor.
Changed settings used for the ramp up of the cpu under load
Changed settings to improve VM performance and battery life(supposedly)
Changed scheduler to noop and read ahead to 3072
Changed network settings to help optimize them
Optimized the EXT4 mounts.
Zip align files on boot - Checks them first
Installing this is quite simple...Just need to click a file in windows. That simple basicly.
Everything you need is there in one folder
No need to reboot into recovery.
Instructions
Download the zip file.
Extract the files to a folder.
Run the file Push.bat
Hit any key to keep going.
Let it reboot.
RESTORING
If you decide this is not for you...hey I got your 6.
Run the File named Restore.bat and it will replace the old postboot for you and reboot.
To Do:
Tweak Current settings and add new
Create a flashable zip
Add user customization
Sweet will test it out tommorw! Could we get some further details at exactly what if changes and tweaks? Or is that in the download
Sent from my Nexus 7 using Tapatalk
Yeah I will today. Sorry wasn't exactly awake.
The batch file is for those who still have stock recovery but rooted and unlocked or write protection disabled.
If you get a read only error pushing the files to the phone then your kernel isn't insecure. If you get the error just close the command prompt screen.
If you have a stock kernel then you need a app like adbd insecure. Buy or aquire it, lol, and check the option in the settings. It will pop up a window saying patching. Then run the push.bat file.
Custom kernels shouldn't be a problem lol. If so then who made it is stupid.
When I make the flashable zip then you won't need a app and such.
Sent from my XT1058 using xda app-developers app
southern87 said:
Yeah I will today. Sorry wasn't exactly awake.
The batch file is for those who still have stock recovery but rooted and unlocked or write protection disabled.
If you get a read only error pushing the files to the phone then your kernel isn't insecure. If you get the error just close the command prompt screen.
If you have a stock kernel then you need a app like adbd insecure. Buy or aquire it, lol, and check the option in the settings. It will pop up a window saying patching. Then run the push.bat file.
Custom kernels shouldn't be a problem lol. If so then who made it is stupid.
When I make the flashable zip then you won't need a app and such.
Sent from my XT1058 using xda app-developers app
Click to expand...
Click to collapse
Hi Southern,
Thanks for your time and effort. I have ran your tool and received an error. I have a Dev Edition Moto X with custom recovery and Eclipse (Blur based 4.4.2) Rom. Please take a look at the attached pic.
thanks
hryusha said:
Hi Southern,
Thanks for your time and effort. I have ran your tool and received an error. I have a Dev Edition Moto X with custom recovery and Eclipse (Blur based 4.4.2) Rom. Please take a look at the attached pic.
thanks
Click to expand...
Click to collapse
Install this. Your kernel is not unsecure. This will allow you to push and pull system files via adb.
http://forum.xda-developers.com/showthread.php?t=1687590
About to add the flashable zip if you want to flash it instead.
southern87 said:
Install this. Your kernel is not unsecure. This will allow you to push and pull system files via adb.
http://forum.xda-developers.com/showthread.php?t=1687590
About to add the flashable zip if you want to flash it instead.
Click to expand...
Click to collapse
Thanks! I will just wait for the flashable file, but will still download the above file just in case.
---------- Post added at 12:23 PM ---------- Previous post was at 12:16 PM ----------
Tried the flashable version and it failed. I am using TWRP 2.7 if that helps at all.
I will now try the file you suggested 2 posts above and the usual windows method.
hryusha said:
Thanks! I will just wait for the flashable file, but will still download the above file just in case.
---------- Post added at 12:23 PM ---------- Previous post was at 12:16 PM ----------
Tried the flashable version and it failed. I am using TWRP 2.7 if that helps at all.
I will now try the file you suggested 2 posts above and the usual windows method.
Click to expand...
Click to collapse
I took it down. I just looked at it and realized I got ahead of myself on the updater-script. I need to flash a recovery anyways, just hadn't had time.
but yeah if you install that app, it will let you run the batch.
southern87 said:
I took it down. I just looked at it and realized I got ahead of myself on the updater-script. I need to flash a recovery anyways, just hadn't had time.
but yeah if you install that app, it will let you run the batch.
Click to expand...
Click to collapse
Ok NP, I will try the other method and will get back to you with my findings.
---------- Post added at 12:38 PM ---------- Previous post was at 12:32 PM ----------
Everything went smooth (with the windows cmd process), phone is now restarting. I will monitor how my battery life is today and will report with my findings.
hryusha said:
Ok NP, I will try the other method and will get back to you with my findings.
---------- Post added at 12:38 PM ---------- Previous post was at 12:32 PM ----------
Everything went smooth (with the windows cmd process), phone is now restarting. I will monitor how my battery life is today and will report with my findings.
Click to expand...
Click to collapse
good deal. Maybe 2.7 doesn't play well with the X. I don't think its officially suppported. Everything I try to do gives me the same error while flashing.
southern87 said:
good deal. Maybe 2.7 doesn't play well with the X. I don't think its officially suppported. Everything I try to do gives me the same error while flashing.
Click to expand...
Click to collapse
Just FYI, 2.7 works well with all the other flashing I had to do.... Eclipse rom as well as some random additions i had to flash via the recovery, all went without an issue. I did see that 2.6.3 is the only one in the Moto X forum though.
hryusha said:
Just FYI, 2.7 works well with all the other flashing I had to do.... Eclipse rom as well as some random additions i had to flash via the recovery, all went without an issue. I did see that 2.6.3 is the only one in the Moto X forum though.
Click to expand...
Click to collapse
I figured.
No versions of TWRP are "officially" supported.
2.7 works without issue for me -- the dev (I believe its dhacker) just didn't bother making a thread for it
ahh I see. I always had HTC devices so wasn''t really a issue.
From what I read KitKat changed some stuff to do with the updater-scripts. I was starting to get pissed with this lol.
Going to add it to the OP in a second.
Hi Southern...
What is Moto Z in your signature? Which device is it?
kenosis said:
Hi Southern...
What is Moto Z in your signature? Which device is it?
Click to expand...
Click to collapse
It's supposed to be a x. Sorry hahaha
Sent from my XT1058 using xda app-developers app
Initial findings.
Ds battery monitor disabled, but I think it still is still running.
Adm check box 1 unchecked, Google now disabled. Used app ops to disable some gps permissions.
Beats music kills the data on high quality haha. Like 600 megs
Sent from my XT1058 using xda app-developers app
how can I know whether installation is successful or not successful?
kenosis said:
how can I know whether installation is successful or not successful?
Click to expand...
Click to collapse
If you go to system/etc/ and find the post boot it will be like 6 or 7kb in size as the original is 20.
That or use adb to pull it from a phone after you install it.
Sent from my XT1058 using xda app-developers app
southern87 said:
If you go to system/etc/ and find the post boot it will be like 6 or 7kb in size as the original is 20.
That or use adb to pull it from a phone after you install it.
Sent from my XT1058 using xda app-developers app
Click to expand...
Click to collapse
failed to move zipalign and int.qcom.post.boot.sh to folders.
I didn't change or screen said failed? Read only? Or did you use the flashable zip?
If it's read only error it'd saying. Your kernel isn't unsecure. There is a link to a app that can fix it. It's temporary unless you set it to start at boot.
It allows you to push and pull system files via adb.
Flashing isn't affected by this
Sent from my XT1058 using xda app-developers app
Good afternoon. As the 8 GB aren't enough for me, I've been looking for a solution. While doing so, I found the INT2EXT4 script, which mounts /data on the second partition of the SD card. The first time I flashed it (after enabling init.d support with an app) it didn't work at all. Then, I realised this script is written assuming that the second partition of the card is mmcblk0p2. But on the M4, it's mmcblk1p2 (found it out with another app).
I changed those lines on the script, but it didn't work either. I analyzed all the lines, and I can't see where the problem could be. Has anyone tried this, or could somebody help me with this issue? I think it could be really useful for a lot of users.
Another thing: flashing the file through TWRP gave me an error, so I copied the file directly to /system/etc/init.d and set the permissions manually. I hope this is not a problem, but let me know if it could be...
sounds interesting... ill take a look at it soon!
Have you checked the "adress" of internal sd? In the script there is a connection between internal and external storage so i would assume that both "adresses" need to be correct in order for the script to work. Just an opinion....
Sent from my SM-G901F using XDA Free mobile app
vader20 said:
Have you checked the "adress" of internal sd? In the script there is a connection between internal and external storage so i would assume that both "adresses" need to be correct in order for the script to work. Just an opinion....
Sent from my SM-G901F using XDA Free mobile app
Click to expand...
Click to collapse
several1989 said:
sounds interesting... ill take a look at it soon!
Click to expand...
Click to collapse
I think there's a problem with the commands that the script uses. If I try to do umount from the terminal, nothing happens. So maybe the script doesn't work in this phone, but if any of you are able to make it do so, let me know. So I think it's better to build the kernel from source, but before that make changes in the fstab file. With that, /data will be mounted at the second partition of the sdcard directly at boot time. Trying to do this now, but I'm facing some difficulties building the kernel. If I make it work, I'll post it
Testé folder Mouth playstore