Post Reply

[Script]DSploit Updater

OP la2o

20th August 2014, 10:04 PM   |  #1  
la2o's Avatar
OP Member
Thanks Meter: 68
 
87 posts
Join Date:Joined: Mar 2014
Donate to Me
Dsploit is not an application I made, all credit belongs to evilsocket. I only made this script to update the apk.

Every hour or so, everytime the source code of the app changes. A apk is generated automatically.

So this script updates the apk every time you type the command in android terminal emulator.

HOW TO INSTALL?

1) Download the dsupdate.zip

2) Flash it in recovery mode.

HOW TO USE?

1) Download Android Terminal Emulator from the playstore if you had not done so..

2) Open the app

3) Type the following:-

su -
dsupdate

*NOTE Ignore the app_process warnings

4) That's it. You successfully updated the app.

What this script currently does?

1) Backs up the current apk.

2) Downloads the latest apk.

3) Installs the latest version.

This is the current script, if anyone has any suspicions...
Code:
#!/system/bin/sh
DT=$(busybox date)
echo "Script Made By La2o"
echo "Script started at:- $DT"
echo "Checking if old backup exists..."
if [ -e /data/app/it.evilsocket.dsploit-1.apk.bak ]; then
echo "Backup found! Deleting..."
rm -f /data/app/it.evilsocket.dsploit-1.apk.bak
fi
echo "Making a backup of the current apk..."
cp /data/app/it.evilsocket.dsploit-1.apk /data/app/it.evilsocket.dsploit-1.apk.bak
chmod 0644 /data/app/it.evilsocket.dsploit-1.apk.bak
echo "Done!"
cd sdcard
echo "Downloading Nightly APK"
busybox wget "http://94.75.228.27/dsploit/dSploit-nightly.apk"
echo "Installing!"
pm uninstall it.evilsocket.dsploit
pm install dSploit-nightly.apk
echo "Done..."
echo "Deleting Downloaded APK";
rm -f dSploit-nightly.apk
echo "Checking if the app installed correctly..."
cd ..
cd /data/app
ls -a -l | grep dsploit
echo "Done"
Attached Files
File Type: zip dsupdate.zip - [Click for QR Code] (155.4 KB, 50 views)
Last edited by la2o; 20th August 2014 at 10:10 PM.
The Following User Says Thank You to la2o For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Galaxy S 5 General by ThreadRank