Wednesday, January 31, 2018

rom - Prestigio PAP 7500 rooting


recently I bought Prestigio 7500 for testing reasons and what is stopping me from doing it is that I can't root it (I want to install custom rom such as CM or Ubuntu touch). I was searching CWM (ClockworkMod) - there is none , other alternative mods and I found also nothing. I was also searching for any forums related to this device ,I found some in Czech and Slovak (had to use translator) but how I understood they didnt succeed also and this situation really frustrates me because I found almost nothing about this device.. Maybe some of you were sucessfull rooting this device or know where to find any explantion or how-to or any forum ? Any suggestions is really appreciated.



Answer



Rooting is the easiest part, but it still may be impossible. Some of the methods I would try:



  • You can try to log in through ADB, see if you're already logged in as root.


  • You can also try universal root exploits, one of them may work.

  • Also you can try to obtain an original ROM for the device, root it on the PC and flash it on the device.


What is very hard (handfuls of experienced developers are spending months with each device) is porting custom ROMs (CM, Ubuntu Touch) to a previously unsupported device. Since you've found no existing recovery for it, let alone a ROM, you will have to do the porting yourself which will take a lot of time and if you aren't careful, you can easily brick your device.


Tuesday, January 30, 2018

applications - How to mount an ext3 partition from an external sd card on android


I'm trying to run Debian on the Android 4.4 (modded with cyanogenmod) that's installed on my nexus 10 to external sdcard. I'm reading this tutorial :


http://whiteboard.ping.se/Android/Debian


I've attached the Leef microSD microUSB Connector to the mini usb port of my nexus 10 as you can see here :


leef connector attached to my nexus 10


I've created two partitions on the sd card,as explained on the tutorial. The first is formatted with fat fs and the second one with ext3 file system. This is what I did when I've prepared the sd card partitions on the desktop computer :


Disk /dev/sdf: 64.0 GB, 64021856256 bytes

255 heads, 63 sectors/track, 7783 cylinders, total 125042688 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004504c

Device Boot Start End Blocks Id System
/dev/sdf1 2048 32767999 16382976 b W95 FAT32
/dev/sdf2 32768000 125042687 46137344 83 Linux


When I attach the leef connector,only the fat32 partition is recognized by android,but not the ext3. This is the mount points that I see :


android mount points


To proceed with the tutorial I need to mount the second partition where should be installed the debian OS. How can I do this ? thanks.




Different notification sounds for sms and email?


Is there a way to use different sounds for a sms text alert and an email alert? I can't find the setting. I'm on HTC Hero, Android 2.1



Answer




You can customize the Notification settings for both Gmail and Messaging in each of the apps separately.


In Gmail press menu and go to More->Settings and look at the Notification settings section.


In Messaging press menu then Settings and look at the Notification settings section.


Monday, January 29, 2018

4.0 ice cream sandwich - Enabling AdHoc Networking on ICS to Connect to AdHoc Devices


I'm looking for a way to connect my Galaxy Nexus (Android 4.0.x) to my laptop via adhoc wifi. (The laptop will act as my wireless NAS.)


The WiFi Ad Hoc enabler for Android does not work on the Galaxy Nexus. (The statistics at at that link show 0 successes and 13 failures for GNex owners who tried it. However, it works for many other devices.)


I also see this advice: You need a modified wpa_supplicant file in /system/bin.


What modifications are needed to the wpa_supplicant file in /system/bin?



I see a couple proposed solutions for other devices, but nothing for the Galaxy Nexus.


https://android.stackexchange.com/a/19133/12444
https://android.stackexchange.com/a/4147/12444
http://www.slatedroid.com/topic/2973-ad-hoc-network/


However, I see this response: "patching the wpa_suplicant isn't generic and frankly I'd call that method useless."


What is the best solution? Can anyone shed more light on the problem here?



Answer



If you can tether mobile data of your Galaxy Nexus over Wi-Fi, you have full-featured ad-hoc network. If you are not sure, install Wireless Tether (root access is required).
After connecting Laptop to this MobileAP, look for IPs of client and Default Gateway (ipconfig /all cmd command works fine with Windows; Fing can also be used). IP of Default Gateway is IP of your Android device. You can use these IPs in any networking service you want. It works.


Another Approach

In ad-hoc networking, it doesn't matter which point is broadcasting SSID. So, you can make your laptop virtual router too. Connect your Galaxy Nexus to it & do whatever you want.
To make your laptop virtual router with NAS support, I'd recommend you to install Connectify Pro (not free). There's a nice free alternative too: mHotspot. After connecting your Galaxy Nexus to virtual hotspot created by it, you can use any networking service over it.


applications - Call blocking with spoken message?


Does anyone know of a call blocker that will let you create a voice message for blocked calls?


What I want is to block calls from hidden numbers. This is almost always salespeople so I want to just block them, but maybe once in a while someone with no ill intent might be calling from a line with a hidden number.


So I want the app to actually take the call, but not tell me about it. Then it should play a sound file that I make and then hang up.


This will let me tell the person at the other end, that I just blocked them to get rid of salespeople and that if they are not such a "person" then they should just use SMS.


I know that some of the apps will let you type in a text that will be sent to blocked callers, but as it will almost never be a cellphone, but an old land line with blocked number, then that will not help a lot.


If no one knows of an app that will let me do this, then I will just have to make it my self, but I thought I'd better ask first.




Phantom device showing on Google Play


I was going to install an app to my device from Google Play on my desktop, when I noticed a "No carrier Samsung GT-N7000" in my device list:


Samsung GT-N7000?


(the Nexus 7 is mine)


Apparently this device is the original Galaxy Note[1]. I've never even seen one of these devices, and there shouldn't be one registered on my account. It doesn't show on Android Device Manager.


Is someone else on my Play Store account, downloading apps/media on my credit card? I use 2FA, so I'm worried about how that could have happened. Is there anything I can do to find out more about this device?



Answer



If you're sure that you never login to any Android physical devices recently, then there's a possibility that you're using Android emulator with Google Play services (e.g. BlueStacks), and login your Google account on it.


Based from observation (this question, self-testing, and another source), BlueStacks tends to emulate Samsung devices. As explained by jpr on AndroidCentral forum,




Well, BlueStacks has to show as some type of device if you connect to Google Play to download apps, or you wouldn't be able to download apps from it. Which device it shows as can vary. It historically has been some type of Samsung device, usually a Galaxy, and usually is a T-Mobile version, but of course they could have randomized the carrier now or switched to AT&T to avoid easy detection.



(minor copyedited)


clockworkmod recovery - ROMManager does not backup my sd-ext


I am using rooted LG P500 running stock 2.3.3. Recently I partitioned my SD card using ROMManager in to three partitions (swap, ext and usb storage). I checked with Mini Partition Tool and understood that the sd-ext type is ext3. Link2SD created mount script and linked apps perfectly, releasing loads of space in memory.


To try an unofficial CM10 ROM, I backed up using ROMManager (NAndroid) and installed the unofficial CM10 ROM. While using CM10, I wiped sd-ext partition and linked few apps with belief that backup is done. Since I was unhappy with the CM10 ROM I decided to restore the backup and while doing so only I observed that my sd-ext partition contents were not backed up.


Thinking that I might not have backed up properly, I tried again to back up in restored backup of stock 2.3.3 and observed a message:



"Could not mount sd-ext. sd-ext backup may not be supported on this device. Skipping backup of sd-ext"




Had if I had noticed this message, I would not have installed the CM10 ROM at all.


Question: How can I make ROMManager to backup sd-ext partitions as well? I guess just because it was unable to mount, it just skipped sd-ext backup. When Link2SD was able to mount, what is stopping ROMManager to mount it and how can I fix it?


