Hi,
My device is LG G4 h-815 rooted, marshmallow 6.0 v20e.
A lot of my apps can't see the folder /emulated/0/
Thank you for your help.
Any idea ?!!
shaydzmi said:
Any idea ?!!
Click to expand...
Click to collapse
which apps?
xzfzx said:
which apps?
Click to expand...
Click to collapse
Actually, all my apps, except the stock file manager.
Some apps can show me (0) when I open it, but when I go back to the upper folder I can't go forward again.
I hope this makes sense.
shaydzmi said:
Hi,
My device is LG G4 h-815 rooted, marshmallow 6.0 v20e.
A lot of my apps can't see the folder /emulated/0/
Thank you for your help.
Click to expand...
Click to collapse
If im not mistaken when mm came out they changed they write permissions on sd card i may be wrong. But u have to make a
Sure u grant perms to all apps that need sd write. a lott of people on the g3s were having this issue. I neve did when i run mm so i dont know exactly. Just trying to spit an idea out there
TheMadScientist420 said:
If im not mistaken when mm came out they changed they write permissions on sd card i may be wrong. But u have to make a
Sure u grant perms to all apps that need sd write. a lott of people on the g3s were having this issue. I neve did when i run mm so i dont know exactly. Just trying to spit an idea out there
Click to expand...
Click to collapse
Thank you for your help.
I have no problem with the external SD card.
The problem I'm having is with internal storage, this is a little demonstration how it looks like :
When I open an app for example : Explorer, It shows me this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
When I go to the parent folder, it will become like this :
shaydzmi said:
Actually, all my apps, except the stock file manager.
Some apps can show me (0) when I open it, but when I go back to the upper folder I can't go forward again.
I hope this makes sense.
Click to expand...
Click to collapse
as the user above stated it might be a permission problem but i dont believe that is the case because /emulated/0 is the internal storage...
can you please name one app so i can check it? i am running v20d and not rooted but i dont think one letter can make the difference lol and if you can not get access with root than i dont think that it matters.
eidt: just saw you new comment i am downloading es explorer to try and look at the problem
---------- Post added at 10:56 AM ---------- Previous post was at 10:03 AM ----------
ok so i looked into it and it seems to be an android problem
it seems like some why the user t=does not have read permission
since i dont have root i can not fix it but you can (because you have root) i am guiding you blindly with out testing it...but i am sure it will not do any harm if you follow it.
first little guide so you have some kind of knowledge about what you are about to do if you dont already have.
ls - see the content of a folder
cd - enter in to a folder ( or out by ".." )
chmod - change permissions
su - use another user
for the steps:
1. download terminal emulator.
2. cd storage
3. cd emulated
4.(its a small L not a capital i) ls (just to make you sure you have the same error as me)
5. cd ..
6.(its a small L not a capital i) ls -la (just to make sure you see the permissions as me to the emulated folder(the letter on the side))
7. su root
8. chmod -R 775 emulated
and i believe your are done let me know if it worked
xzfzx said:
as the user above stated it might be a permission problem but i dont believe that is the case because /emulated/0 is the internal storage...
can you please name one app so i can check it? i am running v20d and not rooted but i dont think one letter can make the difference lol and if you can not get access with root than i dont think that it matters.
eidt: just saw you new comment i am downloading es explorer to try and look at the problem
---------- Post added at 10:56 AM ---------- Previous post was at 10:03 AM ----------
ok so i looked into it and it seems to be an android problem
it seems like some why the user t=does not have read permission
since i dont have root i can not fix it but you can (because you have root) i am guiding you blindly with out testing it...but i am sure it will not do any harm if you follow it.
first little guide so you have some kind of knowledge about what you are about to do if you dont already have.
ls - see the content of a folder
cd - enter in to a folder ( or out by ".." )
chmod - change permissions
su - use another user
for the steps:
1. download terminal emulator.
2. cd storage
3. cd emulated
4.(its a small L not a capital i) ls (just to make you sure you have the same error as me)
5. cd ..
6.(its a small L not a capital i) ls -la (just to make sure you see the permissions as me to the emulated folder(the letter on the side))
7. su root
8. chmod -R 775 emulated
and i believe your are done let me know if it worked
Click to expand...
Click to collapse
Thank you very much,
This is what I did :
Nothing happened.
It doesn't want to change permission.
shaydzmi said:
It doesn't want to change permission.
Click to expand...
Click to collapse
2 things:
1. you forgot "su root"
2.
you wrote "chmod -R775 emulated"
instead of "chmod -R 775 emulated" between the R and the 775 there is space
xzfzx said:
2 things:
1. you forgot "su root"
2.
you wrote "chmod -R775 emulated"
instead of "chmod -R 775 emulated" between the R and the 775 there is space
Click to expand...
Click to collapse
I did this, doesn't fix the problem, and I couldn't understand what is written :
shaydzmi said:
I did this, doesn't fix the problem, and I couldn't understand what is written :
Click to expand...
Click to collapse
you wrote "chmod -R 775"
instead of "chmod -R 775 emulated"
Again :
Sent from my LG-H815 using Tapatalk
shaydzmi said:
Again :
View attachment 3694608
Sent from my LG-H815 using Tapatalk
Click to expand...
Click to collapse
did it worked?...
there is no error....
do "ls" after "cd emulated" to check it if you dont get permission denied that means it worked
No, it didn't work :
Sent from my LG-H815 using Tapatalk
shaydzmi said:
No, it didn't work :
View attachment 3694739
Sent from my LG-H815 using Tapatalk
Click to expand...
Click to collapse
:-/ can you do ls -la after cd storage and upload the pic?
and you can try and do cd storage > su root > chmod 775 emulated > cd emulated > chmod 775 0 > chmod -R 775 0 > ls-la (the last is for checking) if it does not work
you can try one last thing reenter terminal than su root > cd mnt > cd user > chmod 775 0 > chmod -R 775 0 > cd 0 > ls-la and if this does not work i am out of ideas...i dont know maybe google did it in purpose somewhy.
in the end it is not such a big problem because you can still see the content of it you just cant just go back to it when browsing in any app which is not big deal because you can always reopen the app.
maybe some one else can help you
Sent from my LG-H815 using Tapatalk
Sent from my LG-H815 using Tapatalk
It is a big deal to me, because I'm not able to select a folder in internal storage as a virtual podcast, because the podcast app can't enter 0.
Sent from my LG-H815 using Tapatalk
try "cd /sdcard"
Related
Has anyone managed to get Debian running on the Hero (as per the instructions in the Dream forum?)
P
I tried but I'm stuck because ext2.ko needs to be compiled for the Hero (managed to boot debian IN recovery mode with the custom image but not under the stock hero cupcake) and I haven't really had the time to look how to do that.
Also, I had hard time installing debian because of weird sh behaviour (looks like it's also cupcake's fault) and needed to modify the install script so it uses busybox tools.
I was getting a fail on the 'modprobe ext2', because of the lack of kernel modules.
Chmod 4755 on the sdcard also fails because of the way it's mounted, you need to run the installer from somewhere else instead.
P
su <installer.sh does work, but sometimes chmod just says "Operation not permitted" and mount fails when using the stock utils on my phone, using busybox seems ok, and I belive that I'm rooted correctly, so I don't know why some chmod fail.
Can ext2.ko be compiled alone or does someone need to rebuild a brand new kernel for the hero ?
ext2, ext3 & other are compiled into the current hero kernel.
Have you tried to compile a kernel from the magic 32a sources that htc released? maybe it boots on hero too (i'll try today, if i have time)?
What does modprobe actually do?
I guess it's important, because when I try and start debian, it all dies horribly and reboots the device.
Not had time or inclination to really investigate yet!
P
modprobe is a wrapper that calls insmod and rmmod(-r option).
modprobe loads a kernel module into the kernel using insmod
In this case, ext2 seems to be needed in order to mount debian.img (looks like it fails there, even if ext2 is compiled into the kernel). No idea about what makes mount fail, but I know that it works in recovery and doesn't in android
If you want to reseach a little about debian on the Hero, I suggest stripping out the reboot line in bootdeb, you will save a lot of time.
No, I didn't try to compile anything for the Hero personally, basically beacuse I have no clue about how to do so (yet)
OK so the normal mount command won't mount debian.img, but 'busybox mount' will.
Woohoo, success!
My doing 'rm /system/bin/mount' this makes 'bootdeb' use the busybox mount instead, and hey presto!
P
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'll build debian support into the next custom ROM...
P
Here is my installer.sh btw... I copied the debian.img to /sdcard/debian/debian.img but everything else to a new directory called /data/debian. This allows chmod 4755 on the installer.sh file.
I used the 2.1 zip from here.
P
Code:
su <./fsrw
modprobe ext2
clear
rm -f /data/local/bin/fsrw
rm -f /data/local/bin/bootdeb
rm -f /data/local/bin/unionfs
rm -f /data/local/bin/installer.sh
rm -f /data/local/bin/mountonly
mkdir /data/local/mnt
clear
cp -f fsrw /system/bin
cp -f bootdeb /system/bin
cp -f unionfs /system/bin
cp -f installer.sh /system/bin
cp -f mountonly /system/bin
cd /sdcard/debian
chmod 777 *
cd /system/bin/
chmod 4777 *
cd /
clear
echo " "
echo "VERSION 2.1"
echo "Custom Debian Bootloader is now installed! Quick huh?"
echo "This process does NO damage to your Android underlying OS!"
echo " "
echo "Courtesy of http://www.androidfanatic.com"
echo "Installer by Mark Walker (ghostwalker)"
echo " "
echo "To enter the Debian Linux console just type 'bootdeb'"
echo "PS: Be sure to run /scripts/onetime.sh as root from the shell after your FIRST 'boot'."
P
modaco said:
Here is my installer.sh btw... I copied the debian.img to /sdcard/debian/debian.img but everything else to a new directory called /data/debian. This allows chmod 4755 on the installer.sh file.
I used the 2.1 zip from here.
P
Code:
...
[b]
cd /system/bin/
chmod 4777 *
[/b]
...
P
Click to expand...
Click to collapse
suid for all /system/bin/ ????
That's from the standard provided installer.sh script.
I don't see any issue or danger with that tho? If you prefer you could do just do the files individually.
P
well... with
Code:
cd /system/bin/
chmod 4777 *
every executable on /system/bin will be executed with the permissions of the executable's owner, and everyone have rwx access to every single binary in /system/bin
What exactly can you do with Debian?
You sohuld be able to do anything on your phone you can do with a full debian distro.
Shame there's no hero with a hardware keyboard tho!
P
modaco said:
You sohuld be able to do anything on your phone you can do with a full debian distro.
Shame there's no hero with a hardware keyboard tho!
P
Click to expand...
Click to collapse
Yeah I figured that out lol, but what can you do with a debian distro?
Still fails here, no idea about what to do.
# busybox mount -o loop,noatime /sdcard/debian/debian.img /data/local/mnt
mount: mounting /sdcard/debian/debian.img on /data/local/mnt failed: No such file or directory
/sdcard/debian/debian.img and /data/local/mnt both exist, and this line works in recovery
Any idea ?
EDIT : Fixed it !
In bootdeb, I needed to replace "mknod /dev/loop2 b 7 0" with "mknod /dev/loop0 b 7 0"
Maybe I'll rebuild a debian zip ready for the hero with a proper install script, or even as an update.zip when I'll look into android customisation
BTW (offtopic) : I'm also really intrested in a stock android (like Cyanogen roms for the G1) with mods for the Hero (with Flac patches for example), and maybe donut ! I'll be glad to help if you need.
EDIT 2 : Also, I don't really like how the script is done. In a world of android multitasting, we only can run one debian shell at the time ?
My idea is easy to do (I think) :
- Don't make bootdeb run chroot directly
- Make a debshell script that will launch a debian shell
- Make a debshutdown script that shuts down debian and doesn't reboot the phone if you throw it arguments.
OR : Make a big debian script that parses the command line and do what the 3 different scripts do, and do like the classic bootdeb if no argument is providen
I hope I explained what I think well
I DIDN'T need to do that, how weird!
P
Why Debian?
Why would we wan't to run Debian(=linux) when we have android(=linux)??
I'm also a bit worried about the permissions in /system/bin.. This means that everyone can make changes to every binary that Android has..
Virusses are not yet in the open, but you really make it very easy to exploit your phone (imagine a virus which acts as a dialer!!)
Hey,
I've been Modding my Nexus all day long (despite the strong possibility of failing my next exam ) Whatever, anyway... Is there a possibility of making a MOD that would prevent the stock SMS/MMS app from auto-converting SMS's to MMS? i have no plan for MMS with my carrier so when i convert to MMS it's never sent... and i HATE using third party apps when the stock has everything i want..
So, Please Devs, take that into consideration, i've seen it done on Galaxy Note development so i still have hope for it to be done on the awesome developers phone ( the developers are the awesome.... and the phone )
Just noticed this tonight... awful feature for me as well as like you I have no MMS in my contract.
Please someone create an option to turn this off.
+1
I like using the stock messaging app too and would like an option to turn this off if possible.
Just one pump post if there is a developer that might be interested!
(Not gonna raise this post again, it's just this once, don't rage )
I'd love this too, this is my main gripe coming to this phone. I'd of hoped one of the many custom roms would've picked this up and changed it.
I don't see why google can't just give you the option to change it.
Sent from my Galaxy Nexus using XDA App
Maybe use a third party app to split the messages. Or idk if stock can do that
Sent from my SPH-D700 using Tapatalk
Not too hard. Was actually messing with the code last night. I'll see about getting it done tomorrow.
Sent from my Galaxy Nexus using Tapatalk
You could try kik.
Resun said:
Not too hard. Was actually messing with the code last night. I'll see about getting it done tomorrow.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
Sounds promising... many thanks in advance
This is the solution:
- decompile Mms.apk
- change value for "smsToMmsTextThreshold" in mms_config.xml inside res/xml/ folder. 4 to 100 for example...
- compile
The big problem is I can't compile after... I have problem with apktools/dependency: framework-res.apk and/or systemUI.apk won't work for now. And I have no time to find what is the problem... If a great master could find this post it will be very good for us!
Juno-First said:
You could try kik.
Click to expand...
Click to collapse
Thanks, been doing this a while
---------------
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It will take a longer amount of time depending on how long your message is, the one I sent myself was 12 "parts", and took 4 minutes. It will auto convert at 20 parts now. Will work on adding splitting option, but not going to be any time soon.
Figured this was for GSM, tested on LTE fine, but let me know if it doesn't work.
Just used adb to push it over the stock Mms.
Mms.apk
Resun said:
Thanks, been doing this a while
---------------
It will take a longer amount of time depending on how long your message is, the one I sent myself was 12 "parts", and took 4 minutes. It will auto convert at 20 parts now. Will work on adding splitting option, but not going to be any time soon.
Figured this was for GSM, tested on LTE fine, but let me know if it doesn't work.
Just used adb to push it over the stock Mms.
Mms.apk
Click to expand...
Click to collapse
Hey do you think you can do this to the dark themed MMS.apk? I'll link to the thread.
Thanks alot for your work!
http://forum.xda-developers.com/showthread.php?t=1423638
DDRFAN said:
Hey do you think you can do this to the dark themed MMS.apk? I'll link to the thread.
Thanks alot for your work!
http://forum.xda-developers.com/showthread.php?t=1423638
Click to expand...
Click to collapse
Sure. Give me a few minutes, I'll post it.
---------- Post added at 10:06 PM ---------- Previous post was at 09:29 PM ----------
Here's the Dark Theme Mms.apk by santacruzdz.
Dark Themed Mms
Resun said:
Sure. Give me a few minutes, I'll post it.
---------- Post added at 10:06 PM ---------- Previous post was at 09:29 PM ----------
Here's the Dark Theme Mms.apk by santacruzdz.
Dark Themed Mms
Click to expand...
Click to collapse
Thank you so much! I really appreciate it .
Resun said:
Sure. Give me a few minutes, I'll post it.
---------- Post added at 10:06 PM ---------- Previous post was at 09:29 PM ----------
Here's the Dark Theme Mms.apk by santacruzdz.
Dark Themed Mms
Click to expand...
Click to collapse
You my friend, are my hero!!! Thank You So Much!!!
Thanks!
This is exactly what im looking for. The only problem is that in still a noob when it cones to android and modifying it.
So I dont know where to copy the file to/ install it.
Ive got adb and my phone (Galaxy Nexus) is rooted.
So i need some more detailed instructions.
The answer is probably not too hard to find in these forums,
But i also wanted to ask what other mods etc you would suggest/ have done for your galaxy nexus/ android phone.
All my googleing seems to find is that i can get free wifi tethering or similat things that my phone can already do.
Ive got lots of tweaks that i use on my ipod touch that i would like to find for my phone .
Eg.
Activator
Sbsettings
XBMC -> xbmc . org it's awesome
Etc
Thanks for any help
ZeuBug said:
This is the solution:
- decompile Mms.apk
- change value for "smsToMmsTextThreshold" in mms_config.xml inside res/xml/ folder. 4 to 100 for example...
- compile
The big problem is I can't compile after... I have problem with apktools/dependency: framework-res.apk and/or systemUI.apk won't work for now. And I have no time to find what is the problem... If a great master could find this post it will be very good for us!
Click to expand...
Click to collapse
Didn't even come across this one (I usually only ever use gTalk to talk to folk), but I've added it in to my ROM now too Cheers for finding this one!
-TheAwesome- said:
This is exactly what im looking for. The only problem is that in still a noob when it cones to android and modifying it.
So I dont know where to copy the file to/ install it.
Ive got adb and my phone (Galaxy Nexus) is rooted.
So i need some more detailed instructions.
The answer is probably not too hard to find in these forums,
But i also wanted to ask what other mods etc you would suggest/ have done for your galaxy nexus/ android phone.
All my googleing seems to find is that i can get free wifi tethering or similat things that my phone can already do.
Ive got lots of tweaks that i use on my ipod touch that i would like to find for my phone .
Eg.
Activator
Sbsettings
XBMC -> xbmc . org it's awesome
Etc
Thanks for any help
Click to expand...
Click to collapse
Remount your /system partition in adb:
1. adb shell
2. su, only if you have a $ prompt
3. mount -o remount,rw -t yaffs2 /dev/block/mtdblock03 /system
4. exit
5. adb push Mms.apk /system/app/Mms.apk
Sent from my Galaxy Nexus using Tapatalk
Resun said:
Remount your /system partition in adb:
1. adb shell
2. su, only if you have a $ prompt
3. mount -o remount,rw -t yaffs2 /dev/block/mtdblock03 /system
4. exit
5. adb push Mms.apk /system/app/Mms.apk
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
Thanks for the reply.
It's not working though. I think it's not correctly making the /system partition rw.
This is what happens:
adb shell
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock03 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock03 /system
# exit
exit
adb push Mms.apk /system/app/Mms.apk
failed to copy 'Mms.apk' to '/system/app/Mms.apk': Permission denied
any ideas?
-TheAwesome- said:
Thanks for the reply.
It's not working though. I think it's not correctly making the /system partition rw.
This is what happens:
adb shell
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock03 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock03 /system
# exit
exit
adb push Mms.apk /system/app/Mms.apk
failed to copy 'Mms.apk' to '/system/app/Mms.apk': Permission denied
any ideas?
Click to expand...
Click to collapse
Sounds like you're on Linux? When you get the permission denied, it's usually if you're running adb without root. Kill the adb server, adb kill-server, then run it again with root permission. If it wasn't mounting it properly, it would give you something about being a read-only system.
How to make your own init.d script
Hey fellow XDA users!
I'm creating this thread as I've seen a countless number of times the same question asked (literally hundreds)
'How to I set (_____) on boot?'
Finally I have come around to answering that question! This thread will allow you to control system/kernel parameters on boot
Now many of the kernel devs around the HOX forums have created some pretty epic kernels with tons of features which can be modified as much as the user wants and now I'll be showing you how to set these parameters on boot without the use of apps! :laugh:
Requirements
Rooted
Busybox
Custom Rom with Init.d Support (Most custom Rom's, check in OP of Rom thread)
A Root File Explorer (We're going to do this through the phone)
Stock ROM does not support init.d
If you're on a stock rom, you can easily add init.d support using Ryuinferno's very very helpful thread!
Enable Init.d Support
Once you've done that, come back and follow the instructions
Now to begin, let's look at a typical init.d script
Code:
#!/system/bin/sh
#CPU
echo pmc > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#Smart Dimmer
echo 1 > /sys/devices/tegradc.0/smartdimmer/enable
#Fast Charge
echo 1 > /sys/devices/platform/htc_battery/fast_charge
#S2W
echo 1 > /sys/android_touch/sweep2wake
OK, now to a new user this may seem quite confusing but once broken down it can be easily understood:
#!/system/bin/sh = This is required at the start of every init.d script
echo .... = Sends the command
'<insert value here>' = You can put a value after 'echo' and it will send that value to the file you have shown the path to, e.g. 'echo 1 >...'
>/.... = Specify the path and file in which to change on boot
So for example if I put this in my script:
echo '1' > /sys/devices/system/cpu/cpu0/cpufreq/gpu_voltage
I am changing the file 'gpu_voltage' to 1, allowing gpu voltage to be enabled on boot (currently only XM's & Alex-V's kernel)
Similarly with the command:
echo '0' > /sys/class/leds/button-backlight/auto_bln
I am disabling auto-bln on boot
Hopefully after you've read all of that, you've understood a little more about init.d scripts
Now let's actually create some scripts
Instructions
We'll be using a file explorer on Android since Window's editors don't format the text correctly
1. Create a file using your choice of file explorer, I'm using Root Explorer and put it in /system/etc/init.d/
2. Open the file and write the following into it:
#!/system/bin/sh
3. Then choose which file you want to modify on boot and what value you want to change it to, and write the echo command and path into the file
For example: echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor - (for interactive governor on boot)
echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq - (for 1.2ghz on boot)
Now there's some things to look out for when doing this:
• You need to make sure you're pointing to the file not just folder when entering the path in '> /....'
• You need to make sure you put the spaces in the right places and don't put any spaces in random places
• When entering multiple values you need to put the values in quotation marks like this "....." - so for example if I want to set max GPU speed I would do this:
echo "416 416 416 416 304 304 247 247" > /sys/devices/system/cpu/cpu0/cpufreq/gpu_oc
• Also if you put a '#' in front of the line of text then it ignores that line, as you can see in my example I have a line that says '#CPU'. This is just to tell me I'm making modifications to the CPU and so I put a # in there so that line is ignored (the echo command below it is still carried out)
• You can do all the commands in one script and do as many as you like!
The various parameters that can be controlled are most likely on the OP's of the respective kernel threads (it would be ridiculously long if I were to put them all in this thread)
4. Once you're done, save and exit the file
5. Then rename it with a number in front, this number will decide which init.d script will run first (lower the number the earlier it's run on boot)
So for example I named my file: 25kerneltweaks
It doesn't really matter what number you put but just make sure there's no other scripts running after which will also change kernel parameters (leave them but just give your script a higher number)
Almost done now!
6. The final thing you have to do is set permissions:
Now you won't be able to use ES File Explorer for this step as it just can't set the right permissions for init.d scripts for some odd reason, preferably use Root Explorer but others should work (except ES)
Set permissions as rwx-rwx-rwx (shown in the image)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you don't have Root Explorer or a good substitute you could also do this through terminal emulator:
To do that enter this into emulator (press enter after every line)
Code:
su
chmod 777 /system/etc/init.d/insertfilenamehere
And permissions should be set
And that's pretty much it folks
You have successfully created your own init.d script!
Many people prefer this method as you don't require apps to set stuff on boot, now it'll just be done automatically for you :good:
Btw this will work on any android device, so if your a wandering googler (is that even a word ) searching for a guide like this, it should work on your phone/tablet as long as you fulfill the requirements
Hope you guys found this useful, it's the first thread I've made so sorry if it's a little rough around the edges and
Press thanks if I helped and please rate the thread, I'd greatly appreciate it!
now all who have this questions can make their own script every time they ask if somebody else can do -.- ... good guide mate i always do that with smanager but some ppl are then confused ._.
One-X-master said:
now all who have this questions can make their own script every time they ask if somebody else can do -.- ... good guide mate i always do that with smanager but some ppl are then confused ._.
Click to expand...
Click to collapse
Haha thanks man!
I actually only made it because I seen you reply to someone who was asking about scripts on Xmister's thread and I thought 'Damn I'm tired of these questions'
But yeah hopefully people find this useful :thumbup:
Sent from my :tank:
Headless_monkeyhunta96 said:
Haha thanks man!
I actually only made it because I seen you reply to someone who was asking about scripts on Xmister's thread and I thought 'Damn I'm tired of these questions'
But yeah hopefully people find this useful
Sent from my :tank:
Click to expand...
Click to collapse
then you know how i'm tired of these questions i hate those simple questions which even are mentioned and also asked in google...i searched in google and found really MANY of those question, for example for scripts etc which are really easy....why not even try in google play? i searched a long time ago...and i found smanager...one of the easiest way to make scripts
Thanks, man. This was really needed.
May I add a link to this in my thread?
csec said:
Thanks, man. This was really needed.
May I add a link to this in my thread?
Click to expand...
Click to collapse
Yeah sure man
Sent from my :tank:
Thanks for this thread man!
Was really useful since I didn't like using apps to set my stuff on boot but didn't know how to do it with scripts
Really good guide :good:
Great Guide, well written and presented.
Not for me as I don't program, but great guide non the less !
Rahman2012 said:
Thanks for this thread man!
Was really useful since I didn't like using apps to set my stuff on boot but didn't know how to do it with scripts
Click to expand...
Click to collapse
matt95 said:
Really good guide :good:
Click to expand...
Click to collapse
Wilks3y said:
Great Guide, well written and presented.
Not for me as I don't program, but great guide non the less !
Click to expand...
Click to collapse
Thanks guys!
Means a lot..
Sent from my :tank:
:good:thanks alot
I made a script yesterday but when I restarted this morning the script was deleted. Do I need to place a specific place?
Sent from my HTC One X using xda app-developers app
tandeman said:
I made a script yesterday but when I restarted this morning the script was deleted. Do I need to place a specific place?
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Well it has to be placed in system/etc/init.d
That's weird though it shouldn't randomly delete. Do you have any other mods installed?
Sent from my :tank:
Maybe because it put it in sys/
Sent from my HTC One X using xda app-developers app
tandeman said:
Maybe because it put it in sys/
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Yeah your gonna have to move it to /system/etc/init.d
Follow the instructions to the letter and you should be fine
Sent from my :tank:
Thanks! I have a question: I tried to set a different max cpu frequency by using this command for my device echo 2107680 > /sys/bus/cpu/devices/cpu0/cpuinfo_max_freq
via adb shell and Root Explorer but anytimes I save the file it back to original value.
I also put a new init.d file within that command with no success. Why that?
sev7en said:
Thanks! I have a question: I tried to set a different max cpu frequency by using this command for my device echo 2107680 > /sys/bus/cpu/devices/cpu0/cpuinfo_max_freq
via adb shell and Root Explorer but anytimes I save the file it back to original value.
I also put a new init.d file within that command with no success. Why that?
Click to expand...
Click to collapse
try
Code:
$ adb root
$ adb shell
and do it all over again
matt95 said:
try
Code:
$ adb root
$ adb shell
and do it all over again
Click to expand...
Click to collapse
matt, thanks! It says about "adbd cannot run as root in production builds" but I flashed my custom ROM. Why that?
Thanks...
sev7en said:
matt, thanks! It says about "adbd cannot run as root in production builds" but I flashed my custom ROM. Why that?
Thanks...
Click to expand...
Click to collapse
Mmmhh then try to do it into recovery mode which is already set as root
matt95 said:
Mmmhh then try to do it into recovery mode which is already set as root
Click to expand...
Click to collapse
Thanks! Doing that now... (God bless my device eheh)
---------- Post added at 07:18 PM ---------- Previous post was at 06:35 PM ----------
Hi, unfortunately it doesn't work. I also made a stand-alone script (below)...
then flashed it with a new ROM but as you can see frequencies and parameters haven't changes at all... why?
I only have the NEW Nexus 7 and Nexus 4, so I am relying on you all to test...
Although it should work swimmingly!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Make Your Nexus Perfect
WHAT'S NEW?
> VER 1.5 | SEPT 10 2013
-> Quick Install quickened to 4 clicks as opposed to 6
-> Backup/Restore Menu Added
-> Backup/Restore User Apps and be able to remove backups
-> Backup/Restore Anything using keep.txt and be able to remove backups
-> How To section updated with info on Backup/Restore Menu
-> junk.txt Updated with Media and Face Unlock files
-> On the horizon: App deletion in AROMA installer
PREREQS
Nexus Device that has a system app you do not want
Grade school diploma (i.e. ability to read)
THE SKINNY
WHAT IS NIGHTLY UPDATER
Nightly Updater is an AROMA installer for those that
yearn to have the cleanest device. Since I first
owned an HTC Droid Eris, I have been wiping bloatware
off of my device. Flash foward to my latest devices -
LG Nexus 4 and the 2013 Asus Nexus 7 and there ain't
much bloatware... But, all AOSP ROMs tend to come with
at least one or two apps that I can do without (and
sometimes a lot more). Nightly Updater is a simple
tool that allows users to remove unwanted system
applications in an easy manner. NU also allows users
to customize which apps are removed.
HOW DOES IT WORK
Nightly Updater works by relying on scripts that
read txt files. When customizing your script, the
installer looks for junk.txt in the "NU" folder of
your virtual (i.e. internal) SD card. Each line that
has not been "commented out" (i.e. does not have a
"#" at the front of it) or any terms (i.e. app
descriptions) that follow a "#" are removed from the
script. This leaves Nightly Updater with a clean text
file that only has the applications you want to remove.
Review:
Custom Script is called: junk.txt
Custom Script goes here: /sdcard/NU/junk.txt
#Chrome.apk -- NOT DELETED FROM DEVICE
Chrome.apk -- DELETED FROM DEVICE
Chrome.apk #Google Browser -- AFTER "#" IGNORED
HOW DO I ADD MY OWN APPS
You can add your own apps in three ways: [1] name (without
apk), [2] name (with apk), or [3] file path.
[1] Name (without ".apk")... Just type:
Code:
Chrome
The installer will automatically know it is looking for an apk and
delete Chrome.apk.
[2] Name (with ".apk")... Just type:
Code:
Chrome.apk
I think you know what it does.
[3] Full File Path... Now, you can get a little funkier and do the entire
file path like:
Code:
/data/app/Chrome.apk
This comes in
handy for files like pre-loaded wallpapers and
ringtones you may want to remove. Be cognizant of
where the files you are removing are located! This
will become very important when telling Nightly
Updater where to scan.
By the way, Nightly Updater also recognizes wildcards.
This is great for those user apps that end up having
unpredictable file names. For example:
Code:
/data/app/com.google.android.youtub*.apk
com.google.android.youtube*
These are both ways of erasing YouTube regardless of
the "-X" at the end of the file name.
WHAT'S UP WITH SCANNING
When using a Custom Script, Nightly Updater asks
where you would like to scan for apps. By default,
Nightly Updater recommends you only scan in the
System/App folder - which is where (shocker) system
apps are located. Remember, most junk apps are located
in System/App. However, Nightly Updater has also given
the option to scan Data/App. Some developers will put
apps in the Data/App folder, so it may be useful to
remove apps from there. But NORMALLY, these are only
the apps you chose to install. The final option is
to scan EVERYWHERE. Be very cautious with this command!
Remember that it is matching what you write in
junk.txt with the scan parameter. If you accidentally
wrote "system" as an app you wanted to remove instead
of SystemTuner.apk (with full scan on)... you would
erase your system folder... that's REALLY BAD!!!
Now, if you only check this option when you are using
full path and double check your junk.txt file so that
you did not make any mistakes... YOU ARE GOOD!!!
When in doubt, post your junk.txt here and I will
check it over for you
WHAT'S THE DEFAULT SCRIPT
If you download junk.txt from the OP at XDA, then
you have seen the Default Script. The Default
Script is meant to remove apps that MOST people
would consider expendable. If you are nervous to
tinker with your own Custom Script, try running
the Default Script first. If the script deleted
an app you need or did not delete at app you want
to destroy - hit me up and I will walk you
through the steps.
MORE DIRECTIONS ARE IN THE INSTALLER
DOWNLOADS
Check the "Downloads" Tab
NU-1.5.zip - Nightly Updater Installer
junk.txt - Customizable Removal Script
keep.txt - Customizable Backup Script
BUGS
Installer will occasionally hang when you press "< Back" - Reboot Device to fix temporarily
You tell me
HOW YOU CAN HELP
Give me feature ideas
Come up with more pre-loaded apps to be added to junk.txt
SPECIAL THANKS
Patrics83 and the whole ROM Cleaner team for the inspiration of this amazing tool!!! :good:
XDA:DevDB Information
Nightly Updater, a Tool/Utility for the Google Nexus 10
Contributors
swagstr
Version Information
Status: Stable
Current Stable Version: 1.5
Stable Release Date: 2013-09-10
Created 2013-09-09
Last Updated 2013-09-10
This is a great idea! I've been doing this with shell scripts for the last few months, something I run after installing a new ROM.
One question, does the app work with system apps? The example showed /data/app/*. Is it the scam that does /data/app/* and /system/app?
Also - a nice enhancement would be able to delete an app's data/cache (but not the app) after installing a ROM.
Here's a sample from my script:
Spoiler
#!/system/bin/sh
# Mount /system rw
busybox mount -o remount,rw /system
# Variables to common directories
ei=/system/etc/init.d
tw=/sdcard/_Backup/Tweaks
sa=/system/app
# Copy bootanimation
cp $tw/../bootanimations/bootanimation-GooglePlay.zip /system/media/bootanimation.zip
chmod 755 /system/media/bootanimation.zip
# Setup init.d if needed
mkdir $ei
chmod 755 $ei
# Copy over useful scripts
cp $tw/02log $ei
chmod 755 $ei/02log
# Change build.prop to support TWC streaming app
sed -i 's/release-keys/Nexus 10/' /system/build.prop
sed -i 's/test-keys/Nexus 10/' /system/build.prop
# Remove data for problematic apps
rm -rf /data/data/com.android.providers.contacts/*
rm -rf /data/data/com.android.providers.media/*
rm -rf /data/data/com.android.deskclock/*
rm -rf /data/data/com.tmobile.thememanager/*
# Remove unwanted apps
rm $sa/Accuweather*.apk
rm $sa/Apollo.apk
rm $sa/BlueBalls.apk
rm $sa/Books.apk
sttovo said:
This is a great idea! I've been doing this with shell scripts for the last few months, something I run after installing a new ROM.
One question, does the app work with system apps? The example showed /data/app/*. Is it the scam that does /data/app/* and /system/app?
Also - a nice enhancement would be able to delete an app's data/cache (but not the app) after installing a ROM.
Here's a sample from my script:
Spoiler
#!/system/bin/sh
# Mount /system rw
busybox mount -o remount,rw /system
# Variables to common directories
ei=/system/etc/init.d
tw=/sdcard/_Backup/Tweaks
sa=/system/app
# Copy bootanimation
cp $tw/../bootanimations/bootanimation-GooglePlay.zip /system/media/bootanimation.zip
chmod 755 /system/media/bootanimation.zip
# Setup init.d if needed
mkdir $ei
chmod 755 $ei
# Copy over useful scripts
cp $tw/02log $ei
chmod 755 $ei/02log
# Change build.prop to support TWC streaming app
sed -i 's/release-keys/Nexus 10/' /system/build.prop
sed -i 's/test-keys/Nexus 10/' /system/build.prop
# Remove data for problematic apps
rm -rf /data/data/com.android.providers.contacts/*
rm -rf /data/data/com.android.providers.media/*
rm -rf /data/data/com.android.deskclock/*
rm -rf /data/data/com.tmobile.thememanager/*
# Remove unwanted apps
rm $sa/Accuweather*.apk
rm $sa/Apollo.apk
rm $sa/BlueBalls.apk
rm $sa/Books.apk
Click to expand...
Click to collapse
Most definitely works with system apps. Just add "Apollo" and scan system... /system/app/Apollo.apk is deleted! I really like your script too! Smart idea to back up init.d and boot animation!
Sent from my Nexus 4 using Tapatalk 4
swagstr said:
I really like your script too! Smart idea to back up init.d and boot animation!
Click to expand...
Click to collapse
Ok - will give this a shot when I flash again.
Please feel free to take whatever you want !!!
sttovo said:
Ok - will give this a shot when I flash again.
Please feel free to take whatever you want !!!
Click to expand...
Click to collapse
Good to hear! :good:
Also, if any of you adventurous five people out there that downloaded this bad boy want to post some results for the Manta... that would be nice (As I do not have one)
Question for you… I want to delete all the folders under a certain folder, the OS command would be like this:
rm -rf /data/data/com.android.providers.contacts/*
rm -rf /data/data/com.android.providers.media/*
Looking at the help in the junk.txt file, I'm not sure how to do this, seems I can do one file or one folder, not multiple folders?
# /path/to/file/file.txt > Deletes file.txt
# /path/to/folder/ > Deletes folder ... REMEMBER the trailing "/"
sttovo said:
Question for you… I want to delete all the folders under a certain folder, the OS command would be like this:
rm -rf /data/data/com.android.providers.contacts/*
rm -rf /data/data/com.android.providers.media/*
Looking at the help in the junk.txt file, I'm not sure how to do this, seems I can do one file or one folder, not multiple folders?
# /path/to/file/file.txt > Deletes file.txt
# /path/to/folder/ > Deletes folder ... REMEMBER the trailing "/"
Click to expand...
Click to collapse
Code:
/data/data/com.android.providers.contacts/*
Should do the trick. Still the same scripting you used to use, just easier The script does rm -rf already.
Sent from my Nexus 4 using Tapatalk 4
swagstr said:
Code:
/data/data/com.android.providers.contacts/*
Should do the trick. Still the same scripting you used to use, just easier The script does rm -rf already.
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
Sorry, it only does rm -f currently. So for now add the "*" and it will delete everything in the folder for ya! If it doesn't break anything I will add the recursive command for folders.
Hey y'all! Working on a sizable update that is trying include several things requested from different devices. Looking for a little help on the testing side. First few that hit me up will get it.
Sent from my Nexus 4 using Tapatalk 4
BIG WARNING! DO NOT use the Data Wipe in version 1.5 and below. The script does not exclude the "media" folder... As some of you know... That's the SD CARD! I just did it and it SUCKED lol It will be fixed in the next version along with many new updates
Sent from my Nexus 4 using Tapatalk 4
Yo. Working diligently on the backup/restore feature. Next update will be sick. Standby
Sent from my Nexus 4 using Tapatalk 4
I Have Deodexed Xperia M New 4.3 Firmware This work Is By Me.......
Install Instructions:::
1. Download Deodexed Flash File Here https://app.box.com/s/b5e170x0mfdbk6uoyilk Or Here http://d-h.st/VWr
2. Transfer It Into Your SD card ...
3. Goto CWM Recovery And Flash It...
4. Done & Enjoy
arshh19 said:
I Have Deodexed Xperia M New 4.3 Firmware This work Is By Me.......
Install Instructions:::
1. Download Deodexed Flash File Here https://app.box.com/s/b5e170x0mfdbk6uoyilk
2. Transfer It Into Your SD card ...
3. Goto CWM Recovery And Flash It...
4. Done & Enjoy
Click to expand...
Click to collapse
well full deodexed System only 26.3MB ?
Ben Ling said:
well full deodexed System only 26.3MB ?
Click to expand...
Click to collapse
Yes all Odex Files Are Deodexed and thts all 25 mb For othrs dont need
arshh19 said:
Yes all Odex Files Are Deodexed and thts all 25 mb For othrs dont need
Click to expand...
Click to collapse
oh yes,just look into the Xperia M system dump,most of them already deodexed...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my C1905 using Tapatalk
Please can you upload it somewhere else?
Sent from my C1905 using Tapatalk
neofactor.is3 said:
Please can you upload it somewhere else?
Sent from my C1905 using Tapatalk
Click to expand...
Click to collapse
Link Updated
Hi!
Does this work for both c1904/5?
whyzee said:
Hi!
Does this work for both c1904/5?
Click to expand...
Click to collapse
Yes.....:laugh:
Just some tips for if you haven't got CWM on your device and you want to deodex your device you can do the following (this is assuming you're on Windows and have adb set up as a variable, look it up if you don't know what I'm going on about).
1) Download the file from the OP and then extract the folders 'app' and 'framework' from the .zip file.
2) Rename the 'app' folder to 'done_app' and the 'framework' folder to 'done_framework'.
3) Copy both of the folders to the root of your SD Card, basically so when you want them on your phone it is /sdcard1/done_*/ (* being used as a wildcard).
4) Connect your device to the computer with USB debugging enabled.
5) Open up command prompt and then run the following code individually and line by line:
Code:
adb shell
su
stop
mount -o rw,remount /system
rm /system/app/*.odex
rm /system/framework/*.odex
cp /sdcard1/done_app/* /system/app/
cp /sdcard1/done_framework/* /system/framework/
mount -o ro,remount /system
reboot
This will now have your device deodexed fully. You will notice that when you reboot your phone it will say android is upgrading, this is normal.
I've attached a screenshot to show, please ignore the first time I ran 'cp /sdcard1/done_app/* /system/app/' as I ran it without the final '/' so I had to run it again.
I got endless boot....
Sent from my C1905 using XDA Premium 4 mobile app
giridhargp said:
I got endless boot....
Sent from my C1905 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Have you tried a battery pull? And which method did you use?
Sent from my C1905 using xda app-developers app
gamer649 said:
Have you tried a battery pull? And which method did you use?
Sent from my C1905 using xda app-developers app
Click to expand...
Click to collapse
Now i restored...i flashed ur zip
Sent from my C1905 using XDA Premium 4 mobile app
giridhargp said:
Now i restored...i flashed ur zip
Sent from my C1905 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I'm not the OP, I only gave a way for it to work by using the OP file with a locked bootloader (which I have).
Sent from my C1905 using xda app-developers app
can you make it for m dual
Dont Hav M Dual System dump
Just send me .odex files of app and framework in zip file if u wana deodex of M Dual... Cant Download whole system dump...
Sent from my C1905 using XDA Premium 4 mobile app
gamer649 said:
Just some tips for if you haven't got CWM on your device and you want to deodex your device you can do the following (this is assuming you're on Windows and have adb set up as a variable, look it up if you don't know what I'm going on about).
1) Download the file from the OP and then extract the folders 'app' and 'framework' from the .zip file.
2) Rename the 'app' folder to 'done_app' and the 'framework' folder to 'done_framework'.
3) Copy both of the folders to the root of your SD Card, basically so when you want them on your phone it is /sdcard1/done_*/ (* being used as a wildcard).
4) Connect your device to the computer with USB debugging enabled.
5) Open up command prompt and then run the following code individually and line by line:
Code:
adb shell
su
stop
mount -o rw,remount /system
rm /system/app/*.odex
rm /system/framework/*.odex
cp /sdcard1/done_app/* /system/app/
cp /sdcard1/done_frame/* /system/framework/
mount -o ro,remount /system
reboot
This will now have your device deodexed fully. You will notice that when you reboot your phone it will say android is upgrading, this is normal.
I've attached a screenshot to show, please ignore the first time I ran 'cp /sdcard1/done_app/* /system/app/' as I ran it without the final '/' so I had to run it again.
Click to expand...
Click to collapse
I think that in this line "cp / sdcard1/done_frame / * / system / framework / " should be framework not frame, when i change it's all ok
musclecars said:
I think that in this line "cp / sdcard1/done_frame / * / system / framework / " should be framework not frame, when i change it's all ok
Click to expand...
Click to collapse
So it should be, thank you for correcting me! I will go and change it now.
If you look at the screenshot I posted too it even says /sdcard1/done_framework/* so I definitely did mess up the code.
Will this procedure resets the settings you've made, like PIN Codes, ringing tones, linked accounts etc.. ?
Thanks!