Sometimes a user of a device with a system from Google has to face non-trivial tasks, the solution of which requires first find folders data and system where important files are located. How to do it on Android, we will tell in the article.


First of all, the user will need a file manager that shows not a breakdown by multimedia data, but the actual contents of the disc. Sometimes such managers are built into the firmware, otherwise you can go to the Play Store, where there are also free options.

Then, using it, we go to the root of the system, indicated as "/". In a number of managers for quick access there is a separate item for it in the Action Bar, and somewhere you just need to click on the “..” sign or select “File system root”. It is here on Android that you can find the data and system folders, their names, by the way, also begin with a slash.

It is worth noting that these sections, especially the second one, contain critical important information. If the user has root access and is delete files in data and system folders, this may cause problems with the performance of the device.

The method can be useful in the event that "nothing helps already", access to root explorer no, or the phone can't boot at all. In my case, I had to restore the stupidly deleted SystemUI.apk in the "combat" mode. At the same time, it was possible to do something on the phone only in a fraction of a second between pressing the “OK” button on the previous window with an error and the appearance of the next same window. I didn’t want to reflash, so I had to urgently master adb.

So, in order to connect your google phone to adb, you need:

1) Android SDK for your system (here - using GNU/Linux Ubuntu as an example)
2) Android SDK Platform-tools (installed by selecting the appropriate checkbox in the Android SDK)
3) In "Settings - Programs - Debugging" there should be a check mark on "Debugging via USB"
4) Connect phone to USB
5) In my case, I had to do two more things:
specify the phone manufacturer ID idVendor (you can find it):
#echo SUBSYSTEM=="usb", SYSFS(idVendor)==" 0bb4 ", MODE="0666" > /etc/udev/rules.d/51-android.rules
#chmod a+r /etc/udev/rules.d/51-android.rules
where we replace 0bb4 with the code of our manufacturer, then restart adb
#adb kill-server
#adb start-server

So, everything is installed and connected, you have added the path to platform-tools to the $PATH variable of your operating system, or you have changed to this folder using the cd command. On the command "adb devices" should issue a certain number and to the right of it "device". This means that adb sees the phone and can work with it. If instead of “device” there is something else, or in general “List of devices attached”, the problem is somewhere in step 4-5.

Next, you need to place the system file you want to install into the platform-tools folder. That is, a backup copy of the system file must be prepared in advance or copied from a similar phone.

After that, you can drop the system file into / system / app with the following sequence of commands:

$adb push YourFile.apk /data/Yourfile.apk
$ adb remount
$ adb shell
$su
#cp -f /data/YourFile.apk /system/app/Yourfile.apk
#chmod 644 /system/app/YourFile.apk
#exit
$exit
$ adb reboot
where YourFile.apk is the name of your system file, and the letter case matters.
After the last command, your phone should reboot with new files.
If you get the answer “remount failed: Operation not permitted” to the “adb remount” command, then try instead after “su” enter “#mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system”.

P.S.: On Linux, if platform-tools is not added to $PATH, you need to write "./adb" instead of "adb".

In this article, the commands that I ran on behalf of ordinary user are indicated by the $ symbol at the beginning of the line, on behalf of root - by the # symbol.

Articles and Lifehacks

Modern smartphone running mobile platform is a real portable mini-computer in which files are divided into folders and organized in the most convenient way. This article will suggest how to access folders in android and where they are.

Where are the folders in Android and how to enter them?

If we are using desktop computer with Windows, you are probably used to the fact that everything in this system is distributed across disks. For example, the system is installed on the C drive, and the D drive is used to store personal files. The rest of the drives can be used, for example, for removable flash drives and external hard drives(for example, Z or E).

The Android system, which is based on the Linux kernel, is organized in a different way. It provides a tree-like structure of files, the starting point of which is the root. In addition, the mobile operating system itself is quite case sensitive. So, if in Windows we cannot create ALBUM and Album folders in one place at the same time, then in Android it is quite possible.

The data section on Linux contains the data of the user himself, as well as personal settings, and the cache section - temporary files, including system updates. Device information is stored in dev, and the files that are responsible for the IMEI identifier are stored in efs (although last section does not always occur). The system folders are in system. As for information about the kernel and its configuration, they are contained in proc. We add that in order to see the root partitions under these names, we need root rights, as well as a special file manager.

If we are interested in how to access folders in android, and we do not have root rights, it is not worth the risk just to see the partitions as it was originally presented on the Linux kernel. It is best to use one of the most common file managers like Total Commander. Through such a dispatcher, we can clearly see what and where exactly is located.

How to go to the folder with the cache of games in Android?