Info:



  1. I tried this with ClockworkMod Recovery version 5.0.2.7 and ROMManager version is 5.0.2.1

  2. I have seen the question "Ext4 partition clockworkmod recovery backup" and this question differs because the partition used is ext3 and was created by ROMMananger itself.


Update:





  1. I have seen this modaco forum thread and it just only helped me to come to a assumption that my present recovery version 5.0.2.7 does not support it. I will be glad to confirm it either from any authoritative source or burst the myth if some other user successfully backed up (either with 5.0.2.7) sd-ext.




  2. When I attempted to use "mount and storage -> mount /sd-ext" option in CWM recovery console, I just get "Error mounting /sd-ext!" message.





Answer



My suspicion that ROM Manager doesn't support sd-ext backup is quite confirmed with my experience. While looking for alternatives, I understood that there are these three recoveries available:




  1. Clockwork Mod recovery (CWM)

  2. Amon Ra recovery

  3. TeamWin recovery (TWRP)


I tried the TWRP 2.2.2.1 from its XDA thread and I am glad to inform that it did back up my ext3 partition. Other than this benefit, I have a touch interface which is much easier in par with CMW's user interface.


Saturday, January 27, 2018

4.4 kitkat - When app is moved to SD card, where is the app data stored on SD card?


My phone (Sony E4g, running Android 4.4.4) offers the possibility of moving some of the installed apps partially onto the (removable) SD-card. I use this feature regularly, and -in theory- quite a big part of the apps are already moved on it. My problem is however that I can't find these anywhere on the SD-card, and there are no separate partitions on the card either. So my question is: where exactly are this moved apps stored on the external storage in KitKat ? Thanks.




terminal - adb device always unauthorized


Im running Ubuntu 16.04


adb version
Android Debug Bridge version 1.0.32


However, when I plug in my devices for testing via ADB I always get an unauthorized error.


adb devices

List of devices attached
LGD855a1098057 unauthorized

adb works flawlessly on Windows 7 x64 SP1with Koushik Douttas Universal ADB driver and my friends Macbook , this singles out the Ubuntu 16.04 as the problem.


Things I have tried:




  • I tried revoking previous USB authorizations.


Nothing happened.



  • Switching adb debugging on and off.


However, the CLI just keeps mocking me with the unauthorized error.



  • Switching ports.



Each port on my 16 port development rig has been tried.




  • Updating adb.


    android-tools-adb is already the newest version (5.1.1r36+git20160322-0ubuntu3). android-tools-fastboot is already the newest version (5.1.1r36+git20160322-0ubuntu3).





Answer



Same problem here with exact same linux ubuntu version.


The solution for me that work well is



1 - adb kill-server


2 - sudo adb usb


after this you mobile will ask for authorization and work well. so, adb needs root privilege.


Why is a suspicious program draining my battery with GPS usage?



  • Phone : nexus 5 version 2013

  • Android version : 6.0

  • Kernel version : 3.4.0-g2aa165e


  • Build number : MRA58N


For the last few days, 10118 has been draining my phone's battery. It drains battery by using GPS. I typed 'ps' in a terminal emulator, and there was no application with PID 10118. I don't know what exactly 10118 is. My guess is that it's one of recently installed weather apps.


How can I fix this?


screenshot screenshot
Screenshots (click images for larger variants)



Answer



It's the UID of a removed app.


For such a number like 10118, it is the Unix UID for a user app (u0_a118).


There must have been a power-intensive app like a big game and you uninstalled it. Then there's nothing but its UID left, which is used in system logging.



Android does not log by app (for user apps), but its UID instead. So when you view battery usage, Android tells you the list by process UIDs, which contains one that has no app associated to it. Android cannot determine what app that UID is for, so it chooses to give you the UID directly, and that's the number you see.


Friday, January 26, 2018

samsung galaxy tab 7.7 - Transfer large files beween Android device and an iPad mini


I have an iPad mini and a Galaxy Tab 7.7 tablet.


What is the easiest way to transfer several large files between an Android device and an iPad device?





backup - What exactly is this App Data that is being backed up to Google?


Anyone know exactly what "app data" consist off? I'm refering to the new App Data-backup adapter that Google pushed out a while ago. I have a notes application. From what I can see, it don't save the notes to the memory card unless I choose to export them. Question is, are the notes saved in the data folder and are my (very private) notes therefor somewhere within the Google cloud now?



(This backup happened behind my back - I have all sync adapters turned off, but this one was installed silently and of course enabled by default. I'm not comfortable at all with this.)




applications - Searching for a way using ICS Calendar files from dropbox




So I currently use Thunderbird with Lightning and have imported several ICS files there on my Windows system (more details on how I did this here). This works great. But for Android there does not seem to be a simple app for this.


To sum up: overall I already have Dropbox for syncing. So I would just need a app that let me choose the ICS files and let me use it just like in Thunderbird. I already tested 20 apps. None was able to do my task so far.


I also don't need just an import app for ICS files. Because then the Dropbox wouldn't sync anymore for sure and I would have trouble on my Windows system. So just an editor that accesses ICS files would be perfect. As I have currently 7 ICS files, it would be great if the app would show them together like Thunderbird does.


By the way I already tried to open an ICS file with the Android Calendar app and it actually showed me an event. But I was not able to show all and the behaviour was very strange.


Update from the comments



  1. I found ICSDroid which allowed me to add ICS files from Dropbox correctly

  2. these Calendars where correctly added to the Calendar system

  3. the problem is that they are not added to "My Calendars", instead they are added to an external list, which is read-only!


  4. also the Sync is kind of broken on these calendars, updates in thunderbird are not shown on my Android calendar apps (I tried the normal, aCalendar, Planner Plus)



Answer



I now solved with installing ownCloud on my server. It was not difficult and is easy to setup. Also it gives the possibility to enable even more features.


So in Thunderbird I just add the online calendar URL to the specific calendar. That's it. The only bad thing is that Thunderbird(Lightning) does not get the colors from the server. So you have to set them manually.


And on Android you need a special app like CalDAV which is really cheap and as well easy to setup.


Now you can use any calendar app like the of your Android. Planner Plus or aCalendar. This is totally up to you. I really like Planner Plus somehow.


For me this is a really good solution. Synching is working perfectly even with different users on it at the same time. You can also manage the rights the users have in your ownCloud which was impossible with the row ics Dropbox solution.


I also use the Tasks app of ownCloud, what is called the app OpenTasks under Android, which makes it pretty easy also to use tasks on Android.


Thursday, January 25, 2018

slimport - Allow rotate into portrait mode but do not rotate external display


To avoid this question being flagged as a duplicate, I have included a list of similar questions at the end of this post with an explanation about why my question is different. Please read these reasons before you flag this question as a duplicate!




I'm trying to work out how to get my Nexus 5, in portrait mode, to display on an external monitor, in portrait mode (connected via SlimPort/HDMI).


In landscape mode everything is fine:



Landscape mode, monitor on left, phone on right


However in portrait mode, the signal is still output as if it is meant to be displayed on a landscape screen, which doesn't work at all if the screen is in portrait mode:


Portait mode, monitors left and middle, phone on right


You can see here that in both landscape and portrait mode the phone is outputting the same 1920x1080 signal, except in portrait mode the screen content is being rotated by the phone's GPU and displayed as a 607x1080 image in the middle of the 1920x1080 screen. (It is not, as some people have suggested, outputting a 1080x1920 signal that the monitor is centering. You can verify this because changing the phone between landscape and portrait shows a nice rotation animation and the monitor does not lose sync as it would if the resolution changed.)


Since the phone, when in portrait mode, is rotating the picture sent to the external display, I want to disable this, so it is just output as-is with no rotation. This will of course appear wrong on a landscape monitor, but when you rotate that monitor into portrait mode it will be fine:


enter image description here


Is there any way to disable this rotation, so that an external display in portrait mode can display the phone's content when it too is in portrait mode?




Similar questions have been asked before, but none are after the same solution:





Answer



Try these instructions, using a computer with adb installed and your phone connected:


Android Jelly Bean (4.2) locks HDMI rotation by default. You can unlock by the instruction of this commit.





  1. Add special mirroring modes for demonstration purposes.




  2. Assume rotation of HDMI display is portrait.



    adb shell setprop persist.demo.hdmirotation portrait


  3. Don't lock rotation while HDMI is plugged in.


    adb shell setprop persist.demo.hdmirotationlock false


  4. Hide secondary displays from apps but continue mirroring to them.


    adb shell setprop persist.demo.singledisplay true




Source: https://community.freescale.com/docs/DOC-97740


Using ADB shell, How I can disable hotspot / tethering on lollipop Nexus 5


My screen got broken and I've been using my phone with a VNC Server installed on it, but this morning i'd the stupid idea of enable hotspot just to see if I can use my mobile data plan on my laptop, but when I did this, the wi-fi got disconnected from my router and now i only have access to my phone using adb shell.


I need to disable hotspot from ADB, already searched on google but didn't find anything, i also tried disable and enabling wi-fi, doesn't works.



Answer



A cleaner way to do it is by calling "service call" command.


For example on my phone I could call



# Start Wifi tethering
adb shell service call connectivity 24 i32 0
# Stop Wifi tethering
adb shell service call connectivity 25 i32 0

Service call will call the function number 24 in connectivity service (which happened to be the function that turn on tethering) and pass it 0 as argument (0 would be wi-fi tethering, 1 would be usb tethering and 2 would be bluetooth).


Sadly service functions code change from one android version to another. This stackoverflow reply explain how to get the right function code for your current android version. https://stackoverflow.com/questions/20227326/where-to-find-info-on-androids-service-call-shell-command


Also this is the functions list for connectivity service for the android version I am using (Nougat) https://android.googlesource.com/platform/frameworks/base/+/android-7.1.2_r1/core/java/android/net/IConnectivityManager.aidl


Rooting Samsung Note N7000 Android 4.1.2 ( SHV-E160L)


I like to root Samsung N7000 Note running on Android 4.1.2. The ROM is a Korean version SHV-E160L ). This ROM seems to be very unique and has a few unwanted features.



