Hot answers tagged

10

The Android system does not have the conventional /etc/passwd storage for users and groups. In android, user and groups are used to isolate processes and grant permissions. The Android system creates a user per application when an application gets installed. Hence application data files are stored in /data/data/<app-name>/, and are read-writable only ...


8

I usually use a combination of the following 4 commands and correlate them, since each of these commands gives a piece of the information that might be needed. Summarily: Using df lists the filesystem path alias and size info as seen below (total size, used, free and block size) Example output: root@ks01lte:/sdcard # df df Filesystem ...


4

Where should I install Toybox? Would it make more sense to install Toybox to my system partition, or to my data partition? Depends. If you don't plan to factory reset the phone ever again, you can choose data partition, else, choose system partition. When a command is provided both by Android and by Toybox, I want the Toybox version to win. The ...


4

Similar to ScoobyDo's answer Disconnect the USB cable from phone. Click 'Clear data' on the Media Storage application. Then 'Force stop'. Reconnect the USB cable to phone. The Media Storage application is restarted and rebuilds the media list. Missing files are now available. This avoids rebooting, which was important for me. Your mileage may vary


4

Izzy opined it correctly here that the only sensible place for having factory home screen layout is the launcher's APK itself. Since I don't own a Lenovo device let alone your specific model I used my MTK device running stock 4.2.1 as the testing ground. It has stock launcher (com.android.launcher). About that thing called factory home screen layout -- ...


3

A .conf file is usually readable by any text file reader as long as permissions are correct. The said file contains SSID and password of your portable Wi-Fi hotspot. E.g.: Android.SE #$#$ANDROID where Android.SE is the SSID which other users would see when trying to locate Wi-Fi network and #$#$ANDROID is the password they need to enter to connect to ...


3

What is rootfs? It's an initramfs. Basically, it's a prepopulated RAM drive. It's prepopulated with some content at boot time, usually from a cpio archive which has been compiled into the kernel. Can I write to it? One way to make changes to your rootfs is to unpack the cpio archive, make your changes, and repack the archive. Your device will almost ...


3

Let's clear up some confusion. Things to always remember: /data/app contains the APK of an app. (PACKAGE → package name of an app) Android 4.x: if the app is installed using Package installer of Android the file name would be PACKAGE-*.apk where * is often a positive integer. /data/app isn't supposed to have any directory inside it. Android 5.x: ...


3

Gigabytes are base 10, but Android uses Gibibytes (base 2) See: http://www.wolframalpha.com/input/?i=16GB+to+GiB. This is needed because binary data is written in base 2, but SI units are base 10.


3

Use these commands su -c 'busybox mount -o remount,rw /' # this will remount rootfs at / in rw mode su -c 'mkdir /mnt/"NEW_DIR"' # replace NEW_DIR with the name of the directory you aim to create under /mnt Note that in Android /mnt is not a mount point for any real or pseudo-filesystem but its sub-directories are (actually, /mnt is a ...


3

I'll now guide you through the procedure of writing a custom flashable ZIP, for the purpose of renaming your sh.old.bak. To begin, create the following tree of folders: /META-INF/com/google/android Once you created them, move to the android folder, and create the following new files. Make sure that they don't have any extension at their end: ...


3