In order for the game to work correctly, we cannot do without a set additional files, i.e. no cache. This is especially true for games of considerable volume with 3D graphics. Immediately after installing and opening the game, the cache starts downloading over the Internet. In addition, we can pre-download and upload to a mobile device by connecting it via USB. Unpack the cache using an archiver like WinRar.

We add that it is highly recommended to download the cache over Wi-Fi. If right now we do not have access to wifi hotspot, however, there is a stable and unlimited Mobile Internet, in a pinch, you can use it, as well as an application called Reverse Tethering for Android.
We recommend that you read the instructions for installing the obb cache format separately. You can usually access it at the following address: sdcard/Android/obb.

If we cannot find the obb folder due to its absence, we should create it ourselves. Another type of cache can be found in sdcard/Android/data.

This article will show you how to view system files on a phone or tablet running android way android connections to a Windows computer. Systemic android files cannot be viewed on a Mac OS X computer.

Steps

Part 1 How to Access Files

  1. 1 Open the Settings app. The icon for this application is a gray gear and is usually found in the list of installed applications.
  2. 2 Scroll down and tap About phone. You will find this option at the bottom of the screen.
    • On a tablet, click About Tablet.
  3. 3 Scroll down and find the Build Number section. It is located at the bottom of the screen.
  4. 4 Click on the "Build number" line seven times. The message “You have become a developer” will open, indicating that you have successfully enabled the developer options.
    • You may have to click on the indicated line more than seven times to get such a message.
  5. 5 Click the back button. It is located in the upper left corner of the screen or below the screen.
  6. 6 Click Developer Options. This option is above the "About phone" option.
    • On the Samsung Galaxy, the "For Developer" option is at the bottom of the screen.
  7. 7 Scroll down and activate the "USB Debugging" option. It's in the Debug section in the middle of the screen.
  8. 8 Scroll down and click USB Configuration. You'll find this option below the "USB Debugging" option.
  9. 9 Click MTP (Media Transfer Protocol). This option is at the top of the USB Configuration page. This is how you can view Android system files if you connect the device to a computer.

Part 2 How to open system files

  1. 1 Connect your Android device to your computer. one end charging cable connect to the USB port of the computer and the other end to the phone. The process of synchronizing your Android device with your computer will start.
    • A window may open asking you to specify what to do with the Android device. In this case, close this window.
  2. 2 Open the Start menu. Click the Windows logo in the lower left corner of the screen.
  3. 3 Open File Explorer. Click the folder-shaped icon at the bottom left of the Start menu.
  4. 4 Click This PC. It's a monitor-shaped icon on the left side of the Explorer window.
  5. 5 Double click on the connected Android device. It will appear in the "Devices and drives" section in the middle of the window. The Android system folder will open.
  6. 6 Double click Internal Memory. A window will open that will display all the folders stored in the memory of the mobile device (including folders with system files). Now you can view these folders and files.
    • Follow the procedure before disconnecting your mobile device from your computer.
  • before viewing system files, because they depend on the version of the operating system.

Warnings

  • Delete only those files and applications whose purpose you know. If you delete the necessary system files, this will lead to the collapse of the Android system and the complete inoperability of the device.

Systemic google apps, such as Gmail, Google Maps, Google+, Gtalk can be demolished, but it is better to leave the services, as their absence will lead to failures in Job Play Market, games and other programs, frequent errors.

In addition, you cannot delete Addresses and Navigation if you plan to Google usage Maps, but you can get rid of Street View, as it is not included in this application.

To remove system applications, you need superuser rights, that is, the device must first be rooted so that you can make changes to system folders and files.

Native programs are located in the /system/app folder and are represented by files with apk and odex extensions. If the firmware is deodexed, then there are only apk. To get into the folder, you need to use a third-party file manager, for example, Root Explorer.

You can uninstall applications manually and through additional programs. In the first case, you need:

  • through Root Explorer go to / system / app;
  • click on the "R / W Rights" button at the top right, remounting the recording folder;
  • put checkboxes on the deleted apk and odex application files that have the same name;
  • select the icon with scissors at the bottom;

  • go to the folder on the flash drive;
  • then "Move here".

It is necessary to use the movements, because the files can be returned if necessary.

To simplify the procedure, you can install Uninstaller pro.

Use it like this:

  • after the first launch, you need to grant him superuser rights;
  • press the back button;
  • in the list of programs find the one you need and click on it;
  • then "Delete" and agree.

In addition, here you can first make a backup just in case.

If the standard program has been updated, then you first need to remove the update in the standard way:

  • go to "Settings";
  • "Applications";
  • choose the right one;
  • "Uninstall update".

After erasing the main files, the remaining ones are located in the following folders:

  • /system/lib contains .so libraries that are needed for related applications to work, they do not match the name of the main file and should not be touched in any way, as this can kill the device;
  • /data/dalvik-cache - they must be deleted, for this it is better to do a hard reset.