Is there any safe rooting procedure ? I tried oneclickroot but it says no guarantee, do it at own risk. Thanks




wi fi - Cannot access internet even wifi is connected


I have Sony Xperia Tipo. I connected to the WiFi at my college. But even after connecting I am unable to access the internet. What is the problem?




rom flashing - Unfortunately, System UI has stopped


I have PAC-ROM Paranoid-Android (downloaded and flashed from here), and suddenly, after changing some settings (unfortunately I can't reproduce an annoying message started popping up every 2 seconds, it says "Unfortunately, System UI has stopped.".


Has anyone faced this before?
Does anyone know how to reproduce the issue or what setting is causing that? I'm sure reflashing the ROM will solve the issue, but I prefer avoiding a reconfiguration of all my personal settings.


UPDATE
I'm noticing now, that since that message started to bug up, the status bar is gone.



Answer




Enabling quick settings made that popup disappear (Source).


It's at Settings->System->Status bar->Quick settings.


HTH


Wednesday, January 24, 2018

external sd - Why can't I access the files on my SD card?



I have a Motorola Droid Bionic which I recently updated to Android 4.1.2. Since the update, I can no longer access any of the files on the 32GB micro SD card I installed in the phone. I can view all the filenames and directories, but when I try to open any of the files, I am unable to.


Settings -> Storage tells me that the SD card is mounted at /storage/sdcard1


I had previously enabled "Memory card encryption" under Settings -> Security & Screen Lock -> Data encryption, and I believe this is likely the issue. I must have enabled this over a year ago, likely shortly around when I first got the phone.


I just noticed this issue a few days ago. I did the update last week. I am not sure if the update caused the issue, but it seems the likely cause because it's the only thing I have changed recently.


Trying to play music from the SD card (in three different players) displays the error "Could not play this track" for every song. Trying to view images on the card displays the message "Could not read file".


The phone is not rooted. I have a pin enabled which I need to enter when the phone boots and on the lock screen.


Why can't I access the files on my SD card, and what can I do to recover these files?




data recovery - Creating a .dd image of a Galaxy S3 without rooting the phone


I'm working for my university's CS Department, and we've got a Digital Forensics project which requires us to create a one-to-one .dd image of a T-Mobile Galaxy S3 (Jellybean 4.1), so that we can recover some deleted data. I've done some Googling, and called Samsung, but I haven't been able to find any way to create an uncompressed image without rooting, and we can't root the phone without dealing with some legal ramifications.


Does anyone know of a program that can get the image without rooting?



Answer



It's impossible to obtain block level access to a block device without root, since all of those files grant the write permission only to root. At least I have never seen it any other way and I doubt that the S3 is an exception here.


It's not because it's technically impossible, the default permissions simply forbid it. A this is done for a pretty good reason: It would be a major security issue if this was possible: The normal user could get a dump of all the filesystem data.


Volume Rocker only controls Bluetooth In-call Volume; cannot control all other volumes


I am a bit baffled as to why the volume rocker is currently controlling "Bluetooth In-call Volume" I have not nor have I ever paired a BT device with this phone. In fact I just always leave the BT signal off.


What else could be causing this and how do it change it so that my dedicated Volume button can control my music and not some Bluetooth thing that doesn't exist.


The phone is an LG Esteem, Android Ver 2.3.4




If I pull the battery out, the sd card file system crashs, all file lost!


Is this normal? Did it happen in your phone?



Answer



Some file systems are pretty robust, if you used ext3/4 and yaffs2, the chance of getting caught in situation where the filesystem cannot recover is scarcer than winning a lottery. These file system utilizes logging to revert inconsistencies; At every startup, Android will check the filesystem's log, if the log is not empty that means the file system is not unmounted cleanly and it will automatically perform a quick recovery (you usually won't notice anything, just a 3-5 seconds longer startup). There is small chance that the last data that have not been "committed" may be lost, but it is -- for all practical purpose -- impossible to lose the whole file system.


Unfortunately, some filesystems commonly used in certain Android devices are not so robust, many manufacturers partition their SD cards as FAT, and with FAT every time your device crashes, you are playing a game of Russian Roulette. Samsung phones had a proprietary variant of FAT, which they called RFS (Robust File System), they claim RFS is compatible with FAT but is robust in the event of crash; so far, I hadn't observed any data corruption on my Samsung phone, though it is still better to be wary since Samsung is bad at writing software.


Tuesday, January 23, 2018

2.3 gingerbread - Failed to root Galaxy S (Fascinate) after three methods


I have tried three methods for rooting my previous Android device, running 2.3.5 (Gingerbread). It's a Verizon Samsung Galaxy s (Fascinate - SCH-I500).


I have all the drivers installed for the device on my computer (Windows 8) and have USB Debug toggled. SuperOneClick failed to work after three attempts. Local rooting (No computer used) did not work either as that only rooted it about five seconds after boot, displaying a message on the home screen. The last method involved installing and app from the Play store and some software for my PC which I have forgot the name. I'm at a loss on how to root it so I can flash a custom ROM I have.


I had a general idea on where to start but as you've just read, all has failed. Side note: during all of these methods the SD Card was in phone but never mounted as per all the various instructions.


How can I root this reluctant device?



Answer



As you describe your Samsung Fascinate is running Gingerbread, there's a rooting guide provided at TheUnlockr which you could try. It uses the tool to root the device, so you would need Odin Tool, Samsung Drivers, ClockworkMod Recovery, and Superuser for this.


