Related
A small app I wrote for my convenience. The source code is about 13 lines long, it has no advanced features, simply an easier way of typing in "adb install path/to/file".
Currently windows only, if it gains a few downloads i'll release a linux app.
If anyone wants the source feel free. It was coded in C++
Simply drag the apk file onto the exe. or set it as the default program for opening the file, then all you have to do is double click on the apk for it to install.
It won't tell you if there are any errors (though you may see it in the command window that pops up momenterilly). This was a personal project for my own convenience I just thought I'd post it here.
Nice, I created similar thing:
a little batch-script for windows
Code:
@echo off
echo Installing %1
echo ---------------------------------------------------
"C:\android-sdk-windows\tools\adb.exe" install %1
echo ---------------------------------------------------
pause
@echo on
I saved it in my windows folder and assigned the *.apk filetype to it in Folder Settings->File types with this:
apkinstaller.bat %1
After that: double click on your apk and voila
Pushing files over adb has never been easy. There are some external tools for sending files over adb, but I like native, Windows-integrated ones.
The trick is extremely easy. It works with adbWireless and similar applications. It could work with USB connection too, but I rarely use it.
HEADS UP: Be sure to check all nice(r) scripts by Daneshm90 down the thread!
Prerequisites:
-adb
-adbMagic or similar for wifi connection, none for USB only.
How to?
For better look you will need two files:
adb_send.cmd;
Code:
adb connect 192.168.1.103
adb push %1 /sdcard/
pause
and a shortcut to it, where you can customize icon and name.
1) create your adb_send.cmd anywhere on disk (I put mine in android-sdk-windows\tools directory),
2) customize the ip address, to point at your device (I have router with static DHCP, so everytime my device connects it leases the same address)
3) then go to:
Windows Vista/7:
Code:
%APPDATA%\Microsoft\Windows\SendTo
(paste it in explorer's address bar, or hit WIN+R and paste there, Enter), and place shortcut to script file created earlier. (drag it with right mouse button)
4) customize the icon and name of the shortcut
Next time you click on any file menu appears:
good idea, btw how did you find the ip address? 192.168.1.103... i am not able to send using the same
When you use adbWireless, under big orange button you will see something like: "adb connect 192.168.1.103:5555"
ravi4chahal said:
good idea, btw how did you find the ip address? 192.168.1.103... i am not able to send using the same
Click to expand...
Click to collapse
I think that you will have to find your own ip adress mate
xan said:
When you use adbWireless, under big orange button you will see something like: "adb connect 192.168.1.103:5555"
Click to expand...
Click to collapse
ok thanks, I installed adbWireless and now it is working ... however is there any way of getting rid of the CMD window that pops up while transfer?
hmm..
I think there is. Right click on the shortcut (this in "%APPDATA%\Microsoft\Windows\SendTo")properities -> run -> minimised
Delete "pause" line from script, and command line is hidden.
//double, sry
How's this :
Code:
@echo off
echo Where to push the file ? eg (/data/1.apk)
SET /P pat=Enter :
echo Pushing...
adb push "%1" /sdcard/%~n1
adb shell su -c "cp /sdcard/%~n1 %pat%" -root
adb shell rm /sdcard/%~n1
echo Done
It works directly for me.
Right click the file, Send to - > Bluetooth Devices.
Select my Phone and press Send.
Very cool tip, made a couple different cmd shortcuts to copy to different part of the sdcard(roms/apps/misc).
peachpuff said:
Very cool tip, made a couple different cmd shortcuts to copy to different part of the sdcard(roms/apps/misc).
Click to expand...
Click to collapse
The script i posted above does just that except you don't need multiple shortcuts.
When you run it'll as you where u want the file to go.
Thanks for the tip.
And Daneshm90 i tried your command, but..is there a way to do it without su? Since when i try ur command i always have to accept the root request, and it dosnt seem to push the file right anyway. So im asking is there a way to do it without su? Cuz if i do the original i dont need to press the root request all the time.
Thanks in advance mate.
borgen92 said:
Thanks for the tip.
And Daneshm90 i tried your command, but..is there a way to do it without su? Since when i try ur command i always have to accept the root request, and it dosnt seem to push the file right anyway. So im asking is there a way to do it without su? Cuz if i do the original i dont need to press the root request all the time.
Thanks in advance mate.
Click to expand...
Click to collapse
It should only ask you to accept once, not everytime.
Well sure i can modify mine where if u say /sdcard/ then it doesn't do that whole root crap and just pushes to sdcard.
Gimme a few.
Daneshm90 said:
It should only ask you to accept once, not everytime.
Well sure i can modify mine where if u say /sdcard/ then it doesn't do that whole root crap and just pushes to sdcard.
Gimme a few.
Click to expand...
Click to collapse
Thanks alot man, you'r awesome
Here try this one
Code:
@echo off
echo Where to push the file ? eg (/data/1.apk)
SET /P pat=Enter :
if not "%pat:sdcard=%"=="%pat%" goto sdcard
echo Pushing...
adb push %1 /sdcard/%~n1
adb shell su -c "cp /sdcard/%~n1 %pat%" -root
adb shell rm /sdcard/%~n1
echo Done
:sdcard
echo Pushing...
adb push %1 %pat%
echo Done
Note, if you have a rom where when you do "adb shell" and ur automatically in "su" mode. Then u can simply change the script to :
Code:
@echo off
echo Where to push the file ? eg (/data/1.apk)
SET /P pat=Enter :
echo Pushing...
adb push %1 %pat%
echo Done
flawless!!!!
Thank you!
Does this require root?
Daneshm90 said:
Here try this one
Code:
@echo off
echo Where to push the file ? eg (/data/1.apk)
SET /P pat=Enter :
if not "%pat:sdcard=%"=="%pat%" goto sdcard
echo Pushing...
adb push %1 /sdcard/%~n1
adb shell su -c "cp /sdcard/%~n1 %pat%" -root
adb shell rm /sdcard/%~n1
echo Done
:sdcard
echo Pushing...
adb push %1 %pat%
echo Done
Note, if you have a rom where when you do "adb shell" and ur automatically in "su" mode. Then u can simply change the script to :
Code:
@echo off
echo Where to push the file ? eg (/data/1.apk)
SET /P pat=Enter :
echo Pushing...
adb push %1 %pat%
echo Done
Click to expand...
Click to collapse
thats awesome, how would one make it crate and copy the folder structure as well? did this with a folder with pics in it and it just put every pic on the root of my sd card.
or how about asking for ip then using what was imputed?
Send To Menu For ADB Install
You can modify the above instructions to use the Send to Menu to install applications over wireless.
Code:
adb connect 192.168.1.46:5555
adb install %1
pause
Substitute your IP address for 192.168.1.46 (may or may not need the port)
Save your Install.cmd or anything.cmd anywhere on your hardisk. Make a shortcut in
Code:
%APPDATA%\Microsoft\Windows\SendTo
to the .cmd.
Right click an .apk and select Send To -> Install.cmd
Works like a dream using my Nexus 1 and adbWireless
nice one @wacckkoo1
this has so much potential.
i found an app on the market called ADB over WIFI widget. it dosent care if your connected to wifi or not, it will just start, making this possable to do while wireless tethering to a laptop
thats why im wanting to know how i can get it to ask for ip address because it wont always be the same.
this light sensor is really pissing me off , is there any way to shut it off , i'v found a way that is telling me to chmod 777 the patch file after installing it manually but idon't know what chmod 777 is and how to do this please help me
Is stock eclair there isn't a GUI option to disable it.
About chmod 777, I haven't done it yet... but I guess you have to adb shell something.
To know how to use those commands, just have a click on the search button...
maveloth said:
Is stock eclair there isn't a GUI option to disable it.
About chmod 777, I haven't done it yet... but I guess you have to adb shell something.
To know how to use those commands, just have a click on the search button...
Click to expand...
Click to collapse
i searched and found nothing please help it's pissing me off for real !! se u suck i bought this phone because of it's design but their software update service sux !
I have found what you were looking for [just search in devs forum].
Here it is an explaining link:
http://forum.xda-developers.com/showthread.php?t=888232
maveloth said:
I have found what you were looking for [just search in devs forum].
Here it is an explaining link:
http://forum.xda-developers.com/showthread.php?t=888232
Click to expand...
Click to collapse
thanks i found this thread before but i can't apply this method because i don't know how to chmod777 the file so i can't get this to work ? can you try it and then tell me how to exactly do it please , thanks again m8
First thing, you have to learn how to adb shell.
But you have to make everything ok before using it.
So, let's see how it has to be done..
Download the .zip file posted on the other thread [linked above].
Using root explorer, just copy and paste the content of the .zip file under the /etc/ path of the phone.
After you have done this, let's adb shell.
1. Download this file: http://db.tt/cq44S4v
2. Extract the adb.zip file to C:\adb [there will be a folder named "adb" within the C:\ path, with 3 files within it].
3. On your phone, click Settings > Applications > Development, and make sure USB Debugging is on.
4. Plug your phone into your computer via USB cable [it needs to be on]. It should say installing drivers if your phone is plugged for the first time and you are using Windows.
4.1 You'd better install the drivers which comes with X8 software [PC Companion], or just google for them.
5. After it installs the drivers, go to the Start menu and type "cmd" into the search bar to open the command prompt.
6. Type the following into the command prompt window [hitting enter at the end of every line]:
Code:
cd\
cd adb
adb devices
You should see a serial number pop up, it’s the serial number of your phone. This means you are all set.
After all this procedure, you can finally "chmod" your files.
Always from the CMD, type this:
Code:
adb shell
You should see a "#" on the left. That's good.
Now enter the path with the file to chmod:
Code:
cd /etc
Then finally chmod it:
Code:
su chmod 777 hw_config.sh
You're done.
Hope this helps.
maveloth said:
First thing, you have to learn how to adb shell.
But you have to make everything ok before using it.
So, let's see how it has to be done..
Download the .zip file posted on the other thread [linked above].
Using root explorer, just copy and paste the content of the .zip file under the /etc/ path of the phone.
After you have done this, let's adb shell.
1. Download this file: http://db.tt/cq44S4v
2. Extract the adb.zip file to C:\adb [there will be a folder named "adb" within the C:\ path, with 3 files within it].
3. On your phone, click Settings > Applications > Development, and make sure USB Debugging is on.
4. Plug your phone into your computer via USB cable [it needs to be on]. It should say installing drivers if your phone is plugged for the first time and you are using Windows.
4.1 You'd better install the drivers which comes with X8 software [PC Companion], or just google for them.
5. After it installs the drivers, go to the Start menu and type "cmd" into the search bar to open the command prompt.
6. Type the following into the command prompt window [hitting enter at the end of every line]:
Code:
cd\
cd adb
adb devices
You should see a serial number pop up, it’s the serial number of your phone. This means you are all set.
After all this procedure, you can finally "chmod" your files.
Always from the CMD, type this:
Code:
adb shell
You should see a "#" on the left. That's good.
Now enter the path with the file to chmod:
Code:
cd /etc
Then finally chmod it:
Code:
su chmod 777 hw_config.sh
You're done.
Hope this helps.
Click to expand...
Click to collapse
lol it's freaking hard , thanks for your help m8 i appreciate it is there any easier way?
Have you tried installing Spare Parts from the market. I know it has light sensor tweak option plus has tons of other useful tweaks and monitors.
Sent from my I7500 using Tapatalk
Master Darko said:
Have you tried installing Spare Parts from the market. I know it has light sensor tweak option plus has tons of other useful tweaks and monitors.
Sent from my I7500 using Tapatalk
Click to expand...
Click to collapse
tried it still no use , the sensor is still working !!
How to make a windows one click tool,
Featured on the XDA Portal! Check it out
Hello all I use these one click tools for just about everything. They make things simple. Today I will demonstrate how to make a simple one click tool to change the boot animation on your phone.
More advanced users and after you have mastered the basics check out post 2 for creating a multi tool with menus etc!
Remember please this is just a tutorial and you will have to edit it and create one specific for your device!
XDA Senior Member mnishamk has expanded upon this tutorial even further and made it automated! Check out his thread HERE.
I will be making this tool compatible with my Samsung galaxy note 2 with custom bootanimation support.
You should also know that some phones need to have custom bootanimation support for this tool to work such as samsung.
Also your phone must be rooted.
Disclaimer you try this at your own risk!
To learn more about ADB/Fastboot you can check out the tutorials I learned from:
[TUTORIAL] Everything about ADB - A reference for everyone Great guide by: Droidzone
[GUIDE][ADB]Easiest How to use adb, logcat, etc for noobs and newbies This is a newer guide by: iamareebjamal he explains ADB, commands, uses, logcat and a few other goodies.
[GUIDE] ADB Workshop and Guide for everyoneAnother good guide to ADB by: Captainkrtek
Simple guide to ADB/FastbootEasy to follow adb/fastboot guide by: Andy
Files you will need are included in this zip:
Bootaniflasher.zip
It contains:
Adb.exe – file needed for adb to function
Adbwinapi.dll – needed for windows
Adbwinusbapi – needed for windows
Fastboot.exe – needed for some mods
Bootani.bat – the one click file that runs your script
Programs you will need:
Standard windows notepad
What is so great about this, the only thing you will need to create/edit is the bootani.bat file! Also it is so simple that after reading this tutorial a cave man could do it!
Creating the bootani.bat file:
1. open a blank notepad page
2. click file/save as then type in bootani.bat leave the type as a text
document and encoding to ansi.
{
"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"
}
3. Now to write the script that will actually change the bootanimation
In the open notepad
Type the following information so that it looks like the screenshot:
ECHO is used to put text on the UI screen similar to the ui_print function in an updater script.
Code:
@ECHO OFF
COLOR 9b - this is the color of the UI - for a list of these click [URL="http://www.computerhope.com/color.htm"]here[/URL]
ECHO.
ECHO one click bootanimation flasher – title of the one click tool
ECHO. ends the text
ECHO By: XDA Eraste – you can put whatever you want here or leave it out..
ECHO.
ECHO.
ECHO. Adding space between text that appears by typing more ECHO. lines
ECHO Use this at your own risk! – simple disclaimer
ECHO.
ECHO By pressing enter you understand the risks – disclaimer
ECHO.
ECHO.
ECHO make sure your phone has usb debugging mode enabled! - information
ECHO.
ECHO.
ECHO make sure you put your custom bootanimation.zip file in this folder – info
ECHO.
PAUSE – this means nothing else will happen until user presses enter, any button
ECHO Loading files and preparing to send – simple information that displays
ECHO.
adb wait-for-device - this tells adb to wait until user has connected the phone
ECHO sending bootanimation - simple information that is displayed
ECHO.
adb push bootanimation.zip /system/media/bootanimation.zip - script that installs
the bootanimation!
ECHO Almost finished – more info
ECHO.
ECHO finished rebooting!
adb reboot – tells the phone to restart this allows you to make sure changes stuck
ECHO thanks for using this script
ECHO.
PAUSE
EXIT - closes the UI
4. Now click file/save
5. Put this bootani.bat file in your folder containing the above files also
6. Now find a custom bootanimation that you would like use and place the
bootanimation.zip in this folder also.
7. To test your new script plug up your phone make sure usb debugging is
enabled then double click the bootani.bat file and follow your on screen
directions!
If you did everything correct the above settings will create a crisp blue UI like this:
This tutorial and attached files will work on the Samsung galaxy note 2 with custom bootanimation support!
You can edit this bootani.bat to whatever you would like. For instance you can use a one click tool to reinstall all your apps after you flash a new rom!
There really are endless possibilities with one click tools and you can customize the UI, script, etc to your liking.
Those other processes are a little more in depth but virtually the same process in creating them.
You can name the bootani.bat file to whatever you like and customize the UI in whatever way you like by following the template above. The only things that will change in creating other types of one click tools are the scripts that you type into the notepad file.
Common places of bootanimation files:
Samsung: if custom bootanimation is supported by your rom usually in /system/media
HTC: /system/customize/resource
Note: On other devices such as HTC custom bootanimation support is not necessary as they use the standard .zip for the animation you can change them simply by typing the original name of the boot zip in your script. Example The ATT HTC one x stock boot zip file is named ATT_bootanimation.zip. So you can rename your custom one to this name stick it in your folder then change the one click script to reflect this name and voila!
Bootanimations can be changed on rooted phones only!
Hopefully this will help some of your newer people in gaining a bigger interest in creating cool programs that you can use on your own!
Hit thanks if this helped you learn something new!
Here I will explain some other "common" uses for the one click tool.
Using the same principals above:
The one command that should always be in your script file:
adb wait-for-device – remember this tells the program to wait until the device as been connected and detected.
You can use your one click tool to do many things: *WARNING The following procedures are dangerous and can potentially brick your device. Please experiment with easier things before trying your hand at boot.img’s, etc!
1. Flash a kernel/boot.img for HTC devices or those that use a bootloader. This will not work on Samsung devices or devices that
take “tricks” to get into fastboot or the bootloader. In addition to root, Also this requires your device's bootloader to be unlocked!
You will need to have your kernel/boot.img file in the folder just like the
bootanimation.zip file as before. Anything you want to flash needs to be in this
folder. Not in any subfolders just inside the root folder!
A. While writing the script in your bootani.bat ( or whatever you named it) file from above. You will leave out the bootanimation stuff
and add this:
B. Script the bat file as normal then use these commands instead of the others from above to flash: so the script should look
something like this:
Code:
ECHO.
ECHO Press any key to continue
ECHO.
PAUSE.
adb wait-for-device
adb reboot bootloader - this command will get you into fastboot. Make sure by looking at your phones screen it says fastboot usb or
something similar indicating you are in fastboot.
ECHO Rebooting to fastboot please wait and do not touch device!
ECHO.
fastboot flash boot boot.img - this is the command that will actually flash the kernel/ boot.img file
ECHO.
ECHO.
ECHO Finished you can now exit this tool and reboot the phone to recovery or the os
ECHO.
ECHO.
EXIT
If a dev has named this kernel/boot.img file to something else ending in .img, .elf, etc make sure you type in the correct name. Such as elekernel.img you would type in the command line the elekernel.img name instead of boot.img so it should look like this:
Code:
fastboot flash boot elekernel.img
your kernel can also be named kernel.elf, etc depending on what type of phone you are using. Just make sure to change boot.img to whatever the name of the file is you want to flash.
Then you can continue scripting your bat file to your liking!
2. This is my favorite! This procedure is harmless if done right but I must say it is still dangerous and you accept the risk if you
decide to do it. This only requires your phone to be rooted!
I have a set of ringtones, alarm sounds, ui, sounds, and notification tones that I use on every phone. So instead of putting them in folders on my sd card or phone storage, I use my one click tool to install them to the system directories so that they show up in the stock ringtone, notification, alarm, etc selection methods.
A. Take your bat file from above name it whatever you like I use: mysounds.bat
B. Take the sounds you would like to flash and put them in your folder containing the adb files, bat file, etc.
C. Script your bat file as normal but leave out the bootanimation stuff. Instead add the following commands: so that it looks something
like this:
Code:
ECHO.
ECHO Press any key to continue
ECHO.
PAUSE
adb wait-for-device
ECHO sending your media files please wait and do not touch the phone!
ECHO.
adb push yoursoundsname.mp3 /system/media/audio/ringtones/yoursoundsname.mp3
Now remember the path to your system ringtones etc, may be different depending on the type of phone you have. The above location will work for samsung note 2 and the HTC one X This path is the most common path but still it depends on your phone. Simply use your file explorer and navigate your system folder until you find the path you need and type it in the command line instead of what I have above.
Repeat the above command line until you have all the tones you are flashing added into your bat file
adb push yoursoundsname.mp3 /system/media/audio/ringtones/yoursoundsname.mp3
adb push yoursoundsname1.mp3 /system/media/audio/ringtones/yoursoundsname1.mp3
adb push yoursoundsname2.mp3 /system/media/audio/notifications/yoursoundsname2.mp3
the above one will go into the notification folder for say your favorite SMS tone instead of the ringtone folder
adb push yoursoundsname.ogg /system/media/audio/ui/Lock.ogg <-- AH you see something new! This command will change your screen lock sound to whatever file you want it! This file must be in .ogg format! Make sure its no longer than about 1 second. Or you can get a terrible AudioOut_02 wakelock or similar that will drain your battery!
ECHO finished. Rebooting so changes take effect. After phone reboots you may unplug it
ECHO.
adb reboot
ECHO.
ECHO Thanks
ECHO.
EXIT
As you can see the combinations are endless with the one click tool!
Enjoy
Creating a multi tool with a menu and selectable options!!!!!
Now I will expand the above guides and show you how to make your very on multi tool with a menu and options!
You can download this multitool.zip to use as a guide.
It contains this bat file as well as a bootanimation.zip and an mp3 in the ringtones folder. Simply extract it as before and open it up.
So lets begin.
What are we going to do? We will make a multi tool that will open a few webpages, flash a new bootanimation, or send some ringtones to your sdcard.
First we create a bat file as before. You can name it whatever you like.
Then we use this script to make the new tool: Ill explain the script below
Code:
ECHO OFF
color 9f
CLS
:MENU
CLS
ECHO.
ECHO Before you start make sure your phone has USB Debugging enabled!
ECHO.
ECHO.
ECHO .... One CLick Multi Tool ....
ECHO Make your selection below
ECHO ..............................
ECHO.
ECHO 1 - Visit XDA
ECHO 2 - Visit Scotts ROMS
ECHO 3 - Visit EMBLWPDesign
ECHO.
ECHO 4 - Flash a new bootanimation: make sure your custom bootanimation
ECHO is in the bootani folder and named bootanimation.zip!
ECHO 5 - Flash New Ringtones
ECHO 6 - Exit this tool
ECHO.
ECHO 7 - Reboot Device
ECHO.
ECHo.
SET /P M=Type your choice then press ENTER:
IF %M%==1 GOTO XDA
IF %M%==2 GOTO SROMS
IF %M%==3 GOTO EMB
IF %M%==4 GOTO BA
IF %M%==5 GOTO RT
IF %M%==6 GOTO EOF
IF %M%==7 GOTO RD
:XDA
START "" "http://www.xda-developers.com"
GOTO MENU
:SROMS
START "" "http://www.scottsroms.com"
GOTO MENU
:EMB
START "" "http://www.emblwpdesign.com"
GOTO MENU
:BA
adb wait-for-device
adb push bootani/bootanimation.zip /system/media
GOTO MENU
:RT
adb wait-for-device
adb push ringtones /storage/extSdCard/ringtones
GOTO MENU
:RD
adb wait-for-device
adb reboot
GOTO MENU
This will give us a multi tool with a menu were you can select what to do!
:MENU starts the menu making process as an anchor.
ECHO 1 - Visit XDA this will be option one on the menu simple coding! Followed by options 2 and 3 then a space with ECHO. then option 4 through 6 followed by another space using ECHO. finally option 7.
The next bit of menu code that will be different than the regular batch file is the variables!
SET /P M=Type your choice then press ENTER: - this line is were the user will input their selection
IF %M%==1 GOTO XDA - this line begins your variables, so if 1 is selected the script will jump to anchor :XDA and run from there. You can have as many variables as you would like.
Make sure your GOTO ??? command and the anchor later in the script :??? are the same for each variable as above in the script.
Now execution of the selection:
:XDA this line is an anchor for selection 1.
under your anchor you type what you want the script to do then you type GOTO MENU so that the user is taken back to the menu.
You can have the tool exit after any selection you would like. So for instance if I wanted the script to close after the user selected option 1 I would instead of typing GOTO MENU type EXIT
You would repeat this process using the above script as a guide until you had your multi tool the way you wanted it!
With the multi tool you can have things in folders inside the root folder as long as you add the correct path to the items as in the script above with the bootanimation.zip. You see it is located in /bootani within the root folder.
Your knew tool with a menu should look like this: Without option 8. Thats coming later!
Creating these tools with multiple menus!
Ok now you guys should pretty much have the basics of making these tools down. Creating multiple menu's in these tools is just as easy as anything else.
This tool I created will show you that function:
Download appbackup tool. This tool is complete and will work. You can use it, modify it how you want etc.
The code contained in the batch file from the backup tool is as follows with multiple menus:
Code:
ECHO OFF
color 9f
CLS
:MENU
CLS
ECHO.
ECHO ..................................
ECHO One click app backup
ECHO Make your selection below
ECHO ..................................
ECHO Developed by: XDA Eraste
ECHO ..................................
ECHO One click app backup
ECHO and restore
ECHO ..................................
ECHO.
ECHO.
ECHO.
ECHO Please review the readme file before continuing.
ECHO.
ECHO This tool is safe however I cannot take responsibility should
ECHO anything negative happen to your phone. Use this tool at your own risk.
ECHO.
ECHO 1 - Continue
ECHO 2 - Exit tool
ECHO 3 - Readme File
ECHO 4 - Credits/Share policy
ECHO.
SET /P M=Type your choice then press ENTER:
IF %M%==1 GOTO MENU1
IF %M%==2 GOTO EOF
IF %M%==3 GOTO RED
IF %M%==4 GOTO MENU2
:RED
ECHO.
START readme.txt
GOTO MENU
:MENU1
color 9f
CLS
ECHO.
ECHO ...............................
ECHO Main Menu
ECHO ...............................
ECHO.
ECHO.
ECHO.
ECHO 1 - Backup apps - This will only backup the apps not the
ECHO data. Use this for a "fresh" app install
ECHO after flashing a new rom, etc.
ECHO.
ECHO 2 - Restore apps - Remember no data will be restored these
ECHO will be "fresh" apps.
ECHO.
ECHO 3 - Exit tool
ECHO 4 - Reboot Device
ECHO 5 - Return to previous menu
ECHO.
SET /P M=Type your choice then press ENTER:
IF %M%==1 GOTO BUP
IF %M%==2 GOTO RES
IF %M%==3 GOTO EOF
IF %M%==4 GOTO REB
IF %M%==5 GOTO MENU
:BUP
ECHO Backing up apps to backup folder that will be created here.
ECHO.
ECHO This can take a while depending on how many apps you have
ECHO Press enter to continue
ECHO.
PAUSE
adb wait-for-device
adb pull /data/app ./backup
ECHO.
ECHO Backup finished Press Enter
ECHO.
PAUSE
GOTO MENU1
:RES
ECHO.
ECHO Restoring apps please wait this can take a while!
ECHO Hit enter to continue.
ECHO.
adb wait-for-device
adb install backup/*.apk
ECHO.
ECHO Finished Restoring apps. You can reboot now and apps should
ECHO show up in Google Play as installed.
PAUSE
GOTO MENU1
:REB
ECHO.
ECHO Are you sure you want to reboot device?
PAUSE
adb wait-for-device
adb reboot
ECHO.
ECHO Rebooting press any key to return to the menu.
PAUSE
GOTO MENU1
:MENU2
CLS
COLOR 04
ECHO.
ECHO ...........................................
ECHO Credits/Share policy please check them out!
ECHO ...........................................
ECHO.
ECHO 1 - Visit XDA
ECHO 2 - Visit ScottsROMS
ECHO 3 - Visit EMB LWP Design - My site
ECHO 4 - Return to main menu
ECHO.
ECHO .......................................
ECHO Share Policy
ECHO This tool created by eraste @ XDA
ECHO For all its users. Feel free to use this
ECHO tool at will. If you use portions of it
ECHO to make your own all I ask is that you
ECHO acknowlege myself a little.
ECHO Credits:
ECHO Developed by: Eraste
ECHO Backup script: Scott @scottsroms
ECHO Restore script: Eraste
ECHO Knowledge: XDA
ECHO ........................................
ECHO.
SET /P M=Type your choice then press ENTER:
IF %M%==1 GOTO XDA
IF %M%==2 GOTO SR
IF %M%==3 GOTO EMB
IF %M%==4 GOTO MENU1
:XDA
ECHO.
START "" "http://forum.xda-developers.com/index.php"
GOTO MENU2
:SR
ECHO.
START "" "http://www.scottsroms.com/content.php"
GOTO MENU2
:EMB
START "" "http://www.emblwpdesign.com/"
GOTO MENU2
With this code sample and the knowledge you have gained from the previous two tutorials adding your own menus should be a breeze!
As you can see in the code the starting menu label is :MENU
The second menu or main menu is :MENU1
And the third or "credits" menu is :MENU2
In the code you can see the commands used to return users to whatever menu you choose, insert a option that the user can type to go to another menu, etc.
This command is just as before in the above tutorials.
GOTO ????
replacing the ? marks with whichever menu you want. So in example in this tool once a user backs up their apps they are returned to the same menu which is MENU1 after hitting enter.
Another cool thing you can do is have one menu different colors than the others. For instance in this tool the start menu and main menu are blue with white text. The credits menu is black with red text. You can see this command above in the script under :MENU2 as COLOR 04.
A link to the page with different color combinations is located in the OP.
Now for what it looks like:
Start menu:
Main menu:
Credit menu: Sorry my computer screen and cam didnt play nice with the dark theme of this one! Looks good on the pc though.
As usual good luck and if anyone needs help don't hesitate to ask. Also these codes, tools, etc are for everyone to use as they please simple credit is all I ask if you use a portion when designing your own.
Thanks for this now testing it with some stuff for my evo3D
Re: [GUIDE][HOW-TO] Create a windows one click tool!
Flashalot said:
Thanks for this now testing it with some stuff for my evo3D
Click to expand...
Click to collapse
Easy wasnt it!
Note 2 ftw
Re: [GUIDE][HOW-TO] Create a windows one click tool!
Real easy worked like a treat!.
good guide for new users thanks mate
-Rik[Rittik]
R: [GUIDE][HOW-TO] Create a windows one click tool!
Yeah very useful!
Thanks hitted!
Rittik said:
Real easy worked like a treat!.
good guide for new users thanks mate
-Rik[Rittik]
Click to expand...
Click to collapse
GEKTHEBOSS said:
Yeah very useful!
Thanks hitted!
Click to expand...
Click to collapse
Anyone who reads and learns from the ADB/fastboot tutorials can implement those commands here to in the one click tool. Like flashing custom recoveries, boot.img's, etc all will work via the one click tool! Anyway guys don't forget to rate the thread and submit it for news worthiness!
R: [GUIDE][HOW-TO] Create a windows one click tool!
You can also put in op some usefull commands like fastboot reboot,fastboot flash boot boot.img or kernel.elf and also like chmod chown adb etc!
GEKTHEBOSS said:
You can also put in op some usefull commands like fastboot reboot,fastboot flash boot boot.img or kernel.elf and also like chmod chown adb etc!
Click to expand...
Click to collapse
I was thinking about that to but then I thought with all the ADB/fastboot tutorials around here would that be necessary? Hmm maybe Add links in the op to those great tutorials were I learned couldn't hurt! Nice suggestion and I think I will add a few of the more common ones as you mentioned!
R: [GUIDE][HOW-TO] Create a windows one click tool!
eraste said:
I was thinking about that to but then I thought with all the ADB/fastboot tutorials around here would that be necessary? Hmm maybe Add links in the op to those great tutorials were I learned couldn't hurt! Nice suggestion and I think I will add a few of the more common ones as you mentioned!
Click to expand...
Click to collapse
Ok ,2nd post http://forum.xda-developers.com/showthread.php?t=1241935
I am making A hboot flasher almost done to man i love this guide
---------- Post added at 07:10 PM ---------- Previous post was at 07:04 PM ----------
Is there a way to send someone to a web page?
Re: [GUIDE][HOW-TO] Create a windows one click tool!
Flashalot said:
I am making A hboot flasher almost done to man i love this guide
---------- Post added at 07:10 PM ---------- Previous post was at 07:04 PM ----------
Is there a way to send someone to a web page?
Click to expand...
Click to collapse
From the program when running the bat file? Hmm that's a good question id have to look into that. Im sure there is a way.
Note 2 ftw
Re: [GUIDE][HOW-TO] Create a windows one click tool!
eraste said:
From the program when running the bat file? Hmm that's a good question id have to look into that. Im sure there is a way.
Note 2 ftw
Click to expand...
Click to collapse
Ya
One bug left in my hboot flasher
Sent from my HTC VLE_U using Tapatalk 2
Re: [GUIDE][HOW-TO] Create a windows one click tool!
Flashalot said:
Ya
One bug left in my hboot flasher
Sent from my HTC VLE_U using Tapatalk 2
Click to expand...
Click to collapse
Get it worked out?
Note 2 ftw
Re: [GUIDE][HOW-TO] Create a windows one click tool!
eraste said:
Get it worked out?
Note 2 ftw
Click to expand...
Click to collapse
All most I I add
Cls for pages and its not showing the front page
Sent from my HTC VLE_U using Tapatalk 2
Flashalot said:
Ya
One bug left in my hboot flasher
Sent from my HTC VLE_U using Tapatalk 2
Click to expand...
Click to collapse
I knew it was a simple process! To open URL's from the program after the user clicks the bat file simply use this command:
Code:
START "" "yourwebsiteurl"
Voila
R: [GUIDE][HOW-TO] Create a windows one click tool!
You can add also a guide for make a "kitchen" like how to add menus like press 1 to go to recovery flashar and it go to another menu:sly:
GEKTHEBOSS said:
You can add also a guide for make a "kitchen" like how to add menus like press 1 to go to recovery flashar and it go to another menu:sly:
Click to expand...
Click to collapse
Added some basics of this, Creating a simple multi tool with options, etc to post 2.
Thanks a lot! Got my own working Root Tool and Recovery Flasher for my Gnex now.
EDIT: Now it's a multi tool with option to root, flash recovery, flash insecure boot.img,bootani,unlock bootloader, boot to recovery etc. and visit several sites with my mods and ROM on Android-Hilfe.de including "Donate Option"
EDIT 2: Got 3 menus now, it's getting better to change into a fully functional tool.
Man right when you add menu it was back to work
I add my xda profile link
And extra stuff
Tryex to Change the launcher out for lawn chair...however b i still get that stupid Walmart button ! Must i really root and deblout ? Tryed to disable the stock launcher but no go !
first you need the fastboot driver software: MTK Fastboot Drivers: https://online.mediatek.com/Public Documents/MTK_Android_USB_Driver.zip
more info on how to install driver software here: https://forum.xda-developers.com/wa.../how-rooted-walmart-onn-tablets-twrp-t4011659
then get adb: ADB and Fastboot: https://www.xda-developers.com/what-is-adb/
copied from: https://forum.xda-developers.com/android/development/amazing-temp-root-mediatek-armv8-t3922213
Download the current mtk-su zip file to your PC and unzip it. Inside will be 2 directories: 'arm' & 'arm64' with an 'mtk-su' binary in each. Pick one for your device. Differences between the flavors:
arm64: 64-bit kernel and userspace
arm: 32-bit userspace on a 64-bit or 32-bit kernel (will also work in 64-bit userspace)
Connect your device to ADB and push mtk-su to your /data/local/tmp folder
i just used the arm not arm64 that seemed to do the trick.
Code:
adb push path/to/mtk-su /data/local/tmp/
Open an adb shell
Code:
adb shell
Change to your tmp directory
Code:
cd /data/local/tmp
Add executable permissions to the binary
Code:
chmod 755 mtk-su
At this point keep your device screen on and don't let it go to sleep. Run the command
Code:
./mtk-su
keep this terminal/command prompt session open then go to...
download this batch file this user made in this post: https://forum.xda-developers.com/wa...s-general/root-walmart-bloat-remover-t4011639
open it inside making sure it is in your adb folder.
it will remove the sams club, walmart app etc.
mine did not remove the walmart button BUT a user posted on how to do so in the comments this is how you do so.
cd into your directory for adb to do so just open cmd/terminal window type this without quotes "cd filepath" replace filepath with where your adb folder is i usually just drag my folder into my terminal/cmd window and it should just put the proper directory into the window.
now type
adb shell
settings put secure sysui_nav_bar "space,back;home;recent,space"
if that does not work also try going into that window you have open with mtk-su and run
settings put secure sysui_nav_bar "space,back;home;recent,space"
sorry if this post is not descriptive enough first post so go easy on me dont hate me too much just trying to help if you have any questions about this that are confusing please ask ill try to fix them trying to help another user of this tablet as i think that the bloatware on these android tablets is ridiculous and makes the experience terrible so id like to help in anyway possible. Thank you.
Slys13 said:
Tryex to Change the launcher out for lawn chair...however b i still get that stupid Walmart button ! Must i really root and deblout ? Tryed to disable the stock launcher but no go !
Click to expand...
Click to collapse
You can use Custom Navigation Bar without root to remove the Walmart button, but I recommend root so you could use QuickSwitch, and some root tweaks with Lawnchair.
Pix12 said:
You can use Custom Navigation Bar without root to remove the Walmart button, but I recommend root so you could use QuickSwitch, and some root tweaks with Lawnchair.
Click to expand...
Click to collapse
I installed that custom navigation app .apk from a third party website because playstore said app was not compatible with device still right away it asks for root, xposed, or to conect to computer to grant permission when I did use the comand prompt and input the command it said device was not compatible. Cool idea though
Sent from my 100015685-E using Tapatalk