Tuesday, September 30, 2014

internal storage - What space am I running out of when trying to install an app?


I am trying to install a new app that is around 2MB (owncloud client), but it fails with "Insufficient storage space...".


enter image description here


From the above screenshot I can't find a partition (other than the few apps) that couldn't fit around a 2MB app 5 times (for extracting etc.).


What causes the error?





calibration - Do I have to calibrate my battery after a reinstall?


When I installed Cyanogen Mod 7, I 'accidently' clicked 'Wipe Battery Status' even though my battery wasn't fully charged.


Now I have no idea what this exactly does (even more reason I shouldn't have clicked it), but I'm wondering whether the phone has anyway of knowing when or if the battery's full.


So should I calibrate my battery and if so, how would I have to do this?




2.2 froyo - Upgraded my phone from 1.6 to 2.2 Android version, if I restore "Factory Settings", which version it will be?




Possible Duplicate:
Will factory resetting my device remove the Android upgrade?



I upgraded my Galaxy 551 from 1.6 to 2.2 Android version some time ago with Samsung Kies, now I want to make a factory reset due to reset all of my settings and give the phone to my mother.


I'm wondering about wich version the factory reset will bring to me. It is the factory version (1.6) or the upgraded version (2.1)?



Answer



Factory Reset doesn't take your device back to factory condition. It just clears all data, settings, etc.



So your phone will not go back to older Android version. It will be on the upgraded Android version (or any ROM that you have installed) with all data cleared!


Watch this video for more help. At 5:30 the guy answers exactly what you are asking.


Monday, September 29, 2014

file system - Check and fix SD card errors within Android itself?


Sometimes my SD card gets "corrupted" and this leads to many read/write errors. Usually, connecting the SD card to the windows 7 and selecting the "Error Checking" (Right click the drive > Tools > Error Checking) option finds the corruption and fixes it.


Is there any tool or app for checking SD cards for drive errors and fixing the same from within the android itself?


I'd also like to mention that I'm on rooted froyo with busybox installed.




Answer



You can fix this with the help of root and a terminal emulator (e.g. Android Terminal Emulator (or, alternatively, using adb shell). The binary to do the job is called fsck, and usually located in either /system/xbin or /system/bin. Sometimes you need a special variant of it, which might e.g. be called fsck.exfat or the like. So first let's make sure we find the right binary:


cd /system/xbin
ls fsc*

If not found, repeat with /system/bin. I will assume here it was found in the first place, and is simply called fsck (adjust the following correspondingly if that's not the case).


As fsck comes from the "Linux core", we can consult its man page for the syntax. Though there might be some options not working on Android, the most basic ones should. See the linked man page for details (or run a Linux VM and use man fsck in case that page disappears) -- I will stick to the basics here:


First we need to find the device your SD card is bound to. If it's mounted, the mount command will assist us:


mount


That's it, basically: Check the output and see where your SD card sits. Usually this is something using vold, but it's different between devices. Output may include something like /dev/block/vold/179:17 on /mnt/storage/sdcard -- in that case, the first part of my quote is our device. In order to repair the "drive", you need to unmount it first. This can be done via the settings menu, or, as we're just in the terminal, by issuing


umount /dev/block/vold/179:17

Now we can go for the repair job. Basic syntax is:


fsck [options] [-t fstype]  [fsoptions]

So we first try the simplest approach and hope fsck figures out everything itself:


fsck -C -r /dev/block/vold/179:17

Which basically means: Show progress (-C), and always ask the user to repair (-r) any errors on /dev/block/vold/179:17. If this does not work out, check with the linked man page for further options.



dropbox - How to sync calendar with android without google?


is there a way to sync an Ubuntu calendar application like Thunderbird Lightning or Evolution with an Android device without using google-calendar?



At the moment I am syncing my Thunderbird-Lightning calendars on different computers via Dropbox, what is much more reliable than google-calendar. Another big advantage over google-calendar is, that I can access my appointments offline as well, since the calendar files are synced onto the harddrive of each computer by Dropbox.


I'd like to access those calendars via my android device as well.




  • The Dropbox-app for android does not support automatic syncing yet, so it seems like I have to use another service.




  • Apart from that I guess I need to know an android app, that can access a calendar-file stored in ics-format.





Thanks in advance YSN




4.4 kitkat - Accessing and Controlling an Android Device Remotely


I tried AirStream and AirDroid but like Teamviewer both are not successful and satisfactory.


What apps can be used for access, controlling and providing support for an android device from another android device and desktop computer?


Regards


GNS




Sunday, September 28, 2014

applications - Check what storage an app uses?


Is there a way to check what storage a third party application is using? i.e which of these it uses?




Answer



If you are rooted, this is quite easy to find out.


First you need to find the app's package name, e.g. com.swype.android.inputmethod for Swype, or com.google.android.apps.maps for Google Maps, for example. You can usually search for the app in Android Market, and the link will contain its package name, e.g. https://market.android.com/details?id=com.google.android.apps.maps would be the link to Google Maps. Usually the package names are descriptive enough that you can simply guess which app they represent just by looking at it.


You can do a few simple ls commands in Terminal Emulator or ADB shell to find out the app's name, and where it's stored. However, you will need to have root access to the device since app and data storage is protected.


Pre-installed apps are generally located in /system/app directory. Use the command ls -l /system/app/ to find how much space a particular system app is taking up:


ls -l /system/app/Browser.*
-rw-r--r-- root root 418098 2011-06-26 01:05 Browser.apk
-rw-r--r-- root root 472760 2011-06-26 01:05 Browser.odex

On most Stock ROMs you will see an .odex file along with a .apk file for each app - those are pre-compiled binaries optimized for your given device. You cannot remove them.



3rd-party apps are installed to /data/app or /data/app-private directories. Command ls -l /data/app/[package_name_here]* should return the amount of space taken up by this app on internal memory. For example, here's the output of looking at Google Maps apk:


# ls -l /data/app/com.google.android.apps.maps*
ls -l /data/app/com.google.android.apps.maps*
-rw-r--r-- system system 6330104 2012-02-04 09:01 com.google.android.apps.maps-2.apk

The app data and settings are located on /data/data/ partition. There you will find a directory for each installed app, e.g. /data/data/com.google.android.apps.maps/ for preferences and settings related to the Google Maps app. Again, ls -l /data/data/com.google.android.apps.maps/* will return a listing of all files with their sizes:


# ls -l /data/data/com.google.android.apps.maps/*
ls -l /data/data/com.google.android.apps.maps/*
-rw------- app_189 app_189 3783 2012-02-07 11:29 mobilemaps.clients.google.com.443
-rw------- app_189 app_189 37 2012-02-01 16:14 nlp_GlsPlatformKey

-rw------- app_189 app_189 208 2012-02-07 11:21 macs
drwxrwx--x app_189 app_189 2012-02-01 16:14 webviewCache
-rw------- app_189 app_189 2450 2012-02-07 11:21 nlp_state
drwx------ app_189 app_189 2012-02-01 16:14 selectors
-rw------- app_189 app_189 290 2012-02-07 11:21 nlp_devices
drwx------ app_189 app_189 2012-02-01 16:14 models
-rw-rw---- app_189 app_189 18432 2012-02-03 13:29 google_analytics.db
-rw-rw---- app_189 app_189 5120 2012-02-07 10:38 google_latitude.db
-rw-rw---- app_189 app_189 6144 2012-02-01 16:14 webviewCache.db
-rw-rw---- app_189 app_189 5120 2012-02-05 17:27 local_active_places.db

-rw-rw---- app_189 app_189 4096 2012-02-05 17:27 da_destination_history
-rw-rw---- app_189 app_189 5120 2012-02-05 17:49 LayerInfo
-rw-rw---- app_189 app_189 5120 2012-02-05 17:26 search_history.db
-rw-rw---- app_189 app_189 6144 2012-02-03 13:29 userfeedback.db
-rw-rw---- app_189 app_189 14336 2012-02-01 16:14 webview.db
-rw-rw---- app_189 app_189 38 2012-02-07 11:13 DATA_SYNC_DATA_LOCAL
-rw-rw---- app_189 app_189 26756 2012-02-01 16:31 DATA_PHOTO_145479516184369608
-rw-rw---- app_189 app_189 26756 2012-02-01 16:31 DATA_PHOTO_4406538396446325405
-rw-rw---- app_189 app_189 1813 2012-02-05 13:48 DATA_PROTO_CLIENT_SAVED_PHOTO_CACHE
-rw-rw---- app_189 app_189 338 2012-02-06 23:41 DATA_TILE_HISTORY

-rw-rw---- app_189 app_189 12 2012-02-05 17:49 DATA_SAVED_REMOTE_ICONS_DATA_BLOCK
-rw-rw---- app_189 app_189 36580 2012-02-01 16:14 DATA_RemoteStringsBlock_en
-rw-rw---- app_189 app_189 26756 2012-02-01 16:31 DATA_PHOTO_240647554975296207
-rw-rw---- app_189 app_189 26756 2012-02-01 16:31 DATA_PHOTO_443613581827136957
-rw-rw---- app_189 app_189 5620 2012-02-05 17:49 DATA_SAVED_BGFS_3
-rw-rw---- app_189 app_189 57 2012-02-05 17:49 DATA_STARRING
-rw-rw---- app_189 app_189 573 2012-02-05 10:04 NavZoomTables.data
-rw-rw---- app_189 app_189 26756 2012-02-01 16:31 DATA_PHOTO_-7991748045000310303
-rw-rw---- app_189 app_189 217 2012-02-05 15:29 DATA_LAYER_4
-rw-rw---- app_189 app_189 26756 2012-02-01 16:14 DATA_PHOTO_-4352347968798340772

-rw-rw---- app_189 app_189 26756 2012-02-01 16:31 DATA_PHOTO_-1960244636679913737
-rw-rw---- app_189 app_189 26756 2012-02-01 16:31 DATA_PHOTO_7546641620697631512
-rw------- app_189 app_189 34 2012-02-07 11:21 nlp_clts
-rw-rw---- app_189 app_189 2492 2012-02-07 11:30 DATA_location_history
-rw-rw---- app_189 app_189 11 2012-02-01 16:14 DATA_LAYER_0
-rw-rw---- app_189 app_189 1186 2012-02-01 16:14 ZoomTables.data
-rw-rw---- app_189 app_189 11 2012-02-05 17:49 DATA_SAVED_BGFS_EXTRA_3
-rw-rw---- app_189 app_189 18994 2012-02-05 17:49 DATA_PROTO_SAVED_CATEGORY_TREE_DB
-rw-rw---- app_189 app_189 247 2012-02-05 17:49 event_store_v2_driveabout
-rw-rw---- app_189 app_189 5294 2012-02-05 10:05 DA_LayerInfo

-rw-rw---- app_189 app_189 380 2012-02-05 16:23 DATA_LAYER_5
-rw-rw---- app_189 app_189 11387 2012-02-05 17:49 DATA_SYNC_DATA
-rw------- app_189 app_189 35 2012-02-07 11:21 cp_state
-rw-rw---- app_189 app_189 26756 2012-02-01 16:31 DATA_PHOTO_-6319433669272599441
-rw-rw---- app_189 app_189 76 2012-02-01 16:14 DATA_ServerControlledParametersManager.data
-rw-rw---- app_189 app_189 26756 2012-02-01 16:31 DATA_PHOTO_-4787236618283354619
-rw-rw---- app_189 app_189 57 2012-02-01 16:14 DATA_star_details_index
-rw-rw---- app_189 app_189 26756 2012-02-01 16:31 DATA_PHOTO_-7325828578927889496
-rw-rw---- app_189 app_189 76 2012-02-05 17:27 DATA_ServerControlledParametersManager_DA.data
-rw-rw---- app_189 app_189 26756 2012-02-01 16:31 DATA_PHOTO_-5041077772587057686

-rw-rw---- app_189 app_189 42 2012-02-05 17:26 DATA_PROTO_SAVED_RECENT_LAYERS
-rw-rw---- app_189 app_189 21 2012-02-05 10:04 DATA_SAVED_BGSF_
-rw-rw---- app_189 app_189 263 2012-02-05 11:30 DATA_LAYER_2
-rw-rw---- app_189 app_189 26 2012-02-01 16:14 NavigationParameters.data
-rw-rw---- app_189 app_189 330 2012-02-05 17:27 DA_DirOpt_en_US
-rw-rw---- app_189 app_189 26756 2012-02-01 16:31 DATA_PHOTO_-4817178430903221341
-rw-rw---- app_189 app_189 26756 2012-02-01 16:31 DATA_PHOTO_8476874153932292760
-rw-rw---- app_189 app_189 141298 2012-02-05 17:27 DATA_Restrictions
-rw-rw---- app_189 app_189 29 2012-02-05 17:49 DATA_PROTO_SAVED_LAYER_STATE
-rw------- app_189 app_189 61 2012-02-01 16:14 nlp_params

-rw-rw---- app_189 app_189 0 2012-02-05 17:27 DATA_Restrictions_lock
-rw-rw---- app_189 app_189 26756 2012-02-01 16:31 DATA_PHOTO_8041021750103678571
-rw-rw---- app_189 app_189 10237 2012-02-03 13:28 DATA_star_details_0
-rw-rw---- app_189 app_189 6 2012-02-05 17:49 DATA_RECENT
-rw-rw---- app_189 app_189 5048 2012-02-06 23:41 DATA_Preferences
-rw-rw---- app_189 app_189 65 2012-02-01 16:14 network_initiated_prefs.xml
-rw-rw---- app_189 app_189 65 2012-02-01 16:14 friends_app_widget_preferences.xml
-rw-rw---- app_189 app_189 1269 2012-02-01 16:14 ids.xml
-rw-rw---- app_189 app_189 250 2012-02-03 13:27 settings_preference.xml
-rw-rw---- app_189 app_189 65 2012-02-01 16:14 cache_settings_preference.xml

-rw-rw---- app_189 app_189 358 2012-02-07 11:28 checkin_notification_preferences.xml
-rw-rw---- app_189 app_189 119 2012-02-01 16:14 com.google.android.apps.maps_preferences.xml
-rw-rw---- app_189 app_189 345 2012-02-05 17:49 DriveAbout.xml
-rw-rw---- app_189 app_189 317 2012-02-07 10:38 LOCATION_REPORTING.xml

Android 2.2 (Froyo) introduced the ability to move apps to SD card (or "external storage" on some devices). This introduces a level of complexity since portions of the app get moved around. For every app that you move to SD Card/media area, the system creates a virtual mount point named /dev/block/dm-X, where "X" is a sequential number. It them moves the app's APK (Android package) file and some preferences there. You can view this by issuing a mount command in shell/terminal emulator. Along with other usual mounts, it should show which apps were moved to SD Card like in an example below:


/dev/block/dm-0 /mnt/asec/com.metago.astro-1 vfat ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-1 /mnt/asec/com.a0soft.gphone.aTrackDog-1 vfat ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

Here I moved Astro file manager and aTrackDog apps to the SD Card on my phone. Use ls /mnt/asec/ to view the directories created for the moved apps. Issuing command ls -l /mnt/asec/* will list the file sizes within those folders:



# ls -l -a /mnt/asec/*
ls -l -a /mnt/asec/*
-r-xr-xr-x system root 332826 2012-02-07 11:21 pkg.apk
dr-xr-xr-x system root 2012-02-07 11:21 lib
-r-xr-xr-x system root 2363522 2012-02-07 11:18 pkg.apk
dr-xr-xr-x system root 2012-02-07 11:18 lib

The wrapper for the virtual partition gets stored inside a hidden ".android_secure" folder of the SD Card:


# ls -a -l /mnt/sdcard/.android_secure
ls -a -l /mnt/sdcard/.android_secure

----rwxr-x system sdcard_rw 4290560 2012-02-07 11:18 com.metago.astro-1.asec
----rwxr-x system sdcard_rw 2161664 2012-02-07 11:21 com.a0soft.gphone.aTrackDog-1.asec

Once moved the app's APK will no longer be under /data/app/ or /data/app-private/ folders.


Another area of interest is Dalvik Cache - an area that contains cached data for each installed app. Upon first boot-up or new app installation the system generates a .dex file for each app that it uses for quicker start-up. These files are stored on /data/dalvik-cache/ partition. Command ls -l /data/dalvik-cache/*[package_name_here]* will return the space taken up by the app's Dalvik cache. For example, here's how much space is taken up by Google Maps app:


# ls -l /data/dalvik-cache/*com.google.android.apps.maps*
ls -l /data/dalvik-cache/*com.google.android.apps.maps*
-rw-r--r-- system app_189 4406016 2012-02-04 09:01 data@app@com.google.android.apps.maps-2.apk@classes.dex

Next, the /cache partition of the internal memory may be used by apps. The command ls -l /cache/ will show you all files stored there, along with sizes and owner information. For example, on my phone here's the output:



# ls -l /cache/
ls -l /cache/
-rw-r--r-- app_13 app_13 3640954 2012-02-07 09:16 downloadfile-1.apk
drwxrwx--- system cache 2011-12-31 21:03 recovery
drwxrwx--- root root 2011-12-31 21:00 lost+found

Besides the standard directories, there is a file named downloadfile-1.apk that belongs to something named "app_13". I can cross-reference this "app_13" name to the listing of ls -l /data/data/ to see that this file belongs to Android's built-in downloader:


# ls -l /data/data/
ls -l /data/data/
......

drwxr-x--x app_13 app_13 2011-12-31 21:02 com.android.providers.downloads.ui
......

Finally, apps can use the SD Card for their own purposes, and there is really no way to track this, unless the app names its folders something recognizable.


Transferring continuous Android camera feed to PC through USB (in a background app/service)


I want to find a way in which I can continuously send the Android camera feed to my PC via USB. The reason for specifying USB, is because of performance requirements, I want it to be as fast as possible, hence preferring USB over Wifi. I need the app to be running in the background (will be a service I believe).


I tried some existing apps, but they do not meet my requirements.


Is there any way I can do this?



Answer



IP Webcam(see revisions) does allow the access on USB but it will not show you the option to access in its help section. All you've to do is activate USB-tethering on your device, start server on the said app,and access the server by entering 192.168.42.129:8080 in a browser on PC.


I tested this app on my device running Android 4.2.1.



4.1 jelly bean - mounting google nexus s on linux at fastboot mode screen


I have looked at similar questions but could find an answer.


Device: Samsung google nexus s i9020
OS: Android 4.1.2


The phone mounts when the OS has loaded and when there is an option to enable usb storage.


I am trying to root my phone and boot loader is locked. I need to connect to my computer (Linux Mint) to run a program to unlock the boot loader. for some reason, the phone does not get mounted automatically anymore.


log from a previous successful mount on OS load



Apr 13 20:20:25  kernel: [   93.795791] usb 1-1.1: >new high-speed USB device number 4 using ehci_hcd
Apr 13 20:20:25 kernel: [ 93.889485] usb 1-1.1: >New USB device found, idVendor=18d1, idProduct=4e21
Apr 13 20:20:25 kernel: [ 93.889489] usb 1-1.1: >New USB device strings: Mfr=2, Product=3, SerialNumber=4
Apr 13 20:20:25 kernel: [ 93.889493] usb 1-1.1: >Product: Nexus S
Apr 13 20:20:25 kernel: [ 93.889496] usb 1-1.1: >Manufacturer: samsung
Apr 13 20:20:25 kernel: [ 93.889498] usb 1-1.1: >SerialNumber: 3630F20CB6EF00EC
Apr 13 20:20:25 kernel: [ 93.951562] Initializing USB Mass Storage driver...
Apr 13 20:20:25 kernel: [ 93.951755] scsi6 : usb-storage 1-1.1:1.0
Apr 13 20:20:25 kernel: [ 93.951876] usbcore: registered new interface driver usb-storage
Apr 13 20:20:25 kernel: [ 93.951879] USB Mass Storage support registered.

Apr 13 20:20:25 kernel: [ 93.955427] usbcore: registered new interface driver uas
Apr 13 20:20:26 kernel: [ 94.951743] scsi 6:0:0:0: >Direct-Access Google File-CD Gadget 0000 PQ: 0 ANSI: 2
Apr 13 20:20:26 kernel: [ 94.953211] sd 6:0:0:0: >Attached scsi generic sg2 type 0
Apr 13 20:20:26 kernel: [ 94.955200] sd 6:0:0:0: >[sdb] Attached SCSI removable disk

log from an unsuccessful usb mount during fastboot mode


Apr 13 22:33:07  kernel: [ 8051.407340] usb 1-1.1: >new high-speed USB device number 9 using ehci_hcd
Apr 13 22:33:08 kernel: [ 8051.500735] usb 1-1.1: >New USB device found, idVendor=18d1, idProduct=4e20
Apr 13 22:33:08 kernel: [ 8051.500743] usb 1-1.1: >New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 13 22:33:08 kernel: [ 8051.500748] usb 1-1.1: >Product: Android 1.0

Apr 13 22:33:08 kernel: [ 8051.500752] usb 1-1.1: >Manufacturer: Google, Inc
Apr 13 22:33:08 kernel: [ 8051.500756] usb 1-1.1: >SerialNumber: 3630F20CB6EF00EC
Apr 13 22:33:08 mtp-probe: checking bus 1, device 9: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1"
Apr 13 22:33:08 mtp-probe: bus: 1, device: 9 was not an MTP device

fastboot unlock software waiting for the phone


~/android/nexussrootICS$ ./fastboot-linux oem unlock
< waiting for device >

Can someone suggest how could I mount (manual/automatic)? Thanks




Answer



To my knowledge, in fastboot mode you cannot mount the device to your PC. MTP and fastboot are two different things.


According to the CyanogenMod Wiki on Fastboot, the solution might be simple:



If you see at any point when executing fastboot command, the PC is not configured to use fastboot properly. Most typically, this is because you are not running fastboot with elevated privileges.



Which means: you must run fastboot as root user, e.g. sudo fastboot devices or sudo fastboot-linux oem unlock.




If that does not solve your issue, it might help to take a look at the steps necessary to use the adb command line utility: For adb to detect your device, you need to have setup a corresponding entry in your /etc/udev/rules.d. First run lsusb to check how the device identifies itself to the system. These data you can also take from your above quoted log: idVendor=18d1, idProduct=4e20 is the information we need. Now, the corresponding entry in /etc/udev/rules.d/51-android.rules should look like:


SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4e20", MODE="0666" GROUP="androiddev", SYMLINK+="android%n"


Save the file, and reload the udev service (service udev reload). Re-connect your device. Now adb (or, in your case, fastboot) should be able to find it. You can check that using the command adb devices (or fastboot devices), which now should list your Nexus S.


security - When you lock down a Lollipop device to disable Chrome's incognito mode, this creates an XML "restrictions file". What actual XML is inside the file?


Note: If this post is too long to read, please see the summary in the last paragraph.


I own an aging Samsung Galaxy S Relay cellphone. It's running Android 4.1.2 and has a built-in physical keyboard. I don't want to upgrade to newer hardware. They say in the XDA Developers forums that, if I want a built-in physical keyboard, the Galaxy S Relay is still the most powerful option available — even though it uses technology which is more than two years old.


I want to help prevent myself from viewing pornography. (I've already joined a twelve-step program for sex addicts, but I still want a second layer of protection.)


I've installed the Qustodio web filter. This web filter only lets me choose between two web browsers: the Android stock browser, or Google Chrome. But it's easy to get around Qustodio. Oddly enough, all I have to do is to enter my browser's incognito mode. Qustodio claims that, when I enter incognito mode, it can detect what I've done and stop me from surfing the web; but, in practice, I've found that it can't.


In a help center article, Qustodio LLC does admit:



Please note that our incognito blocking feature is still experimental.




Fine. Well, I want to reliably stop myself from entering my browser's incognito mode.


I suppose I could switch to a different browser. I could choose the K9 browser. But their (Firefox-based) browser is poorly rated and hasn't received any security updates in the last two years.


Google Chrome for Android is now open source. I suppose I could modify the Chrome source code to disable incognito browsing. But it would be a hassle to keep the browser up to date.


So I guess I'd like to set the relevant Chrome policy instead. I'd need to set the IncognitoModeAvailability policy to 1 in order to disable incognito browsing.


On recent versions of Android (and definitely on Android 5.0 "Lollipop" and newer), you can use an app such as Google's BasicManagedProfile sample app. This will call the DevicePolicyManager's setApplicationRestrictions method (see documentation or source). This method will eventually call the UserManagerService's writeApplicationRestrictionsLocked method (see source). The latter method will, in turn, write some XML to a "restrictions file" in a place where Google Chrome knows to look.


Because I'm running Android 4.1.2: I doubt that I can run the sample app. And I'm sure I can't call either of the two methods.


I suppose I could upgrade the phone to a newer OS. T-Mobile doesn't offer any updates newer than Android 4.1.2. On the XDA Developers forums, "Magamo" points out that CyanogenMod seems to have withdrawn official support for the device a while ago -- even before any stable Lollipop-based ROMs were released. I could choose and find some other ROM. But I've never installed a third-party ROM before, and would rather not learn how to do so.


Dear users of Android 5.0 or higher:


What actual XML does this "restrictions file" contain? Where does it get saved?



(I suppose I could fire up Lollipop in the official emulator and find out for myself, but it's simpler to just ask here.)


Perhaps I can simply create a "restrictions file" in the correct location on my Android 4.1.2 device.


TL;DR: When you reconfigure a Lollipop device in order to disable Chrome's incognito mode, your action will cause an XML "restrictions file" to be saved to disk. What actual XML is inside the file? Where is the file stored? I want to try manually creating a "restrictions file" on a Jelly Bean device in order to see if it will do what I want.



Answer



The XML file alone will not help you. Chrome doesn't read the contents of that file directly. Instead, it accesses it via Android's UserManager.getApplicationRestrictions. In order for this to work, you actually need to set up a "work profile" on your device. In order to do that, you actually need to run the BasicManagedProfile app you have mentioned; this also requires encrypting the device.


Android 4.1.2 is kind of old. From searching at http://www.androidxref.com/, it looks like it lacks UserManager.getApplicationRestrictions. Luckily, there's another way to disable incognito browsing in Chrome. Try that way instead.


Saturday, September 27, 2014

linux - Use 3G connection on my Android in Ubuntu


I would like to use the 3G connection on my android with my Ubuntu. Is there any method to do so?



Answer



Easy Tether from Mobile Stream should work. It's a way to share your internet connection with another device via USB. Get the Lite version (does not support https, or tethering to gaming consoles) or the Full version.




Supports Windows 7/Vista/XP (32-bit and 64-bit), Mac OS X 10.7/10.6/10.5/10.4, Ubuntu 10.4+ and Fedora 13+



Full version supports the following:



Tether PS3, Wii, XBox via PC Internet Connection Sharing, you need a computer for game console tethering.



battery - AC-USB Charging Device Makes Sounds when Device Fully Charged


This might not be the right place to ask this question, as it falls under the purview of electronics, however that SE is not about consumer electronics. And this phenomena has only happened with Android devices, at least with the Droid 1 and Droid 3. So Android is where I stuck it. Sorry if that's wrong :(


This has happened with both the MicroUSB-to-USB (with AC adapter attachment) OEM wall charger and MicroUSB-to-AC-only wall charger.


Basically, when my phone is charging, the AC plug is completely quiet, but once my phone hits 100%, sporadically the plug portion of the charging apparatus will begin to make squealing noises. It stops once I unplug the phone and will begin again if I were to re-plug it in immediately.


Here's the thing, two other people I've asked cannot hear it. I promise you I am not going crazy and imagining things -- but I have been known to have very sensitive hearing -- hearing buzzing from old TVs and monitors and so forth.



My question, mostly out of curiosity, why is this happening and how can I get it to stop, as it is rather irritating.


This issue seems unique to my old Droid 1 and Droid 3. My laptop or similar high-power chargable device does not suffer from this issue.



Answer



See this very good answer on Electronics SE for details. Basically it's a side effect of the charger circuitry operation - it's by design, you can't change it. If that disturbs you - either find another charger, or bring this one further from you, don't try to silence it with an enclosure - that may lead to overheating.


settings - What are the Android 4.0.x Ice Cream Sandwich Easter Eggs?


I heard that there are some Easter eggs hidden in ice cream sandwich version.


How can I view the Easter eggs hidden in my android device and how can I view them? I'm using Android 4 ICS.



Answer



Go to Settings->About Phone (this is the last menu item in the settings menu) and find the version number menu item in the menu.


Settings


Find the android version number


1. Find the android


Quickly tap the android version number several times and an android will appear on your screen:



ICS android


2. Find the nyan-droid


Press and hold the android n the screen and it will grow. Keep holding it and at the end a set of androids wearing ice cream sandwiches will fly across your screen, like so:


nyan-droids


Enjoy!!


screen - How can I get "Always on when USB connected" back on Samsung Vibrant (Android Froyo 2.2)?


How can I get "Always on when USB connected" display feature on Samsung Vibrant running Android Froyo 2.2? I used to love it on 2.1 Eclair but when I upgraded to 2.2 it is gone. Any trick to get it back?



Answer



After some research I found some app on Market that sets this global setting ('StayAwake'). Missing setting looks like Samsung or TMO customization. I'm running official TMO 2.2 update (T959UVKA6) installed via miniKies


Friday, September 26, 2014

launcherpro - How to get to your settings without a home screen app?


I hadn't used my old HTC Hero for a while, but when I rebooted it I got an error saying:


LauncherPro has expired, please download an updated version.


But wifi was turned off and when I tried to get to the home screen, it kept sending me back into the browser. So how can I get to my settings, so I can turn on wifi to download it?


Or is there another way of updating it without me requiring to go to my settings?



Answer



Found this at: http://orlygoingthirty.blogspot.com/2011/01/how-to-uninstall-expired-launcherpro.html




I finally found a workable solution: download the latest LauncherPro APK (or hopefully any other APK). Connect your phone to your PC and mount the SD card. Copy the new APK to the top-level of the SD card and rename it to something short (like lp.apk).


Unmount the phone, then in the phone browser (which is the only thing LP lets you run), type the following in the URL bar:


file:///sdcard/lp.apk


(notice the three slashes)


This will force-launch the Installer application on the phone. Now on my phone, it was set to disallow non-Android Market apps from installing; since the APK is not off the Android Market, the phone popped up an error and offered to let me change the application setting. Which launches the Settings application.



sony xperia z - Control your smartphone using your laptop


I have a sony xperia z and the screen recently smashed. Touch screen capability has also gone. As such I can't even unlock the phone. Does anyone know of an app or a method for connecting it to my laptop and gaining full control of the phone through the laptop? I need to unlock it and access an app that's installed. I've been through the folders on it using the laptop but need access to the app itself to get the data I need.





How can I send WhatsApp's image captions to email with images?


I am using Whatsapp 'Email Conversation' option that allow me to share pictures through email, but it doesn't send the caption of images.


Is there any solution so that I can send both Image + its caption to email address?


and where are caption stored in whatsapp data? (I have root access)




downloading - Download stuck in Gmail


I had started downloading a attached file from GMail app, suddenly it hang. When it resumed, notification bar was showing download process but it was not being downloaded in the app. i retried and downloaded it. Its been 3 days but notification bar still shows the file is being downloaded. I have tried switching off the phone but doesn't work. Can anyone tell me what I should do. Thanks for the help.



Answer



You might need to clear the cache of the Download Manager. Go into:


Settings -> Apps -> All (tab) -> Download Manager


Here tap Clear cache and for good measure Clear data


call history - Changing default behaviour of the Phone app in Oreo


Each time when I open the Phone app, I see Favourites tab (first one) as default.


This is completely useless for me, because Google uses its weird logic to tell me which contacts are my so called favourites and this logic produces completely wrong results -- i.e. I see "favourite" contacts which aren't truly my favourite ones.



This tab is also useless, if your contacts have more than one phone number, because instead of showing a list in this case and letting you pick the number, it always calls the default number. This isn't working in my case, because I have a lot of contacts which I contact both privately (i.e. during weekends and evenings; using private phone number) and on business grounds (using company phone number). So using the default phone number and Favourites tab is pointless in my case.


For the above reasons, I am not using Favourites tab at all and I am always forced to switch manually to recent phones / call history tab.


Is there any way to make that tab displayed as default each time I open up the Phone app.


My stack:



  • Motorola Moto Z2 Play,

  • Android 8.0 Oreo.


I am using the default, system Phone app. No 3rd party solution.



Answer




A possible solution is to automate the process of clicking the Call history tab when the phone app is opening. It is not elegant but may help you.


Using Automatem create the following flow:



  1. In the Apps section, select App start. Click it, in the Package option select the Phone app from the list. Click Done.

  2. In the Interface section, select Interact. Click it, set the Proceed option to When UI element appear, then click Record Interactions. A small widget will appear. Open the Phone app, then click on the call history. Click the check mark on the widget. It will take you back to Automate, and many parameters of the Interact block will be filled for you. Click Done.

  3. In the Flow section, select Flow stop.

  4. Click the Flow beginning block, give the title a name; then click on "Install home screen shortcut".

  5. Link the blocks as seen on the image, then save and give the flow a name.

  6. Give the required permissions when asked.



On your home screen, there will be a shortcut created with the label (title) you inserted in step 4. Clicking it will open the Phone app, then show the call history,


IMG:


It is not elegant because for a fraction of a second, you will see the Favorites tab before the call history is shown.


internal storage - Can I change the dalvik cache location e.g. with a symbolic link?


I currently use Link2SD since my phone's onboard storage is insufficient for more than a few essential apps. It is very effective but limited to when the phone is on.


While changing ROMs, the dalvik cache is wiped and when the phone restarts you see a progress bar saying Android is optimising applications. So given a reasonable number of applications, the dalvik cache fills up the storage long before link2sd can do anything about it.


So is there a way that mounts a sd card folder as the appropriate cache location before the system gets on with booting and doing its business? I know it might involve creating a symbolic link but I just don't know when things are mounted and in what order.




Thursday, September 25, 2014

using your android phone as a proxy server


I wanted to use my android phone as a proxy server, meaning that I wanted to be able to use the IP on the phone as a proxy, so all request and response are received on the phone and forwarded back to the original requestor. How do I do this?




Wednesday, September 24, 2014

htc sense - "My Calendar" and "PC Sync" -- How to Delete?


These two (empty) calendars appear in the list of calendars inside the stock calendar app (at least on HTC Sense setups). I'm not entirely sure what they are but they are both unused and cluttering things up. I know I can hide them but is there anyway to just make them gone? When I select Remove Calendars, they don't show up in the list.


Why would anyone want to sync a calendar to a PC anyway? That's the big advantage to a cloud calendar like Google's...


More Information: I have installed HTC's desktop Sync app (not for syncing, for development related things).





storage - How can I view the Android internal partition table?


I've rooted my device, put it in recovery mode, and have linked it to PC by adb shell.


How can I view the list of storage devices and partitions?


Note: fdisk doesn't work.



Answer




I believe you want: cat /proc/mtd.


Also useful: mount.


notifications - "Priority only" as default mode - Marshmallow


When I try to change the "Notifications mode" using the volume key, it always defaults to "Alarms only" mode, but I would like this to be set as "Priority only".


I know I can swipe down to access "Do not disturb" and set the "Priority only" mode but I want to do it with volume keys


Is there any way to set "Priority only" as default mode when using Volume keys




Tuesday, September 23, 2014

sim card - How to move contacts from SIM to phone?


I have all my contacts saved on my SIM-card but I want to move them to the phone which is Galaxy note so that when I change the SIM-card my contacts are still saved and I don't need to save them all again. Is there any way to do this?



Answer



Yes, just go to: Contacts -> Menu -> Import/Export -> From SIM to Phone


Or you can view this more detailed article to help you: http://androidadvices.com/import-sim-contacts-android-phone/


Is there a way to look inside and modify an adb backup created file?


I created a backup of my Galaxy Nexus with adb backup. The resulting file is named backup.db and it's somehow encrypted.


I wanted to restore the backup, but it stops when it comes to restoring com.android.providers.contacts. I used adb logcat to find out what's going on and found out that com.android.acore crashes during the restore process.


I'd like to gain access to the data in the backup and remove the contacts database to restore everything back to my phone. Are there any other ways restoring the data from the backup?



Answer



The file is not encrypted, unless your specify so when creating the backup. It is however compressed (using deflate). You can find out the exact format by looking at Android source (com/android/server/BackupManagerService.java) code, and, technically, should be able to extract specific data from it. However, IIRC, there are some file integrity checks in place, so it most probably won't work if you just delete a bunch of data from it. Unfortunately the restore command doesn't seem to have an option to restore a particular app/package only or exclude a package.



Sunday, September 21, 2014

asus eee pad transformer - Is there a way to print from an Android tablet (preferably without a PC/cloud)?


Is it possible to print from an Android device (specifically an Asus eeePad Transformer) without going via the cloud? The ideal is to do it without going via a PC as well, as I'd rather not have to keep switching a machine on just to print.


My only idea at the moment is something like ePrint or PrinterShare on the eeePad and then print via a print server. Using a PC is one option - do any of the apps work with a Samba print share or something Linux-based? The other alternative is an Edimax print server to make the printer available on the network (either wired or wireless). Will it work? Will any Android apps be able to print like that? Are there any better ways to do it with a USB laser printer?


Thanks.



Answer




There's a paid app called ePrint, which I believe works locally to printers attached to a wireless network (printers themselves don't need to be wireless) and doesn't appear to use a cloud service or need a PC in most cases. They have a free ePrint version that you can use to test the functionality before you pay for the full ePrint version.


Next there's PrintBot, this "Network printer driver" supports 1,000s of printer types connected to a local network. The free version lets you print a few pages to test, the full paid PrintBot Pro licensed version is unlimited.


Try both of those out and see which one works with your printer and apps.


There are also some free proprietary apps that work with specific hardware, HP ePrint should work, but only to HP printers (both older network enabled ones and newer ePrint enabled networked ones), Samsung MobilePrint should work (but only for Samsung printers).


MotoPrint lets you print to a lot of different printer types as long as they're connected to a wireless network (don't have to be wireless printers), annoyingly you can only install it on Motorola devices, so not putting down as an answer for you but someone else might find it useful.


Friday, September 19, 2014

updates - How can I make Android remember default apps after upgrades?


After choosing a default program for an action, every time an app gets updated that relates to that action, the OS unnecessarily asks which program to use. I can't be the only one to be aggravated by this defect.


It's especially irritating for apps that get updated frequently and serve multiple intents.


Here is the scenario:



  1. User installs app (for instance, a new web browser-Dolphin)

  2. User performs intent (for instance clicking a hyperlink from an email)

  3. Android OS asks user which app to use.


  4. User selects Dolphin browser, checks check box at the bottom of the popup window with the label "Use As Default" and selects new web browser app.

  5. Android Market installs new update for Dolphin.

  6. User performs same intent as #2 (clicking a hyperlink from an email)

  7. Android OS forgets "use as default" setting and Android OS asks user which app to use. [Steps 3-7 repeat ad infinitum]


The bug occurs at step 7.


I submitted a bug report for this issue. In the meantime, is there an app that works around it?




Thursday, September 18, 2014

Can I forward/reply calls/sms to PC?


I wonder if its possible to forward calls or sms to PC where I can then reply or at least get notified of a call/sms? For example, calls might be forwarded to Skype, isit possible?




Why are there different versions of each firmware for different country?


For example why is there different version of the same fimware but for different countries? e.g. version 2.1 for Canada, version 2.1 for US, version 2.1 for international/generic. What does international/generic firmware mean?





unbricking - How to unbrick nexus 9 after an OTA update?



After the latest OTA update my Nexus 9 boots forever. If I turn it off and then turn it on, it shows this


and then it boots forever (green, red, blue, yellow circles, squares, circle slices move forever). I tried rebooting it a few times and even tried going into recovery -> hboot -> factory reset. Nothing changed. My Nexus 9 was not rooted and doesn't have a custom recovery.


Is it clear from this information what is wrong with my tablet? Can I unbrick it by flashing a stock ROM using adb or something?




Wednesday, September 17, 2014

root access - Ringtones incompatible with custom rom. How to improve compatibility?



I have been using Samsung Galaxy s4 stock firmware up until now. Yesterday I switched to AOKP 4.4.4 (18/10/2014 build) and I've noticed that none of my old ringtones work (12 unrelated ringtones). I tried converting some of them to ogg, mp3 and wav formats with audacity. Whatever i do, they do not appear in ringtone list when moved to system/media/audio/ringtones. They cannot be selected with ES explorer - I get "Wrong file type, please select again" message. If I select them with root explorer the ringtone is set to "None".


Some mp3 files in my music library work, but not the ringtones.


I assume it has something to do with ringtone format, however, I have got no idea where to start looking.


Is there any setting I could change or an app I could change / install to add the compatibility? Is there any particular app responsible for sound playback in android?


EDIT: I am running AOKP on Samsung Galaxy S4.


EDIT2: I recently installed latest official firmware. During instalation I tried resetting to phone default firmware and ringtones worked. Now that I am on new official firmware, old ringtones do not work again. Also, On the new FW I used official ringtone selection tool (that creates a ringtone file). The ringtone created works in ringtone selector list, but cannot be added to list if removed from the list or if moved.


This leads me to believe problem is with some update all newer firmwares (including AOKP) have.


No real answer to this question, I am forced to use a 3rd party app to use my old ringtones.



Answer



In my OnePlus 2 running OxygenOS 2.2 (Android 5.1.1) the problem was solved by removing .nomedia in the root of the SD card, copying the audio folder from the media folder to the root of the SD, and then moving it back to the media folder. Don't ask me why but it worked again.



6.0 marshmallow - Can I recover a soft-bricked Galaxy A5 without voiding the warranty?


I have a newly purchased Samsung Galaxy A5, which, after attempting to install Marshmallow eventually got stuck on the "Downloading... Do not turn off target!!" screen. Just before this happened I briefly saw a message that said "error" beside a picture of a little android lying on its back (presumably suffering from an error).


I tried leaving it there on that "Downloading... Do not turn off target!!" screen but after 8 hours I gave up, took the charging cable out, and let the batter die (the A5 has an internal battery so removing it was not an option).


I can restart by charging the phone for a bit and then holding down Power + VolumeDown + Home, which takes me to a screen with 2 options:



  1. VolumeUp: Continue

  2. VolumeDown: Cancel (restart phone)



both options take me back to the "Downloading... Do not turn off target!!" screen. I can restart with Power + VolumeUp + Home, which seems to make the phone attempt to reinstall the update. I get a screen saying "Installing system update...", which gets to about 90% before showing me the little dead android and the "Error" message. After that, it's back to the "Downloading... Do not turn off target!!" screen.


My first option was to return the phone but the vendor is giving me the run-around and my credit-card company will take up to 80 days to revert the payment, so I was hoping to fix this myself, but not at the cost of voiding the warranty, as this could jeopardize my chances of getting a refund / repair. I have contacted the Fair Trading body in my state (in Australia) who will mediate and probably get me a refund but, again, this will take a while.


So, do I have any options, or do I just need to wait this out?



Answer



I installed Odin and was able to flash a stock version of android Kit-kat onto the phone:


http://www.sammobile.com/firmwares/download/38455/A5000ZCU1ANJ2_A5000CHC1ANJ2_CHC.zip/


I now have the phone running again but this version doesn't seem to have the play store installed. I'll start a separate post outlining my woes in that department:


How can I install Google Play on my Samsung Galaxy A5?


Is it advisable to run a task killer app on Android




Possible Duplicate:
Do I really need to install a task manager?




Should I run a task killer on Android or does Android manage applications well enough on its own?




Tuesday, September 16, 2014

applications - App that would open a url based on the current date in a browser


I am looking for an app or a way how to automate opening a URL based on current date on the Android 7.0 phone:



On 2017-07-01 it would open the following url in a browser:


http://myserver.com/daily_reports/Day_20170701.htm

eventually


http://myserver.com/weekly_reports/Week_2017_27.htm

Since the ISO number of the current week is 27.


Is there any solution for that out of the box?



Answer



With Tasker this is very easy.



Setup a task like this:



  1. Code → Run Shell:

    • Command: date +"%Y%m%d"

    • Store Output In: %date



  2. App → Launch App → select your browser app:




For weekly URL, create an another task:



  1. Code → Run Shell:

    • Command: date +"%Y_%V"

    • Store Output In: %week_no




  2. App → Launch App → select your browser app:



You can save these two tasks, create a shortcut to them on your home screen and tap that shortcut to open the concerned URL. Or, you can setup a profile in Tasker for your requisite automation and attach those tasks to that.


4.0 ice cream sandwich - How can I get a random image on my lockscreen?


Could you recommend me a simple solution to set a random image for my lockscreen?


I have the stock Samsung launcher, stock ICS rom and I don't want to install any custom launcher. I'm just looking for an app to switch the image every few hours.





Monday, September 15, 2014

wi fi - Need wifi to be connected to a camera(no internet) and one app using 4G for internet



I need to find a way to make the following work:


Android phone wifi is connected to a 360 degree camera and there is no access to internet on this connection. On the same phone another app must get internet access to constantly download some data. Phone is Xiaomi Mi Max 2. The camera if it is important is Ricoh Theta V.


I have tried the following


a)Turn on "Always.." for cellular data in developer options app still tries to go through wifi


b)Installed Mobiwal and set that app to use Mobile connection app still tries to go through wifi


There is no option to use another app and app itself does not have settings where I can specify which network to use for it.


I am looking for any solution for the whole day but it seems there is none.


Is there any tunnel/bridge app that can connect both connections together and route them properly. I do not believe the last versions of Android have screwed all this. I do remember in old versions it would work.




Sunday, September 14, 2014

notifications - How do I disable the triple vibrate of Viber?


When I get a notification in Viber it vibrates three times, as well as playing the sound. How do I stop it from vibrating three times!?


I saw the question about receiving multiple notifications but that doesn't apply as I don't use Viber for SMS.




internal storage - Space problem in Samsung Galaxy Pocket GT-S5300


I've seen many questions on this site asking about the famous space problems in Android phones. None of those I've seen helped me and since none of them asked about my phone, I'd like to present a new case.


I have three memories, and this is a table showing the usage:


Screenshot usage


What's most bothering is how an advanced phone like this would have such basic problems. I've tried:



  • setting the default installing path to the SD card: No such setting.

  • moving apps to the SD Card using apps like App2SD: Some cannot be moved.



I really don't know what else to do. Am I really forced to delete apps? I don't want to delete any of those I've installed (they are 14), why should I do that with over 9 GB of free space available? I'm just hoping there's an option I missed.



Answer



I have solved my own problem today and I'd like to provide the solution for others that might encounter it. The actual Internal memory for this phone should amount to exactly 0,96 GB or close to that. I got aware of this comparing my phone to another one from the same model. I first tried formatting the Flash memory (or Mass memory) on my phone, but to no avail. So I tried doing a reset and it solved the issue.


To do this:



  1. Go to Settings.

  2. Choose Privacy.

  3. Select Factory data reset or the corresponding example in your native language.

  4. Wait for the phone to do its thing. You should see some code/script running on the screen. Now wait.

  5. When everything is loaded and you configured the minimum settings, open the application Task Manager. You should be able to see the correct size.



Saturday, September 13, 2014

applications - Cannot install some apps in Android 4.1.2


I have a Motorola Razr D3 cellphone. Although I have at the moment 800 megabytes free on the device memory, some apps report insufficient space to perform the installation. I've cleaned caches and removed many apps.


I'm unable to install some software, for example, Aircrack-ng.


Storage space


What should I check for?




Friday, September 12, 2014

google play store - How would you uninstall a rogue Home (Launcher) application?


If you were to install a Home Screen application that does not give you access to the System Settings screen (to go to Manage Applications), and also does not let you launch Apps (such as the Market App or 3rd party install/unistallers), is there ANY way to uninstall such an application?


I know that Android requires your permission before letting a new App take over the home screen privilege. But say you're trying a newly published Launcher app that is buggy (or malicious). You are of course still going to tell Android it's ok to give this App the Home screen privilege. Now once it is installed, your phone is now effectively useless?


Is there a way for a typical end user (who doesn't have Eclipse/ADB) to get out of this situation? Other than doing a complete factory reset?


I realize there are ways to uninstall an App via ADB ("adb uninstall package.name")


But it seems like a typical end user is potentially screwed if they ever install such a malicious/buggy app. This seems like a gaping security hole in Android, no?



Answer




Start your device in SAFE MODE and then uninstall the app that's causing problems. Rebooting will exit from Safe Mode. Here's how to access SAFE MODE in a few popular devices.


HTC devices with physical buttons:



  • Turn off your Android phone.

  • Press the Menu button on your phone.

  • While holding down the Menu button, turn on your device and keep pressing the Menu button until you see the lock screen.

  • Safe Mode should now be printed in the lower-left corner of your display. When in safe mode, Android does not load any third-party apps, and you can uninstall the application that gave you trouble from Settings > Applications > Manage applications.


Nexus One:




  • Turn off your Nexus. Remove the battery if it cannot be done the normal way.

  • Press the power button to start your phone, and right when the logo appears, press and hold the trackball. You should also be able to hold down the touch sensitive Menu button at this point, if you prefer that.

  • Keep pressing until you see the lock screen, and you should now be in safe mode.


Motorola Droid



  • Turn off your Droid and slide open the hardware keyboard.

  • Press both the power button and the Menu button on the keyboard simultaneously.

  • Keep holding down the Menu key until you see the “Droid Eye”, and you feel your phone vibrate.

  • Your Droid should start and say “Safe Mode” in the lower-left corner of the screen.



Samsung Galaxy S




  1. Power the phone off.




  2. Turn the phone back on while pressing and holding the Menu button.





  3. Keep holding the Menu button until the Home screen loads. The lower-left corner should say Safe Mode.




rooting - How can I root my 4.4.2 razr maxx hd verizon


I've tried everthing that I can think of to try and root my razr droid maxx hd verizon phone. Towel root, sunshine, and can't even remember all of the othes to try a root it. Nothing works ! It's running 4.4.2




rooting - Is it possible to root the Samsung Galaxy Fit?


I have a Samsung Galaxy Fit. I am not able to find any guide on the web regarding how to root it. Is there some method suitable for beginners?



Answer



According to some users in this thread, application named "SuperOneClick" is able to successfully root your handset. You will need to install it on your computer (various Windows and Linux flavors available).


Thursday, September 11, 2014

Reduce minimum in call volume


I find that the minimum in-call volume on my HTC Desire is still far to loud on some calls.


Since I got the phone, I have flashed several different custom ROMs, radio updates, etc, and have had the issue throughout.


Do you know of any way (setting, hack, app, whatever) to reduce the minimum volume?


My device is rooted and I am currently running one of the CyanogenMod 7 (Gingerbread) nightly builds.



Answer



I was reminded by a friend that the CyanogenMod ROM I am using includes 'DSPManager' which is essentially a graphic equaliser with profiles for Headset, Phone Speaker and Bluetooth Device.


By lowering all the levels for the Phone Speaker profile I have managed to reduce the minimum in call volume (hooray!).



For people using ROMs other than CM on a rooted device, I believe a combination of DSPManager APK and modified audio library can be flashed but people appear to have had mixed results.


internal storage - Mount script cannot be created. mount: No such file or directory


I have micromax bolt a58, I have rooted it with farmaroot and install link2sd but it didnt work when i formatted it with ext2 it says try with fat32, and when i do so it gives error - Mount script cannot be created. mount: No such file or directory Please help me...




6.0 marshmallow - How to decrypt the corrupt SD card formatted as internal storage?


So I'm on Marshmallow and have formatted my SD card as internal storage. Its filesystem got corrupt two weeks later for some reason.


Plugging it to GParted, I see 16MB of FAT32 and the rest is an unrecognized filesystem. It's not unformatted, just unrecognized.


GParted is giving the "Unable to read the contents of the fileystem." error for both partitions, though the FAT32 partition is accessible from File Browser flawlessly.


It's a Samsung i9505 running on nightly built Cyanogenmod 13.


EDIT: I found out the unrecognized partitions is a static AES-128 bit encrypted ext4. Now I will try to decrypt it and recover whatever.



EDIT2: I changed my mind and won't bother. Formatting as external storage this time.




android 4.1.2 apps shortcut disapperead from home screen


I am using Huawei phone with android 4.1.2. Currently I'm losing the app shortcut on my home screen after a crash of the system recently. During the crash, I dragged the Whatsapp and Hoiio apps shortcut to the bottom menu (phone shortcut, browser and messaging by default). After a while, the phone turned off due to battery dry. But after I restarted the phone, the shortcut for the apps disappeared, although the apps are still installed (as shown in Google Play Store). After a few times of re-installation of the apps, the apps shortcut keep disappearing from the home scree. This android does not have applications page, only home page. How can I fix this and make sure that my apps shortcut can remain on the home screen?




sync - How can I force-link a Google contact with a Facebook profile?


Back when my HTC Desire had its stock Sense, there was an option to link Facebook accounts to Google contacts, by selecting them from the Facebook friends list.


This created fields for my contacts such as:



id:02394985720/friendof:2103910923|id:123768123/friendof:09812387



Now, my phone is on CyanogenMod 7. I've added a Facebook account under Synchronization settings, but it seems it only matches contacts who have the same name as their Facebook counterpart. Those who are matched get a Facebook profile link:



The other ones aren't linked. Therefore: How can I force link a Google contact with a Facebook profile? This would allow me to link contacts even if their names are different.


I'm aware of this question: how to link contact with facebook, gmail etc?, but there is no "Join" option for me, and it isn't really answered as well. I'm also aware of SyncMyPix.



Answer



First, in the Facebook app, under its Settings, enable synchronization for all contacts.


Open up your contact list and select the Google contact you would like to merge. Then push the menu button and select "Edit Contact". Then hit the menu button one more time and select "Join".


Choose which contact you would like to merge it with and you should be good to go.


factory reset - Resetting Nexus 6 requires previous account




  • Same wifi

  • previous person registered on the phone left

  • I reset the phone

  • after language selection (and wifi selection), I get the problem


Device says


This device was reset. To continue, sign in with a Google Account that was previously synced on this device.


Does anyone know how I might fix this problem? It's an important test phone for me.


Again it’s the same wifi as previously.


I looked How to bypass "Verify your account" (Factory Reset Protection) but Nexus 6 does not have such a home button.





How does Samsung S-View Flip Cover work?


How does the S-View Flip Cover work? I know some apps that use the proximity sensor to check this and turn on and turn off the screen.


S-View Flip Cover does not require any softwares, so how does it communicate with the device?



Answer




It's simple. There are hidden magnets in the front part of the flip cover. These magnets tell the device that S-View Flip Cover is attached.


The glass window that is on the cover is conductive, through which you can operate only that much part of the screen leaving the rest of the screen non operable to avoid accidental touch.


The idea behind is just like the Apple smart cover. What makes the S-View Flip Cover different is the conductive window functionality to accept or reject calls etc.


4.4 kitkat - Rooting Samsung Galaxy S4


I'm trying to root my Samsung Galaxy S4 GT-I9500 and I'm wondering that is there any way to root it without using PC and without losing any of my data. Currently I am running on Android 4.4.2 and have no custom ROM.



Thanks in advance!




Wednesday, September 10, 2014

ROM flashing using Odin on Galaxy S4 interrupted. Odin is still running. Is there anything I can do?


I was re-flashing the firmware on a Samsung Galaxy S4 using Odin, and the USB cable was bumped, which made the update fail. I reconnected and attempted to flash again by clicking the Start button. It seemed to be progressing, but Odin's blue progress bar continued from where it had stopped instead of starting from the beginning. After a while I got the following warning message from Odin, in red text and repeated 19 times:



Invalid percent of drawing download progress bar!



followed by this at the end:



SECURE CHECK FAIL : system




I attempted to start the process again (by clicking Start in the Odin desktop app), but it failed multiple times. I also tried clicking Reset and starting again. It doesn't seem to be possible to do anything from within Odin on the phone. It doesn't respond to any buttons and doesn't react in any way when I try to start the process again from the computer (no more messages on the screen, and no movement in the progress bar, or anywhere else). This doesn't necessarily mean it's frozen, though, because I don't believe it's intended to be interactive. The blue progress bar on the phone is all the way to the end, where it has been since my second attempt to flash.


I have not restarted the phone, because I am afraid that if I do that after an incomplete flash, I will not be able to get back into Odin. It is still on, still in Odin, still showing all the errors. The desktop Odin app on the computer can detect when the phone is connected and removed (I get the "Added!" and "Removed!" messages).


Am I correct in my concern that I'm likely to brick the phone if I attempt to restart without flashing successfully? Is there anything I can do to restart the process? It would be an astounding design flaw if Odin really isn't capable of restarting a failed flash to allow for recovery if the process fails and the device has not yet been restarted and Odin is still in RAM.


I know for a fact that the ROM file I'm using is valid and that I'm doing this correctly, because I have gone through this process several times and never encountered a problem until this time when the connection was interrupted. I have no support available from either Samsung or the carrier (Verizon), because I bought this phone used on eBay specifically for experimenting with things like custom recoveries and ROM flashing.


FWIW, here's a screen shot of the Odin desktop app as it is now:


enter image description here




What search can I perform to get a streaming app result on Google?


There are reports (see link below), that Google will now stream a small set of apps, when content in those apps match your search criteria. I have yet to be able to produce a Google search that shows one of these streaming app results.


I've tried using the example that I've seen in articles: "hotel right now in Chicago", from both the mobile web version of Google.com, as well as the Google app, but to no avail. The correct answer to this question will look something like:


"In order to see a streaming app result, you must be within the Google App, and you must use the following search: What is Sagittarius' horoscope for today?"


or


It appears from this link (www.example.com/GooglePulledStreamingApps) that Google is no longer streaming apps, or is only streaming them to a limited number of people.



I've also discovered (see 2) that this only works from the Google App on devices running Android 5 or 6. Although this feature of Google is only available on Android, I still don't believe this is an Android Community question, because it is specifically regarding how a search on Google behaves.




What are streaming app results?


Google App Streaming: A Big Move In Building “The Web Of Apps”


Google’s Going to Make Downloading Apps an Afterthought




What does "Download GPS assisted data only over Wi-Fi networks" really mean?


Since I checked this option in Settings > Personal > Location, GPS finally works when no data connection is available, eg. when travelling in foreign countries. It's still slower than when a data connection is available, but at least, it does locate me when I'm standing in open skies.


However, I was wondering what this option really means: Does it mean that it will never use A-GPS to download data from the Net even when a data connection is available through GSM *?


IOW, if I'm travelling in my country where a GSM data connection is available, will Android download A-GPS data to speed things up?


Thank you.




  • GSM, as opposed to wifi; I don't know a better term




oneplus 3 - Why fastboot devices is empty on Linux?


I'm using Ubuntu Yakkety Yak, 16.10.


According to Android SDK manager: Android SDK Tools v 25.0.3 Android Build Tools v 25.0.2 Android SDK Tools v 25.2.5


My phone is a OnePlus 3t and I'm developing for it for a while, adb works normally, udev rules are configured. I enabled OEM boot, and manage to reboot in a way which looks like to me fastboot. After rebooting to "fastboot" the device's USB id is exactly the same as in normal boot. That's suspicious because I read in some forums that it might be different after fastboot boot (I checked if I have to adjust udev rules).


fastboot devices


doesn't show any devices. My suspicion is that I don't really boot into fastboot mode. Here is capture when I reboot, I press the power button:


fastboot screen capture


If I don't press the power button, the up/down offers recovery mode. In recovery mode I can wipe all data or the cache and also install from internal storage or ADB. data decrypts successfully. Needless to say I cannot install SuperSU, TWRP img doesn't appear in that install menu.


(My goal is to unlock the bootloader, install TWRP and SuperSU so I can perform the xml file config mod for DayDream.)


Any help is appreciated.




Tuesday, September 9, 2014

apk - Is it possible to backup and restore an app with data via ADB?


Basically, I want to install an app with my settings already configured to a bunch of phones.


My thinking was



  1. Install app on phone 1

  2. Configure

  3. Dump app and Data to PC

  4. ADB app and data to phone 2

  5. Repeat step 4



I would rather not root, but it's a possibility.




does Cyanogenmod 7.2 Madteam release 16/6 on Vodafone 858 support USB host?


I've a Huawei u8160 which is running Cyanogenmod 7.2.


I saw in the change log that it has better support for USB mouse and keyboard and it was written beside it COMMON.


Quoted from the Cyanogenmod github CHANGELOG.mkdn:




...


Common: Better support for mouse and usb keyboards - Emilio Lopez, Tanguy Pruvot


...



So I was wondering if it supports USB host so I can connect it with a USB mouse and keyboard ?



Answer



The Common: Better support for mouse and usb keyboards found at the changelog refers to all devices supported, meaning that there was an overall improvement on the USB support for mouse and keyboard devices.


But take into account that the words "better support" means that there was an improvement, but it may still be buggy on certain devices under specific situations.


As a side note:



To your particular case, you are referring that you have a Huawei U8160, but on the changelog, the support goes for Huawei U8150. So, it may not be fully supported with or device.




Relevant Links:


The changelog can be found at: github - CyanogenMod


CyanogenMod Forums: CyanogenMod 7.2 Released! (2012-Jun-16)


Wikipedia: List of devices supported by CyanogenMod


updates - Samsung Kies: 'This version of the device can not be updated'. Never?


I have and Samsung GT-i5500 (aka Galaxy-europe, aka galaxy-5, ...), running Android 2.1


Some months ago I've returned it for repair because of GPS issues. Ever since, when I connect it to my computer and start Samsung Kies on my computer, the Firmware Information page says:



This version can not be updated.
Current firmware version: PDA:JK3 / PHONE:JK3 / CSC:JK3 (CPW)




Does this mean that when (if?) Samsung ever releases Android 2.2 for this model, I will still not be able to update it?
Before the 'repair' it never said that the version could not be updated. It was more along the lines of 'you have the most recent version' or 'no update available' instead of 'this version can not be updated'.



Answer



According to this link this message is due to a bad translation from Korean to English (and from that to Dutch, because in Dutch the message has the same meaning).


Original Korean was something like "For this ROM there are not updates available (yet)".


Monday, September 8, 2014

cyanogenmod - Turning off screen activating the bluetooth


Turning off / Locking the screen is activating the Bluetooth on my device.
I don't know why my device is doing this as I am unable to find any settings in Developer settings (enabling the Developer mode is the last thing I did).



Device: Honor 3C (rooted)
OS: 5.1.1
ROM: CyanogenMod 12.1



Answer



FireChat seems to be the culprit.
Changing it's permission via Settings > Privacy (removing 'Bluetooth Change allowed' solved the issue.


Thank you @Firelord for pointing out at the right thread.


encryption - How exactly does FBE's key derivation work?


These are the files that I know go into verifying a user's password:



/data/system/gatekeeper.password.key
/data/system/gatekeeper.pattern.key
/data/system/locksettings.db
/data/system/locksettings.db-shm
/data/system/locksettings.db-wal

I know that this is where the files used construct the FBE key are stored:


/data/misc/vold/user_keys/ce/0/current/version
/data/misc/vold/user_keys/ce/0/current/secdiscardable
/data/misc/vold/user_keys/ce/0/current/encrypted_key

/data/misc/vold/user_keys/ce/0/current/stretching
/data/misc/vold/user_keys/de/0/encrypted_key
/data/misc/vold/user_keys/de/0/stretching
/data/misc/vold/user_keys/de/0/keymaster_key_blob
/data/misc/vold/user_keys/de/0/secdiscardable
/data/misc/vold/user_keys/de/0/version

Although I'm told the encrypted FBE keys are stored in the above paths, these files seem related:


/data/system_de/0/spblob/0000000000000000.handle
/data/system_de/0/spblob/XXXXXXXXXXXXXXXX.pwd

/data/system_de/0/spblob/XXXXXXXXXXXXXXXX.secdis
/data/system_de/0/spblob/XXXXXXXXXXXXXXXX.spblob

The XXXXXXXXXXXXXXXX is a placeholder for a 16-character long hexadecimal "handle"; 0000000000000000.handle, by contrast, is named exactly as it written. There are actually several sets of pwd/secdis/spblob files on my phone and two that are missing their spblob file. I'm not sure I'm supposed to have that many.


Over the pass few days, I've messed up my phone trying to get TWRP to decrypt my data. At first, after removing my password, I couldn't set another one as Settings would crash whenever I tried. I was able to fix it by renaming locksettings.db. I then went ahead and set and cleared several different (but very insecure) passwords/PINs, including my old one (which is secure). I'm unable to remember the order of events, but now I'm at a point where I get Pixel is starting whenever I swipe on my home screen after booting. I'm suspecting this has to do with it not being able to decrypt my FBE key. I'm wondering if through my combination of renaming files like gatekeeper.*.key and locksettings.db that the FBE key maybe was decrypted with the wrong key and then reencrypted with a different one.


I'd like to know what role the above files play in the encrypting my phone. I'd also like to know:



  • What data from what sources is combined using what algorithms to decrypt the keys that encrypt my phone.

  • What happens when the password is changed (e.g., what files are decrypted/reencrypted, whether the salt is changed, etc.).

  • How the files gatekeeper.*.key and locksettings.db used in the process.


  • Whether or not the FBE key ever changes with the password.


The purpose of all of this is to determine if the problem with my lies with the encryption key being wrong or if it's a matter of cleaning up the right files, and to get past the endless Pixel is starting message to my apps and content.




4.1 jelly bean - Network Error when invoking Google Now



When I try to invoke Google Now by swiping up from the Home button, I get the message "Network error. Check your network connections and try again". I have a solid WiFi signal, and searches from the search bar work fine. I get the same message when I go into settings after launching Google Search and try to enable Google Now.


ASUS Transformer Prime, Android 4.1.1



Answer



Finally found the answer. I had four Google accounts - one of them could not sync because it required domain policy to be enforced, and I hadn't allowed that. I connected the tablet to my laptop and used adb logcat to see what was being logged when the error was displayed:


I/GLSUser (28125): GLS error: DeviceManagementRequiredOrSyncDisabled <> oauth2:https://www.googleapis.com/auth/personal_derived_data https://www.googleapis.com/auth/paths.notifications
V/GoogleLoginService(28125): Returning error intent with: ComponentInfo{com.google.android.gsf.login/com.google.android.gsf.login.LoginActivity}
E/Velvet.VelvetNetworkClient( 4564): Failed to get auth token

(these messages were repeated several times).


I guessed that the errant account may have been involved (even though it was not the account I was trying to active Now with), removed the account from the device and all is well.



Saturday, September 6, 2014

Which hardware sensors are supported by Android?



Which hardware sensors are supported by Android? Are there any imaginable sensors that may be planned to be supported in the future?


For every sensor:




  • How is the sensor useful?

  • Which devices currently have it? (Only for new sensors)

  • What do notable apps use the sensor?


Here is a list of currently supported hardware sensors:


Environment Sensors



  • ambient humidity

  • illuminance

  • ambient pressure


  • ambient temperature

  • Device temperature


Motion sensors



  • accelerometer

  • gyroscope


Position sensors




  • geomagnetic field sensor

  • the proximity sensor



The orientation sensor is software-based and derives its data from the accelerometer and the geomagnetic field sensor.





5.0 lollipop - Moto G 1st Gen - Mobile Data not working after upgrade to 5.0.2


After upgrading to Lollipop from 4.4.4, mobile data doesn't work. I have tried all the solutions listed in various forums including, 1. Reboot 2. Reboot after re-inserting the sim card. 3. Manually add the APN (Got the settings from the service provider) 4. Toggle between the Preferred Network type (2G and 3G)



I have only one usable sim slot, and so cannot use sim slot-1. I have heard it worked for a few guys after putting the sim in the other slot, but unfortunately I cannot try that out.


Any suggestions?




What will I lose if I reset my samsung Galaxy SI (GTi9000)?


I've had this phone for two years so all my photos are saved on the actual phone (not a micro SD card). I'm wondering if I reset it, will I lose all the photos saved on my phone? I'm not bothered about losing the apps just my photos I'm concerned about.




Friday, September 5, 2014

linux - How to find the pathname of the swap partition on SD card?


As this warns, you should not enable swap on the wrong partition or you can destroy your phone:




OK before we go any further! previous phones had a partition layout where mmcblck0 was the SDcard (external) our phone uses mmcblck1 for the external sd. This is important because if you use an app it may be preset to use mmcblck0 as swap partition.using this setting will cause you to use your sbl2 or sbl3 as swap partition.this will brick your phone and unbrick guide will be useles.



So the swap partition might be /dev/block/mmcblk0p3 if I have 3 partitions (fat32, sdext, swap) on my SD card, or /dev/block/mmcblk0p2 if I have 2 partitions (fat43 and swap) or /dev/block/mmcblk1p? if you have a different phone, etc. and the wrong choice can brick your phone.


How do you find out which partition is which? It should be the only partition on any drive of the phone with the swap filesystem.



  • fdisk -l does this on Ubuntu, but outputs nothing in Android

  • blkid does not show the swap partition

  • cat /proc/partitions lists a lot of partitions, but doesn't indicate which is the swap

  • cat /proc/swaps only lists swaps that are already being used


  • cat /proc/mtd only says dev: size erasesize name and nothing else

  • ls /dev/block/vold lists some partitions as 179:64 179:65 179:66, but doesn't indicate what they are?

  • 4ext recovery will show it in the table of partitions (swap swap 129 MiB), but doesn't say the dev name

  • ...


Even if there's no command line tool to print it directly, surely there's a way to deduce it from some other information??



Answer



I installed the Disk Info app and in the options, I enabled Expert mode and Unmounted partitions. It doesn't say "swap", but it shows clearly that it's the only other partition on the SD card and it's the right size, so /dev/block/mmcblk1p2 must be the one:


screenshot of Disk Info


Swapper 2 is configured to use /dev/block/mmcblk0p3 by default, so I'm glad I didn't go with the default.



samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...