Since this can't be done using the public API, I found a way to do it in a very "hacky" way that requires an embedded device.

Update: as stated below by user864555 this is another solution

"This code disables the SystemUI app, which is actually a menu bar. What this modification you will also get the space of this system bar, but be sure to run the back button or something to exit.

Update: Here is the third method. The way to do this is programmatically or using the command line. Found here: http://android.serverbox.ch/?p=306

This method requires root access, but you do not need to change the density of the LCD, keeping the same as the original, and you can quickly dial the UI navigation bar without having to restart every time.

The blog also shows you how to implement it in your android app, remember that it requires root and it might not be an ideal idea, if your app doesn't work in a kiosk or your own device, don't use this method for your app. published on the android market or anywhere.

To stop/remove/disable system bar (must run su command before issuing this command):

To restore the system bar, simply run this command:

It is so simple. Hopefully ICS will be released soon, along with source code, so that everyone can create Android for our kiosk tablets.

In Android 2.3 and below, you can make an app fullscreen and then "capture" the menu/back/search buttons by simply returning false onKeyDown()... and registering the app as standard application to run at home, there is no exit from the application.

In Android 3.0 (Honeycomb) navigation buttons (system bar) are always present, I would like to hide this. Is it possible?

FYI, I do not publish this application on the Android Market. it internal application for devices to be used internally, I need to secure the device.

On most modern smartphones and tablets installed operating system Android. All files located on a smartphone or tablet can be managed directly through the mobile device itself, and you can also do this using a computer to which a smartphone or tablet is connected.

One of the programs for managing Android files through desktop computer is Mobogenie. With the help of this program, you can not only manage files on your mobile device, but also download new games, music, videos and pictures to it via the Internet. The program is connected to the service through which you can upload the necessary files.

The program itself is simple and understandable, after launching it looks for a mobile device and if it does not find it, it offers to connect and, for convenience, offers to view the manual on how to connect via usb cable.

The program window is divided into two honors in the first part on the left is the Mobogenie menu, and on the right are displayed all kinds of applications and music that can be downloaded. The program menu consists of three parts, in the upper part there are categories of files that can be downloaded, in the middle part there are settings, in the third part there are also categories of files, but unlike the top part, these files are located on mobile device which is connected to the computer.

You can upload various files directly to the device, or you can download the file to your computer, and then upload it to the device through the program folder.

Structure and purpose of folders and files in Android

All downloaded files can be found in the task(s) menu, located at the very bottom. In the same place, by clicking on the inscription at the top of the open downloads folder window, you can open the folder where all files are downloaded to your computer. In order to do backup or use the file manager to manage files on Android, you should go to the toolkit menu.

AT general program to manage Android files through your computer Mobogenie makes it easy to work with mobile devices.

With it, it is much easier to download various files, manage them, change contacts, read SMS and MMS messages, and so on.

Distribution: free.
Operating system: Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10.
Interface: English.
Program website mobogenie.com

android adb- this is plugin for Total Commander, which allows you to get full access to file systemAndroid, and some other functions of the system.

How to edit or replace system files and folders?

The plugin is very convenient for users who cannot work without this convenient file manager. The plugin allows you to link your device with a computer and is not intended for synchronization. You can install applications by copying apk file to the root folder.apps.

Peculiarities:

  • Application management (installation, removal and backup)
  • Application icons and their metadata in columns
  • Logs, error reports, kernel logs, Shell
  • Reboot from the menu (Shutdown, reboot, recovery)
  • Screenshots (Easy copying from the .screenshot folder).
  • Connecting multiple devices with the ability to rename
  • Suitable for rooted and non-rooted devices
  • Full unicode support
  • Support for x32 and x64 systems
  • Integration with command line TC
  • Running copy and move commands in the background
  • Custom file data columns
  • Full file system management
  • Copy between two devices
  • Changing File Permissions
  • adb usb and wireless adb(no need to install Android SDK)
  • Device auto-mount support
  • Debug logs
  • Miscellaneous settings

Requirements:

- On the phone must be enabled " USB Debugging«

- Phone drivers must be installed

WiFi ADB for wireless connection(Can be found on Google Play ) if needed

Android SDK You don't need the plugin to work!

Installation:

If you try to open the archive in Total Commander, then the manager will automatically ask you about installing the plugin.

In TC we open network environment, looks like a "\" next to the listed drives. Select \ADB, then your MSM8225* phone, you may need to reboot Total Commander.

Screenshots:

Download ADBplugin_v7.3.zip 7247

Editing Android system applications is most often carried out when the user of a smartphone, tablet or other device controlled by this operating system, ceases to satisfy the current appearance programs installed in the device by the manufacturer or seller. Another reason may be the need to make not only changes regarding the graphical design of Android applications, but also affecting the location various elements and perform basic functions.