From a root shell/terminal: dd if=/dev/block/platform/*/by-name/modem of=/sdcard/NON-HLOS.bin On some devices it might be radio instead of modem and you can, of course, place it somewhere other than /sdcard. Note also that it will typically be padded with zeroes on the end — for example, the NON-HLOS.bin I flashed was 57.1 MB but when I retrieve it ...


2

Since this commit notification policy settings were migrated from the separate /data/system/notification_policy.xml file to the generic AppOps subsystem. Now they are stored in /data/system/appops.xml together with other AppOps settings.


2

The best way is relative and dependant on not just hardware but also your desire to modify and or automate. For one-shot tasks I'd suggest adb & for special projects and automation I'd suggest Casual or Xposed. For messing with stuff I probably shouldn't, I'd definitely start with Xposed if I were you because the settings can be non-permanent. To help ...


2

Unforgettableid's comment included an AnandTech article that describes the conditions under which fstrim is supposed to run: I’ve learned a bit more on the conditions underlying when Android 4.3 will TRIM filesystems, as it wasn’t completely clear before. The Android framework will send out a “start idle maintenance window” event that the MountService ...


2

I was having a similar issue, I could find the location, but no videos would populate. I have to change the usb connection mode from Camera to Media ( I know, duh ).


2

If I'm not mistaken you can force android to fsck both the internal and external storage on reboot by doing the following depending on your rom. run terminal app and type su touch /forcefsck Then reboot source: http://forum.xda-developers.com/showpost.php?p=57027579&postcount=20


2

In my stock Android 4.2.1 the file responsible for holding Desktop backup password seems to be /data/backup/pwhash. I took a backup of it, renamed it, restarted the device, and the password was reset to empty. Now I could create a new password from the Settings easily. In CM12, I had to rename two files, namely pwhash and pwversion, and everything went ...


2

In the settings of Google Play Music, if you have it set to cache on the external SD card, your cache location will be /external_sd/Android/data/com.google.android.music/files/music/. If you have it use the internal storage, the path will be /sdcard/Android/data/com.google.android.music/files/music. Note that these files are named [some-id].mp3, like ...


2

MacroDroid (free up to five macros) can do the job. The macro would be: Trigger: Day/Time Trigger → select all the days and choose the time for trigger activation Action: File Operation → Delete → select the folder that needs to be cleared → All Files Edit: { There is a catch here. Unless the device is rooted, only the files at the ...


2

It's in YourLocalStorage/Android/data/com.dropbox.android/files/uXXXXXX/scratch/Your/Folder/In/Dropbox/file.pdf Note that YourLocalStorage depends on your mobile. For example, it is storage/emulated/0/ on some LG phones. To access the file from your web browser you have to put file:/// before the given path.


2

Yes. If the files are identical, by definition, they should also be identical in size, regardless of platform (Unless the file is a sparse file, and/or the mechanism by which the FS driver of the platform reports file sizes is buggy). But for identical apps, however: Not necessarily. The file size mostly differs for native-compiled executable code (ARM vs. ...


2

I am the developer of this Droid Explorer which does show hidden files. If you are talking about this droid explorer app then I can't help you, as I have nothing to do with that app. I would suggest you contact the developer of that app. His contact info is at the bottom of the link I posted. I am going to assume you mean the App for Android Devices, not ...


2

The filesystem you're trying to create the symbolic link on doesn't support symbolic links. All the native Linux filesystems (ext2-4) support symlinks, but the DOS filesystem used on SD cards doesn't, and several others don't. For a filesystem implemented with FUSE (as in this case), it's entirely up to the filesystem driver, so you can't tell whether it ...


1

The correct file to modify is the build prop. Which can be risky to modify. This will enable everything needed. Through the file system modify the build.prop or with a computer. If the custom recovery is TWRP or possibly CWM. Then adb comes pre-enabled. Then you also need root and a computer with adb. boot into your custom recovery. Plug your device into ...


1

By default, when connecting your device it gets mounted via mtp. Our mtp tag-wiki gives some details on this; basically, only parts of the device's storage is exposed – usually only the SD card(s). In easy terms, you can think of this as something similar to your "Windows Shares", where you define directories to be available over the network (with the ...


1

Using Total Commander to remount the / directory as RW also remounted /system as RW. Howto: Enable Root Functions Everywhere in TC settings. Proceed to add a new button to the toolbar with Function Type Internal Command. Press on the >> button, and select the 119 Remount option. Press OK/Apply Navigate to root (/) directory. Press newly created ...


1

Multiple things in this context: apps might directly support using the external SD card as storage, check with their settings. This will save you some headaches, as it then works without "tricks". When changing to the new storage, apps might even offer to copy/move their data over, which would be the easiest thing for you to do. As Gokul mentioned in his ...


1

I don't think there is a standard location for the sd card directory but look for a folder called external_sd. It will depend on your tablet model. Perversely, it will not be your /sdcard directory, this folder is your embedded storage.


1

To get access to the filesystem you need to be rooted and you need to use ADB. MTP is way to limited for the low level access your needing.



Only top voted, non community-wiki answers of a minimum length are eligible