Feb 242017

Allview broken touchscreenFew days one friend just broke his phone touch screen, and the half bottom of the screen  didn't respond anymore. So, no chance to interact anymore with it.

He wanted to transfer all the files from the phone to the PC, but when the USB data cable is inserted the phone is asking what to do with USB connection:

  • Charge only
  • View photos
  • File copy

He wanted the last option "Files copy" to access the internal storage, but the phone does not respond and starts with default option "Charge Only". Looks like there is no chance to copy any file.

Fortunately on my PC I have Android Studio installed, and it comes with the "adb" tool (Android Debug Bridge).  It lets you to communicate with the Android devices connected on the PC. Here is what I've done to copy the content of entire internal storage to PC.

With bold are the command that I've run , and in blue bold are the comments/hints.
First step is to identify the path of the phone storage,
it is different from vendor to vendor and one Android version to other.
C:\Users\mark>adb shell ls -l /
-rw-r--r-- root root 663 1970-01-01 02:00 seapp_contexts
-rw-r--r-- root root 231669 1970-01-01 02:00 sepolicy
drwxrwx--- radio system 1970-01-01 02:00 spdata
drwxr-x--x root sdcard_r 2017-02-24 18:36 storage
dr-xr-xr-x root root 2017-02-24 18:36 sys
drwxr-xr-x root root 1970-01-01 02:00 system
-rw-r--r-- root root 6729 1970-01-01 02:00 ueventd.rc
lrwxrwxrwx root root 2017-02-24 18:36 vendor -> /system/vendor

C:\Users\mark>adb shell ls -l /storage
drwxrwx--x root sdcard_r 1970-01-01 02:00 sdcard0
drwx------ root root 2017-02-24 18:36 sdcard1

C:\Users\mark>adb shell df /storage/*
Filesystem Size Used Free Blksize
/storage/sdcard0 7.2G 4.5G 2.7G 4096
/storage/sdcard1 0.0K 0.0K 0.0K 4096
Based on whet we see above, looks like the storage path is /storage/sdcard0 .
Let's copy it using "adb pull" command.
First the command will build the list of files to be transferred,

then will start transfer and will notify us about the progress status.

C:\Users\mark>adb pull /storage/sdcard0 D:\tmp\bkp_from_allview_internal
[ 24%] /storage/sdcard0/DCIM/Camera/IMG_20141227_141226.jpg: 16%
/storage/sdcard0/: 1218 files pulled. 0 files skipped. 3.2 MB/s (4717973504 bytes in 1406.642s)

That's all folk!

 Posted by at 10:07 PM
Feb 052017

 Google Play Identical Files Finder Android application.
The main idea was to have a very small size application (apk size is ~1.5MB), to not waste to much space on disk.
Also the application can be moved to external SD card, to save space of internal phone/tablet storage.

It works for all Android v4.0+ phone and tablet devices .

Here is the detailed description about how to use the application.

Step 0

Only if you have Android v6.0+ .

Allow Read/Write on external storage

Allow Read/Write on external storage

First you have to allow access to READ/WRITE photo, media and files.
For older versions of Android it is done/asked when you install the applications.

Step 1

Select storage Disks, and filter search by files size.

Select storage Disks, and filter search by files size.

Here we select the disks we want to scan, and also filter the files by size. If no minimum and maximum size are set, all the files will be search.


Step 2

Create groups of files having the same size.

Create groups of files having the same size.

Start to scan every selected disk and builds groups with files having the same size.


Step 3

Progress status

Progress status

No action is required for this steps. It just shows you the progress status.

Info about total number of groups having files of the same size, how many files we have in the current group, size of each file in the current group.

Step 4

Select files to be deleted

Select files to be deleted

Select files that we want to delete. For each group where we have selected at least one file, the color associated with the group will change.

We can sort the groups by files' size  or by number of files in group ; both are in ascending order.

We can unselect or select all files.

When we decided what files we want to delete, just press DELETE button.


Step 5

Confirm files to be deleted

Confirm files to be deleted

Confirm that this is the list of files that we want to delete. Info related to the number of files and the total disk size that will be freed are provided.

Step 6

Only for Android v4.4.* (KitKat)

Files from external SD card can not be deleted.

Files from external SD card can not be deleted.

On android version v4.4.* applications are not allowed to write/deleted in other folders except the folder associated with respective applications. So, we can not delete any file stored here. The list with such files are provided, and they have to be deleted connecting the phone as storage device to a PC.

 Posted by at 8:33 PM
Aug 312012

Few months ago I've bought an Android tablet made by ASUS, together with the docking keyboard.

Until few days ago I didn't use to much the keyboard, it is useless for browsing and games.

In one weekend I had to go outside of town (no internet) and I still wanted to code some simple PHP pages.

So I was looking for an editor, but looks like it was not easy to find someting convenient on google play store.
I've try few editors but non of them was what I wanted.
I was looking for at least two features:

  • fast enough when editing
  • syntax highlighting

Because I'm very comfortable with vim, in the end I just search on google play store for vim ... Continue reading »

 Posted by at 9:29 PM