In order to make changes to the code, elementary programming skills are required in almost any language (preferably Java and C ++). To replace graphics, direct hands and the ability to work in a graphics editor will do.

First of all, you should decide whether you just need to replace the graphics in Android applications or whether you need to change the arrangement of elements in the system and make deeper changes in the code. Depend on this next steps, which involve either working with the application as an archive, or its complete disassembly and editing.

Changing graphics in Android system applications

In order to simply replace or modify the original graphics (change button colors, redraw pictures, etc.), it is enough to have a standard WinRAR archiver on your computer. At the same time, the user must have “root” rights on the device (similar to account administrator on Windows), and it is also desirable to have an alternative recovery (CWM) and a root explorer (to access the Android file system directly in the device itself).

First of all, you need to enable USB debugging in the device, then connect it to the computer using a USB cable and install the necessary drivers. They are usually located on virtual disk that appears when connected to a computer.

Then you also need to download the ADB plugin for the file manager on the Internet. This plugin allows you to see the entire Android system as a connected drive with folders. All system applications are located at /system/app and /system/framework. Having found the desired application, simply copy it to your computer. If the plugin is not installed, you can use the root explorer to copy the application from apk extension to a removable SD card, and then from it to a computer.

Folders in an Android smartphone and what they mean

After copying desired application you can start editing graphics. By the way, all pictures in Android applications are saved in png format which can be easily opened by anyone graphic editor. By opening the application file with using WinRAR, you can see a number of folders. We will only be interested in the res folder, inside which, in turn, a lot of different folders. Of these, only those that have the word "drawable" in their name are needed.

Now let's remember our device type and its screen resolution. If this is a smartphone, and the resolution is 240x320, then we will be mainly interested in the drawable and drawable-ldpi folders. If the resolution is 320x480 - the drawable and drawable-mdpi folders, respectively, and for the resolution 480x800 - the drawable and drawable-hdpi folders. In addition to them, there are usually also folders that have the word "land" in their names - these are graphics for portrait mode, i.e. when the device is tilted.

If you have a tablet in your hands, then we will only be interested in the drawable and drawable-mdpi folders at any screen resolution.

By copying the selected folders to your computer, you can replace or recolor source images necessary and pleasing to the eye. You should pay special attention to pictures with a resolution of 9.png. The fact is that along the perimeter of such an image there is a special frame one pixel wide with special marks, the violation of the integrity of which will lead to a failure of the application. Therefore, extra care must be taken when editing such files.

After editing the folder, you need to upload it back to the archive, which is the application itself with the apk extension. In this case, it is necessary to select the “no compression” option in WinRAR.

The corrected application is downloaded back to the device either using the root explorer (first the file is copied to the SD card, and from it to the device), or after exiting the recovery - immediately from the computer to the / system / app or / system / framework folder . Next, you must set the file permissions using the appropriate options in the root explorer or the ADB plugin. They must be in 644 format. After rebooting the device, you can see the result of the updated application.

Editing the source code of system applications

A little more effort is needed to edit the source code of system applications. In order to disassemble and build the application after making changes to it, you will need to perform a few of the following steps.

1) Install the necessary software package on the computer in their latest versions: Java SE Runtime Environment and Android SDK Windows (programs for working with applications and their components), APKtool or APKManager or Firmware_tool (one of three programs for disassembling and decompiling system applications), NotePad ++ editor (for making changes to the source code of Android system applications ).

2) Enable USB debugging in the device, connect it to the computer using a USB cable, install the necessary drivers to work with the device.

3) Using one of the above programs for working with application code, you need to extract the folder / system / framework (completely) from the phone to the appropriate folder of the program and system applications from the / system / app folder. For example, for the Firmware_tool program, files from the phone must be copied to the C: Firmwaretoolfw_project1_source2_system.img_unpacked folder in the appropriate subfolders (applications to the app folder, files from the framework to the framework folder). When using both this and other programs, be sure to read the instructions for them.

4) Install the "reference framework", i.e. a set of rules in accordance with which decompilation (i.e. code disassembly) and compilation (i.e. code assembly) of applications will be carried out.

This completes the preparation for working with system applications.

Unloading applications from the device and loading them back is carried out similarly to the procedure described in the section “Changing graphics in Android system applications”.

Editing the code of Android applications is usually done using NotePad editor++ - one of the most convenient text editors, which have the syntax highlighting option for the selected programming language. As a rule, when editing, you can also change the graphics along the way using the selected graphic editor.

Upon completion of editing, the modified application is loaded back into the device, and the device itself must be rebooted. More advanced editors for debugging applications before downloading them to the device use various emulators, for example, Eclipse from Google.