Install the Samsung drivers first, then install ClockworkMod (which is where Odin is needed). Copy SuperUser to your SDCard, then boot into CWM (turn off the device, simultaneously hold Vol + + Vol - + Power). Select install zip from sdcard, then choose zip from sdcard. Chose the SuperUser file you've copied to your SDCard. Let it flash, and reboot using the reboot system now menu entry. Your device now should be rooted.


usb - Connect an Android tablet to ethernet


I use tablet with Android in a professional environment and the it department doesn't accept to install wifi.


My tablet need to synchronise with CSV file on a LAN share.


I'm looking for solutions. Is it possible to connect a tablet on ethernet (possibly with builtin firmware)? If yes, which model?


I looked for solutions and I found some interesting links:



Does someone have experience with this? I prefer avoid root my tablet or use a custom firmware or launch some custom command when connected to the network, but if no Android tablet come with this feature built in, I would be willing to root it.


Alternate solution: connect the tablet to the PC with USB and access the LAN share located on the computer (it was possible with Windows Mobile) and maybe access the whole network.


I own a Galaxy Tab 8.9 and the best would be to find a solution with that tablet.




Answer



i found that device https://sites.google.com/site/bobjgear/Android-Ethernet-Adapter


I think it is the solution. If you have some specific tablet like Xoom you can use ethernet with that specific adapter


Monday, January 22, 2018

5.0 lollipop - Phones wifi turns off automatically when im in wifi



When I am using my wifi, after many minutes it disconnects and it will show in my screen that I am connected to my wifi again. What do I do? I checked everything.




wi fi - How can I fix the Wi-Fi button or prevent Wi-Fi errors when turning it off and back on?


Sometimes after I shut off Wi-Fi using the button inside the notification bar drop-down, I can't turn it back on with that button. Hitting the button does nothing, it's not even highlighted. When I go into Settings -> Wireless and network -> Wi-Fi settings the status under "Wi-Fi" shows Error. If I click "Wi-Fi" to turn it on from here, it usually turns on without any problems. Occassionally I have to reboot to fix it.


Is there a fix I can use to make the TouchWiz Wi-Fi button work the same as enabling/disabling the Wi-Fi in Settings? Or, ideally, is there some way I can prevent the Wi-Fi from getting into an error state when I turn it off and back on?


I have a Galaxy S Vibrant running 2.2, but this has been reported on other Samsung phones as well (example).




Sunday, January 21, 2018

applications - Why app updates download entire app instead of only "updates"?


I find it rather strange that for updating an app in Android (or even iOS) the entire app is downloaded instead of only the actual "Updates".


The reason I find this strange is because in Windows while updating an app, only the update files are downloaded -- not the entire app -- which is more practical as it saves both time and data usage.


This would seem trivial to most, but when you need to download a huge app just for a tiny feature addition/bug fix it becomes a real PITA.


Does anyone have an explanation as to why this model was implemented?




privacy - What information does stock Android send to Google by default, and how do I opt-out?


I'm about to buy my first Android phone. My understanding is that, in order to download apps and get updates from Google Play, I need to be permanently signed into a Google account that's linked to my name via credit card information.


I find Google's privacy policy too ambiguous to understand what data is logged from Android users. I don't want to share more information than the device needs to operate.


Here are some steps I plan to take already:




My questions:



  1. What other information does Android send to Google by default?

  2. What actions should I take to minimise data collection from Google and other apps? (I'll be using stock Android 4.2 on a Nexus 4.)

  3. Is Android still a good choice if I don't plan to use Google's services?



Answer



Android is FACC


Android might be many things, but certainly not "privacy first". At least not if you want to use Google Playstore as a ressource for your apps. While at creation (initialization) of your on your Android device, you are asked "Do you want to store your data with Google?", this only means "Backups of your apps and their data, as far as they support it". Soon you will discover that your contacts and calendars are automatically synced with Google servers, without asking you, unless you explicitly opted out of that.


So if there are any firsts, it's FACC: Android comes Free of charge, is Ad supported, Cloud based, and highly Customizable. Nobody will argue the first and last items are very appreciable, while "the cloud" is fine with most, and the ads are mostly "accepted" (as long as they are not too agressive, like e.g. Airpush).



So what data do Google services collect?


Nick checked some sources (namely, Google's privacy policy), and reported in a below comment:



Google says it logs your "phone number, calling-party number, forwarding numbers, time and date of calls, duration of calls, SMS routing information and types of calls" in their privacy policy. It also logs your IP address.


But it doesn't say if this info is logged for Android users specifically, or if it's only collected from other services such as Google Voice. And it doesn't say whether it logs data even if you're logged out of Android services.



Sometimes what's missing speaks as well (sometimes even louder than the facts mentioned). So starting with the "worst-case scenario", we won't be too much shocked later on. Having created a Google account or not: as soon as a network connection is available, data can be uploaded to any servers. System apps can access identifying data such as or IMSI, your phone number, or even your locally stored contacts and calendars (yepp, paranoia-mode enabled again), and with an available network, they could transfer all data they have available anywhere. (Careful: I did not say they do so, just they could).



We may collect device-specific information (such as your hardware model, operating system version, unique device identifiers, and mobile network information including phone number). Google may associate your device identifiers or phone number with your Google Account.




(Source: Google Collection, see below)


Never forget: While Android itself is Open Source, many apps are not. But also keep in mind: this is not just the case with Android, but with any other system as well.


If you want to read some more on Google's privacy:



There's one really scary part:



We may collect and store information (including personal information) locally on your device using mechanisms such as browser web storage (including HTML 5) and application data caches.



(emphasis mine; source: Google Collection, see above)


First steps for privacy



At the very first you could check in advance how the device you want to buy comes configured. In most cases, there will be a lot of pre-installed, which contributes to the "data share". While you cannot really be forced to use those apps, it sometimes is not really possible to get rid of them without rooting. So the less bloatware there is, the better.


is not always an option, as in most countries this will void your warranty. Otherwise you could decide for a more privacy-friendly . So when you've got your new device, you will have to carefully check all options whether they might be intrusive to your privacy:



  • say "No" to above mentioned "Backup to Google" question. Otherwise, next to the list of apps you've installed from Google Play (which Google knows anyway), and data from several apps, also sensitive information like e.g. your WiFi passwords find their way into the cloud.

  • before you enter any contact or calendar data, make sure to have the sync disabled for them (see Settings→Accounts & Sync). You can still export your contact list easily direct from within the contacts app -- but if you are going to import anything again after e.g. a or on a new device, make sure to check the sync options before that (that was how Google got my data, when I forgot that one time).

  • if you enable Google's location service, this will also send "anonymized" data about places you've been. I placed "anonymized" in quotation marks, as a study recently showed that de-anonymization can be easily achieved. So you might want to turn that off as well.


Android without Google?


Wouldn't it be more consequent then to use Android without Google? This question has been discussed more than once. And yes, it is certainly possible (and before you say it's a "contradiction in terms", I could split hairs and argue that Android is not developed "by Google", but by the AOSP, the Android Open Source Project). You will have to sacrifice some things (as e.g. a big part of the apps on Google Play are hard to find outside Google Play, for example). But if that's a price you are willing to pay to protect your privacy at max, here are some readings for you:




Privacy with Android and Google?


Okay, the above approach might be a bit too exaggerated for the most (but hey, only because we are paranoid, that doesn't mean nobody's after us, right?). So what's the way in the middle? I mean, aside the "first steps" mentioned above?


There are many things. In First steps for privacy I already described how to prepare a fresh, unbloated Android that comes with the Google Apps. Now let's look what to care for next:


Pre-installed apps


There might come some pre-installed apps not belonging to the Android core system. And not "really needed" for the privacy-concerned. Stuff like Google+ or Facebook. Starting with Android 4.0, we can simply go to Settings→Apps→Manage Apps, and disable those we don't want to use. This also might give a boost to and improve , as it rids us of several "background " those apps were running. At startup. Even if we never started them.


Installing new apps


Don't click on everything fancy (well, need to remember that for a later part: ads in apps). Of course look around what sounds useful or interesting to you. But make sure to read through the comments (at least scan through them) for possible obstacles. Ignore those one-word comments like "great" and "shit", and also those just declaring "download problems" and the like. They do not speak about the app. But check if there were any privacy concerns in the past, or any other trouble for that sake.


Then make sure to check the the app requests. Do they make sense (in the context of what the app is supposed to do)? Critical combinations for privacy are e.g. access to personal data (contacts, calendars, etc) with internet. Or simply internet -- as they could send anything. How hard you argue depends on the grade of paranoia you cultivate :)


