Monday, February 29, 2016

backup - How to back up my current android ID?


I want to flash a new rom, but it will change my android ID. Is there any way to just back up my current android ID WITHOUT make a whole-system-backup?



Answer



Backup the "Settings Storage" app from TitaniumBackup. That will help you store your android ID. If you want to restore it, unfortunately, you'll have to use TitaniumBackup pro since it is the only app which lets you restore your Android ID.


Taken from XDA:



Settings Storage - Be careful when you restore this. For eg: its not a good idea to restore CM9 settings to an AOKP ROM or vice versa. This is best used when you know exactly what you are doing. Also, a lot of differences between ROMs will probably be the fact that it provides some new customization options in the settings. So restoring this doesnt make sense unless you know for sure that they are the same. Handle with care.




formatting - How do I find what type of file system is of an attached USB or SD card?


How can I find the file system type of USB drive without using computer? Drive is attached to Android phone and I can see the files in it. I want to know if it is extFAT etc.




uninstallation - Uninstall system app failed using 'adb shell pm uninstall'


I attempted to force uninstall in ADB, but failed:



$ adb shell pm uninstall -k org.openintents.filemanager
$ adb shell pm list packages -f | grep -i manager
package:/system/app/FileManager.apk=org.openintents.filemanager

What went wrong here? What can I do?


I used the internal application manager and there isn't an option to delete it.




Sunday, February 28, 2016

customization - How hard is it to modify Android to add/remove required applications


I am new to Android world and I am really curious about how difficult it is to modify OS to add/remove applications. I am not talking about installing/removing apps from Android Market, but actually customizing OS to only include apps of my choice. That includes both standard/system apps as well as apps from Android Market. For example, what if I only wanted to have access to Google Voice application (and nothing else)? I guess in this custom version of the OS, I would not necessary have to remove the application, but could just somehow hide it from user.



In any case, any clues on the amount of effort/approach would be greatly appreciated.




5.0 lollipop - Droid turbo radio off when no signal happen, then can't turn radio back on


I just bought Droid Turbo (XT1225) from ebay, everything works fine except the radio, when the phone receive no signal for example in a lift, radio will turn off by itself and can't turn back on.


The unit Bootloader is unlock before sent to me, I flashed latest stock rom and in theory everything should be fresh.


So when radio was force off, I try to turn back on using:


*#*#4636#*#*

hidden menu, then run logcat -b radio, here is the result



D/RilRequest( 1668): [4363]< RADIO_POWER error: com.android.internal.telephony.C
ommandException: GENERIC_FAILURE ret=
D/GsmSST ( 1668): [GsmSST] 0mDeviceShuttingDown = false
D/GsmSST ( 1668): [GsmSST] 0mDesiredPowerState = true
D/GsmSST ( 1668): [GsmSST] 0getRadioState = RADIO_OFF
D/GsmSST ( 1668): [GsmSST] 0mPowerOffDelayNeed = true
D/GsmSST ( 1668): [GsmSST] 0mAlarmSwitch = false
D/RILJ ( 1668): [4364]> RADIO_POWER on [SUB0]
D/RILC ( 341): SOCKET RIL_SOCKET_1 REQUEST: RADIO_POWER length:16
D/RILC ( 341): RequestComplete, RIL_SOCKET_1

E/RILC ( 341): Send Response to RIL_SOCKET_1
D/RilRequest( 1668): [4364]< RADIO_POWER error: com.android.internal.telephony.C
ommandException: GENERIC_FAILURE ret=

anyone know what happen?




tasker - WhatsApp Intent



I'm trying to automatically change the text status (not the photo/video status) in WhatsApp via Tasker by sending an Intent. My problem is that I don't know if it's possible to call the status to change it, and if it is possible, how to do that.


Any help is appreciated!




Saturday, February 27, 2016

factory reset - Samsung Galaxy encryption failed


I updated my GT-19100 Phone to 4.1.2 Jelly Bean from the previous version. For this venture it was necessary to decrypt my phone first. After the update I started again an encryption. The process failed (i just left the encryption continue by leaving the phone alone) and the phone showed me this message:


http://i.imgur.com/J37aZaq.png


After reseting the device I can't access any previous data on the phone, nor can I save something on the phone. The phone recommends to format the device.


Is there a way to get my old data back? How could I avoid such a problem next time? Any advice appreciated! Thanks in advance!


Similar to this question: "Encryption Failed" on my Samsung Note 2 & it asks me to reset device. Is there a way to back up my data But still not answered.




security - What Trusted Root CAs are included in Android by default?


There doesn't seem to be a central Android resource that lists the Trusted Root CAs included in the OS or default browser (related question on SO), so how can I find out which are included on my phone by default?



With the number of root certificates that have been compromised, and the number of fraudulent SSL certs created over the last couple of years, this is an issue for anyone relying on SSL for security, as otherwise you won't know if you want to remove any trusted CAs.


