[UPDATE][SCRIPT][OTA-UPDATE][06/08/12][NOREFLASH] OTA-Updater - Optimus One, P500 Original Android Development

So, as the name says, OTA-Updater (Script) for LG Optimus One (no, every device )
You can also use it on Linux, e.g. Ubuntu, Debian and Mint!
You need:
- A server:
I'm using Square7
- A rooted phone
- Busybox
- Terminal Emulator
This Script will not search for updates in background, you need to start the script (via Terminal Emulator) to check for updates
I'm not responsible for any damage to your phone.
PLEASE READ EVERYTHING CAREFULLY BEFORE POSTING SOMETHING LIKE
'This doesn't work!' or 'That's spamming!!!'
Guys, there is a REPORT-button, use it instead spamming the thread!!!
1. First, create your own server, I'm using Square7 or you can also use Funpic;
I recommend that you use Square7
2. Install Busybox from Play Store (Busybox Installer), if not installed. It's pre-installed on almost every ROM
3. Create a file called "version.xml"(what file (e.g. xml,txt) doesn't matter) on your server, and type in it the latest available version.
YOU NEED TO EDIT THE FILE EVERYTIME YOU UPDATED THE ROM
4. Now, create a file called "update.xml" on your phone, located in /system/ (Don't forget to mount system) and type in it the running version on the phone
So, now the script
The script should start with this:
Code:
#!/system/bin/sh
___
Check if user is running as root;
If no, then message "You are not running this scripts as root."; Abort:
Code:
id=`id`; id=`echo ${id#*=}`; id=`echo ${id%%\(*}`; id=`echo ${id%%gid*}`
if test "$id" != "0" && test "$id" != "root"; then
echo " You are not running this script as root."
exit 0
fi
___
Mount system read-write:
Code:
busybox mount -o remount,rw /system
___
Now, the script should search for updates; first download a file (I'm using .XML file; doesn't matter what file):
Code:
wget -q http://your-server.server.com/version.xml -P /sdcard/Folder/
___
Compare downloaded file with "update.xml" on /system/:
If files are the same (No update), Message: "No update available."; Abort
Else (Update available), Message: "Update available"
Code:
if diff /sdcard/Folder/version.xml /system/update.xml
then
echo "No update available"
echo "Aborted"
exit 0
else
echo "Update available!"
fi
___
Clean up folder:
Code:
rm /sdcard/Folder/*
___
Update available, download "update.zip" (Read everything carefully, if you read everything carefully, you'll know what the file should contain...):
Code:
wget -q http://your-server.server.com/update.zip -P /sdcard/Folder/
___
Unzip "update.zip":
Code:
unzip -q /sdcard/Folder/update.zip -d /sdcard/Folder/
___
Set permissions:
Code:
chmod 0777 /sdcard/Folder/updater.sh
___
Update ROM:
Code:
sh /sdcard/Folder/updater.sh
First phase done, save the file as "update" (Not .TXT or XML, nothing) and copy the file to /system/bin/ and set permissions
___________
Update.zip
So, now the update.zip:
This file contains system-files, the new update.xml and the updater-script (.sh, not the updater-script in flashable packages!!!)
So, first, you need to SAVE the files to the update.zip, I mean do not compress or something else, only SAVE, else "Unzip" wont work
SAVE all changed files to update.zip
Upload the update.zip to your server. You need to edit the update.zip everytime, when you updated the ROM
Now, the updater.sh:
It should start with this:
Code:
#!/system/bin/sh
___
Now, the changed files should be copied to them right location:
I've only changed the build.prop, it's a example, you can change everything you want:
Code:
cp -f /sdcard/Folder/build.prop /system/
___
COPY THE NEW update.xml TO SYSTEM :
Code:
cp /sdcard/Folder/update.xml /system/
___
Reboot:
Code:
reboot
___
And done!
If you want to update:
1. Start Terminal Emulator
2. Type su and press ENTER
3. Type update and press ENTER
4. Updating...
Customize it, and add more functions, but I'll update this script anyway.
___
My "Update" in /system/bin/ looks like this:
Code:
#!/system/bin/sh
id=`id`; id=`echo ${id#*=}`; id=`echo ${id%%\(*}`; id=`echo ${id%%gid*}`
if test "$id" != "0" && test "$id" != "root"; then
echo " You are not running this script as root."
exit 0
fi
busybox mount -o remount,rw /system
wget -q http://cloudos.square7.ch/Update/One/version.xml -P /sdcard/CloudOS/update/
if diff /sdcard/CloudOS/update/version.xml /system/update.xml
then
echo "No update available"
echo "Aborted"
exit 0
else
echo "Update available!"
fi
rm /sdcard/CloudOS/update/*
wget -q http://cloudos.square7.ch/Update/One/update.zip -P /sdcard/CloudOS/update/
unzip /sdcard/CloudOS/update/update.zip /sdcard/CloudOS/update/
chmod 0777 /sdcard/CloudOS/update/updater.sh
sh /sdcard/CloudOS/update/updater.sh
And my updater.sh:
Code:
#!/system/bin/sh
cp -f /sdcard/CloudOS/update/build.prop /system/
cp -f /sdcard/CloudOS/update/update.xml /system/
reboot
If you want to use my work, then your work must be open-source, too!

CHANGELOG:
06/08/12:
- Added "Check root before updating"-feature
04/08/12:
- Initial release
Plans:
- Better thread-design
- Improved script

Smart kid, LOL XD

Nice work kid, this is actually cool!
Soon we shall have ROMs 10mb-30mb

This is what i want to tell you: made a useful thing for the community.
Great Job!

thachtunganh said:
This is what i want to tell you: made a useful thing for the community.
Great Job!
Click to expand...
Click to collapse
And I did it

Will upload next update tomorrow, changelog:
- Check root before updating
- Will upload completed files
- Better thread-design
Gesendet von meinem LG-P500 mit Tapatalk 2

Tach is right you have contributed much to this subforum
Sorry for my english

JeduRocks said:
Tach is right you have contributed much to this subforum
Sorry for my english
Click to expand...
Click to collapse
He said great job, I don't understand what you mean...

fd1999 said:
He said great job, I don't understand what you mean...
Click to expand...
Click to collapse
Use Google translate xd
Enviado desde mi LG-P500 usando Tapatalk 2

JeduRocks said:
Use Google translate xd
Enviado desde mi LG-P500 usando Tapatalk 2
Click to expand...
Click to collapse
Lol, I can speak English as well, but this is my first post in this subforum (Original Android development) and you said I posted to much in this subforum ?!?

fd1999 said:
Lol, I can speak English as well, but this is my first post in this subforum (Original Android development) and you said I posted to much in this subforum ?!?
Click to expand...
Click to collapse
He said you contributed much to this subforum!! It's a good thing keep it up little buddy :thumbup:
Sent from my LG-P500 using xda premium

thedoginme87 said:
He said you contributed much to this subforum!! It's a good thing keep it up little buddy :thumbup:
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
Okay, I misread his post
I thought he said 'posted' instead 'contributed', I was scrolling at the moment

How you did to create the version.xml file on the server? And in what server you bases the update? Magic update?
Enviado desde mi Galaxy Nexus usando Tapatalk HD

fd1999 said:
Lol, I can speak English as well, but this is my first post in this subforum (Original Android development) and you said I posted to much in this subforum ?!?
Click to expand...
Click to collapse
Subforum: LG Optimus One
Enviado desde mi LG-P500 usando Tapatalk 2

edinrh said:
How you did to create the version.xml file on the server? And in what server you bases the update? Magic update?
Enviado desde mi Galaxy Nexus usando Tapatalk HD
Click to expand...
Click to collapse
Just create a version.xml, type in the,latest available version (e.g. 1.0.1) and upload it. Square7, I said. Read my post.

Script updated, Changelog:
- Added "Check root before updating"-feature
EDIT: I'm senior member, now

fd1999 said:
Just create a version.xml, type in the,latest available version (e.g. 1.0.1) and upload it. Square7, I said. Read my post.
Click to expand...
Click to collapse
My question is: how to upload that file on Square7?
Enviado desde mi Galaxy Nexus usando Tapatalk HD

edinrh said:
My question is: how to upload that file on Square7?
Click to expand...
Click to collapse
Well, you apparently missed the purpose of this script. :laugh:

Just read...
edinrh said:
My question is: how to upload that file on Square7?
Enviado desde mi Galaxy Nexus usando Tapatalk HD
Click to expand...
Click to collapse
You can google for it, but some guys are too lazy...
So, create a server on Square7 and download FileZilla or also another FTP Client.
Start FileZilla, and configure it like this(in this example, my server is "cloudos.square7.ch"):
Server: cloudos.square7.ch
Username: cloudos
Password: Don't think I'm stupid
Port: Don't enter anything
And press "Connect". Now you have access to the server. On the left side, you see your files, located on the PC.
On the right site, the files on your server. On the left site, search for the file you want to upload and douple-click it
or drag & drop it to your server. Done!

Related

How make run sound boot animation on CM6

Hello guys im trying for awhile to make a run some boot animation sound over the stock CM6 blue android that is comming as stock but i never get succes can somebody help me with this please
juancaperez2000 said:
Hello guys im trying for awhile to make a run some boot animation sound over the stock CM6 blue android that is comming as stock but i never get succes can somebody help me with this please
Click to expand...
Click to collapse
The solution is not for the faint of heart and will have to be reapplied with each nightly.
Add this to init.local.rc
Code:
###Bootsound - Safe to Delete: Start ###
service bootsound /system/bin/bootsound
user media
group audio
disabled
oneshot
on property:init.svc.bootanim=running # to correct timing
start bootsound
on property:dev.bootcomplete=1
stop bootsound
### Bootsound - Safe to Delete: End ###
Then make a new file called "bootsound" and push it to /system/bin
i.e. "adb push c:\path\to\bootsound /system/bin/bootsound"
Code:
#!/system/bin/sh
bprop=/system/build.prop
grepprop() { x=`grep "^$1=" $bprop | head -n 1`; echo $x | cut -d = -f 2; }
play=`grepprop "ro.config.play.bootsound"`
if [ "$play" = "1" ]; then
stagefright -a -o /data/local/android_audio.mp3
fi
exit 0
Issue the following commands:
Code:
adb remount
adb shell chmod 777 /system/bin/bootsound
adb shell chown root:shell /system/bin/bootsound
adb shell echo ro.config.play.bootsound=1 | cat >> /system/build.prop
Now put your startup sound, whatever MP3 it is, in /data/local with name android_audio.mp3 and it will be played at startup. You test it with an adb reboot. I flash nightlies on a regular basis so I stopped doing this as it's a PITA to constantly have to push changes each night. I like to flash + go.
'tuna
Wow...only question is would this work for for stable 6? And can I do it thru term emu
cubanjinx said:
Wow...only question is would this work for for stable 6? And can I do it thru term emu
Click to expand...
Click to collapse
As long as you have a way to edit the init file + create/edit the new bootsound file then yes it can be done via term emu. Should work with any/all versions of cm6. Obviously you'd omit the "adb shell" portion of the shell commands.
'tuna
spiicytuna said:
The solution is not for the faint of heart and will have to be reapplied with each nightly.
......
'tuna
Click to expand...
Click to collapse
Wow. One of the best answers I have ever seen around here.
spiicytuna said:
The solution is not for the faint of heart and will have to be reapplied with each nightly.
---------
Now put your startup sound, whatever MP3 it is, in /data/local with name android_audio.mp3 and it will be played at startup. You test it with an adb reboot. I flash nightlies on a regular basis so I stopped doing this as it's a PITA to constantly have to push changes each night. I like to flash + go.
'tuna
Click to expand...
Click to collapse
Wow. Not kidding with the "not for the faint of heart" part. I think I will live with no sound. Unless, I knew how the hell to use that code. Meh....
Will donate
Tuna or anyone else willing to walk me through this for a donation? Haha... I set up a whole mp3 for the boot to come to this road block. Also, for anyone reading, how can I change just the lock screen wallpaper on froyo. (Using plain black background right now and it makes the lockscreen a little too boring) Thanks.
has this been confirmed working on CM6 final? read some comments over at the cyanogenmod forum that this script was droid x phones, not the evo?
i'm going to give it a try tonight or tomorrow night, some questions
1)where is the init.local.rc file?
2)what kind of file should the bootsound file be? .txt file? no extension? ??
3) the code you put after saying to make the bootsound, does that mean that code is to be entered into adb or as the content of the bootsound file?
spiicytuna said:
The solution is not for the faint of heart and will have to be reapplied with each nightly.
'tuna
Click to expand...
Click to collapse
EDIT: tried it. edited the init.local.rc file using Notepad++. made the bootsound file using Notepad++ and in it put the code you have up there. no file extension. pushed it to the right directory, followed the adb commands. got an error in the last one (echo) saying it couldn't find the path (it's there though?).
put the android_audio.mp3 in /data/local....rebooted and no sound. no errors either, but no sound.
EDIT 2: thanks for your work spiciituna. apparently there was some mistake on my part. i ran a script that your code in it and now the boot sound works.
http://forum.cyanogenmod.com/topic/7433-bootanimations-audio/
I am still having no luck. :-( Can anyone enlighten me?
Sent from my PC36100 using XDA App
austinjay said:
I am still having no luck. :-( Can anyone enlighten me?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
I was finally about to get it to work.
Here is the post with the flashable zip
http://forum.xda-developers.com/showthread.php?t=844414
juancaperez2000 said:
Hello guys im trying for awhile to make a run some boot animation sound over the stock CM6 blue android that is comming as stock but i never get succes can somebody help me with this please
Click to expand...
Click to collapse
if it's FroYo, then the directory has been moved to /system/customize/resource/. You reboot to clockworkmod -> mount system (partitions menu) -> reboot recovery (advanced menu) -> open cmd prompt in windows, cd to sdk\tools\ and run: "adb remount" -> then have the .wav file in the tools folder and run "adb push ATT_bootup.wav /system/customize/resource/" if it's an AT&T phone. Verizon phones use VZW_bootup.wav I am pretty sure & I'm not sure about the other ones.

[Q] Can't install apps , insufficient space

So I searched around, and found nothing for the Sensation regarding this. While restoring my previous apps from the market(re download, forgot to nandroid) it says
"Error downloading "RandomApp" There is insufficient space on the device" Anyone know how to fix this?
Wrong section buddy. Pls post questions in the q&a section!
Sent from my HTC Sensation Z710e using XDA Premium App
if rooted, using Terminal:
Code:
cd /cache
su
mkdir /mnt/sdcard/market-cache
mv download download.bak
ln -s /mnt/sdcard/download download
exit
moves your market-cache to the SDcard. give it a shot...
anotherdroid said:
if rooted, using Terminal:
Code:
cd /cache
su
mkdir /mnt/sdcard/market-cache
mv download download.bak
ln -s /mnt/sdcard/download download
exit
moves your market-cache to the SDcard. give it a shot...
Click to expand...
Click to collapse
I have the Android Revolution Rom, but Terminal is not already installed, and it wont let me install it Will a direct download of an apk file work?
Hi. I was have the same problem.
For me the solution was enter on recovery and wipe cache.
Enviado desde mi HTC Sensation
OK I found an apk but it says "Failed on 'download' no such file or directory
Do you have adb installed on your computer if you do then type
"adb shell" in a command prompt window. Then type those commands mentioned earlier.
raxor said:
Hi. I was have the same problem.
For me the solution was enter on recovery and wipe cache.
Enviado desde mi HTC Sensation
Click to expand...
Click to collapse
That worked! THANKS!
Ali_Shaikh said:
That worked! THANKS!
Click to expand...
Click to collapse
You're welcome!
Enviado desde mi HTC Sensation Z710e
anotherdroid said:
if rooted, using Terminal:
Code:
cd /cache
su
mkdir /mnt/sdcard/market-cache
mv download download.bak
ln -s /mnt/sdcard/download download
exit
moves your market-cache to the SDcard. give it a shot...
Click to expand...
Click to collapse
When I try the cd /cache
I get Permission denied.
My device is rooted. How can I add this to the list of allowed apps? Other apps have a setting or asked when I started them, and I set them to allow access all the time.

[MOD/APP] ScriptFusion (Complete Modification)

This is another of the projects I have done that was restricted to the Thunderbolt forum, but is actually compatible with quite a few devices, if not all. Some features only work for the Thunderbolt, but the script and application verify compatibility themselves.
I do not place any restriction on use of the script, components, or functions. All I ask is that the script is not used in the development of similar applications. Whether or not I am credited is at the discretion of the developer and their personal moral obligations. While this project does not include any GPL code, the theory is still relevant:
The GPL imparts great freedom for GPL end users. It ensures innovation is never stifled and no project is dependent upon any single developer.
Click to expand...
Click to collapse
Full Explanation / FAQs
Original Thunderbolt Thread
ScriptFusion AutoBot
Available on Twisted Sandbox and Android Market
This application will install the script, and if purchased from market, or unlocked with the Twisted Sanbox Shovel, it will also provide an online database of tweaks and scripts that can be run, or linked together and run, from directly inside the application.
DOWNLOADS:
AUTOUPDATE - Once the full package is installed, it will update itself (if needed) whenever it is launched. The only time the script alone needs to be reinstalled is when a new ROM is installed.
Busybox Binaries
http://twisted.dyndns.tv/BusyboxBin/
Right click / long click - Save as / save link
Script ONLY
Live script install
http://db.tt/u2gCqNO
Open terminal
Code:
su
bash /sdcard/location of script/speedtweak.sh fusion
This is the live equivalent of flashing ScriptFusion in recovery and would be considered a full install.
Once fully installed
Open terminal
Code:
su
speedtweak.sh
Live script removal
Open terminal
Code:
su
speedtweak.sh guilty
This is the live equivalent of flashing Guilty Verdict in recovery and would be considered a full removal.
Sent from my ADR6400L using Tapatalk
Just a quick breakdown for anyone asking "What about 98kickasskernel? Or "what about juwe RAM optimization?" "Don't they do the same thing?" In theory, sure... For RAM and sysctl values. Ever wonder why there are two versions of the 98kernel script to prevent bootloops? That is one key difference. This system doesn't just throw values at your device, or follow an "if you bootloop" methodology. Sure some things may cause loops because there is no reliable check (See odex/dalvikvm), but nothing is just hard-coded.
Another big difference is that those scripts cannot change screen density, tweak the CPU, change the scheduler, profile frequencies, and fix broken WiFi all in one run.
Complete means complete, simple as that. Customization means user determined customization, not what one developer recommends. Recommendations will help through the process, but they remain exactly that. There are no rules. Have some fun...
Sent from my ADR6400L using Tapatalk
Hi. Thanks for sharing.
I first read, re-read the OP and decided to download and try the trial app from the market: https://market.android.com/details?id=com.twisted.zero&feature=search_result. But the app just crashes every time when i try to launch(it gives the error: Data and sdcard required!). I am on custom ROM Froyo 2.2.2 with apps on ext2 using data2sd(both apps were on phone memory).
Then i re-re-read the OP and decided to try the script way first via Script Manager and then(if not lucky) via terminal. I had no luck with Script Manager(runing root mode). The script dont install and gives the errors:
wget: bad address '64.121.156.138:8080'
wget: can't connect to remote host (64.121.156.138:8080)
Unnable to chmod /system/xbin/wget: No such file
Invalid binaries. Please retry.
Edit: Checking the filesystem i see that at least one thing the script/app have done. Has deleted all my previous scripts on /system/etc/init.d and now there are 3 new files: 00twist_override, 01vdd_levels and 02sched_choice. Same files are now on /etc/init.d.
Same error with terminal emulator. Maybe i am very dumb and i miss something. What i am doing wrong?
Thanks in advance!
f1ng3r said:
Hi. Thanks for sharing.
I first read, re-read the OP and decided to download and try the trial app from the market: https://market.android.com/details?id=com.twisted.zero&feature=search_result. But the app just crashes every time when i try to launch(it gives the error: Data and sdcard required!). I am on custom ROM Froyo 2.2.2 with apps on ext2 using data2sd(both apps were on phone memory).
Then i re-re-read the OP and decided to try the script way first via Script Manager and then(if not lucky) via terminal. I had no luck with Script Manager(runing root mode). The script dont install and gives the errors:
wget: bad address '64.121.156.138:8080'
wget: can't connect to remote host (64.121.156.138:8080)
Unnable to chmod /system/xbin/wget: No such file
Invalid binaries. Please retry.
Edit: Checking the filesystem i see that at least one thing the script/app have done. Has deleted all my previous scripts on /system/etc/init.d and now there are 3 new files: 00twist_override, 01vdd_levels and 02sched_choice. Same files are now on /etc/init.d.
Same error with terminal emulator. Maybe i am very dumb and i miss something. What i am doing wrong?
Thanks in advance!
Click to expand...
Click to collapse
Your previous scripts are safe. They will be in data/data/scriptfusion if install didn't complete (in which case you may want to move them so a new install doesn't overwrite them) or in SDcard/ScriptFusion/backup
Alright, so a couple things happened all at once that caused your error, but to keep it simple... My server takes on the traffic of a corporate sized one packed into two computers. Occasionally I have to reboot. Your download happened during the 15 minutes or so it went down. Give it another try and let me know if it doesn't fix itself.
Sent from my ADR6400L using Tapatalk
twistedumbrella said:
Your previous scripts are safe. They will be in data/data/scriptfusion if install didn't complete (in which case you may want to move them so a new install doesn't overwrite them) or in SDcard/ScriptFusion/backup
Alright, so a couple things happened all at once that caused your error, but to keep it simple... My server takes on the traffic of a corporate sized one packed into two computers. Occasionally I have to reboot. Your download happened during the 15 minutes or so it went down. Give it another try and let me know if it doesn't fix itself.
Sent from my ADR6400L using Tapatalk
Click to expand...
Click to collapse
I keep getting this error
$ export PATH=/data/local/bin:$PATH
$su
# bash /sdcard/speedtweak.sh fusion
unknown option -- cBusyBox v1.16.2androidfull (2010-08-01 14:57:25 EDT) multi-call binary.
Usage: stat [OPTIONS] FILE...
Display file (default) or filesystem status
Options:
-f Display filesystem status
-L Follow links
-t Display info in terse form
unknown option -- cBusyBox v1.16.2androidfull (2010-08-01 14:57:25 EDT) multi-call binary.
Usage: stat [OPTIONS] FILE...
Display file (default) or filesystem status
Options:
-f Display filesystem status
_ _ ...
___ \\-//` o,*,(o o)
(o o) (o o) 8(o o)(_)Ooo
ooO--(_)--Ooo-ooO--(_)--Ooo-ooO-(_)---Ooo
____ __ __ ___ ____ _____ _ _
( ___)( )( )/ __)(_ _)( _ )( \( )
)__) )(__)( \__ \ _)(_ )(_)( ) (
(__) (______)(___/(____)(_____)(_)\_)
Android user detected! Inverting reality...
cp: can't stat '/system/customize/speedtweak.sh': No such file or directory
/sdcard/speedtweak.sh: line 332: wget: command not found
chmod: speedtweak.sh: No such file or directory
unknown option -- cBusyBox v1.16.2androidfull (2010-08-01 14:57:25 EDT) multi-call binary.
AutoUpdate Complete. Restarting...
Restart by pressing <Up>, <Enter>
sh: Can't open /system/customize/speedtweak.sh
#
Sent from my GT540 using XDA Premium App
eoghan2t7 said:
I keep getting this error
$ export PATH=/data/local/bin:$PATH
$su
# bash /sdcard/speedtweak.sh fusion
unknown option -- cBusyBox v1.16.2androidfull (2010-08-01 14:57:25 EDT) multi-call binary.
Usage: stat [OPTIONS] FILE...
Display file (default) or filesystem status
Options:
-f Display filesystem status
-L Follow links
-t Display info in terse form
unknown option -- cBusyBox v1.16.2androidfull (2010-08-01 14:57:25 EDT) multi-call binary.
Usage: stat [OPTIONS] FILE...
Display file (default) or filesystem status
Options:
-f Display filesystem status
_ _ ...
___ \\-//` o,*,(o o)
(o o) (o o) 8(o o)(_)Ooo
ooO--(_)--Ooo-ooO--(_)--Ooo-ooO-(_)---Ooo
____ __ __ ___ ____ _____ _ _
( ___)( )( )/ __)(_ _)( _ )( \( )
)__) )(__)( \__ \ _)(_ )(_)( ) (
(__) (______)(___/(____)(_____)(_)\_)
Android user detected! Inverting reality...
cp: can't stat '/system/customize/speedtweak.sh': No such file or directory
/sdcard/speedtweak.sh: line 332: wget: command not found
chmod: speedtweak.sh: No such file or directory
unknown option -- cBusyBox v1.16.2androidfull (2010-08-01 14:57:25 EDT) multi-call binary.
AutoUpdate Complete. Restarting...
Restart by pressing <Up>, <Enter>
sh: Can't open /system/customize/speedtweak.sh
#
Sent from my GT540 using XDA Premium App
Click to expand...
Click to collapse
Seems wget may have corrupted. All issue reports relate to bad download ( which once it is installed don't happen) time to look into it...
Sent from my ADR6400L using Tapatalk
twistedumbrella said:
Seems wget may have corrupted. All issue reports relate to bad download ( which once it is installed don't happen) time to look into it...
Sent from my ADR6400L using Tapatalk
Click to expand...
Click to collapse
Stupid mistake. Switched the server port on the server, but never updated the new value to the script. Download updated. Install should now update wget and proceed normally. Sorry.
Sent from my ADR6400L using Tapatalk
twistedumbrella said:
Stupid mistake. Switched the server port on the server, but never updated the new value to the script. Download updated. Install should now update wget and proceed normally. Sorry.
Sent from my ADR6400L using Tapatalk
Click to expand...
Click to collapse
Im still getting invaild binarys error.
Sent from my GT540 using XDA Premium App
eoghan2t7 said:
Im still getting invaild binarys error.
Sent from my GT540 using XDA Premium App
Click to expand...
Click to collapse
Alright, let me look into something that might avoid having to update busybox
Sent from my ADR6400L using Tapatalk
Alright, with all the recent edits, it should work to get a system with busybox 1.6.1 and up updated and running. A lot of other scripts stay at 1.6.2, but this uses 1.9 much like newer ROMs. I plan to drop back busybox, see if all the commands work, and make that part optional, but a lot of ROMs use truncated versions, so I am still working out a failsafe.
Sent from my ADR6400L using Tapatalk
Can I have a few people do the following command and post the output? Getting a baseline for a new verify
busybox | busybox head -n 1 | busybox awk '{ print $2 }'
Sent from my ADR6400L using Tapatalk
Removed the necessity of having certain versions of busybox, but with that it is fair warning that ROMs with truncated versions will not work.
Changed up the tweak menu option to be a little easier understood. While the +/- were fully explained, on smaller text sizes they were impossible to differentiate.
Sent from my ADR6400L using Tapatalk
Removed. All good now.
I got it up and running. I have a few questions. I purchased the autobot off one of the links you provided. I got working. I made a slight yet big mistake. I was looking through the speedtweak menu and somehow changed the voltages on something by mistake. I couldn't read what was on the bottom of the terminal emulator and screwed something up good. After that, the phone was really crawling and scriptfusion wouldnt open up. I just restored my old backup and then reinstalled my new rom. I got scriptfusion back on my phone but is there supposed to be an app that takes you directly into scriptfusion? I know I can get there from the terminal emulator but i was able to click on an app before to get in. Now if I click on it, it just force closes. Second question is, if I am going to be playing around with a kernel, is it best to just back it up first before I modify? I'm on gingeritis 3D that has Ziggy's latest baked in. It would be nice if I screwed something up that I could just reflash the kernel but he doesn't have the kernel by itself floating around. It seems like the backup and restore worked. I backed it up, played around a bit and tested my results then I restored and it seemed to take the kernel back to its normal state. Is this the way I should do it? Also, can you backup more than one file at a time?
I also don't know what happened to my min/max frequencies. I now only have :
1) 192000
2) 245760
3) 368640
4) 768000
5) 806400
6) 883200
7) 960000
8) 1036800
This is all I have available. I had more before I had to reflash my rom. I'm sure its my fault. How can I get the other options back? I also have enabled swap and I can see if on there but it is not being used.
ercDROID said:
I got it up and running. I have a few questions. I purchased the autobot off one of the links you provided. I got working. I made a slight yet big mistake. I was looking through the speedtweak menu and somehow changed the voltages on something by mistake. I couldn't read what was on the bottom of the terminal emulator and screwed something up good. After that, the phone was really crawling and scriptfusion wouldnt open up. I just restored my old backup and then reinstalled my new rom. I got scriptfusion back on my phone but is there supposed to be an app that takes you directly into scriptfusion? I know I can get there from the terminal emulator but i was able to click on an app before to get in. Now if I click on it, it just force closes. Second question is, if I am going to be playing around with a kernel, is it best to just back it up first before I modify? I'm on gingeritis 3D that has Ziggy's latest baked in. It would be nice if I screwed something up that I could just reflash the kernel but he doesn't have the kernel by itself floating around. It seems like the backup and restore worked. I backed it up, played around a bit and tested my results then I restored and it seemed to take the kernel back to its normal state. Is this the way I should do it? Also, can you backup more than one file at a time?
I also don't know what happened to my min/max frequencies. I now only have :
1) 192000
2) 245760
3) 368640
4) 768000
5) 806400
6) 883200
7) 960000
8) 1036800
This is all I have available. I had more before I had to reflash my rom. I'm sure its my fault. How can I get the other options back? I also have enabled swap and I can see if on there but it is not being used.
Click to expand...
Click to collapse
From everything you said, it sounds like the restore may have given you a different kernel. The kernel frequencies are read right from system. The force close should fix itself by clearing data for the app and letting it reinstall the script. You don't necessarily need to back up anything if you are near a computer because the kernel itself is never actually edited. Restore is as easy as using adb to remove /system/init.e/00twist_override Editing on the go, a recent backup of system only will revert any changes. If you enabled swap and your getting zeros either you need to reboot or the system hasn't needed the space yet.
Sent from my ADR6400L using Tapatalk
Wow that's one intense script.
It's a huge compliment you gave me when you said I motivated you in some way.
Thanks man... I'm practically speechless
zeppelinrox said:
Wow that's one intense script.
It's a huge compliment you gave me when you said I motivated you in some way.
Thanks man... I'm practically speechless
Click to expand...
Click to collapse
Thanks. It was very true. Reading over your work made me realize I was focusing too much on single items and not the whole process.
Sent from my ADR6400L using Tapatalk
Well... looks like you did it in spades
Lots of ideas floating around. New concepts for better cooperation between the app and the script. Better methods for quick scripts. New menus and graphic interface plans. It's slowly building up.
Sent from my ADR6400L using Tapatalk

[SCRIPT] Recovery & Kernel Management Tool

Hi guys,
I had some free time and decided to write this script specially for Terminal Emulator's users like me.
It's a simple script allows you to:
Backup
Restore backup
Flash
Reboot in any mode
Copy the script to /system/bin
recovery and /or kernel IMG files without the need to input so long codes again and again.
This script will make a new folder named Recovery-Kernel-Tools in your internal storage, including 3 more folders inside it:
Backups (max one backup for each partition, names are "case-sensitive")
Flash (but any recovery.img / boot.img to flash them, names are "case-sensitive")
Input (for future use)
Everything is self explanatory, when you execute this script for the first time, it will ask you to set your partitions, you can change them later at any time.
If it's useful for you and you need more options, feel free to suggest me.
Download link: ReKeTv1
After downloading, cd to installation folder and input:
Code:
su
sh ReKeTv1
If you're using Script Manager, just execute it as root.
Latest busybox is required.
Bassel Bakr said:
Hi guys,
I had some free time and decided to write this script specially for Terminal Emulator's users like me.
It's a simple script allows you to:
Backup
Restore backup
Flash
Reboot in any mode
Copy the script to /system/bin
recovery and /or kernel IMG files without the need to input so long codes again and again.
This script will make a new folder named Recovery-Kernel-Tools in your internal storage, including 3 more folders inside it:
Backups (max one backup for each partition, names are "case-sensitive")
Flash (but any recovery.img / boot.img to flash them, names are "case-sensitive")
Input (for future use)
Everything is self explanatory, when you execute this script for the first time, it will ask you to set your partitions, you can change them later at any time.
If it's useful for you and you need more options, feel free to suggest me.
Download link: ReKeTv1
After downloading, cd to installation folder and input:
Code:
su
sh ReKeTv1
If you're using Script Manager, just execute it as root.
Latest busybox is required.
Click to expand...
Click to collapse
There are three files in it...which 1 to download?
Sent from my GT-S7500 using Tapatalk 2
tandon.ayush said:
There are three files in it...which 1 to download?
Sent from my GT-S7500 using Tapatalk 2
Click to expand...
Click to collapse
ReKeTv1
Don't forget to leave some suggestions.
Bassel Bakr said:
ReKeTv1
Don't forget to leave some suggestions.
Click to expand...
Click to collapse
Tried with both terminal emulator and script manager
Got this error
" exec /system/bin/sh '/mnt/sdcard/download/ReKeTv1.txt'
# bin/sh '/mnt/sdcard/download/ReKeTv1.txt'
head: /mnt/sdcard/Recovery-Kernel-Tools/partitions: No such file or directory
tail: can't open '/mnt/sdcard/Recovery-Kernel-Tools/partitions': No such file or directory
tail: no files
Root access denied!
Please issue su command first"
Any solution?
Sent from my GT-S7500 using Tapatalk 2
tandon.ayush said:
Tried with both terminal emulator and script manager
Got this error
" exec /system/bin/sh '/mnt/sdcard/download/ReKeTv1.txt'
# bin/sh '/mnt/sdcard/download/ReKeTv1.txt'
head: /mnt/sdcard/Recovery-Kernel-Tools/partitions: No such file or directory
tail: can't open '/mnt/sdcard/Recovery-Kernel-Tools/partitions': No such file or directory
tail: no files
Root access denied!
Please issue su command first"
Any solution?
Sent from my GT-S7500 using Tapatalk 2
Click to expand...
Click to collapse
Run as root
Or in terminal emulator type
su
First
Bassel Bakr said:
Run as root
Or in terminal emulator type
su
First
Click to expand...
Click to collapse
Did both...still the same error
Any solution??
Sent from my GT-S7500 using Tapatalk 2
tandon.ayush said:
Did both...still the same error
Any solution??
Sent from my GT-S7500 using Tapatalk 2
Click to expand...
Click to collapse
In terminal emulator:
su
set -x
sh ReKeTv1 2> /sdcard/log1.txt
sh -n ReKeTv1 2> /sdcard/log2.txt
Then upload log1.txt & log2.txt files here.
Bassel Bakr said:
In terminal emulator:
su
set -x
sh ReKeTv1 2> /sdcard/log1.txt
sh -n ReKeTv1 2> /sdcard/log2.txt
Then upload log1.txt & log2.txt files here.
Click to expand...
Click to collapse
"No such file or directory"in both logs
Sent from my GT-S7500 using Tapatalk 2
tandon.ayush said:
"No such file or directory"in both logs
Sent from my GT-S7500 using Tapatalk 2
Click to expand...
Click to collapse
After set -x cd to installation directory then complete the code.

[TASKER][PROJECT]Automatically delete images older than 6 days(Useful for Whatsapp )

THREAD INDEX:
I. INTRODUCTION
II. PROJECT STRUCTURE
III. INSTALLATION GUIDE
#_____________________________#​
I. Introduction
Hi guys, this is a Tasker profile which automatically deletes every Mondays images older than 6 days. Useful when you have many Whatsapp groups and you wanna only have that images for a limited time.
The profile uses a unix command that searches for images older than 6 days and then delete them. Let's take a look on the command:
Code:
find /storage/extSdCard/test/ -type f -mtime +6 -exec rm {} +
As you can see there is location path, so this script searches on a specific folder and you set this location to wherever you want.
Another important value is the -mtime +6, this means that will be deleted all the images that are older than 6 days.
II. Project Structure
This project is pretty simple and is composed of one profile linked to one task.
The profile gets activated every Mondays and then it runs the script that automatically deletes the images older than 6 days.
The task, which gets triggered by the profile, contains two basic actions:
Run Shell with the script showed before
Flash (Little Toast Screen that shows when the process is done)
As you can see the Project is composed of basic actions, the most important action is the one that runs the script.
III. Installation Guide
Also the installation process is simple, and it requires few personalization steps in order to get the Project working fine.
Follow these steps:
Download the project HERE
Open Tasker preferences and disable the beginner mode. Once you have disabled this mod restart the application in order to get the Expert Graphical User Interface.
Now a little home button will appear on the application bottom, tap on it and then choose Import. Select the Project.
What you have to do now is go inside the Tasks tab and tap on ChronDelete
Once you open the Task choose the first action named Run shell and where there is /putyour/path/here/ you have to write your own location folder, the folder where you want the delete automatization. If one of your folders contain spaces for example WhatApp Images you will have to write the whole location with quotation marks like this: "storage/sdcard0/WhatsApp/Media/WhatsApp Images/" ... .
If your System support the Tasker Media Scanning function you can add a simple action that performs a Media Scanning after the deleting process, this will refresh the File Table avoiding Gallery Empty Spaces or Missing Image Icon. Tap on the button + and then choose Media -> Scan Card. Once you have created this new action, inside File write the Location Path where you have previosly setted the script.
All done.
If you have any suggestions or problem don't hesitate to ask and, if helped you, remember to press the Thanks button ! ​
Reserved
Thanks for this. Just started using Tasker today and this works great. The only thing I had to add was " " around my WhatsApp Images folder path since it contained spaces.
Now to see what else Tasker can make easier.
mondohow said:
Thanks for this. Just started using Tasker today and this works great. The only thing I had to add was " " around my WhatsApp Images folder path since it contained spaces.
Now to see what else Tasker can make easier.
Click to expand...
Click to collapse
Thanks for letting me remember it!
I will add it to the OP and also a new command inside the ChronDelete that executes a Media scan after the deleting process!
CoolJoseph96 said:
Thanks for letting me remember it!
I will add it to the OP and also a new command inside the ChronDelete that executes a Media scan after the deleting process!
Click to expand...
Click to collapse
Thanks but the Media Scan doesn't seem to be working for me on my Nexus 5. Still have blank items in Gallery. I did some googling and found this: http://tasker.dinglisch.net/userguide/en/help/ah_index.html
On Android 4.4+, scanning the whole card or a directory only picks up *new* files and the task waits till the scan is finished.
Click to expand...
Click to collapse
Does that mean it won't recognize and remove the blank thumbnail for deleted files? As mentioned above I still have those blank thumbnails. Had to do a 'Rescan' in FX Explorer for the blank images to clear.
mondohow said:
Thanks but the Media Scan doesn't seem to be working for me on my Nexus 5. Still have blank items in Gallery. I did some googling and found this: http://tasker.dinglisch.net/userguide/en/help/ah_index.html
Does that mean it won't recognize and remove the blank thumbnail for deleted files? As mentioned above I still have those blank thumbnails. Had to do a 'Rescan' in FX Explorer for the blank images to clear.
Click to expand...
Click to collapse
Try to add this Shell Action:
Code:
am broadcast android.intent.action.MEDIA_MOUNTED
Let me know.
CoolJoseph96 said:
Try to add this Shell Action:
Code:
am broadcast android.intent.action.MEDIA_MOUNTED
Let me know.
Click to expand...
Click to collapse
Thanks. That partially works.
QuickPic - Thumbs are cleared as expected and if folder is empty it disappears
Stock Gallery - Foler still shows in list and blank thumbnails are displayed
Focus - Same as with the stock Gallery
Google Photos - Folder still shows as well
Maybe it's because I'm on a Nexus 5 and don't have a physical SD card?
mondohow said:
Thanks. That partially works.
QuickPic - Thumbs are cleared as expected and if folder is empty it disappears
Stock Gallery - Foler still shows in list and blank thumbnails are displayed
Focus - Same as with the stock Gallery
Google Photos - Folder still shows as well
Maybe it's because I'm on a Nexus 5 and don't have a physical SD card?
Click to expand...
Click to collapse
Let's try this method
Install this application SD Scanner
The author says:
SD Scanner can be used with Tasker by using the "Send Intent" action listed under "System."
Use the following settings, leaving the ones I don't list at the default:
Action: android.intent.action.RUN
Package: com.gmail.jerickson314.sdscanner
Class: com.gmail.jerickson314.sdscanner.MainActivity
Target: Activity
Click to expand...
Click to collapse
Let me know
YES!!!!! That works. All phantom images/folders gone. Thanks again, this script is great. Can't wait to see what you do next.
Hi guy!
Its my first time using TASKER app. Using because your project! :good:
But here the script is not working.
I changed the command to: find "/storage/emulated/0/WhatsApp/Media/WhatsApp Images/" -type f -mtime +90 -exec rm {} +
Tried with root, without root... no difference.
I try the command: ls "/storage/emulated/0/WhatsApp/Media/WhatsApp Images/" and its OK!
What could be happening? I not can see any error message, only the left red ball and this:
Code:
18.33.04/E Run Shell: ->
18.33.04/E Run Shell: ->
18.33.04/E Run Shell: ->
18.33.04/Shell runBackground find "/storage/emulated/0/WhatsApp/Media/WhatsApp Images/" -type f -mtime +90 -exec rm { } + root: false timeout: -1
18.33.04/Shell start process-thread ID 53425
18.33.04/E add wait type Shell8 time 2147483647
18.33.04/E add wait type Shell8 done
Thanks
kotioko said:
Hi guy!
Its my first time using TASKER app. Using because your project! :good:
But here the script is not working.
I changed the command to: find "/storage/emulated/0/WhatsApp/Media/WhatsApp Images/" -type f -mtime +90 -exec rm {} +
Tried with root, without root... no difference.
I try the command: ls "/storage/emulated/0/WhatsApp/Media/WhatsApp Images/" and its OK!
What could be happening? I not can see any error message, only the left red ball and this:
Code:
18.33.04/E Run Shell: ->
18.33.04/E Run Shell: ->
18.33.04/E Run Shell: ->
18.33.04/Shell runBackground find "/storage/emulated/0/WhatsApp/Media/WhatsApp Images/" -type f -mtime +90 -exec rm { } + root: false timeout: -1
18.33.04/Shell start process-thread ID 53425
18.33.04/E add wait type Shell8 time 2147483647
18.33.04/E add wait type Shell8 done
Thanks
Click to expand...
Click to collapse
Hi, certain devices doesn't have all the commands needed integrated in the system.
We can verify if you have the "find" binary with the terminal emulator.
Steps:
Download the Terminal Emulator
Open the app and write "find" followed by the enter button
Tell me what message do you get..
If you get an error like "Find: not found" then you don't have the necessary binary.
CoolJoseph96 said:
Hi, certain devices doesn't have all the commands needed integrated in the system.
We can verify if you have the "find" binary with the terminal emulator.
Steps:
Download the Terminal Emulator
Open the app and write "find" followed by the enter button
Tell me what message do you get..
If you get an error like "Find: not found" than you don't have the necessary binary.
Click to expand...
Click to collapse
Thanks for fast reply!
Hummm... Like you said, "find: not found"
Is possible put/install the "find" binary in my system?
kotioko said:
Thanks for fast reply!
Hummm... Like you said, "find: not found"
Is possible put/install the "find" binary in my system?
Click to expand...
Click to collapse
I will make a flashable zip in order to implement it, or you can implement it manually.
Could you send me a screenshot of the find error ? I need the binary path
CoolJoseph96 said:
I will make a flashable zip in order to implement it, or you can implement it manually.
Could you send me a screenshot of the find error ? I need the binary path
Click to expand...
Click to collapse
/system/bin/sh: find: not found
it´s enough!?
kotioko said:
/system/bin/sh: find: not found
it´s enough!?
Click to expand...
Click to collapse
It is, give me 10 minutes or so in order to make the zip including the binary with symlinking
Inviato dal mio SM-N910F con XDA Forums Pro
Oh...I've forgot that find is a Busybox command haha.
Install Busybox: https://play.google.com/store/apps/details?id=stericson.busybox
CoolJoseph96 said:
Oh...I've forgot that find is a Busybox command haha.
Install Busybox:
Click to expand...
Click to collapse
Sorry for delay, i was testing.
Thanks, partially solved! Now i have the "find" command, this work perfectly in terminal, but now it seems to be a TASKER limitation.
If i use "find" with parameter -mtime +150, return little result and the execution finish without problem.
But with -mtime +30 return so many results and the execution never ends.
Edit: After cleaning the directory with terminal, daily execution will work well! Thanks!!!
It's possible to make this profile to delete all WhatsApp images except the ones received from a specific contact?
Enviado desde mi XT1058 mediante Tapatalk
kotioko said:
Edit: After cleaning the directory with terminal, daily execution will work well! Thanks!!!
Click to expand...
Click to collapse
Awesome!
Inviato dal mio SM-N910F con XDA Forums Pro
rodaven said:
It's possible to make this profile to delete all WhatsApp images except the ones received from a specific contact?
Enviado desde mi XT1058 mediante Tapatalk
Click to expand...
Click to collapse
I'm really sorry but there's no image tag that specify who sent it..
Inviato dal mio SM-N910F con XDA Forums Pro

Categories

Resources