yashsingh1/xdaforums huggingface dataset:
[Android General] slimcyril:
[MENTION=5514152]Paget96[/MENTION] Idk how to chmod permissions that's why I needed recovery to do the job for me & the recovery installation is a piece of cake & more accurate, but I'll send you a pic of the error in recovery once I get home
[Android General] Paget96:
Ok, send. What device you have? :D

btw, when you remove an extension you will got "sched_tuner"

open terminal:

su
chmod 755 /system/xbin/sched_tune

or if you put it inside /bin

then

su
chmod 755 /system/bin/sched_tuner

that's it :D
[Android General] slimcyril:
Ok lol got it, will post a pic once I get home in the next 2hrs
[Android General] Paget96:
Ok, post when you get the time, here is 4am at the moment, so I will check that a bit later :D but you will be informed, don't worry :)
[Android General] slimcyril:
I have s3 though
[Android General] slimcyril:
[MENTION=5514152]Paget96[/MENTION] here's the error message I get in recovery, please keep me advised?
[Android General] Senthil360:
U can also upload the updater script here, it wud be much easier
[Android General] slimcyril:
[MENTION=5514152]Paget96[/MENTION] here's the updater script
[Android General] Paget96:
Done buddy, try it now ;)

http://xdaforums.com/showpost.php?p=64671600&postcount=439
[Android General] slimcyril:
[MENTION=5514152]Paget96[/MENTION] thnx for fix on [MENTION=4629194]hoholee12[/MENTION] sched_tuner script you're just too much. Please can you write a script that clears stock browser history, cache, cookies, site data, preference e.t.c?
[Android General] Paget96:
Ahh, i can xd

btw, why you want to delete everything from the browser??? xD [MENTION=6394127]slimcyril[/MENTION]
[Android General] slimcyril:
I believe it speeds up mobile data connection
[Android General] Paget96:
Well caches are actually good, because when something is cached, next time when browser need something to load, it will load from caches and decrease loading time :D

And it will use less data since it don't need to download stuff again :)
[Android General] slimcyril:
There was a time I had trouble with my data connection & called my network provider customer service & they told me to clear it & it fix the connection issue. They also advised to clear it everytime for data connection stability :D
[Android General] Paget96:
Well when i told that caches is good, they are, but clearing is also good after some time, few weeks, maybe a month. :)
[Android General] slimcyril:
Ok got it but still include for it to be cleared it the script. :thumbup:
[Android General] Paget96:
#!/system/bin/sh

mount -o remount,rw /data
busybox mount -o remount,rw /data

browser=/data/data/com.android.NAME_OF_THE_BROWSER