(not listing my manufacturer or OS version as I'm looking for a generic resource or solution that should be applicable to any device)



Answer



On ICS or later you can check this in your settings. Go to Settings->Security->Trusted Credentials to see a list of all your trusted CAs, separated by whether they were included with the system or installed by the user.


Earlier versions of Android keep their certs under /system/etc/security in an encrypted bundle named cacerts.bks which you can extract using Bouncy Castle and the keytool program. The summary is to first pull the bundle using adb (you need a root shell) then you can use Bouncy Castle to list the contents of the bundle:


shell~$ adb pull /system/etc/security/cacerts.bks`
shell~$ keytool -keystore cacerts.bks -storetype BKS -provider org.bouncycastle.jce.provider.BouncyCastleProvider -storepass changeit -v -list

There's also at least one app that you can try if you'd prefer not to use the shell: CACertMan (requires root to modify the list, but should allow you to view the list without root). I believe it came about due to the DigiNotar fiasco since there were no particularly easy ways for a user to revoke the cert at the time. Since the certs are stored differently on ICS and later this app will only work on devices running Gingerbread (or earlier), but it is obsolete on ICS/JB anyway.


Friday, February 26, 2016

Do Google Talk and Play Store still require background sync on Ice Cream Sandwich?


When I used Android versions up to 2.x, some apps like Google Talk and Android Market (now Play Store) required background synchronization to be activated via Settings -> Account and synchronization -> Background data. I recently upgraded to Ice Cream Sandwich and noticed that both Google Talk and Play Store now work also when that setting is switched off.


Do such apps still require background synchronization, possibly in a way that is no longer controlled by a user-accessible setting?



Answer



Yes, background data is always enabled since Ice Cream Sandwich. See the note in the documentation for android.net.ConnectivityManager.getBackgroundDataSetting():




As of ICE_CREAM_SANDWICH, availability of background data depends on several combined factors, and this method will always return true. Instead, when background data is unavailable, getActiveNetworkInfo() will now appear disconnected.





Vending (the internal name for the Android Market, in fact com.android.vending) uses C2DM to receive install requests (take a look at its application manifest; even on ICS, it still has c2dm receivers). AFAIK, C2DM only works when background data is available.


Some time ago, I read a blog post somewhere (which unfortunately I am not finding right now) explaining how the Android Market (the post was from before it was renamed) worked. IIRC, even when you asked to install an application directly on your device (instead of indirectly via the https://market.android.com/ web site), all it did was to send a request to the Google servers, which then sent your device (via C2DM) an install request. This explains why Vending needs background data—it cannot do anything without being able to receive requests via C2DM from the Google servers.


I do not know about Google Talk, but from what I have heard, it has used C2DM since before C2DM was available to the public. Again, this would explain why it needs background data to work.


AFAIK, background sync is completely separate from background data, other than the fact that obviously it cannot sync in the background if background data is disabled, and the fact that you could change it from within the sync screen in the settings application.


Thursday, February 25, 2016

applications - install MySQL or any other lite weight database?


I have a android mobile with version 4.1 Installed. for my practices I am thinking that it would be nice if I have a database in that.


If it is MySQL I would love that. could somebody tell me how can I install MySQL in android ?


Thank you.




external sd - Asus Memopad sd card unexpected removed


At the moment the Asus Memopad HD7 came out, i bought it.


I bought also a micro sd card and inserted it. But frequently the sd card will be unexpected removed.


Is there anyone who recognizes this? Is it a general problem with the Memopad?




battery life - New CPU spinning problem



I have a number of phones, a few droid 3's running 2.3.4 and some samsung S2s running 4.0.4, that all at the same time started having the exact same problem last week. They just started spinning cpu. All the process monitors show android_system spinning 50% (burning up one core) and the only other evidence I can see it that it's coming from google play services, but I can't figure out what processing is causing the spinning. I'm sure the actually spinning is in system calls, but I can't figure out what process is doing the tight loop calling google play services to do a tight loop of system calls. None of my phones are rooted, although if it would help me figure it out I might do it. Where to look? How to diagnose?


It happened to 4 of my phones all on separate accounts all at the same time so I have to assume it's happening to others as well.


I have removed and added the google account, spinning comes back. I have factory reset the phone, as soon as the account restores, the spinning comes back.


I kinda need to tie my account to the phone or it's not much use.


I thought it might be the contacts sync because that was taking longer than usual, but one of the other phones is just a video server and has no contacts, so I can't see it being the contact data itself. I tried exporting and importing anyway, no help.


I'm getting desperate, the spinning kills the battery in a few hours making it kinda useless as a phone.


Anybody else see this? It can't just be me.


Help and thanks.


UPDATE:


For anybody else having this problem it definitely has something to do with syncing the account after it is added.



I factory wiped the phone again, created a new blank account and the CPU was fine. Then I added my original account back and I was unable to turn off all the syncing stuff before it started doing it and then the CPU went through the roof again.


The problem is when the phone gets an account it seems to download a new google services app which has more options to sync which by default start out as on and then it syncs them and starts the problem.


The really odd thing is that turning off all syncing and rebooting does not get it into a good state, it starts spinning the CPU on boot even though nothing syncs, which means the first sync does some damage to the data that is messing up some part of account code I guess.


Is there any way to open an actual support ticket with google about stuff like this? I fear even if I were to buy a new phone the same thing would happen.


UPDATE 2:


If I go to app->google play services->clear data, the cpu spinning goes away for a few seconds, then google contact sync runs, spinning the cpu for a bit then it's back to google play services and android system spinning the cpu.


There are no accounts on the phone when I do this, but contact sync seems to be causing the problem.


UPDATE 3:


I think I finally narrowed it down somewhat. It must have been an update to the google play services app that broke everything.


When I removed the app the cpu spinning went away, of course everything else broke and I couldn't download apps or anything, but once I knew I could remove the google play services app without completely bricking the phone at least it became an option.



So I eventually found an older version of the apk on apkmirror.com (bless them) and installed it and then things worked for a few minutes. But with all of their godly power, google mananged to install the latest version again behind my back and now its broken again.


so the problem is the google play services 9.2.56 update which came out june 27th which is around when my phone started going wonky and I'm probably hosed until they fix it or I can come up with a way to keep it from updating by itself.




Wednesday, February 24, 2016

Does XMod work in Bluestacks?


In Bluestacks app when I am installing the XMod, the app says to root device. But how can I root Bluestacks? Please help.





4.0 ice cream sandwich - Could not see "persist.service.adb.enable" value from default.prop of Android device?


I read some guide to get the persist.service.adb.enable value, and it said that it belongs to default.prop file on device. Its content should be:


#

# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=1
ro.debuggable=0
persist.service.adb.enable=0

But when i connect device to PC (Linux), try to pull out this file from device (both emulator and Samsung Galaxy Nexus), the content of default.prop file is only:


#
# ADDITIONAL_DEFAULT_PROPERTIES
#

ro.secure=1
ro.debuggable=0
persist.sys.usb.config=mass_storage

So I could not see persist.service.adb.enable. Could anyone tell me why, and how can i got it?




4.1 jelly bean - How to root Samsung Galaxy S3 Mini?


Does anybody know how to root the Samsung Galaxy S3 Mini?



  • Model Number : GT-I8190

  • Android Version : 4.1.2




samsung galaxy s 4 - Heimdall errors, "ERROR: Partition "recovery" does not exist in the specified PIT."


When I try to flash my S4 with Heimdal and put on clockworkmod, i get the follow,


$ sudo heimdall flash --recovery ./clockworkmod_6.0.3.2_jfltespr.img --no-reboot
Heimdall v1.4.0

Copyright (c) 2010-2013, Benjamin Dobell, Glass Echidna

http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...

Detecting device...
Claiming interface...
Attempt failed. Detaching driver...
Claiming interface again...
Setting up interface...

Initialising protocol...
Protocol initialisation successful.

Beginning session...


Some devices may take up to 2 minutes to respond.
Please be patient!

Session begun.

Downloading device's PIT file...
PIT file download successful.

ERROR: Partition "recovery" does not exist in the specified PIT.

Ending session...
Releasing device interface...
Re-attaching kernel driver...

So why is it telling me,



ERROR: Partition "recovery" does not exist in the specified PIT.




Answer



This is because the command you used to invoke heimdall was,



heimdall flash --recovery

And, heimdall is caps sensitive, try this instead.


heimdall flash --RECOVERY ./clockworkmod_6.0.3.2_jfltespr.img --no-reboot

applications - Can I install apps on phone without using the Android Market?


I have this Huawei Device that does not come with the Android Market installed.


Is there any work-around for this? As in how can I install Android Apps without the Android Market?


Is there a way to install Appbrain w/o having to go through the Android Market?




backup - How do I back up Google Authenticator?


I'm starting to use Google Authenticator for more and more things now, but I've just realized that if I lose my phone, or if I need to wipe and restore it to install new firmware, I will lose all of my codes.


Is there anyway to back them up please? Or some kind of fallback that means I can restore it to a new device?


Thanks




Monday, February 22, 2016

updates - How do I upgrade to a new version of Android?




Possible Duplicate:
How do I update the OS on my device?



So, I got an ePad AKA zenithink zt 180 (I know, I know it's cheap and I should have got a better piece of hardware, but i was too eager to get a tablet and this one was affordable)


It has 2.1 on it and I want to upgrade to 2.2 (for adobe flash).


The copy of Android looks like they just took the developer edition (i see a dev tools app pre-installed... not sure) and slapped it on there with no customization.


So, can you guys help me with step-by-step instructions on how to upgrade and where to find the latest copy?


I have a developer account already if that helps...



I would appreciate any help as I'm afraid of bricking it. There's no way to automatically update this thing either (that i can find) :-/




root access - What permissions are granted to an app with device administration privileges?


Does a Device Administrator application have any/all permissions such as contacts, storage, etc.. ?


It's not clear from developer.android.com device-admin whether or not these admin rights also imply application permissions.


Or does device administrator simply mean that it can only do the things in the policy it's allowed to such as lock the screen, wipe the phone, prevent (easily) uninstalling the app, etc.. and that permissions to access private information is managed via the permissions settings only ?



Answer



Yes, a device administrator only has permissions to do what it says.


If you change the permissions of the app that the administrator is associated with, the administrators permissions will not change



(Answer made from the following sources):


compatibility - How to check if application on Google Play would work on other (not own) phone?


Is there a way to (at least approximately) check if an application I have found in Google Play store would work on friend's phone. I'd rather not suggest an app that would not work on friend's phone.


For example is there a way to check if an application would work on Android 2.3, when my phone has Android 4.1.2?




Nowadays Google Play store has (in the web version) "Additional information" section, with table (actually: divs) containing structured information about an app, with the following 'columns': "Updated", "Size", "Installs", "Current Version", "Requires Android", "Content Rating".


While usually the information I want is in "Requires Android" field (e.g. '4.0.3 and up', '2.2 and up') sometimes it is just 'Varies with device', e.g. SoundHound.



Answer




Let him try installing it via Playstore. If it's "incompatible by design" (e.g. requires Android 4.x while he has only 2.3), Playstore would refuse to install it and give the hint "not compatible with your device".


Apart from that (and if the app description doesn't give a clue):



  • check the comments for hints (take care for their date, compared with the "last updated" timestamp of the app; AppBrain lists the history of an app nicely on its "Changelog" tab)

  • Install the SDK on your computer, and add the corresponding AVDs to it to test out for yourself

  • Ask for the specific app on a forum, whether anyone can confirm it's running on Android X.X.X / the specific device / ...

  • Ask the dev (and if doing so, suggest to include such hints with the desc)


Sunday, February 21, 2016

data recovery - How to recover deleted photos?


By mistake, I've accidentally deleted the folder where my phone camera saves the photos; I was trying to delete just a couple of them, but inadvertently the whole folder was selected, and all the pictures that were inside were lost; the folder was residing in the external SD card, not on the phone internal memory.


What is the best way to recover them?



Answer



Please don't write anything on your SD card. Connect it to a PC using card reader or, USB



if you are using windows


use Recuva recovery software


if you are using linux/ ubuntu


use TestDisk app


Both of these software are free. Hope this helps.


4.3 jelly bean - Will Xiaomi Mi band tracker work with Android 4.3?


Will the new Xiaomi Mi band (fitness tracker) work with Android 4.3? I know it says that it works with 4.4, but I also saw somewhere they said it won't work with 4.2.





samsung galaxy ace - Where can I find Google Play services?


I have a Samsung Galaxy Ace and when I try to use my apps, it says "This app won't run without Google Play services, which are missing from your phone".
Where can I find those Google Play Services as they are not in my menu nor in any of my settings? I had them before but now I can't find them..!




samsung galaxy s 3 - How can I find which app slows down my phone?


I have a Samsung Galaxy S3.


My phone is becoming slow. I don't know how to find the app that slows it down. Can someone help me with this? My guess that the app is FACEBOOK... worst app ever.


After restart, the phone works fine for some time. Then, it slows down again and becomes lagged.




Saturday, February 20, 2016

Asus Transformer video playback


I have an Asus Transformer tablet with the dock extesion and I am trying to play a video file recorded in MOV format. I had recorded the video on my Powershot ELPH 310HS camera in 1080p setting and it is saved in h264 format.


I tried putting the SD card into the dock and playg back the video but the playback is very slow and I think it i sbeing done in software.I installed the MX video player app to play back the video.


My question is if there is any way to do playback using a HW video decoder? I thik that I've read that the tegra 2 has this bultin but I don't know enough about video formats to know whether this is a hardware limitation or whether it could be solved with a diffferent app.



Answer



Mobo Player. Singlehandedly the best video player app on Android. Its the 'VLC' of Android. Plays nearly every format flawlessly.


Download the app, click the button to download a 2MB codec pack (so it can play different video formats) and you are good to go. If you have any problem with the playback, just go into the settings and force software rendering.


https://market.android.com/details?id=com.clov4r.android.nil&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5jbG92NHIuYW5kcm9pZC5uaWwiXQ..


wi fi - Can't connect to Walmart in-store WiFi with LTE ZTE Maven Z812


The problem started about 10 days ago (10/01/2019) after some changes were made to the Walmart in-store WiFi configuration. Since then I can't connect to the in-store WiFi from my LTE ZTE Maven Z812 smartphone.


The phone seems fine, connects to all other networks. Other phones also connect just fine to the Walmart in-store WiFi network. But when I try to connect to Walmart WiFi with Z812 I get an error WiFi connection failed and no IP address.


Resetting the adapter, forgetting the network, and rebooting the phone did not help.


I noticed that the store recently split 2.4 GHz and 5 GHz access points, there are different ESSIDs for them ("Walmartwifi 2.4" and "Walmartwifi"). The Z812 does not see the 5 GHz AP but sees 2.4 GHz just fine. I tried connecting to 2.4 GHz AP from another smartphone and it works just fine.


Any ideas what might be wrong? Is Walmart blocking certain models/manufacturers from using in-store WiFi?


Additional info: I don't think it is MAC filtering. It feels like something is broken in the IP negotiation process, but I don't understand why this specific phone and this specific network.





Restrict background data for Facebook, but notifications still coming in


I would only like particular applications to show notifications when I'm not on Wifi and those would be:



  • Google Services - unfortunately there are several syncs here but AFAIK we can't control individual ones

  • Google Search - I'm not sure what this one does but I suppose I want to keep this one up

  • GMail - for obvious reasons



But all of the others I would like to disable. Including Facebook.


The problem I'm having is that Facebook notifications are still being displayed on my phone. What am I missing?




applications - how to identify and change apps which are set as startup items



I am coming from Windows back-ground (never used Linux), and HTC Wildfire is my first Android phone.


I can see that many app like Facebook for HTC Sense, Flickr, Footprints, Friend Stream, Gmail, Peep, Stocks and many more as start-up apps.


How can I find which apps are start-up apps, and how to remove a particular app from starting up at boot (or say soft reset)



Answer




See also: How can I stop applications and services from running?


First, I strongly caution against messing with this. If an app is hogging system resources or otherwise being a problem, uninstall it. Android is designed to manage running services and apps automatically, and manual interference is tricky and can cause various problems.


There are apps that claim to allow you to edit start-up processes (example), but I don't trust them. Many of them either do nothing or simply force close the app every time it starts. Many services auto-restart so your phone will never sleep, the services will just be run and closed over and over. Many of these apps don't require root, so I'd be surprised if they could do anything at all.


With root, you can use an app like Autostarts to manage which apps are triggered by events. This isn't quite the same as preventing apps from running at startup, but it can help prevent them from restarting after they've been killed.


I recommend Titanium Backup for uninstalling system apps. Make sure you don't remove actual Android OS apps/services, just third-party apps that have been protected (e.g. bundled software like you'd get on Windows). Some of these apps are more important than they appear (I hear Motorola phones have a lot of "useless" apps that the system relies on for no good reason), so use the backup feature of Titanium first. (Note that if you break something badly, you may not be able to get into the phone to restore and fix it!)


Be very careful how you use all of these tools. If you remove or disable a system process, you can make your phone unusable.


Friday, February 19, 2016

samsung - Controlling IR in Galaxy S8?


I wonder if I the front-facing IR led of the Samsung Galaxy S8 could be used for different purposes (e.g., building my own facial recognition and depth sensing apps). But I couldn't find a way to access the front-facing IR led of the device from Samsung's developers' page: http://developer.samsung.com/galaxy/sensor-extension


Is there any way to control the front-facing IR led in a custom-built Android app?




Thursday, February 18, 2016

app ratings - Google Play allows publishers to respond to users' comments?


As far as I have known, and also read in the description of many apps on Google Play, it is not possible for publishers to respond to user's comments, but recently I have come across this:


enter image description here



Can someone give me more info on this? Also, if a publisher responds to my comment, how would I be notified about this? I do not see any Inbox or anything of that sort, also there's no option where we "Allow" Google Play to send up e-mails.



Answer



Yes, developers can reply to a user review. The user will get a notification via email.


However, as of now this feature is only available for "those with a Top Developer badge." So not all developers can reply to your comments.


Read this page from Android Developer blog for more details.


wi fi - Treat certain WiFi networks as mobile/cellular


I plan to be putting a Nexus 7 (will be rooted) in my car and tethering off my Nexus 4 (rooted). However I only get 1.5GB data per month on my mobile and don't want it to download my Spotify playlists, update apps etc whilst using my phones WiFi.


I'd like it to treat it as a mobile network and know that Android has the Mobile hotspots option but as of testing it did absolutely nothing AFAIK.



Open to pretty much all options.




2.3 gingerbread - Installing USB driver for Micromax A50


I have to install USB driver for Micromax A50 .


I have google USB driver installed through SDK Manager, but need a USB driver specifically for this device. To install this USB driver I think, I need PC suite. From where can I get this ?


My goal is to install USB driver for Micromax A50, so that it gets detected in the Dalvik Debug Monitor.




HTC EVO Does Not Sync Google Calendar


I'm an experienced Android user and recently my Dad picked up a HTC EVO. I set him up with all the Google services and apps like Gmail, Contacts and Calendar. I exported all of his contacts and appointments out of Outlook to CSV and uploaded them to Google so they can sync down to his EVO. Unfortunately when I go to his Google account sync settings, his phone does not show the option to sync his Google Calendar. The exact option I'm talking about is under (from the home screen) Settings -> Accounts & sync -> your Google account. The phone shows Books, Contacts, and Gmail but the option for calendar is missing. Is this the case on all EVO's?


I have a screen capture of my phone (HTC Incredible) that has the option below that I'm talking about. His HTC EVO does not have it for some reason. Is this a Sprint restriction? Any ideas on how to add it?


Any help is greatly appreciated.


Matt




Answer



I'd make sure that he's done something with Calendar through the web interface, such as add a custom calendar, and then try to add the account to the phone again. To do this you need to clear the data for all Google apps -- Accounts and Sync, Gmail, Google Framework Services, etc. -- and then re-add the account.


I don't believe this is EVO-specific, it seems sometimes Google just doesn't correctly link the accounts sometimes (for example, this question has the same problem except for Picasa: Why can't I Sync Picasa Web Albums?).


Wednesday, February 17, 2016

cyanogenmod - Cannot install any Custom ROMs on Xperia Ray ST18i: assert failed: getprop Status 7



When I try to install any of the roms of that page: http://get.cm/?device=urushi I always get this error:



Finding update package... Opening update package... Installing update... assert failed: getprop("ro.product.device") == "ST18i"|| getprop("ro.build.product") == "ST18i"|| getprop("ro.product.device") == "ST18a"|| getprop("ro.build.product") == "ST18a"|| getprop("ro.product.device") == "urushi" || getprop("ro.build.product") == "urushi" E:Error in /sdcard/cm-9.1.0-urushi.zip
(Status 7) Installation aborted.



This sounds to me, that the prop doesen't get the right string "ST18i" which is strange, cause that's exactly my model.


Do I have to downgrade or install something else first?


I also tried to install the old image Xperia Ray (ST18i)_4.0.2.A.0.42_CE.zip again, but there is just sais "installation aborted".


Are there different Rescue Menues? I read, someone tried reinstalled his rescue menu with Odin.


I installed my Recovery Mod with the app x-Parts from Google Play that app installs the CWM.





connection issues - Apps can't connect to internet



I have a connection problem with any app on Android 2.3.5. I can access the internet with the stock browser but any other app with full network permissions isn't able to connect to the internet. My handset is a Simvalley SPX-5.


Any ideas?




Can I remotely control an Android device using TeamViewer?


I have installed TeamViewer on my PC and mobile. I can operate/remotely control my PC on my mobile, but can I do the opposite and operate/remotely control my Android device from my PC?




rom flashing - How to unpack and edit boot.img for ROM porting?


I recently downloaded this ROM for my Allview P5 (Allview P5 is the equivalent of Gionee GN700W/FLY IQ441/QMobile Noir A8). It`s called Primonex ROM and is made for the Gionee version of the phone.



  • Firstly, I tried to install it as it is but it got stuck at the boot screen.

  • After some research I found out that it could be a problem with the boot.img file and I don't know how to extract or edit it...



Can someone tell me how to do it?




Monday, February 15, 2016

cyanogenmod - How can I tell what is really draining my battery?


I know that by going to Settings > About Phone > Battery Use, I can get some idea of the applications that are using up the most of my battery. I see things like "Cell standby", "Phone idle", and "Wi-fi"; is there any way to drill down even further and find out what is really draining my battery? For example, I am fairly certain that GPS usage is included under 'Cell Standby'.


Any help would be appreciated; I have had my phone for only about three months, and the battery goes from 100% to 0% over the course of two-ish days with minimal usage (some browsing, check-ins), and I cannot figure what is draining the battery.


EDIT


I am mostly interested in ways of diagnosing power usage in a less broad way, but in the interests of finding out what could possibly be draining my battery, here is what my 'battery use' is reporting at the moment:



  • 38% - Cell Standby

  • 33% - Phone Idle

  • 20% - Wi-Fi

  • 6% - Display


  • 2% - Angry Birds

  • 2% - Maps


I have been on battery for 8h 50m, and the charge has gone from 100% to 64%.



Answer



Try out an app called Watchdog.


It monitors your apps and alerts you to anything that is using your cpu excessively. It might help unless it something that's draining consistently at a low level.


I'd have to agree that it doesn't sound like you have a problem. Battery life seems good.


Juice Plotter is another battery monitor that you might be interested in and its companion app Juice defender might help squeeze extra life out of your phone as it can switch off your 3G off unless needed.


Sunday, February 14, 2016

cyanogenmod - Why are there so many different Android kernels (technical answer please)


Isn't Android a common kernel that is used across all devices? For example CentOS will install on Dell, HP, and a variety of other hardware. Sure there are different modules but it's still CentOS nonetheless.


What is the reason why CyanogenMod is always "broken"? I always hear in forums they are working on porting this driver or that driver. If they used the same kernel wouldn't the drivers just work with it? I also see a million different types of Kernels for different devices.



Answer



Kernels vary from manufacturer to manufacturer. A lot of those kernels come from the pure stock kernel line of sources found on CAF, what these manufacturers do is take those stock sources, modify them to suit based on the board/chipset used, also, implement their own drivers.


Take a good look around you, there's variations of touchscreens, variations of wifi chipsets, not to mention, accelerometer, sensors, batteries, compass, sound, graphics.


Taking one kernel source from for example HTC will not work on a Samsung, and vice versa.


The manufacturers are free to cherry-pick or out-source various bits that get incorporated into the circuit board. There is no hard or fast rules involved. Hence the lot of hacking/modifications to get the kernel to work properly.


You must not ever, compare to desktop Linux distribution kernels in which it has PCI, PCI-Express, SATA, VGA, SVGA, USB, Ethernet as they are a totally different ball-park game. The major differences with CentOS and with Android's Linux Kernel is this - ALL drivers are compiled either as modules or built-in, hence any Linux distribution will simply "work out of the box". Again, with desktop Linux distributions - you have one architecture - x86 hence one Linux kernel from say a Dell PC, can work out of the box on a Lenovo provided that the bog-standard drivers are compiled.


Don't forget, in the Android world, there's variations of the kernel built for specific ARM chipsets, such as ARMv6, ARMv7, there's TEGRA, there's EXYNOS, and they are binary incompatible with one another. Hence if a kernel is compiled for TEGRA, forget it, it will not work on ARMv7!



The reason some kernels on Android appear to be "broken" is down to the manufacturer. Some (Zte is one very good example) release a butchered source that may compile from source but fails to boot due to a missing driver that is not covered by the GPLv2 or GPLv3 licence. That's the problem, hence some hackers have to go scouring around github looking for some clues; some manufacturers, if not all, do comply. The current incarnation of Zte's source is purportedly to be 2.6.35.7, but in reality its actually 2.6.32.9 source base with a lot of modifications thus does not represent the true kernel source for 2.6.35.7!


This is where the manufacturers have to release their respective sources, not just out of being compliant with GPLv2 or later, but rather, for the community to be able to mod it, such as adding overclocking capabilities.


Hence there's hacking involved behind the scenes and a lot of messing about with drivers trying to get it to work, and its not easy to debug either.. Some drivers may be cross-licensed, BUT cannot be distributed depending on the clause and conditions as negotiated.


Thankfully, that's all changed now with kernel 3.x.x. line of sources, as Android drivers are now integrated into the mainstream sources. But there's a gotcha!


Try porting a 3.x.x. kernel to an existing handset that is about 12-18 months old; Not a snowball's chance in hell would it work, that's because, of the differing factors, the 3.x.x sources is vastly different to the 2.6.x source and would take a lot of hacking to get it working - I should know, have tried porting 2.6.38.6 source for the Zte Blade and failed.


Likewise, the latest kernel release 3.0.1 - when working on the ics4blade project over on Modaco, have made numerous attempts to port it but that's down to the simple fact that Zte made a very bad mess of the source which rendered porting nigh on impossible.


rom flashing - Can't unlock bootloader for Lenovo a1000


I have Lenovo a1000 which I need to flash.BIOS isn't opening such that I could try wipe and reset,not even factory reset in settings is working....so I was left with none other option than flashing....but when I connect it to PC,instead of getting into flash mode,its charging...I guess my bootloader is probably locked....please suggest what's the problem and also ways tp tackle it.When I connect errors like code10,code 51,code 49.....etc. was shown individually....I thought the problem was in my PC but same problem occured in others too.




Whatsapp - last time seen online - what does it mean?


I'm using whatsapp and some of my contacts have been seen online AFTER my messages have been delivered..


My question is: If I read something like this:




[10:01] my message is delivered The contact has been seen online at 10:08



Does this mean the contact has read my message/opened whatsapp by himself? Or does it mean that his Android OS has let Whatsapp application



Answer



Just to bring this current, WhatsApp have updated their What are those check marks next to my messages? page to highlight that there's a new feature to see when a message is actually read.



Check marks will appear next to each message you send. Here is what each one indicates:


single grey check message successfully sent.


double grey check message successfully delivered to the recipient's phone.



double blue check the recipient has read your message.



It's still likely that a message will show as delivered before a user has been "online" to actually read it.


ram - How will a swap partition/file affect the system?


Some friends told me that their Android phones have very little (<100MB) available memory for regular apps, because the OS and some un-killable services take most of the RAM. For example, one phone with 512MB only shows 90MB available memory, so only 2-3 apps can run at the same time.


I'm wondering if creating a swap partition/file will help, but I saw mixed opinions all over the web and I'm not sure what to do. Here are my questions:



(1) Will there be many not-oftenly-used memory pages to swap out, especially in OS and those un-killable services?


(2) How will swapping out small memory pages hurt flash memory life span? Does the flash (or SD card?) do wear-leveling automatically?


(3) Will swapping really help performance when running multiple apps? I assume if the answer to (1) is yes, it will.


(4) Will writing to flash be too slow and thus hurt responsiveness when swapping happens?


(5) Is it true that Android keeps the swapping mechanism from the Linux kernel, so as long as there is a swapping partition/file, it will do swapping without extra configuration?


Thanks for reading.



Answer



I don't think there will be much benefit with swapping for Android, as the Android Application Life Cycle is a much more advanced form of swapping.



(1) Will there be many not-oftenly-used memory pages to swap out, especially in OS and those un-killable services?




You can't swap the OS kernel even in Desktop Linux and Android already kills services when it needs more RAM. If your device vendor persists that you have to have useless services running all the time, then root your device.



(2) How will swapping out small memory pages hurt flash memory life span? Does the flash (or SD card?) do wear-leveling automatically?



Even if the SD-card does wear-leveling, swapping will hurt quite a lot.



(3) Will swapping really help performance when running multiple apps? I assume if the answer to (1) is yes, it will.



Not in the context of Android. Unlike traditional OS that will keep trying to chug in processes as you requested it, Android will Force Kill older, unused processes and reclaims their memory; this killing is fast as applications will already save their state when you task switch.




(4) Will writing to flash be too slow and thus hurt responsiveness when swapping happens?



Probably, probably not. Will need benchmarks for that.



(5) Is it true that Android keeps the swapping mechanism from the Linux kernel, so as long as there is a swapping partition/file, it will do swapping without extra configuration?



I don't know whether Android keeps the swapping mechanism, but even if it does (or if you compile your own kernel), you will still need some configurations. It's usually just having an fstab file that points to the swap file and doing swapon -a.


In fact I have reasons why swapping may actually hurt performance: it prevents Application Life Cycle, Android's memory management scheme, to work correctly.


Saturday, February 13, 2016

2.3 gingerbread - Unable to Setup Google Account on Android 2.3


After Factory Reset, In order to use Play store and Gmail I want to setup Google account on Samsung GT-S6802. When I tries to setup Google Account, In-spite of right user-name and password, following window appearers:


screen-shot3



When I open gmail form browser, I've mail from google subject:Sign-in attempt prevented and says:



Someone just tried to sign in to your Google Account hidden@gmail.com from an app that doesn't meet modern security standards.



screenshotgmail


When I review, it shows unknown device but on browser it detects my device.


So, How do I face this issue and setup google account?



Answer



I had the same problem and I solved it this way:




  1. Log in here using a web browser .


  2. On Login and Security, at the bottom of the page there's an option "Allow less safe apps" which would be set as disabled. Set it to enable and now you can log-in using your device.



    Allow less secure apps: ON


    Some non-Google apps and devices use less secure sign-in technology, which could leave your account vulnerable. You can turn off access for these apps (which we recommend) or choose to use them despite the risks.





Note: The words might be a little different as I saw that Google page in Portuguese, but the option should relatively be at the same position on the page.



applications - How can I purchase apps from the Amazon Appstore without downloading them?


I've been procrastinating on swapping out my full 2 GB SD card for a 16 GB one I have, so I can't install many apps at the moment. It's annoying to have to wait for a download and cancel the install that the Appstore attempts, and when updating other apps it only downloads one in the background (needlessly prolonging the experience, which leads to other issues).


Is there any way I can buy an app, or add the Free App of the Day to "My Apps", without downloading and installing it? I can't just wait and do it another day, since the daily deal obviously won't apply then.



Answer



You can buy them from the website without downloading them. Any apps purchased through amazon.com simply get added to your account. I think that's the best you can really do.


Friday, February 12, 2016

Limit Phone Data Usage



This might be a replica, I have searched and not found a similar question.


I currently have the HTC One M8 and am planing on getting a 1GiB Data pack, knowing me who uses internet over the top I would like my internet to get cut at lets per say at the peak of 1GiB. So as soon as I reach it, it gets cut off fully.



  1. I have tried the Android Data limiter and it always fails me.

  2. I have not found any reliable applications (I will pay if worthy)

  3. Location is Ontario and my provider is Fido



Answer



I use AVG antivirus security which has an option to limit the used mobile data(not wifi data). I fill information about data pack i.e amount and validity then give the option when to turn the mobile data off (as used in my case it is 90%) then it ask if I want to further use the data..


Hope it helps you..



Thursday, February 11, 2016

How can I find which apps/packages reference a given permission using command line?


Given some permission tld.developer.app.permission.PERMISSION how can I use adb/root shell to find all the installed packages that define/depend on it?


The permissions are defined in the manifest files and it is possible to transfer each apk over from /data/app, /system/app, /system/priv-app, etc., unpackage, and check, but is there a better way?




Answer



The first section is ideally supposed to be OS (on PC) independent. The solution heavily depends upon the output of package service. It has been successfully tested on Android 4.2.1, 5.0.2 and 5.1.1 - all these versions are not heavily modified from stock Android.


Dependencies



  • Requires to be setup in PC.


  • Requires busybox binary. If the device is rooted, install Busybox app. Else, download busybox binary from official source, rename the binary to busybox, set Linux compatible executable permission on that binary for everyone and move it into device using


    adb push LOCAL_FILE /data/local/tmp/   # LOCAL_FILE is the file path where busybox binary is located in PC



  • Requires aapt binary. If you're running a CM or its derivative ROM then ignore this requirement. Otherwise, for Android 4.x, you can consider downloading the binary from here, rename the binary to aapt, set Linux compatible executable permission on that binary for everyone and move it into device using


    adb push LOCAL_FILE /data/local/tmp/   # LOCAL_FILE is the file path where busybox binary is located in PC . 

    Android 5.x users: ask Google for assistance.




Here's my little script:



#!/system/bin/sh
# Check if the busybox binary exists under /data/local/tmp/ or /system/xbin. Set the detected binary's path into the variable busybox or exit if file doesn't exist or executable permission is not set

[[ -x /data/local/tmp/busybox ]] && busybox=/data/local/tmp/busybox || { [[ -x /system/xbin/busybox ]] && busybox=/system/xbin/busybox || { date +'busybox binary not found or executable permission is not set. Exiting' && exit; }; }

# Check if the aapt binary exists under /data/local/tmp or /system/bin or /system/xbin. Set the detected binary's path into the variable aapt or exit if file doesn't exist or executable permission is not set
[[ -x /data/local/tmp/aapt ]] && aapt=/data/local/tmp/aapt || { [[ -x /system/bin/aapt ]] && aapt=/system/bin/aapt || { [[ -x /system/xbin/aapt ]] && aapt=/system/xbin/aapt || { date +'aapt binary not found or executable permission is not set. Exiting' && exit; }; }; }

# Validate input
! [[ "$1" == +([0-9a-zA-Z._]) ]] && { $busybox printf 'Permission field should not be empty or contain anything beyond these characters: a-zA-Z0-9._' && exit; } || perm=$1;

# List package name of all the installed apps and save them in the file packages.txt under /sdcard
pm list packages | $busybox sed 's/^package://g' | $busybox sort -o /sdcard/packages.txt

$busybox printf "List of apps defining and/or depending on the permission $perm:\n\n";

# Take each line (a package name) from the file packages.txt. In the output of package service for that package name, see if the permission is granted or defined and set appropriate variable state. For different states, we're either dumping the label of the app using aapt, printing the status of define/granted permissions for package or simply moving on.
while read line; do
[[ `dumpsys package $line | grep -Eo "^[ ]+$perm"` ]] && granted=1 || granted=0;
[[ `dumpsys package $line | grep -Eo "^[ ]+Permission[ ]+\[$perm\][ ]+\([a-zA-Z0-9]+\):"` ]] && defined=1 || defined=0;
[[ $granted == 1 || $defined == 1 ]] && path=$(pm path $line | $busybox sed 's/^package://g') && label=$($aapt d badging $path 2>&1 | $busybox sed -ne '/application: label=/p' | $busybox cut -d "'" -f2);
[[ $granted == 1 && $defined == 1 ]] && $busybox printf "$label ($line)\nDefined: Yes\nGranted: Yes\n\n";
[[ $granted == 1 && $defined != 1 ]] && $busybox printf "$label ($line)\nDefined: No\nGranted: Yes\n\n";
[[ $granted != 1 && $defined == 1 ]] && $busybox printf "$label ($line)\nDefined: Yes\nGranted: No\n\n";

done < /sdcard/packages.txt

Save the script in PC into a file named perm_script.sh and move it into /sdcard using


adb push LOCAL_FILE /sdcard/   # LOCAL_FILE is the  path where you saved that file into PC

Run that file


adb shell sh /sdcard/perm_script.sh PERMISSION   # replace PERMISSION with the android permission for which apps are to be shown

Demo output:




List of apps defining and/or depending on the permission android.permission.FLASHLIGHT:

Android System (android)
Defined: Yes
Granted: No

Automagic Premium (ch.gridvision.ppam.androidautomagic)
Defined: No
Granted: Yes


MacroDroid (com.arlosoft.macrodroid)
Defined: No
Granted: Yes

Google+ (com.google.android.apps.plus)
Defined: No
Granted: Yes
...
Bluetooth (com.mediatek.bluetooth)
Defined: No

Granted: Yes

DS Battery Saver Pro (com.rootuninstaller.batrsaverpro)
Defined: No
Granted: Yes

Webkey (com.webkey)
Defined: No
Granted: Yes


Do note that all those apps and their permissions among other things can also be found in the file /data/system/packages.xml.




(To get app's label using its package name, use GAThrawn's answer - works if only the app is available in Play Store; use Izzy's answer - works for any installed app.)


Wednesday, February 10, 2016

How to get to Torch on Moto G / Marshmallow 6.0.1


I have two copies of Motorola Moto G with (now) Marshmallow 6.0.1. One of them has recently "removed" Torch icon from notification area:


enter image description here


Now, I don't have access to it at all. Neither in Settings menu, nor among installed apps.


How can I start it on the other phone or how can I "reset" notification area on the other phone to the same state like previously / like on the first phone?


EDIT: I have enabled and made use of System UI Tuner > Quick Settings, but it brought no help. I can see Torch icon enabled there, but I still don't see it in quick access area, where I saw it just a week ago and for the past year or so.


The same story goes for Broadcast Title and Invert colours icons, which I can add to my layout in System UI Tuner > Quick Settings, but which actually never appear in quick access area.


I have just made a test photo with flash light enabled to double check that there are no hardware issues that could be causing Torch icon to disappear.


My current system:




  • Android version: 6.0.1.

  • Android security patch level: 1 September 2017.

  • Baseband version: M8916_20250106.08.05.14.02R HARPIA_APAC_DSDS_CUST.

  • Kernel version: 3.10.49-g5531188 hudsoncm@ilclbld71 #1 Mon Sep 25 05:50:06 CDT 2017.

  • Build number: MPIS24.241-15.3-26.


Exactly the same on both devices that I own.



Answer



This appears to be an old problem cited two years ago wherein torch light and cast icons as in case of OP go missing. Reason attributed is some icons disappear if not used for long and reboot brings them back as it happened in OP's case.


Probably this is a bug that is continuing and not found in latter models - I don't see that on Moto X Play (also maybe because I use Gravity box Xposed module interface for quick settings)



It sounds stupid, but it looks like you have to remember to use those icons to be able to find them when you need them :(


htc one - Android dies at 20% battery?


It all started about three months ago when my HTC One (M8)'s USB charging port died. At first the port would sometimes not work, you just have to move the cable around a bit for it to charge, then you had to hold the cable down to make it keep charging, and finally device wouldn't charge at all.


The same exact thing happened to my HTC Vivid. When I got the Vivid fixed, the technician said it was water damage.


Anyway, after the local phone repair shop successfully installed the new USB port on my One phone, failing on the first try as it was still in the same condition, everything was fine. For a few weeks. Then the phone started shutting down as if it had no battery left, at 20%. I immediately plugged it into a charger, turned it back on, and the phone read 1%.


Its been doing that ever since. Some days it goes down to 0%, some days it goes down to 20% or 25% and dies.


Here's a screen shot of what is going on. enter image description here



Under device settings, it says that the battery condition is good.


So I'm just wondering why my phone may be doing this, and what do you think the best option is to fix this.


I tried recalibrating the battery, clearing the cache, and installing a new ROM. None of the above worked.




bootloader - fastboot not working on my Nexus 4


I'm trying to root my N4, and fastboot doesn't seem to work. Running it on linux, and the fastboot binary seems to run.


'Fastboot devices' produces info on my device, but 'fastboot oem unlock' just echoes '...' and hangs. I don't get the prompt on the phone about unlocking. It just hangs there until I restart the bootloader, at which point fastboot echoes "FAILED (command write failed (Cannot send after transport endpoint shutdown)"


Other fastboot commands don't seem to work either. 'fastboot reboot' echoes 'rebooting...' but then nothing happens.


I've tried this with and without usb debugging enabled. Any ideas?


I'm beginning to think the USB port(s) on my machine may be blown. This morning, the machine didn't recognize an iPod plugged in under Windows on either the front or back USB ports on my machine. I'm working on the phone under Linux, and /var/adm/messages shows stuff happening when I plug the device in. I'm guessing 'fastboot devices' doesn't acutally access the device - just looks at the device types detected by the OS when you plugged it in, no? Is it possible I can read from the usb port but can't write to it?


Well, it looks like it was my USB ports. I found an old laptop, booted it up to a Ubuntu live CD, and was able to root the phone from there. Sorry for all the drama. Odd that my USB ports died just at this moment, but come to think of it, they've been running slow recently - gPodder had been taking minutes to copy podcasts to my iPod. I guess it was a gradual fail.




Tuesday, February 9, 2016

Persistent "Google sign-in" error, even with correct password



I believe this started after I installed the Google+ app, but there is a constant notification that looks like a warning sign, and it displays this:


Google sign-in


Entering the correct password does not dispell it (it's the same password every other Google app uses, and only one is complaining). Also, every Google app still works, each one acts as if I'm still signed in. So where is this coming from, and how can I get rid of it?


Update: I have tried both clearing the data for the Google+ app (which helped for about a half hour) and actually resetting my password and using the new one. Neither worked.



Answer



I had the same problem. My solution was to uninstall and reinstall Google+ and everything worked fine after that.


rooting - How to root OnePlus 3 / OnePlus 3T / OnePlus 5 (A3000 / A3010 / A5000)?


The questions are simple:



How can I root my OnePlus 3? How can I root my OnePlus 3T? How can I root my OnePlus 5?





  • Device: OnePlus 3 A3000

  • Device: OnePlus 3T A3010

  • Device: OnePlus 5 A5000

  • Android Version: Stock 6.0 / Stock 7.0 / Stock 7.1

  • Status: Out-of-the-box



Answer





Disclaimer: By attempting ant of the processes listed below, you accept full responsibility for your actions. I will not be held responsible if your device stops working, catches fire, or turns into a hipster and claims to have been modified before it is cool. Make sure you read the whole article and fully understand it BEFORE attempting it.



If you are experienced in unlocking & flashing recovery & rooting, here are the resources you need.



Things you should download:


TWRP Recovery for OnePlus 3, OnePlus 3T, OnePlus 5 (Choose the correct one for your model)
SuperSU flashable ZIP (Same across all phones)
DM Verity and Forced Encryption Disabler (Same across all phones)




Let's start from scratch.


1. Unlock Bootloader (Skip if unlocked already)


First make sure you have installed adb and fastboot on your PC (or Mac). Ensure that your phone has at least 60% battery remaining, and that your PC is plugged in and won't shut down spontaneously during the process. The procedure doesn't take very long , but it‘s best to have enough charge in case something goes wrong.


Backup (Optional): Unlocking the bootloader will completely wipe all data from the device. This includes apps, settings and even the contents of the internal sdcard (pictures, music, etc.). Copy all important files off the phone onto a PC or upload them to a cloud.


USB Debugging: On your phone go to Settings > About phone > Tap on Build number 7 times. This will enable Developer options. Now go back to Settings > Developer options > Enable USB debugging


Enable OEM Unlocking: On your phone go to Settings > Developer options. Then enable the OEM Unlocking option. Also,a free advice, make sure that from now on, OEM unlocking option is enabled before you reboot. Because sometimes it might get disabled itself. Yeah that's weird so be careful.


Enable Advanced Reboot: On your phone go to Settings > Developer options. Then enable the Advanced Reboot option.


Turn the phone off. Then boot it into fastboot mode by holding volume up + power or select reboot to bootloader if advanced reboot is activated via developer options. The phone will display "fastboot" text indicating that it has successfully entered fastboot mode.



Warning: By proceeding this step, you will lose ALL data on your phone, including apps, games, musics, photos and everything else! Make proper backup before proceeding. Your warranty may also void, depending on your local law restriction and EULA.




Plug the phone into your PC, then open a command prompt (or a terminal on Mac/Linux) and run


fastboot oem unlock

You would be greeted with a Unlock Bootloader Warning page, Hit the Vol button to select Yes and turn it Blue and Hit the Power Button to Execute the selection


Your device will reboot, showing you a Secure Boot Warning. Reboot into stock recovery and wipe all data. Once done, your phone will reboot into the OS. Continue to the next step to install Custom Recovery.


2. Install TWRP


Download TWRP (.img) and SuperSU (.zip) from the top of this article if you haven't had them yet. Place them on the phone internal memory or a USB stick as per convenience.


Enable USB debugging, OEM Unlocking and Advanced Reboot again as instructed in Section 1.


Reboot to fastboot mode again. Grab the command prompt and enter (replace your-recovery.img with the actual file name of the image you downloaded)



fastboot flash recovery your-recovery.img

Hit enter and wait for completion, then boot into recovery. Do not use fastboot reboot because it will boot into OS instead of recovery. Use volume keys instead.


3. Rooting


You will reach the screen asking you if you want to allow system modifications. By swiping right, you will trigger DM-Verity, and if you don't follow the next step you will be unable to boot!


If you are going to root your device and follow the rest of these steps, then it's safe to swipe right and enable modifications.


Select your preferred language, tap “Never show this screen on boot again,” and swipe to allow modification.


PS: Flash DM Verity and format data only if you want to stay unencrypted, else you may just skip and continue with flashing SuperSU.


Without leaving TWRP, transfer the no-verity-opt-encrypt zip to your device over MTP and flash it or select it from internal as placed before, or use a USB stick (via OTG) and flash it (This will also allow you to use Format Data to completely disable your encryption if desired).


Go to “Wipe” section and tap “Format Data”, and type “yes” (If you want to mount internal storage).



Navigate to Install ZIP and select the SuperSU zip file to root OnePlus 5.


Swipe to install SuperSU and reboot your device.


Bueno! Congratulations! Your OnePlus 5 now has an unlocked bootloader, has a custom recovery installed and is rooted. Enjoy!!




Credits: This post is mostly copied from the original post on XDA Developers Forum. I changed a few details so that it fits better on Android Enthusiasts Stack Exchange. Thanks to the original author (Funk Wizard on XDA)!


Original post: OnePlus 5: Unlock Bootloader | Flash TWRP | Root | Nandroid & EFS Backup & More !!


How can I mute the YouTube app while playing music on another player?


I do love to listen to music while watching text YouTube videos, but I can't because YouTube can't be muted.


I use the respect audio focus in Musicolet Music Player.


I have tried App Volume Control but it did nothing!



Answer



You can play video in browser instead of youtube app. In browser you can mute the audio.


If your browser launched youtube app when clicked on video link, you need to copy the url and paste it inside the search box - youtube video will load in browser.


Monday, February 8, 2016

2.3 gingerbread - keep screen from dimming down when running certain app?


My 2.3.5 Android phone is set up to dim down the brightness after 30 seconds of inactivity, and shut off and lock the screen after another 30 seconds. After that, I need to unlock the screen to regain access to the running app. I would like to be able to keep a certain app with the screen accessible, while keeping the same configuration for any of the other apps. So instead of having a phone-wide system of brightness dimming, I would like to have an app-specific system. Any ideas?




Sunday, February 7, 2016

wi fi - Wifi and data keeps turning on


i did a recent update off some apps a few days ago and ever since my wifi and data keeps turning on no matter how many times i turn them off... Then on the other hand, sometimes it turns off and stays off for while, only to turn again randomly. it's really annoying and killing my battery, plus the data usage is killing my wallet as well! i don't know what's causing it...


i'm using apex launcher and i thought it might be causing the problem (since it's recent update) but switching to my previous launcher (htc sense) didn't make a difference... i don't wanna go and delete my launcher since i've made quite some customizations and don't wanna do it all over again.


can somebody help me, please?




9.0 pie - GPS quick settings tile


I have a bootleggers ROM (Android 9 pie) installed on a Motorola Moto E 2015 phone. Can I add a quick settings tile that would toggle the GPS (location) on and off?



I know there is already a "location" tile, built in the rom, that can switch between different location modes (high accuracy, etc.), but I only want to toggle the GPS on and off, not to change the modes. Also, I already solved this by using Tasker and QuickTask app to create a custom tile. And it works, but sometimes it takes some time for it to respond (which is understandable having in mind my phone's specs and the fact that now two additional apps are used to control the tile). I don't know if the delay is caused by QuickTask, by Tasker or by both, and it also depends on how many apps are open at the time that I use the tile.


So, maybe there is a more reliable and quicker solution.




Why does unlocking the bootloader wipe phone?


I understand that unlocking the bootloader will wipe my Android phone, but have been looking around for why. Seems to be by design, but what is the reasoning for that design? Is it some security concern, some obscure technical reason, or just for lulz? I'm looking for something solid to chew on here, something more than because "that's how it is".



Answer



It's a security concern. The Android documentation doesn't provide a lot of elaboration, stating simply:



The procedure must be confirmed on-screen, and deletes the user data for privacy reasons.




However, the privacy concern is relatively straightforward to extrapolate. Once the bootloader is unlocked, the device can be flashed with unsigned images. This means that it is relatively trivial to root the device, and there are actually multiple ways it can be done, such as:



  • Flashing a system image with root tools built in

  • Flashing a boot image that runs adbd with root by default (an "unsecure" image)

  • Flashing a recovery image, then using that to overwrite the system or boot partitions with ones that allow root access


Once root is obtained, all of the information on /data essentially becomes accessible. This could be emails, contact information, or many other pieces of personal information that you likely don't want in the wrong hands. Therefore, it makes sense to wipe all of this data during the unlocking procedure to ensure that there is no off-the-shelf "official" way of bypassing the sandboxing restrictions implemented by the Android operating system, which would thereby allow someone to steal personal data.


Of course, there may be ways to root without wiping on some devices, but they rely on exploits rather than official methods like a bootloader unlock, meaning they are basically bugs.


Saturday, February 6, 2016

How to "fastboot flashing unlock" when device has no volume rocker?


I have a android tablet that has no volume buttons, but has an unlocked OEM bootloader. I'm trying to flash a new rom, and after I run fastboot flashing unlock I am presented with a prompt that asks for me to press volume up.



Is there anyway to override this prompt? like -y or something?


I'm asking for a general solution as this problem happens to a lot of people from time-to-time. Whether it be from a broken rocker or from a device that has no volume buttons.


Edit: I didn't think to add the type of tablet, since none of you all would have heard of it. It is an eewrite e-pad pro by Wisky (sold by novadealshop) running Android 7.1.1. Any additional information about its specs can be found here: https://www.reddit.com/r/e_pad/comments/drmi5s/full_device_info_for_eewriter_epad_by_wisky/




Friday, February 5, 2016

samsung galaxy s - My alarm didn't go off this morning!


I set an alarm up and I can see the alarm symbol at the top in the notification bar. However, the alarm didn't go off this morning! Thankfully I'm still in the crossover where my old phone is still in use.


Does the phone have to remain switched on at all times in order for alarms to function?


It's a Galaxy S running 2.1 still, because apparently we're still waiting for Orange to decide how much bloat they want to pack 2.2 with before release.



Answer




Do you use any task killer? Make sure you don't kill the "Clock" apps.


In fact, don't use a task killer at all, they're harmful to Android.


Thursday, February 4, 2016

How can I sync my Outlook calendar with my Android phone calendar?


I have Galaxy Europa GT-I5500 Android phone with me. The problem I am facing is I am able to Sync my Contacts and Notes with my Outlook 2007, but I am not able to sync my my phone calendar with Outlook 2007.


I'd appreciate if anyone can help me with the problem I am facing.




images - Android x86 native resolution fails


Running Android x86 iso (5.1 rc1 or 4.4 r5) in my native resolution 2880x1800 fails with black screen with blinking cursor. Actually it is a prompt accepting commands but stops without any message or anything on screen.



Last commands visible on screen were: last commands


I ran it with vga=ask parameter:


/kernel initrd=/initrd.img root=/dev/ram0 androidboot.hardware=android_x86 nomodeset vga=ask SRC= DATA=

And chose the offered 2880x1800x32: 357 offered resolutions


Same if I run it with parameters directly in a command line either the vga= or UVESA_MODE=2880x1800 or tried UVESA_MODE=2880x1800x24 or UVESA_MODE=2880x1800x16.


If I choose 2560x1600x16, it works well, except for the resolution is low.


I run it in Parallels Desktop on OS X.


How to run it in a native 2880x1800 resolution?



Answer




I was having a similar issue running Android-x86 on VMware (Windows host). The solution was to force the virtual machine to load enough memory for the virtual graphics adapter upon boot.


In my case, I had to place svga.minVRAMSize = 536870912 manually in the vm settings file. For Parallels, I believe you should open up the VM's configuration, then in the Hardware section, under the Video group, change the Video Memory value.


The value is generally given in bytes, so 536870912 bytes = 512 MB. The rule of thumb to calculate how much graphics memory you need is to multiply display values (HRes x VRes x colors). So for a 2880x1800x32 resolution, you actually need 2880 x 1800 x 4 = 20736000 bytes which is a little under 20MB. You'd be wise, though, to set up more than that - like I did - to account for 3D graphics, multiple buffering and compositing, and other fancy GPU tricks inherent to Android (See Graphics architecture and Android Graphics Internals).


[Contribution from OP]: I tested and found that 64MB is the minimum amount of graphics memory necessary to run Android 6 at 2880x1800x32 resolution on the Retina MacBook Pro 15".


google play store - How do I fix "Unknown reason -110"?


Whenever I try to install/upgrade an application, I get an "Installation Error: Unknown reason -110" message. What does this error mean, and how do I fix it?


HTC Incredible 2 [Verizon Wireless]


Edit:


Updating/installing Market apps. 889MB available internal storage.



Cleared cache and data on both Market & Download manager applications.


Is there anything I can do, besides a hard reset?



Answer



A hard reset solved the issue.


cyanogenmod - How can I format a flash drive using terminal emulator?


I have a Huawei u8160 running Cyanogenmod 7.2.



I've recently installed the usb host package and some time then I successfully activated the usb host mode.


after that I needed to format a flash drive using ONLY my phone.


my phone doesn't recognize thumb drives, but I mount them on /mnt/sdcard/data folder.


So I wanted to know if there's any command in the terminal emulator that can format a usb drive.


NOTE: I've already tried "mkfs" command it doesn't exist,I won't accept answers telling me to format it on my PC.



Answer



There are native programs available on Android for creating file systems, and in most cases they reside in a directory below /system (my Motorola Droid 2 e.g. has them in /system/xbin. Depending on the file system you want to create, you can chose between:



  • mkfs.ext2

  • mkfs.minix (unlikely you want that -- and it might even be not available with your ROM)


  • mkfs.vfat


As the latter is probably what you want, some closer explanation on its options here:


mkfs.vfat [-v] [-n LABEL] BLOCKDEV [KBYTES]

What do those options stand for?



  • -v: Generate verbose output (reporting)

  • -n Label: Give the file system a name

  • BLOCKDEV: the file system you want to format


  • KBYTES: probably the block size (I'm not 100% sure with this)


So the minimal thing to do would be:


mkfs.vfat -v /dev/block/uba1

(provided your drive to format is available as /dev/block/uba1 on your system). One more example, giving the file system a name:


mkfs.vfat -v -n MyNewDisk /dev/block/uba1

It should report success then -- or an error if it failed.


EDIT: On some systems, the mkfs commands seem to be part of the busybox binaries -- which you can recognize with a full directory listing, e.g.



ls -l /system/xbin | grep mkfs

It should show them as "symbolic links" pointing to busybox then. In this case, you can optionally run them via busybox:


busybox mkfs.vfat

should show you the syntax then (thanks to ce4 for pointing this out -- credits to him ;) ).


Data connection problem with my galaxy s3


Hi I have a peculiar data connection problem with my Samsung Galaxy S3.


Cellular connections work fine at first however when the mobile loses signal and then reconnects after sometime, the data connection doesn't start again automatically (even though mobile data is enabled in settings)


The only way I can turn data back on is by toggling airplane mode.


This doesnot happen everytime the mobile loses signal, perhaps one in three times.


Has anyone experienced this and are there any fixes?




cyanogenmod - OpenVPN browser tunneling


I hope I do not say silly things, or discounted, but I'm a newbie, at least for vpn.



I want use my browser to connect on my corporate intranet via VPN connection, but I'm not able to do it.


Someone can help me?


Some information: I tried 2 way to confgure OpenVPN:




I've configured OpenVPN via openvpn-settings apps (using pre-created cert files located on /openvpn ). The .ovpn config files sound like


 port yyyy
dev tun
\#dev-node ovpn
proto tcp-client
remote xxx1.xxxx.it yyyy

remote xxx2.xxxx.it yyyy
remote xxx3.xxxx.it jjj
remote xxx4.xxxx.it jjj
ping 30

persist-tun persist-key

tls-client
ca xxx.ca.crt
cert xxx.aaaa.bbbb.crt

key xxx.aaaa.bbbb.key

ns-cert-type server
comp-lzo
pull
verb 5

I connect to VPN with no problems, and I can use for example ssh to connect on my corporate Linux server.




I've created a VPN from Menu->Settings-> Wireless & network-> VPN settings -> add VPN-> add VPN OpenVPN and set parameters according with the previous .ovpn config file I connect also to VPN with no problems, and I can use for example ssh to connect on my corporate linux server.





On both cases I'm not able to browse intranet. So I checked the IP address I go out with, pointing to http://m.showip.net/, and it displayed my provider IP, not the assigned VPN IP! Is it possible that VPN don't tunnel all traffic? Maybe I need to change the default gateway somehow?


My O.S. is



Android 2.3.7
kernel 2.6.35.14-nFinity
ROM Cyanogenmod 7.1.0.1 stable
Phone HTC Wildfire (Buzz)


applications - Any way to schedule a passive profile-change? (connectivity, volume etc.)


What I am wondering is if there is any way to make Android change its profiles passively from one state to the other at e.g. 3 pm in the afternoon local time:



  • Through Android internally (with some tweaks)

  • Through an Android app

  • Through a 3rd party mod (Cyanogen etc.)

  • Through ...?


Whereas the state change should be:




  • From "Airplane mode" (set) to Wifi/3G

  • From "Mute"/vibration (set) to maximum volume, i.e. visible sound

  • Optionally: From E-Mail/Notifications on-demand (Pull) to "Push", i.e. the moment I get out of airplane mode and mute/vibrate mode, I want to get the push alerts of the last hours.


I wonder if 3. is possible, I never changed much concerning my notification settings.


Any Android version welcome, currently I run 4.0, but plan to upgrade to CM10.


What I don't want (and don't have) is NCF, because it involves me being active. The whole reason for having a scheduled, predefined activity is that I can "set and forget" it and can focus on my work being assured that I will keep my deadline or whatever. I don't want to be actively involved.




nexus 4 - Danger of increasing the vibration strength of phone


Are there any dangers or possible negative consequences to increasing the vibration strength of a phone? Ideas were damages to the motor, lower battery life or increased wear leading to a shorter operating life? I don't know how likely or possible these are.


Specifically I want to use Vibration Config to increase the strength of my hopeless Nexus 4's vibration.




Wednesday, February 3, 2016

root access - Would disabling the package installer prevent updates?


If so, how can I disable the ability to sideload apps while still being able to update apps already installed?



Answer



Disabling the package installer would prevent apps from making the user request to install an app. Technically, they would still make the request but it would not show up, with the installer being disabled. That said, if a system app has INSTALL_PACKAGES permission (such as Play Store) or a third-party app has root access somehow, disabling the package installer would make no difference. Similarly, disabling it would not prevent sideloading from adb.


google apps - Skip ads from YouTube


Since ads are almost inevitable on official YouTube app on Android device, I was wondering if those can be skipped automatically?


This post is only about those ads which can be skipped, lets ignore ads which can not be skipped.


For example: When YouTube video starts, for some ads, there is an option to "Skip this ad in 5 sec".


Once "Skip ad" label is enabled, we can click on it to move to video. Of course this is all manual, and as a user you need to focus on EXACT timing to HIT the skip button. And it becomes worse if the video is having multiple Ads(few of which will be shown in future time), where when Ad plays, user need to again click manually to skip it.


Can this be AUTOMATED, meaning when there is an Ad which can be "Skipped", then just let the YouTube skip it without user's intervention.


This will be specially useful for those videos which has multiple Ads spanned across the video length and few of them can be skipped.



Looking for a solution on non-rooted device.


Update: It seems like Google is introducing new ad format called Bumpers. Bumpers, which are unskippable 6-second shorts placed in front of videos.



So, soon we may not see an ad which can be skipped, forget about skipping it via automation!




Answer



You're interested in the Youtube AdAway Xposed Module. It requires root access and the Xposed Framework.


It completely removes the following:



  • YouTube ads


  • channel logos

  • video suggestions

  • information card teasers


To the best of my knowledge, what you've requested (auto skipping advertisements in the stock Youtube application) cannot be done without root access. Root access is required to 1) draw over other apps and 2) record/replay touches.


See:



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