Privacy helpers


Sometimes it's not avoidable to risk some permissions: of course a web browser needs internet access, as does a SMS app need access to your messages. So how to control or restrict them?



There are several helpers around (see e.g. this list at lisisoft, will take you a while to scan through it :). You can hide sensitive information using...



  • password stores

  • locked galleries

  • crypt containers (see e.g. Droid Crypt)


All these things do not even require your device to be rooted. But really forbidding apps to access things (or control their access) won't work without . Examples have already be named in bassmadrigal's answer:



  • LBE Privacy Guard controls access to your data (call-logs, contacts, etc.), to critical functions (initiate calls, access location data, etc.) plus firewall your device (control which apps might access the net via WiFi, mobile data). Careful when you're running JellyBean or higher: the playstore version of this app is known to cause boot-loops there. Rather check XDA-developers, they have a fixed version.

  • PDroid comes in several variants: PDroid Privacy Protection being the original one, followed up by PDroid Manager and OpenPDroid. Other than LBE, these cannot be installed as an app, but need additional preparations -- as they are deeply integrated into the system. This not only adds another layer of protection -- but OpenPDroid is even OpenSource, which adds another layer of trust as well.



See also how to fake my personal information.


Want some shocking details?


Visit your Google Dashboard, log in with your Google account. Here you can find out whom you contacted most frequently, and what other data Google collected from you.


What happens with all your data when you die, or for any other reason become inactive?


Ooops? Yes, also something one should keep in mind in this context: Plan your digital afterlife. The linked article introduces the new Inactive Account Manager:



You can tell us what to do with your Gmail messages and data from several other Google services if your account becomes inactive for any reason.


For example, you can choose to have your data deleted — after three, six, nine or 12 months of inactivity. Or you can select trusted contacts to receive data [...]




(Read more in the linked article)


Protect your device


Now you've taken care no data is leaving your device, even locked data away in "data vaults", and secured the "back-doors" -- you should not leave the front-door wide open. Go to Settings→Security and set up a screen lock. Multiple choices here:



  • the good-old PIN code. Not really secure. At least not, if you use King Roland's PIN for Druidia's planet shield (or president Screw's for his briefcase; in case you do not know Spaceballs, the PIN was "12345" for both). Also not your birthdate or something like that.

  • a . More secure, as a relation to data retrievable by social-engineering is quite unlikely.

  • a can be highly secure, if you use all characters available: letters (upper and lower case), numbers, special chars. And make it long. E.g. Ti1$spnc3h! -- how to remember that? Check: "This is a $uper secure password nobody can 3asily hack!"


Anti-theft protection


Also a lot of solutions on the playstore. Highly praised solutions include Cerberus anti theft, avast! Mobile Security, and more. If your device gets lost, with a good anti-theft protection you can




  • check its position

  • sound an alarm

  • remotely back-up (retrieve) stored data, before you...

  • the entire device including its sensitive data


and optimally, the anti-theft app automatically informs you in case the thief changes the SIM. It hides itself (stealth mode) and, with available, can even protect itself against a by integrating into the /system partition. So the only chance a thief has is to immediately switch-off the device, put it into a Faraday cage, and flash a new ROM while it's still in there...


Anti-virus


...you can left out, if you've followed above steps. Yes, there certainly is around. But with all the protection levels taken, and careful selection of sources as well as the apps themselves, risk is absolutely minimal. I never had malware on any of my devices, though I've tested a lot of apps over the past years. After all, Anti-virus (or rather anti-malware, as yet there was no virus sighted for Android) might give a false sense of security ("What shall happen? I've got that Anti-virus."), as they cannot really detect everything (no heuristics, e.g.), but rather check against a database of known malware mainly.


Backup



Last but not least: Having turned off all Google services (or at least restricted them to a minimum), you will need an alternative backup. To be honest: even if you've decided to answer "Yes" to the above question of "Do you want to backup your data with Google?", you will need a good backup -- as that "Google backup" might be many things, but for sure not complete (apps must explicitly support it by implementing its API, which is done by few apps).


For this, if your device is rooted, I strongly recommend a little investion: do yourself (and your device) some good, and buy Titanium Backup PRO. You won't regret it. TiBu is a very powerful tool to backup and restore apps including their data, restore parts of backups (see: nandroid tag wiki and backup tag wiki for details), freeze/unfreeze apps, detach apps from the playstore, and much more. Scheduled backups included. Stored to your sdcard or, if you really want to, to the cloud.


Not being rooted, but having a device with Android 4.0 or higher? Take a look at Carbon - App Sync and Backup, so you can at least backup all your apps and their data, plus some of the system data. Scheduled backups are planned here as well.


Additionally, you might want to take a look at Full Backup of non-rooted devices for more details on this topic.


Conclusion


As I wrote, there usually isn't a simple answer. You can use "Android without Google", cut down all network connections, and so on -- but at latest when you also take out your SIM, it's no longer a smartphone. Android is designed to be network enabled, from its very beginning.


You could say "who cares", and let it all go -- and complain when it's too late.


Usually you have to find a way in the middle, deciding how much of your privacy you are willing to sacrifice for how much comfort/convenience. I just listed possibilities, showed what is to be found where, and what solutions exist to protect your privacy the one way or the other. Hopefully, my elaborations will help you making your decisions.


Cannot sign-in Google account on Samsung Galaxy S with 2-step authentication


I recently use 2-step verification to sign-in my Google account.


But after turning this on, I cannot sign-in my phone since no SMS is sent to my phone.


What can I do to sign in now?



Answer



If you signed up for 2-step verification, you may need to enter an application-specific password in place of your regular account password. You can generate an application-specific password when you are authorizing access to your Google Account. This process takes a few minutes, and you only need to do it once per application or device.



Note: For Android devices running 4.0 or higher, you do not need an application-specific password and only need to submit your username and password. You'll be directed to another page where you can enter a one-time six-digit code.


To check if 2-step verification is on or off, visit https://www.google.com/settings/.


file system - How do I make /sdcard link point to external SD Card on Android 4.4.2?


I've got a Samsung GT-I9505 phone with Google Edition Rom installed. As my phone comes with 16Gb internal storage, I bought a 32Gb microSD. However, the phone still uses emulated SD card to store all data.


I looked through the filesystem and found two places which might be of interest:



symlink: /sdcard -> /storage/emulated/legacy
symlink: /storage/sdcard0 -> /storage/emulated/legacy




My actual SD card, however, is at /storage/extSdCard


As far as I get it, apps use the first symlink to access SD card. I tried to use terminal emulator with root permissions to make these symlinks point to the right direction, however, it says that the filesystem is read-only.


This is where I got stuck and ask for your help to make my phone use the right SD card.




htc wildfire - gallery sort order


I have HTC Wildfire.


I used default gallery app, that ships with the phone to view photos.


What is the default sort order of the gallery app?


Sometimes, photos are in a particular order, after a month of so, they are in different order.


I don't know what is happening.




Saturday, January 20, 2018

adb - Problem with attaching Archos device on Ubuntu


On my laptop I have Ubuntu 12.04.


1) mounting the tablet


$ sudo mkdir /media/tb
$ sudo chmod 777 /media/tb
$ sudo mount /dev/sdc /media/tb

