In the development process, you often need to install the APKProgramTo the mobile phone, you need to open the command line and then tap the installation command, which is inconvenient.
Now there is a way to add a menu item in the context menu of the file browser, specifically used to install the APK program.
The method is as follows:
1. Create a new text file named "Install APK to mobile phone"
2. The content of this file is:
#! /Bin/Bash ## this scriptInstallThe selected APKFileOnto your phoneIfConnected. # distributed under the terms of gnu gpl version2Or later # InstallIn~ /. Gnome2/Nautilus-scripts or ~ /Nautilus/Scripts # You Need To Be Running Nautilus1.0.3+To use scripts. gnome-Terminal-e"ADB-D install $ nautilus_script_selected_file_paths"
3. copy the file to the directory ~ /. Under gnome2/Nautilus-Scripts
4. select any file and right-click the pop-up menu. A script menu item is added, which contains a sub menu item "Install APK to mobile phone; click it.