for i in $browser
do
busybox rm -rf $i/*
done

make a file, and add this inside, like before

copy to /system/etc/init.d

set permissions to 755

first write a name of the browser, some devices have chrome as a default, then name will be

com.android.chrome

I'm sure that its

com.android.browser for default one

Check that inside /data/data, then just change inside the script ;)

Or you can use this package :D

#!/system/bin/sh

while true; do
mount -o remount,rw /data
busybox mount -o remount,rw /data

busybox echo -n "Enter a name of the browser: "
busybox read -r name
brw=/data/data/com.android.$name

if [ -d $brw ]; then
for i in $brw
do
busybox rm -rf $i/*
done
busybox echo "Clearing done"
busybox sleep 2
else
busybox echo "Browser doesn't exist, please type another one..."
busybox sleep 3
fi
done

Well, this for this file guide is different,

Call the file "ccleaner" copy it to /system/bin

Set permissions to 755 like before

Open terminal emulator

su
ccleaner

;)
[Android General] slimcyril:
[MENTION=5514152]Paget96[/MENTION]... hmmm you're just WONDERFUL & you could make pretty much anything.
[Android General] Paget96:
Well, in my knowledge range, I'm pretty sure that answer is yes xd
[Android General] ZipAddict:
[MENTION=5514152]Paget96[/MENTION] a.k.a. the script master...

very nice work here helping others! When i get to learning scripts i will be back here! Keep up the good work!

[MENTION=6394127]slimcyril[/MENTION]

The level of help you received here is above and beyond what is normal for XDA. This guy is exceptional! Dont forget to hit the thanks button to show him your appreciation buddy!
[Android General] Vuska:
[MENTION=5514152]Paget96[/MENTION]... is there a way di disable DVFS on Note 4 Snapdragon please ?

Dvfs disabler by wanam not working on xposed v79.
[Android General] slimcyril:
[MENTION=6832035]ZipAddict[/MENTION] done that I have & I think [MENTION=5514152]Paget96[/MENTION] is from the future, my Google play services hasn't shown any error mgs & also e.t.c
[Android General] Paget96:
Well, thanks guys for everything :D

For DVFS i will see :D First to read a bit about it ;)

Check post 3 :D
[Android General] Paget96:
Here, i hope that it will work :)

#!/system/bin/sh
if [ -d /sys/devices/14ac0000.mali ]; then
chmod 000 /sys/devices/14ac0000.mali/dvfs
chmod 000 /sys/devices/14ac0000.mali/dvfs_max_lock
chmod 000 /sys/devices/14ac0000.mali/dvfs_min_lock
fi

Source: http://ilikekillnerds.com/2015/07/increase-galaxy-s6-performance-disable-dvfs/
[Android General] Senthil360:
But this file doesn't exist in Note 4 as far as I know bro
[Android General] Paget96:
As you said that is a part of the framework, well i found source which i mentioned and made a simple code based on it, now other users who need this need to experiment and research the device to adapt code to it :D

I'm just trying to help somehow :D
[Android General] Senthil360:
Yes its a part of the framework I guess, We can fix this, ?
[Android General] Paget96:
Well, also i hope that this is a standalone file like sources said, because we can change permissions to "nothing" as i did already to stop dynamic voltage ;)
[Android General] slimcyril:
[MENTION=5514152]Paget96[/MENTION] Please help, what's the best tool or app that could root Verizon s3 running 4.4.2 without getting a yellow triangle in the recovery. I tried to boot into recovery after rooting & flashing cwm recovery from rom manager but rather got this black screen. Please help! !!
[Android General] Paget96:
I hope that this can help :)

http://xdaforums.com/galaxy-s2/orig-development/2014-01-15-triangleaway-v3-26-t1494114
[Android General] mrrocketdog:
also have you posted in the verizon s3 help thteads.

http://xdaforums.com/showthread.php?t=3253325

thats only one. many are listed in the "all forums" section.

"all i can really do is stay out of my own way and let the will of heaven be done"
[Android General] slimcyril:
[MENTION=5514152]Paget96[/MENTION] I used the triangle away & it cleared the flash counter & set the status to official but I still could not get into recovery
[Android General] Paget96:
Look here

http://xdaforums.com/showpost.php?p=39361835&postcount=6
[Android General] slimcyril:
[MENTION=5514152]Paget96[/MENTION] I have read it but they didn't solve either, they were only able to get back to their home screen which I m able to, I just wanna be able to use my phone to flash stuff in recovery

---------- Post added at 02:30 AM ---------- Previous post was at 01:47 AM ----------

[/COLOR [MENTION=5514152]Paget96[/MENTION] is there any other way to install zips without custom recovery cuz I was informed that Verizon s3 bootloader is locked & can't get a recovery on it?
[Android General] Paget96:
Well, find a way to unlock it. :)
[Android General] MSF Jarvis:
Way too tough. Most people have quit.
[Android General] slimcyril:
[MENTION=5514152]Paget96[/MENTION] & [MENTION=6552280]MSF Jarvis[/MENTION] I figured out that using safestrap is the only recovery on this device but I must be on stock rom, though it didn't say if I m able to flash zips & cool stuffs?
[Android General] Senthil360:
People here are willing to help , but thses kind of things search in respective thread or ask through pm , STAY ON TOPIC please
[Android General] slimcyril:
[MENTION=5514152]Paget96[/MENTION] if a device was unlocked for other networks & there was a rom reflash on that device, is it still unlocked?
[Android General] Paget96:
As far as I know, yes.
[Android General] slimcyril:
My system has been on read-only filesystem & have done everything within my knowledge to mount it readwrite but to no avail, I even tried a script & es file explorer please I need a script or method to remount it as rw?
[Android General] Paget96:
su

mount -o remount,rw /system

But also root can cause that, update to the latest superSU
[Android General] slimcyril:
I have the latest supersu, will that terminal command stick after a reboot?
[Android General] Paget96:
It will not

#!/system/bin/sh

mount -o remount,rw /system
busybox mount -o remount,rw /system

Try this...

Same as before permissions are 755
[Android General] slimcyril:
Ok thanks
[Android General] slimcyril:
Please is there anyway to make a flashable script or cron script that will make [MENTION=3357461]zeppelinrox[/MENTION] sclean(clear dalvik cache) script run once every week from the xbin or bin folder?
[Android General] Senthil360:
Cron is very unreliable, use tasker and direct it to run sclean once in a week
[Android General] yuzhengwen:
How is cron unreliable

Works well if configure directly

Sent from my Powerful, Awesome Z3

Running YRom
[Android General] Senthil360:
I have made one for my ROM , it works but when screen is off it only gets executed , right after u unlock the screen , This is the reason why we removed cron from L-Speed , [MENTION=5514152]Paget96[/MENTION] can confirm too
[Android General] slimcyril:
The last time I tried to use tasker it was a lil bit difficult & not sure if I was doing the right thing so could you analyze how to set it up on tasker?

---------- Post added at 02:12 PM ---------- Previous post was at 02:04 PM ----------

I believe it should work flawlessly if configured well & directly cuz I have been using xposed log cleaner by [MENTION=4335478]eyesfortech[/MENTION] over a year now & it clears all xposed logs every 5hrs.

Below is the Sclean script I have in my xbin that I need to be executed once every week same day & time.

#!/system/bin/sh

#

# SuperClean & ReStart Script (Wipe Dalvik Cache & Reboot) created by zeppelinrox.

#

line=================================================

clear

echo ""

echo $line

echo " -=SuperClean & ReStart=- by -=zeppelinrox=-"

echo $line

echo ""

sleep 1

id=`id`; id=`echo ${id#*=}`; id=`echo ${id%%\(*}`; id=`echo ${id%% *}`

if [ "$id" != "0" ] && [ "$id" != "root" ]; then

sleep 2

echo " You are NOT running this script as root..."

echo ""

sleep 3

echo $line

echo " ...No SuperUser for you!!"

echo $line

echo ""

sleep 3

echo " ...Please Run as Root and try again..."

echo ""

echo $line

echo ""

sleep 3

exit 69

fi

echo " Commencing SuperClean & ReStart!"

echo ""

sleep 2

for cachedir in /*/dalvik-*; do rm -r /$cachedir/* 2>/dev/null; done

echo " All cleaned up and ready to..."

echo ""

sleep 2

echo $line

echo " !!POOF!!"

echo $line

echo ""

sleep 2

busybox sync

if [ -f "/proc/sys/kernel/sysrq" ]; then

echo 1 > /proc/sys/kernel/sysrq 2>/dev/null

echo b > /proc/sysrq-trigger 2>/dev/null

fi

echo " If it don't go poofie, just reboot manually!"

echo ""

reboot; busybox reboot

echo " ==========================="

echo " ) SuperClean Completed! ("

echo " ==========================="

echo ""

exit 0
[Android General] slimcyril:
[MENTION=6773050]Senthil360[/MENTION]

I ran the script (install.sh) & it was installed successfully
[Android General] MBariya:
[MENTION=5514152]Paget96[/MENTION] what is difference betweeen su.d, init.d and Addon.d scripting?? And what are benefit of them.

Sorry for being so noob..
[Android General] Paget96:
su.d is like an init.d folder but main "trigger" of it is superSU by chainfire.

init.d same as for su.d but main "trigger" is device kernel.

Both are folders which handling scripts and launch them on device booting.

addon.d is a folder which contains "backup&restore" scripts. To describe this in two words OTA Surviver :D
[Android General] MBariya:
[MENTION=5514152]Paget96[/MENTION] Thanks for fast replay..

Is it possible to check/add some lines to build.prop during boot time, using su.d or init.d script??

I want to change device name in build.prop on every ota update.

Is it possible??
[Android General] Paget96:
Init.d will be erased after OTA and su.d is not directory which have "a existence" you must to create it.

Then the best way is to do manually ;)
[Android General] MBariya:
Init.d folder can be backup during OTA using addon.d script. I just found that by searching on xda. so /system/xbin and /system/etc/init.d folder will be backup in temp folder and moved back to system after OTA.
[Android General] Paget96:
You can give it a try :)
[Android General] slimcyril:
[MENTION=5514152]Paget96[/MENTION] please is there any build prop tweak or init.d script to parmanently enable USB debugging in the developer options?

Edit; found it

#!/system/bin/sh

echo 1 > /data/property/persist.service.adb.enable
[Android General] slimcyril:
[MENTION=6773050]Senthil360[/MENTION] & [MENTION=6583999]yuzhengwen[/MENTION] who said Cron is unreliable or doesn't work, please check this out - 200% working

http://xdaforums.com/showthread.php?t=2700146
[Android General] Senthil360:
I never said it doesn't work , unless its started as a daemon service in kernel or added as a sysfs entry it doesn't survive and execute on lollipop and plus ROMS when the screen is off i.e. When phone enters a state of deep sleep..

Seriously are we still discussing about this , :)
[Android General] slimcyril:
Lol if you say so but I didn't catch that from your earlier post, also check that out none of what you mentioned was integrated but it still works flawlessly even with deep sleep :D
[Android General] souler456:
[MENTION=5514152]Paget96[/MENTION]

I want to change dirty background ratio to 75 when it's "cat" output is 40... And when I do this:

if [ cat /proc/sys/vm/dirty_background_ratio = 40 ]; then

echo 75 > /proc/sys/vm/dirty_background_ratio;

fi

It's just error about some unexpected operator/operand. Can you tell me what proper execution do I need? :confused:

:D :) ;) :good:
[Android General] Paget96:
Use like this :)

if grep "40" /proc/sys/vm/dirty_background_ratio; then

echo 75 > /proc/sys/vm/dirty_background_ratio;

fi
[Android General] souler456:
It works, but there's...

As you can see, there's a "40" there, which I don't want to show on the script. How can I remove that output from the grep command? :confused:

:D :) ;) :good:
[Android General] Paget96:
grep -q

This will suppress output :)

Report back
[Android General] souler456:
Now 40 doesn't show. Thank you for the VERY quick response! :good:

:D :) ;) :good:
[Android General] Paget96:
No problem, every time ^^
[Android General] souler456:
Now another question: I want to change my dirty b.ratio to 75 when dirty ratio is 80 AND dirty b.ratio is 40, so I did this:

and I executed the script with -x, like this:

Is the output correct? If so, how can I simplify it? I just want to make sure. Since I am not really trusting myself on this :eek:

:D :) ;) :good:
[Android General] Paget96:
You typed 90 there.

Also you don't need -x just sh /script/path
[Android General] souler456:
Oh right. Sorry bout that. Is good now. Can I simplify the commands more? Or it is necessary to type two grep commands? :confused:

:D :) ;) :good:
[Android General] Paget96:
You need two because of two paths. I'm using the same way when i need that. :)
[Android General] souler456:
I am o-so-crazy about simplifying stuffs, but well, as long as it works and it's the only way, it can't be helped. :D

Thanks again, man. You awesome :good:

:D :) ;) :good:
[Android General] Paget96:
No problem, every time :)
[Android General] Paget96:
Will do a little update here soon :)
[Android General] MSF Jarvis:
DYING for it!
[Android General] souler456:
[MENTION=5514152]Paget96[/MENTION] I have a couple of questions again:

-----

1. How can I echo two or more lines on a file?

- For example, I "touch" /sdcard/999, creating a file named "999"

- Then I echoed "abc" on file /sdcard/999

- I checked "999" file and it has "abc" written on it, which is good.

- Then I echoed "xyz" on file /sdcard/999, hoping that the result would be:

abc
xyz

- But when I checked the "999" file, the "abc" text was removed, and it has been replaced to "xyz". Any thoughts?

-----

2. I made a "case" option, like this:

> (1) First Option
> (2) Second Option

- And I pressed "1" to go to first option. I made it like this:

> (E)xecute Stuff
> (B)ack to Home

The question is: How can I make it that when I choose (B), I will return to (1) and (2)?

Hope you got what I am stating here... :p

:D :) ;) :good:
[Android General] MSF Jarvis:
To avoid this, use '>>' with echo in files you don't want to be emptied out.

Call the script file again IIRC, or create a function for the first section and call it.
[Android General] Paget96:
You have echo "" > and echo "" >>

If you put > it'll overwrite everything in a file and put only thing between the quotes. With >> everything will appear on new line.

So

echo "" > /

echo "" >> /

And for every next use >>
[Android General] souler456:
Thanks, guys. It works now. :good:

I'm a total newb, so to be honest, I don't really understood what you want to state there... So... Can you please at least make a sample code for it? :confused:

:D :) ;) :good:
[Android General] MSF Jarvis:
Check here

After running the script, we can use the function

hmm

and it will display the contents from the link I mentioned.

Sample Code

function choose() {
echo "Make choice"
echo "(E)xecute"
echo "(B)uild"
read choice
}

then you can add

choose

wherever you need to give user option to choose.
[Android General] souler456:
I will study this. Thank you very much. :D

:D :) ;) :good:
[Android General] souler456:
[MENTION=5514152]Paget96[/MENTION] I copied your codes from your "vector" script hoping for a workaround on what I mentioned here, on the second part and made a sample script of it within my understanding...

#!/system/bin/sh
clear
echo "> (F)irst Option";
echo "> (S)econd Option";
echo " ";
echo -n "Choose an option (F/S): ";
read -r opt
case $opt in
f|F)echo "1. Execute Stuff";
echo "2. Back to Home";
echo " ";
echo -n "Choose an option: ";
read -r optf
if [ $optf -eq 1 ] then
echo "Some stuff executed... Exiting script.";
fi
if [ $optf -eq 2 ] then
break
fi
done;;
s|S)echo "Exiting script.";
*)echo "Exiting script.";
esac

And I can't escape the "unexpected" problems on it. What do you think I am doing wrong? :confused:

:D :) ;) :good:
[Android General] adithbalan:
This is really helping. Thanks . ?
[Android General] Paget96:
Here is a fix for it.

#!/system/bin/sh
clear
echo "> (F)irst Option";
echo "> (S)econd Option";
echo " ";
echo -n "Choose an option (F/S): ";
read -r opt
case $opt in
f|F)echo "1. Execute Stuff";
echo "2. Back to Home";
echo " ";
echo -n "Choose an option: ";
read -r optf
if [ $optf -eq 1 ]; then
echo "Some stuff executed... Exiting script.";
elif [ $optf -eq 2 ]; then
echo "Some stuff executed... Exiting script.";
fi;;
s|S)echo "Exiting script.";;
*)echo "#Invalid Option, please try again";
esac;
[Android General] slimcyril:
Please I need someone to share or make a flashable zip that'll move dalvik to cache partition bcuz I tried to convert a user app to system app with titanium backup & lucky parcher but got an error message saying "not enough space in the system rom".
[Android General] Paget96:
Why would you move dalvik to cache if you want to move app from user to system app.

Dlvik-cache is stored on /data, not on /sysem. So you'll not get anything from moving dalvik to cache partition if the reason is app moving.
[Android General] slimcyril:
I tried to make viper4android a system app but I got the not enough space error mgs, do you have any solutions to these?
[Android General] Paget96:
Yes, remove some system apps to free up space, then move V4A to /system
[Android General] slimcyril:
What system apps are safe to remove so I don't mess up some functionality on my phone?
[Android General] Paget96:
Wallpapers, live wallpapers, picoTTS(this is text to speech, you don't need it).

For others, you can replace with some lightweight apps.

Don't remove launcher if you previously don't move another to /system.

If you are not sure, ask or check the internet ;)
[Android General] robot_head:
Could you make a script that would wipe system, data and recovery, then force reboot. I know this would brick, the phone. That's my point.
[Android General] Paget96:
well you can do

su
rm -rf /system/*
rm -rf /data/*

but again it isn't that possible since after wiping one of them device will stuck and fall in random reboot.
[Android General] robot_head:
What about making it reboot once wipe is complete? Without the user swiping to reboot
[Android General] Paget96:
Huh, i think it's impossible.

[MENTION=1143630]osmosis[/MENTION] do you have any solution?
[Android General] Senthil360:
A brave dragon that I know is testing, please wait for results.
[Android General] patalao:
I'm having trouble setting a script to change opp_table(voltages).

It's giving me permission denied.

Spoiler content hidden.
[Android General] Paget96:
Check file permission.
[Android General] Senthil360:
Check permissions and also one more thing, I think u need to specify every frequency value there, "echo >" will overwrite all the other frequencies and keep only the last frequency in ur script, use "echo >>"
[Android General] Paget96:
He needs " > " on first echo command, after that must use " >> "
[Android General] patalao:
Ok.

I applied >.

Now i've got this.

Spoiler content hidden.

How can i set permissions.

Sorry but i'm a noobe on this matter but i'm trying to learn.
[Android General] Paget96:
Mount it rw.

mount -o rw,remount /sys
[Android General] patalao:
Should it be like this :

Spoiler content hidden.

I tried to set rw permissions on the script but as it is on sdcard it won't let me.

Spoiler content hidden.
[Android General] Paget96:
Also change permission form 444 to 666 ot 644 at least.
[Android General] patalao:
Still gives me error read only file system.

To change the permissions of the file i have to move it somewhere in system.

Can you have a look at it?

https://drive.google.com/file/d/0BxU2P89Oe9ZnODdjajh6elpKcE0/view?usp=drivesdk