2) downloading and updating Android SDK



$ cd ~
$ wget http://dl.google.com/android/adt/adt-bundle-linux-x86-20130219.zip
$ cd ~/adt-bundle-linux-x86-20130219/sdk/tools
$ ./android update sdk

3) editing rules for my device. Each hardware device has its ID. According to Archos website my vendor ID is e79. According to this website I should also edit ~/.android/adb_usb.ini.


$ sudo vim /etc/udev/rules.d/51-android.rules

After editing the file has this content:


SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",

ENV{PRODUCT}=="e79/*", MODE="0666"
SUBSYSTEM=="usb", SYSFS{idVendor}=="e79", MODE="0666"

$ sudo chmod a+r /etc/udev/rules.d/51-android.rules
$ sudo vim ~/.android/adb_usb.ini

after editing the file has this content:


0x0e79

$ sudo chmod a+r ~/.android/adb_usb.ini


4) updating the information


$ sudo udevadm control --reload-rules
$ cd ~/adt-bundle-linux-x86-20130219/sdk/platform-tools
$ ./adb kill-server
$ ./adb start-server
$ sudo reboot
$ sudo mount /dev/sdc /media/tb
$ cd ~/adt-bundle-linux-x86-20130219/sdk/platform-tools
$ ./adb start-server

$ ./adb devices

List of devices attached

You can see that I have problem with attaching my device.


What else would you try to solve it?



Answer



For adb devices to list your device (and other ADB commands to be able to work with it), you need to enable USB Debugging in your Android device. This will start the required services (the ADB daemon) on the Android device, which is what then responds to ADB commands issued from your computer.


Besides: If you are not going to use all the development stuff from the SDK, but simply wnat to interact with your device using ADB commands, you don't need to install the entire SDK overhead. See Is there a minimal installation of ADB? for details :)


battery - Android definition of charge cycle?


Battery life is measured in number of charge-discharge cycles. Charge Cycle wiki says



Apple Inc. clarifies that a charge cycle means using all the battery's capacity, but not necessarily by full charge and discharge; e.g., using half the charge of a fully charged battery, charging it, and then using the same amount of charge again count as a single charge cycle"




This definition seems to be Apple oriented. My question is


Does Android follow the same definition or is there a different definition ?


Asking since I have both an iPad and Android (Samsung Galaxy) and was wondering if battery life is measured similarly or differently.



Answer



AFAIK I know there isn't any Android specific definition (would welcome corrections from others). Having said that, industry seems to treat this metric differently.


Wikipedia definition implies 100% discharge to count as one cycle, where as industry seems to treat 80% discharge to count as one cycle per sources below




Cycle Life:  The capacity of a rechargeable cell or battery changes over its life. The definition of the battery life or cycle life of a battery is number of cycles that a cell or battery can be charged and discharged under specific conditions, before the available capacity falls to a specific performance criteria - normally 80% of the rated capacity






A discharge/charge cycle is commonly understood as the full discharge of a charged battery with subsequent recharge, but this is not always the case. Batteries are seldom fully discharged, and manufacturers often use the 80 percent depth-of-discharge (DoD) formula to rate a battery. This means that only 80 percent of the available energy is delivered and 20 percent remains in reserve. Cycling a battery at less than full discharge increases service life, and manufacturers argue that this is closer to a field representation than a full cycle because batteries are commonly recharged with some spare capacity left.


There is no standard definition as to what constitutes a discharge cycle (....)



To summarise, Wikipedia definition seems academic while industry treats it practically


(Aside, Charge Cycle Counter, which measures battery charge cycles follows Wikipedia definition )



Why I presume Android follows industry definition




Apart from the two reasons mentioned above for 80% discharge to be measured as one cycle (namely, real life charging and better battery life ), I suspect that battery manufactures would prefer this as it boosts battery life cycle count by 20% compared to Apple/Wikipedia definition.


Play store My App section


When i open the play store -> My apps section from my PC, i see a list of all the apps i ever used. This list is uneditable. When i check the same in the play store android app, i see the same list but this time i can delete entries.


Questions:


-Why this list shows all the apps i ever used? I would expect to show all the apps i currently have installed on my phone.



-For what purpose this list exists? What happens when i delete entries manually?



Answer



You might want to see apps you have installed previously but since uninstalled in order to find an app that you but want to recommend to a friend. You might uninstall an app by accident and want to find it again easily.


Google Play needs to keep track of this information anyway, for two reasons:-



  1. You can only review an app you've installed;

  2. Even after uninstalling a paid app, it remains available to you, and you can reinstall it again without paying.


Deleting an entry only hides it from the list (on all your devices and the web interface), and has no other effect.


Friday, January 19, 2018

calls - How can I play audio over an open phone conversation?


I would like to be able to play an audio recording over an open phone conversation. I.e., while the phone is connected (an outgoing call) a prerecorded audio file is played over the open phone connection. How can I do this?




Thursday, January 18, 2018

Can I make the browser stop autmatically refreshing pages that haven't been displayed for a while?


If I surf to a page and then leave the browser for a while, when I open up the browser again it still shows the content of the page - but after a second or so it initiates a refresh. Is there a way to stop this behavior?


I have experienced the same behavior in Dolphin Browser, fwiw.



Answer




I've noticed this with Dolphin as well, but in my findings it is not actually refreshing the page, rather I think it is reloading the cached content of the page. I'm pretty sure this is whats going on because at work we have a guest wireless system that requires authentication. When I connect my phone to it and browse I have to login with credentials at a landing page. This page doesn't come up right away after opening Dolphin browser, even though I sit and wait for Dolphin to load up the page. I have to hit refresh and then I am redirected to the landing page to login.


I hunted for a cache setting that may improve this annoyance, but didn't find one. We might have to wait for an update to the app.


Update:


This should HELP solve the problem for root users, I say help because there still may be some refreshing that occurs.


The problem:


Android is set to offload the browser cache from memory to the local partition (where apps are stored) when you leave the browser. This is because most android phones still don't have much space in the partition where apps and such are installed. My Evo only has 400mb of space.


My best guess is that Android was set to work this way because originally phones didn't have much space to work with. No that is becoming less of an issue.


Possible Solutions:



  1. For rooted users only: Download Swapper2. From what I have read in other forums, this makes a huge difference in how often the browser offloads cache to the local partition. And users have reported it makes a big difference.


  2. Set Dolphin browser to store cache on the SD card. Maybe if the browser doesn't have to wait for cache to be shuffled around it wont refresh as much, or if it does still refresh, maybe it will take less time.


What did I do? I installed Swapper2 and wow. It really works. Now I can open Dolphin and not have to wait for refresh. Finally!!


Wednesday, January 17, 2018

rom flashing - Fastboot erase system not working


My device: Karbonn A52+


Android 4.2.2


Mediatek MT6572 CPU


Root Access: Yes


Bootloader: Unlocked


I'm trying to flash the official system.img of my device's stock ROM which I have with me, over fastboot.


However, when I run the command: I get this...



C:\Users\Tanmay>fastboot erase system
******** Did you mean to fastboot format this partition?
erasing 'system'...

And this goes on forever. Does not go further this. If I directly run this command without going through the above process:


E:\OS\Mobile\adb>fastboot flash system system.img
erasing 'system'...

Same thing happens, it gets stuck at erasing 'system'...


Other fastboot commands work fine:



C:\Users\Tanmay>fastboot devices
mt6572v1_phone fastboot

Also, commands like fastboot reboot, fastboot getvar all, work fine.


I'm only facing problem with erasing system. I am unable to figure out why it happens with this command. Is it possible I'm being impatient? I abort it if it doesn't respond after 3-4 minutes.




wi fi - Can I manually download my wifi settings to my Android device from my Google account?


I just purchased my fourth ever Android device - An HSPA+ Samsung Galaxy Nexus phone.


When I purchased my second and third devices (Samsung Galaxy Tab 10.1 and an Asus Transformer Pad TF300T), I found that after I logged into my Google account during my device setup, my devices downloaded all my known wifi hotspots and the network passwords to them, and could immediately connect to any private wifi network that had been saved on my first Android device (An HTC Nexus One).


However, for some reason, this didn't happen on my Galaxy Nexus when I set it up. In fact, when I set up my Transformer Pad, not only did it download my wifi settings, but it also automatically downloaded the apps I had installed on my other devices. My new Galaxy Nexus didn't do that either. I know I checked the box to 'restore backup from Google account' when I set up the device. I did have some trouble logging in at first, so maybe that's the reason?


I'd really like to get my wifi network settings downloaded to this device. I have dozens of hotspots from friend's houses, client's offices, etc, that I don't want to have to re-enter the information for. Is there some way to manually restore this information to my Galaxy Nexus since it wasn't restored during my initial setup? I tried removing my Google account from the device and re-adding it, but that didn't work. Thanks in advance for any suggestions.



Answer



I found this page on Google's support site which states the following about restoring your phone's settings during the initial setup:




"Important: If you want to restore your settings, you must do that now during setup. You can’t restore data after setup is complete."



Based on this, I'm guessing there's no way to restore my account data at this point, short of doing a factory reset on the phone and starting over (undesirable at this point). I'd love to be wrong though.


Tuesday, January 16, 2018

rooting - understand root and su


As I understand to "Root" a device, means to gain privilege to do all sort of things with the device, without restrictions, which probably means "root privilege".


Isn't that what "su" utility provide , i.e. root privilege ? I mean is all we need is to run su in order to have root privilege or are there any additional things, that should be done ?



Answer




Yes, the su utility is all you need, but the problem is putting the su binary (basically the .exe of Linux and Linux based-OS's) onto the phone. In order to put su onto the phone, you need root in the first place. su is usually added to the phone by unlocking the bootloader, which allows it to run a recovery which can flash su onto the phone.


sync - Disable syncing of contact that belongs to multiple groups


I have few Contact Groups.


Friends
Coworkers

Schoolmates


With someone whom I haven't communicated in many years, I add an additional group called Archived. So, for example, a person can be in multiple groups like Friends and Archived. Is there a way I disable syncing contacts to the Android device, which has the Archived group, but sync all other entries?


What I see is:
if the contact has only the Archived group attached to it,
=== then I can disable syncing that contact.
But if the contact has any other group present, along with the Archived group,
=== then I do not know how to disable it.



Answer



You could look at this the other way around and create another group called "not archived" or "active" or something like that, and put all of the contacts that you do want to appear on the phone in that group.


Then you could just sync this group to the phone (and don't select "Friends" "Family" or anything else to sync) and it should work.



rooting - How to root the Samsung Galaxy S4 I9505


How can I root the Samsung Galaxy S4? Phone model: GT-I9505



Answer



Method 1: Root Galaxy S4 and Install Recovery:



Note: THIS WILL VOID YOUR WARRANTY AND MAY BRICK YOUR PHONE. THE GUIDE BELOW REQUIRES WINDOWS. (FOR ADVANCED USERS: Extract the .tar and flash the img files with "Heimdall".





  1. Download the PhilZ recovery for your device.

  2. Download the latest SuperSU package and copy it to your phone.

  3. Download the Odin tool and unzip it.

  4. Download and install the Samsung USB drivers on your Windows PC.

  5. Enable USB Debugging on your Galaxy S4.

  6. Now turn off your phone and boot it into the 7. Download Mode by holding the Volume Down + Home + Power buttons together for 2-3 seconds. When you are prompted to press the Volume Up key, do it.

  7. Now connect your Galaxy S4 to computer via USB cable.



  8. Open Odin folder and launch the program as administrator.



    Note: Make sure the message box in Odin shows “Added!” text. If it doesn’t, reinstall the drivers, reboot the PC and the phone and connect it again.





  9. Uncheck the Auto Reboot option on Odin (do not touch any other option).



  10. Click the AP button on Odin and add the PhilZ recovery file with .tar extension.

  11. Now click the Start button on Odin and wait till the installation is finished.


  12. When you get PASS!/RESET! message on Odin, disconnect the USB cable.

  13. Now long press the power button to turn off the device, or remove the back panel and pull out the battery for 20 seconds. Reinsert the battery and then hold the Volume Up + Home + Power keys simultaneously. When the screen turn up and you see the Samsung Logo, release the Power key. Keep the other two keys pressed until your phone boots into the recovery mode.

  14. In PhilZ recovery menu, select Install zip option, navigate to the SuperSU update package (.zip file) and install it.

  15. When you are done with installation, return to PhilZ main menu and select Reboot system now option.


Monday, January 15, 2018

6.0 marshmallow - app installed to /system/priv-app won't run


Prerequisites:





  • a rooted Rockchip-based China tablet device running Android 6, patched to disable SystemUI




  • own-developed app which declares LAUNCHER category and is intended to take full conrol of the device




What am I trying to achieve:


install the app as a system app to avoid handling SDK 23+ permissions



What have I done so far:



  • installed the app regularly via Android Studio

  • moved the app to /system/priv-app:


(root)


ls /data/app/my.package.name-1
base.apk
lib
oat

mount -o rw,remount /system
mv /data/app/my.package.name-1 /system/priv-app/AppName
ls -la /system/priv-app/AppName
-rw-r--r-- system system 2464934 2017-12-08 11:32 base.apk
drwxr-xr-x system system 2017-12-08 11:32 lib
drwxrwx--x system install 2017-12-08 11:32 oat
reboot

What is the problem?


It seems the system is not aware the app exists: it does not run on boot (which it perfectly does when installed as a regular app) and I am unable to launch it manually:



root@rk312x:/ # am start -n my.package.name/.ui.MainActivity
Starting: Intent { cmp=my.package.name/.ui.MainActivity }
Error type 3
Error: Activity class {my.package.name/my.package.name.ui.MainActivity} does not exist.

What am I missing?



Answer



Changing the permissions to -rw-r--r-- and owner as root followed by reboot should fix


But as OP pointed out signature issues need to be sorted out


usb on the go - How can I determine if my device has USB Host Mode (OTG) support?


Some Android devices can act as a USB host, so that you can use other USB devices attached to them. For instance, browse or import the photos stored on a camera from your phone, or copy files onto a USB memory stick attached to your tablet, plug a full-size USB keyboard or mouse into a tablet, or use an external GPS or wifi device.


How can I tell if my device can do this?



Answer



To use an attached USB device you need to have:



  • A USB OTG (USB On-The-Go) cable


  • USB Host Mode drivers loaded on your device

  • A version of the Android operating system loaded on that device that supports USB Host Mode

  • An Android device (eg phone or tablet) that has built-in hardware support for USB Host Mode

  • And finally there need to be drivers on your device, for whatever USb device you're plugging in.


Operating System


USB Host Mode support was introduced in Android version 3.1 (Honeycomb), so if you have Android 3.1, or newer installed on your device then you should have the necessary support for it in your OS, Android 4 also adds additional USB and OTG support. Also, many third-party ROMs add support for USB Host Mode to phones that have the hardware support, but don't have the necessary OS or driver support in the official operating system release.


Host Mode Drivers


Most devices that have both hardware support and a new enough OS will have the necessary drivers loaded to enable USB Host Mode, but some don't. You can find driver apps on the Play Store for some models that don't have built in drivers. Some models with 3rd party instructions and drivers available are:




Cable


You can't just use a normal USB cable. As these devices can act as both a USB "slave" device (for instance so that you can plug them into a PC and copy music onto your phone, or copy pictures off the phone) and a USB "host" (for example so that you can plug a USB memory stick into your tablet and copy files on or off it) they need some way to tell which they should act as at a given time.


A USB OTG (USB On-The-Go) cable is what is used to tell your device to act as a host, this is like a normal USB cable but it has one of the internal pins connected to Ground at one end to let that device know that it should act as the host (technically pins 4 & 5 are shorted to ground in an OTG cable).


Additionally, as most phones have micro-USB sockets, but most USB dongles have "full-size" USB plugs, as below many OTG cables have a male micro-B USB plug at one end, and a female USB-A plug at the other to convert between the different sized connectors.


Motorola USB OTG cable)
The Motorola Camera Connection kit, which is a USB OTG cable


USB OTG cables can be bought fairly cheaply on places like eBay or the Amazon marketplace, as well as many small electronics shops. You may also find that your device's manufacturer sells an official, branded one, often called something like a "Camera Connection Kit" or "USB Memory Stick Connection Cable". If you're brave you can also find various tutorials on the web on how to make your own OTG cable from a standard USB cable.


USB device drivers


When you plug your USB device into your Android phone or tablet it needs to know what that USB device is and what to do with it. For common devices, like USB memory sticks, or cameras that support PPTP or USB Mass Storage, these will often already be built into the OS. For other USB devices, like Wifi, 3G or Bluetooth dongles there may not be drivers pre-built into the OS, or only drivers for certain specific devices.


How to test everything together



There are some apps that can help you test whether you have all of the necessary hardware and software to do this, such as USB Host Diagnostics. Using it to test your device's capabilities is very simple



  • Install USB Host Diagnostics from the Play Store

  • Run it

  • Tap the Start Diagnostics link, and following the directions first ensure that you have nothing plugged into USB on your device and then plug a device (such as a USB flash drive) in when prompted


USB Host Diagnostics running


If everything works you should end up with a summary screen like this, showing firstly a few details about your device and the running OS, then letting you know whether or not your device says that it supports USB Host Mode, and then the all important final Verdict that lets you know whether testing the Host Mode access worked or not:


USB Host Diagnostics results screen


If everything is working and the app successfully detected your USB device (showing that your USB Host Mode is working) you should have "Yes"s in the ringed sections, and some details showing how much access 3rd party (ie non-built-in) apps have to the device. If not, there should be details there to help you track down where the problem is.



Alternatively, Chainfire, the author of USB Host Diagnostics, has a (long) listing of all the reports that people have submitted after running the test on their devices. You can look your device up in the list and see if people with your device and operating system version have passed all of the tests, or not. Have a look for your device here: http://usbhost.chainfire.eu/


How do I disable full-screen mode in Chrome for Android?


Some time ago, both Chrome and Chrome Beta started going full-screen. That is, I no longer see my status bar. This is a deal breaker for me, as I can no longer see what time it is or if I have notifications.


I have browsed chrome://flags and didn't see anything related to this.


Is it possible to disable this full-screen mode?



Chrome versions:



  • Chrome (30.0.1599.92)

  • Chrome Beta (31.0.1650.32)


My phone:



  • Galaxy Note 2

  • Android 4.1.2

  • Verizon


  • no custom rom or root



Answer



I had the same problem, but I saw the exact moment it happened, a message appeared saying "switching to full screen mode". Then I couldn't switch it off. I deleted all data in Chrome, and the problem was fixed. There was no need to uninstall the app, just cleaned the data using the Android built-in Application Manager. It seems some website included code that caused this, and the Chrome for Android simply does not have the settings to revert this. Hope this helps.


Sunday, January 14, 2018

encryption - How do you encrypt your device running CyanogenMod 12.1?


CyanogenMod 12 and 12.1 'Encrypt phone' setting is broken, and has been for quite a while. Is there any way to encrypt the phone in some other fashion? Can CM be sideloaded onto a phone with an encrypted /data directory? Are there any other ways to keep your data safe and sound? The device I'm working on is a Verizon LG G3.




applications - Auto refresh a webpage every N minutes


Does anyone know any way that I can refresh a webpage every N minutes?


I am running Kiosk browser with fullscreen, I need to have something that can refresh the page every N minutes. The Kiosk browser I am using has no such function built in.


Does anyone know how I can achieve this?




How do I go back to my original settings after installing Hola Launcher?


I just installed Hola Launcher on my HTC One m8 and it changed everything from my display to content settings. I would like to switch back to exactly how my phone settings were before installing Hola Launcher. I've been trying to find options but to no avail. I would also like to remove Hola Launcher.




Saturday, January 13, 2018

adb - How to take backup of all installed APKs from Phone to PC?



How do I take backup of all installed apks from my sgs2 to PC using android sdk/ 3rd party tool etc? My phone is not rooted. I can install/uninstall apks using adb, but is there any similar command line tool to take backup of the same?



Answer



This is one of the things that are far easier with a rooted phone: you could just type in:



adb pull /data/app C:\Users\User\Desktop\Apps

and your apks would magically appear on your desktop. In your case this isn't possible because accessing the data partition is only allowed for root users. (And this is a good thing. Imagine what would happen if any app could read your email or text messages.)


There are several apps in the android market play store that can back up your apps. My favorite is App Backup & Restore. It's a pretty simple app that even has an option to automatically back up all new apps. Than you can just copy the apps to your computer using your preferred method. I use Foldersync Lite to upload it to my DropBox.


Examples of mobile broadcasts being used


I recently found this page of settings in on my phone under Cyanogenmod, I had never even heard of this system before.


mobile broadcast settings

mobile broadcast settings (click to enlarge)


Are there any examples of this system being used in the past?



Answer



Yes. They're called Wireless Emergency Alerts, part of the Emergency Alerts System.


There was a thing in California earlier this year over the first use of the system giving utterly irreverent information (sending the alert to people hundreds of miles from the event), presumably due to poor implementation.


samsung galaxy s 2 - Is there a way to get GPS to work without Google Location Service constantly enabled?


The GPS on my Samsung Galaxy S2 cannot find my current location whenever Google Location Service is disabled. I have it disabled most of the time because my battery drains much faster when the service is enabled. I disable the option via System Settings -> Location Services -> Google location service. In the figure below I'm referring to the top option.


enter image description here


Is there a way to do one of these things:



  1. Somehow obtain my coordinates using GPS without Location Services enabled?


  2. Intelligently switch on/off Google Location Service when I need it (i.e. like when I'm using my GPS)

  3. Keep Google Location Service enabled, but somehow prevent it from draining battery.


In short, the problem I want to solve is to get my location coordinates without having Google Location Service drain my battery.


I'm running ICS 4.0.3 on AT&T's network.



Answer



You can still use GPS without having Google location services enabled. When you disable the location services you are opting out of sending data to Google. Google location services is actually an internet database (Google Location Server) that is made available to mobile device manufacturers as an application licensed by Google. This is the database that is updated with WiFi and cell ID data from devices running Android, and was initially populated with data collected by the Street View cars (up until 2010 anyway). It helps your device obtain a quicker initial fix by using WiFi AP or Cell ID information. It is used to augment the GPS, uses less battery life, and is sometimes used instead of GPS if you are indoors or do not have strong GPS signal.


As noted on Google's support site, for ICS 4.0+ Maps will still work with just the GPS activated. http://support.google.com/gmm/bin/answer.py?hl=en&answer=165333


In short, the settings you have above should allow you to use your GPS without the help of the cellular network or nearby Wi-Fi APs. You will have to be outdoors in order to use this feature though, and it can take up to 4 minutes to get a location. So if you are waiting on a fix and you have Google location services disabled, you'll have to be patient.


Let's address the battery drain--review the third-party location-aware applications you have installed. Some are poorly programmed and could be requesting GPS refreshes at a high rate, taxing your battery. Also if you are only using GPS to navigate, it is a battery hog.



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 ...