date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/14
1,623
4,999
<issue_start>username_0: I have `.memo` files on my PC from the default memo app on a previously owned Samsung phone. When opened in Notepad, the files do not contain plain text. How can I recover the contents of the memos?<issue_comment>username_1: By using VLC player or downloading Samsung Note for PC as mentioned [here](https://www.cnet.com/forums/discussions/how-do-i-open-an-ssm-samsung-s-memo-file-on-my-pc-617984/) Related methods mentioned here for export - see [Husni's answer of zip file solution](https://android.stackexchange.com/a/183737/131553) and others [How can I export Samsung memos?](https://android.stackexchange.com/q/172765/131553) Upvotes: 3 [selected_answer]<issue_comment>username_2: I wrote my own "memo2txt" converter in Python. Here is the script (first you'll need to install Python libs using [pip](https://docs.python.org/3/installing/index.html)): ``` import os import re import glob import zipfile import xmltodict from datetime import datetime MEMO_PATH = r'i:\MY\PROGRAMMING\AndroidMemoExtracter\MemoFiles' RESULTS_PATH = r'i:\MY\PROGRAMMING\AndroidMemoExtracter\Results' memos = glob.glob(MEMO_PATH + '\*.memo') for i, memo in enumerate(memos): print('{}/{} - {}'.format(i+1, len(memos), memo)) try: # Extract *.memo file and read the content archive = zipfile.ZipFile(memo, 'r') memo_content = archive.read('memo_content.xml').decode('utf-8') cleanr = re.compile('&.*?;') memo_content = re.sub(cleanr, '', memo_content) memo_content = xmltodict.parse(memo_content) text = memo_content['memo']['contents']['content'] # Generate filename from memo timestamp timestamp = int(memo_content['memo']['header']['meta'][2]['@createdTime'][:10]) date = datetime.fromtimestamp(timestamp).strftime('%Y-%m-%d %H-%M-%S') file_name = '{}.txt'.format(date) # Save file as a *.txt with open(os.path.join(RESULTS_PATH, file_name), 'w', encoding='utf-8') as file: file.write(text) except zipfile.BadZipFile: continue ``` Upvotes: 2 <issue_comment>username_3: inspired by username_1, here's my version ... on my Samsung J3, the memos are in an MTP drive somwhere like ... `SAMSUNG Android/Phone/ShareMemo/*.memo` the source xml looks something like this: ``` xml version="1.0" encoding="UTF-8"? <p value="memo2" >=====</p><p>https://medium.freecodecamp.org/</p><p>=====</p> ``` I run this xslt transform over it ... ``` //https://stackoverflow.com/questions/847185/convert-a-unix-timestamp-to-time-in-javascript //https://stackoverflow.com/questions/5292372/how-to-pass-parameters-to-a-script-tag var ts = document.currentScript.getAttribute('timestamp') document.write(""+ts+": "+Date(ts).toLocaleString()); body {background-color: powderblue;} #title {color: red; font-size: 300%;} .content {color: green;} &nbsp;&mdash;&nbsp; ... <xsl:attribute name="timestamp"> <xsl:value-of select="@createdTime" /> </xsl:attribute> <!-- https://float-middle.com/how-to-put-cdata-into-script-tag-in-xslt/ --> <xsl:text disable-output-escaping="yes"> /\* &lt;![CDATA[ \*/ </xsl:text> <xsl:value-of select="$s1" disable-output-escaping="yes"/> <xsl:text disable-output-escaping="yes"> /\* ]]&gt; \*/ </xsl:text> ... ``` using [lxml](https://lxml.de/parsing.html) from python.. ``` import os import glob import zipfile from lxml import etree import sys if len(sys.argv) < 3: print('python3 convert_memos.py ') sys.exit() MEMO\_PATH = os.path.join(sys.argv[1], '') HTML\_PATH = os.path.join(sys.argv[2], '') xslt\_src = '''[see xml above]''' memos = glob.glob(MEMO\_PATH + '\*.memo') for i, memo in enumerate(memos): try: archive = zipfile.ZipFile(memo, 'r') src = archive.read('memo\_content.xml').decode('utf-8') xslt = etree.XML(xslt\_src) xml = etree.XML(str.encode(src)) transform = etree.XSLT(xslt) result = transform(xml) root = result.getroot() html = etree.tostring(root, pretty\_print=True).decode('utf-8') filename = '{}.html'.format(os.path.basename(memo)) filename = os.path.join(HTML\_PATH, filename) with open(filename, 'w', encoding='utf-8') as file: file.write('') file.write(html) except Exception as e: print(e) ``` outputs something like .. ``` body {background-color: powderblue;} #title {color: red; font-size: 300%;} .content {color: green;} ==PROGRAMMING== ==PROGRAMMING==  —  /\* <![CDATA[ \*/ var ts = document.currentScript.getAttribute('timestamp') document.write(""+ts+": "+Date(ts).toLocaleString()); /\* ]]> \*/ ===== https://medium.freecodecamp.org/ ===== ``` Upvotes: 1 <issue_comment>username_4: I am forking @username_2 's version to import the media files, and convert the emojis to proper UTF-8 characters. That way they are easy to import to Notable (on the Linux desktop) and sync back to Markor (on android). I posted this on my Github <https://github.com/morciej/memo2html> -- feel free to use. Upvotes: 1
2018/02/14
264
1,004
<issue_start>username_0: Are the recent emojis on my Samsung Galaxy 7 Edge keyboard my own recent ones, or from people using them in group chats, like Facebook Messenger or WhatsApp Messenger?<issue_comment>username_1: The recent emoji tab on the Samsung keyboard, display the most recent emojis that you've used with the keyboard. You can test it simply by selecting a new emoji, and you'll see it appear in the recent tab. In the screenshot, you can see I'm in the recent tab, and it displays the emojis I've selected in the other tabs. [![](https://i.stack.imgur.com/rsBhhm.jpg)](https://i.stack.imgur.com/rsBhhl.jpg) Upvotes: 1 <issue_comment>username_2: This was submitted over 4 yr's ago, and Samsung would have upgraded their phone use with emoji's, but none of the Samsungs I have "Glaxy A21; S21" ever had anything called a "Recent emoji Keyboard", they also did not show the most recent emoji's used when I clicked to place an emoji in a text message. This article is incorrect. Upvotes: -1
2018/02/14
592
2,304
<issue_start>username_0: I have added a new ringtone to the ringtones list in Settings->Sounds->Phone ringtone>Add ringtone. After that I can see the same ringtone file in Ringtones folder of Internal storage. I need to remove this ringtone? For that I have deleted that file from folder. But, the ringtone is still running there. How to remove it. Device: Moto X4 Oreo 8.0 (non rooted)<issue_comment>username_1: I can help you because I also hate the this problem. You need clear data of **Media Storage**(System App) 1 - Go to "Settings > Apps" 2 - You need enable "Show system apps" 3 - Search and open "Media Storage" 4 - Click in "Storage > Clear data" 5 - Reboot your phone for enable default config. Upvotes: 1 <issue_comment>username_2: Don't clear data of Media Storage (System App) as mattm suggested, you'll lose all ringtones and sound effects. Instead, do a search for the ringtone or sound effect you added using the Files app (comes with Android), then erase it. It'll be removed from the ringtone selection menu without erasing all the other sound files. Upvotes: 4 [selected_answer]<issue_comment>username_3: Open your file browser, find music (and its file path) which you like to remove from ringtone selection screen. Beware of duplicate file. After you find it, please rename the song; add a symbol or character at the beginning or the end of the file name(s). Now, open ringtone selection screen. The system will not found file(s) and remove them from selection list. After those files are removed from the selection list; reopen the file browser, rename back to the original name. Upvotes: 0 <issue_comment>username_4: You might want to check a path in Main Storage called `Ringtones`. It might include added ringtones, so removing them from this path could remove them from options. Upvotes: 0 <issue_comment>username_5: This is tried on an Asus Zenfone Max Pro M1 running Android 9. Inspired by [Joao's answer](https://android.stackexchange.com/a/207467/67410) I didn't use the `Files` app, but connected the phone to a PC using USB cable in file transfer mode, and then used Windows Explorer search to find the file. Found the folder containing the file: `\Notifications`. If you delete from this folder, your file will be gone from the list of ringtones. Upvotes: 1
2018/02/14
652
2,575
<issue_start>username_0: It’s related to a specific user and a specific group. I don’t want to block that user and don’t want to quite that group. Whenever that user send me a content (text, image or video) or whenever anyone share a content in a group; I want to see all contents but I do not want them (a specific user and members of group) to know that the contents have been delivered to me and I have seen the contents. Also, if I am online, I do not want them (a specific user and a specific group members) to know that I am online. Please let me know. What settings are required for both? Regards Smith<issue_comment>username_1: There are apps that get around the limitations you mentioned, and they're able to retrieve the messages without you opening WhatsApp. There are many similar apps on the play store, one of them is called [private read for WhatsApp](https://play.google.com/store/apps/details?id=com.frankyapps.privateread.prws) it displays the messages and media in it's own app without you having to open WhatsApp, this way you can view the content without the other person knowing. I've never tried the app, and so I cannot vouch for it's accuracy. As for hiding the fact that you are online while using Whatsapp, you should first disable your *last seen* from WhatsApp settings, and then, every time you want to open WhatsApp, you should put your phone into *airplane mode*. That way no-one will be able to see that you're online. (The messages will be sent after you exit WhatsApp, and go out of airplane mode) Upvotes: 2 <issue_comment>username_2: You can become practically invisible to all, from both sides, by executing the following steps. * Disable the read receipts * Disable the Last seen If you want even more security, Download Whatsapp Business edition. Its got even more high ended privacy settings and analysis as well. Upvotes: 1 <issue_comment>username_3: You can't [be 100% invisible on WhatsApp](https://www.howtochatonline.net/chat-apps/whatsapp/how-to-be-invisible-on-whatsapp/) since online status has a default settings which you can't change at all. However there are ways to improve your invisibility. 1. Set your last seen to nobody. 2. Set your status to "Only Share with". (Add one or a few people) 3. Block contacts that you don't want to talk temporarily. 4. Disable read receipts 5. Set your profile picture to nobody. These will improve your invisibility on the application. You can also do the plane mode trick to read messages if you don't want others to see you have received messages from them. Upvotes: 0
2018/02/15
577
2,210
<issue_start>username_0: I migrated to a new phone yesterday (Nexus 5 -> Pixel 2) and wanted to restore my WhatsApp chat history on the new device. I've always used the Google Drive backup feature, so I thought this should have been relatively easy. However, during the restoring process, the progress bar gets stuck at 31%. Some minutes later, the app informs me that restoring the messages failed. What can I do? The Google Drive backup file seems to be corrupted, so I also made a manual copy of the msgstore.db.crypt12 file, so that I could maybe use that in order to restore my history. However, the steps listed on the Whatsapp website (<https://faq.whatsapp.com/en/android/20887921/>) do not work for me, since it always tries to restore the backup found on Google Drive.<issue_comment>username_1: **If your old device is with you** * Delete WhatsApp backup from Google Drive. [See steps from WhatsApp FAQ](https://faq.whatsapp.com/en/android/28000019/?category=5245251#delete) * Redo Google drive backup manually (Settings → chats → chat backup → Google drive) and restore That will create a *fresh* backup so corruption is ruled out, though would take longer **Old device not with you but you have copy of database file** * Uninstall WhatsApp * Install Whatsapp and on successfully activating it, immediately disconnect from Internet * Copy the database file into the same folder location from which you copied and restore Upvotes: 2 <issue_comment>username_2: I had something like that too, then I tried on another phone and it worked on it. Then I backed up again and it then worked on the first phone that it didn't work in the first place. So try using another phone, maybe it helps Upvotes: 0 <issue_comment>username_3: I had the same issue and actually fixed it, it's a bug that reverses the resorted backup again for some reason.. so all you have to do is to force stop whatsapp when it reaches 31% or 24% as at (24% or 31% or 39% ) it's already finished resorting 100% of your messages and then it will open automatically and hopefully all you messages will be there. so when the bar reaches 31% you force it to stop. and good luck hope this work for you guys it worked for me Upvotes: 0
2018/02/15
832
3,058
<issue_start>username_0: I'd like to set specific wifi connections as metered, since I do not want e.g. Google Play to update apps via public wifi (limited volume and bandwith, competing with my and - for politeness - other people's laptops). I have a Samsung Galaxy S4 with Android 5.0.1, Avast running, no root and no special modifications from my side. I have tried quite some days to find a native Android way to do that, but failed so far - please prove me wrong! The suggestions I found so far on Android Enthusiasts go mainly into the following directions and did not work (other Android versions, or see below). I'd rather prefer a native android solution, if necessary a 3rd party app would be fine if without rooting. 1. many solutions end at a "3 dot" (⋮) menu somewhere in data usage menu pages - it seems not to exist on my phone/Android version. Found nothing comparable (incl. left menue button next to the start button etc.) 2. restrict background data - I do not want to restrict the app (Google Play) in general, but only a specific network. 3. NetGuard app - same as 2., does not seem to be wifi-specific (and not sure if I should put an app with in app purchases in such a central position) Thanks in advance!<issue_comment>username_1: There isn't much difference to the default proceedure for metering wi-fi networks in android. Here is the proceedure in Samsung J5 Android 5 (which I believe is similar o your device): Go to Settings → Data Usage → **More** → Restrict networks > > This will show a list of all the Wi-Fi networks the device has ever > connected to. Use the switches to enable restrictions on any given > network. Once activated, this will prevent apps from using background > data on that network, and you’ll also get a warning before any large > downloads. > > > [![a](https://i.stack.imgur.com/BKWSFm.png)](https://i.stack.imgur.com/BKWSFm.png) [![b](https://i.stack.imgur.com/KuJTjm.png)](https://i.stack.imgur.com/KuJTjm.png) [![c](https://i.stack.imgur.com/U5Zmam.png)](https://i.stack.imgur.com/U5Zmam.png) [![d](https://i.stack.imgur.com/N3Zv0m.png)](https://i.stack.imgur.com/N3Zv0m.png) Upvotes: 2 <issue_comment>username_2: Metered WiFi connections should be straightforward to set up but Samsung has it buried elsewhere as reported by OP in comments. I don't have the device to illustrate but based on [this](https://www.howtogeek.com/293776/how-to-restrict-background-data-for-metered-wi-fi-networks-on-android/), the steps are : * Settings → Data usage → WiFi * Network restrictions should appear here, alongwith the list of Networks. As OP discovered,apparently on some models, instead one has to tap *mobile hotspots* button (accessed from *bottom left* menu button) to reveal the list of Networks. * Toggle the selected WiFi network to restrict background data (I suppose this is the same as "metered" - please feel free to comment), as explained at the very bottom of the list (in case you find the explanation, you are likely to have managed anyway...) Upvotes: 3 [selected_answer]
2018/02/15
613
2,293
<issue_start>username_0: So I let other people use my phone a lot and one little boy (which will go unnamed) finds it funny lowering my alarm to zero when he uses my phone. Is there a way to lock this value(just alarm volume nothing else)? [![enter image description here](https://i.stack.imgur.com/ihUagm.png)](https://i.stack.imgur.com/ihUag.png) Image from what I see on my device<issue_comment>username_1: You can accomplish this with an app. Look up Volume Lock in the Google Play store. If you don't want to prohibit access to your phone and he is extra persistent, you may need to install another app to password protect the Volume Lock app. [AppLock](https://play.google.com/store/apps/details?id=volumelock.vlocker) does just that. Upvotes: 3 [selected_answer]<issue_comment>username_2: I prefer [Macrodroid](https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid), being *easy to learn and free* (upto 5 macros). Create a macro as shown below. For example Trigger : Volume Change → Configure → Monitor Volume Changes → Volume Up. Add triggers for all options using **+** Second screenshot shows the details of configuration for *Action* (Volume Change → Configure) [![enter image description here](https://i.stack.imgur.com/2MfYDm.png)](https://i.stack.imgur.com/2MfYDm.png) [![enter image description here](https://i.stack.imgur.com/k8f9Em.png)](https://i.stack.imgur.com/k8f9Em.png) Name and save macro. Tested on Oreo 8.0. This works even if your mischief maker pulls down the volume settings from status bar and changes them. Changes made to alarm level using the volume buttons will not work as the Alarm is locked to 100%. Changes made from drop down menu to Alarm settings are reversed by pressing volume rocker in any way (That's what those 4 triggers are for) Note that Samsung / Huawei and other heavily modded UI implementation at times varies from standard implementation so you may need to play around action settings by choosing other options Upvotes: 2 <issue_comment>username_3: I'm using Volume Lock app from [Google Play - Volume Lock](https://play.google.com/store/apps/details?id=volumelock.vlocker) It's very simple, recently updated and has even parental control, range volume settings and much more. Stronly recommended! Upvotes: 0
2018/02/16
297
1,114
<issue_start>username_0: I know that the magnets turn the phone on and off, but what about the time/date display on the case? Does the case somehow use the phone's battery to display those? If so, does it not drain the battery faster?<issue_comment>username_1: This data is attributed to an online manual for the device at this location: <http://gadgetguideonline.com/s8/galaxy-s8-led-wallet-cover-guide/> NFC powers the device, and is estimated to have minimal draw to the phone battery. See the quote from the forum thread below the manual: --- > > No, you cannot turn off the display. The LED cover is powered through > NFC. Once you snap the cover on, it will drain power. But power > required is very marginal. It should not affect the battery life of > the phone. > > > --- Upvotes: 3 [selected_answer]<issue_comment>username_2: It shouldn't drain the battery anymore than having no case. As far as I know, it just uses the AMOLED display to show the time and date, or whatever you have it set to display, and the case is designed to be able to see through it enough to see the info. Upvotes: 0
2018/02/16
1,636
5,236
<issue_start>username_0: **Background:** I'm using automated tests on many different variants of devices (*Samsung tablets and smartphones such as Galaxy A5, S8, S7 etc.*) where the devices have different versions of Android (*6.0, 6.0.1, 7.0 and 7.1.1*) - all in varying combinations. Some of my tests require locking the screen (turning it off) and then turning it on and PIN-ing in. I have not been able to find a (universal) adb-command to get the phones' state. Ideally, I would like **one** command to tell me in which of the following states the phone is in: 1. Screen turned off (Assumed locked as well) 2. Screen turned on, locked 3. Screen turned on, unlocked My best solution *so far* is to use the following 2 (bash terminal) commands: ``` #1: adb shell dumpsys display | grep "mScreenState" #2: adb shell service call trust 7 ``` Command #1 tells me whether the screen is on, off or "dozed". Command #2 tells me whether the phone is locked or unlocked. **Questions:** Is there a single adb command which can give me the information I need? Is this command compatible with the Android versions listed above? On Android version 6.\* command #2 **always** indicates that the phone is locked. What is the "Android 6.\* compatible" alternative of command #2? ----> *By pure chance I found that "service call trust **6**" works as expected on Android 6.* devices!\* **Note:** The resource I've found that most closely resembles my issue is the following [SO question/response](https://stackoverflow.com/a/35276479/6231936). However, not all of the devices have/use NFC so the following command (although compatible with most devices/versions) is not acceptable in my tests: ``` adb shell dumpsys nfc | grep 'mScreenState=' ``` Since timing is an issue, the proposed solution (best answer in the link) is not acceptable either.<issue_comment>username_1: I am a Windows fanboy, so the solution contains `find` instead of using `grep`, just replace find with grep. ``` adb shell dumpsys power | find "mWakefulness=" adb shell dumpsys power | find "mHoldingWakeLockSuspendBlocker=" ``` > > Screen **OFF** and **Locked** = mWakefulness=**Asleep** & > mHoldingWakeLockSuspendBlocker=**false** > > > Screen **ON** and **Locked** = mWakefulness=**Awake** & > mHoldingWakeLockSuspendBlocker=**false** > > > Screen **ON** and **Unlocked** = mWakefulness=**Awake** & > mHoldingWakeLockSuspendBlocker=**true** > > > **P.S:** I've tested it on **Android 7.0**, don't know if it'll work with other versions. Upvotes: 2 <issue_comment>username_2: You could use awk to spit out the answer you want. Here is a quick and dirty awk script I whipped up just now: ``` adb shell dumpsys power | awk -F"[ =]" '/mWakefulness=/ { mw=$NF; } /mHoldingWakeLockSuspendBlocker=/ {mh=$NF;} END { print mw print mh }' ``` Upvotes: 0 <issue_comment>username_3: has answered in [Is there a way to check if Android device screen is locked via adb? - Stack Overflow](https://stackoverflow.com/questions/35275828/is-there-a-way-to-check-if-android-device-screen-is-locked-via-adb/60037241#60037241) and copy to here: * My Phone: `XiaoMi 9` + Android: `10` use adb to check status of screen locked ======================================== method 1: (universal) use `mDreamingLockscreen` ----------------------------------------------- * Command: `adb shell dumpsys window | grep mDreamingLockscreen` * Output: + `mShowingDream=false mDreamingLockscreen=true mDreamingSleepToken=null` -> Screen **Locked** - no matter Screen is `ON` or `OFF` + `mShowingDream=false mDreamingLockscreen=false mDreamingSleepToken=null` -> Scrren **Unlocked** method 2: use `nfc` (if android has NFC module) ----------------------------------------------- * Command: `adb shell dumpsys nfc | grep 'mScreenState='` * Output: + `mScreenState=OFF_LOCKED` -> Screen OFF and Locked + `mScreenState=ON_LOCKED` -> Screen ON and Locked + `mScreenState=ON_UNLOCKED` -> Screen ON and Unlocked Upvotes: 0 <issue_comment>username_4: As I've run into this recently and since using the Daydream lockscreen is not an requirement on Android, here's some newer variables that are (probably) universal. They *should* be available starting at **Android M (6.0 / API 23)** since they come with Doze mode; I've **confirmed** them with Android 10 on a Samsung Galaxy Tab S4 and Android 12 on a Pixel 4 XL. ``` $ adb shell dumpsys deviceidle | grep '\bm[A-Z]' mLightEnabled=true mDeepEnabled=true mForceIdle=false mUseMotionSensor=true mMotionSensor={Sensor name="Significant Motion", vendor="Google", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.25, minDelay=-1} mScreenOn=false mScreenLocked=true mNetworkConnected=true mCharging=false mMotionActive=true mNotMoving=false mMotionListener.activatedTimeElapsed=36192 mLastMotionEventElapsed=0 mLocating=false mHasGps=false mHasNetwork=false mLocated=false mState=INACTIVE mLightState=IDLE mInactiveTimeout=+30m0s0ms mNextAlarmTime=+22m36s283ms mNextIdleDelay=+10m0s0ms (flex=+2m0s0ms) mNextLightAlarmTime=-23s699ms mCurLightIdleBudget=+1m0s0ms ``` Of course, the prize jewels here are `mScreenOn` and `mScreenLocked`, which are booleans doing exactly what you went them to. Upvotes: 1
2018/02/18
1,235
4,399
<issue_start>username_0: While updating apps on Fdroid (not sure which one because is was bulk update, could be any from Activity Diary, Editor, Simple Calendar), the firewall (AFWall+, moto x 2nd gen rooted) caught an attempt to communicate with what a whois search identified as amazon servers. The app that tried to communicate was Google's Intent Filter Verification Service. Does anyone know what is this app for? I am not asking what Intent Filters are....<issue_comment>username_1: I used [APKTool](https://ibotpeaches.github.io/Apktool/) to find the following details: 1. It is not a Framework or a Shared Library, 2. It does not get backed up, 3. It appears to use some custom permissions (`INTENT_FILTER_VERIFICATION_AGENT`, `BIND_INTENT_FILTER_VERIFIER`, `INTENT_FILTER_NEEDS_VERIFICATION`) 4. It has a Broadcast Receiver, so presumably this NEEDS VERIFICATION stuff is happening at an OS level, 5. It is a [Service](https://proandroiddev.com/deep-dive-into-android-services-4830b8c9a09). I tried reading the reversed code, but I have no experience with [Smali](https://stackoverflow.com/questions/5656804/whats-the-best-way-to-learn-smali-and-how-when-to-use-dalvik-vm-opcodes) and therefore didn't make much meaningful progress. Next, I used AndroGuard to make a Call Graph: ``` androcg.py --output intent-filter.gml --no-isolated Intent\ Filter\ Verification\ Service_com.android.statementservice.apk ``` ... then I turned this into an image: ``` import networkx as nx import matplotlib.pyplot as plt ifv = nx.read_gml('intent-filter.gml') # filter out some system stuff, I think ifv = ifv.subgraph([a for a in ifv.nodes() if not 'Landroid' in a]) # filter out some java utility type stuff, I think ifv = ifv.subgraph([a for a in ifv.nodes() if not 'Ljava/lang' in a]) isolates = nx.isolates(ifv) nonisolates = list(set(ifv.nodes()) - set(isolates)) ifv = ifv.subgraph(nonisolates) relabeler = {key: key.split()[0].split('/')[-1] for key in ifv.nodes()} ifvn = nx.relabel_nodes(ifv, relabeler) ifvn.remove_edges_from(nx.selfloop_edges(ifvn)) nx.draw(ifvn, with_labels=True) fig = plt.gcf() fig.set_size_inches(18, 10) fig.savefig('intent-filter.jpg',dpi=200) ``` I get this: [![enter image description here](https://i.stack.imgur.com/SKG14.jpg)](https://i.stack.imgur.com/SKG14.jpg) My suspicion from the name of the service is that it effectively takes an `Intent` and determines whether or not that `Intent` satisfies the (grammar? of the ...) Intent Filter of each publicly declared exportable component in each `Manifest.xml` for all the apps on the device. This call graph seems to sort of support my hypothesis. In particular, `URL` is dead center with a ton of out-going edges, the nodes in the middle-ring of stuff kind of look like verification or filtration of some sort (parsing an extended message nano, looking at a network response, pulling the data from the `Intent`, getting a web port, checking if a protocol is valid or invalid ...), and finally the very outer-most items that have only incoming edges kind of seem like they are either executing the `Intent` by passing it to a destination (e.g, `HttpURLConnection ->`, `NetworkResponse`, `AndroidAppAsset`, ...), or discarding it as invalid (`InvalidProtocolBufferNanoException`, `ResistanceFollowRedirects`, `OutOfSpaceException`, ...). I am just an amateur sleuth and cannot claim to really know what all this means, but this is my 10 cents. I think that the the Service forms the connection between an invoked `Intent` and all of the `IntentFilter`s in apps on the device. I think it decides what goes to which app, if something has invalid data like in a null fuzzing scenario, and if something should go to the web. I think it also stops some sort of infinite-redirect attack. I suspect this is an effort on the part of the Android dev team to defend against inter-component communication (ICC) attacks and app link / URI vulnerabilities. Hope this helps! Upvotes: 2 <issue_comment>username_2: I think this is a "watcher" program, or a language-interpretation program. It might be how the MMS services "guess" the next word you are going to use during texting, and offer it's three best guesses as suggestions. To stretch it's use further, this program is probably also the one that ferries every fifth text or phone call to the FBI/CIA to "watch" all of us as potential "terrorists". x( Upvotes: 0
2018/02/18
297
1,149
<issue_start>username_0: I have a no-brand-marked 32 GB "Micro SD HC" Card, which I'd been using with my Android 6.0.1-based phone. Recently, the phone has been telling me the card is corrupt, and would not use it; and today I tried formatting it as the UI suggested. Well, the formatting app closed after a very long time with no progress beyond some point, and nothing seems to have changed - the card is still described as corrupt. Is it necessarily the case that my card is dead, or could this possibly be a software issue?<issue_comment>username_1: Most likely. If you had the card set to be read as internal storage, Android sets an encryption on it. After a factory reset, the keys change, and the card is permanently write-protected. I have had no luck reversing this on mine. Regards. Upvotes: 1 <issue_comment>username_2: When you connect your Android device to a pc, is the memory card visible? If yes, chances are, your memory card can be formated or the contents be recovered using the Command Prompt. Let's say, your sd card drive is E-drive, then use the Command line: " chkdsk E: /f " Hope this works. All the best! Upvotes: 0
2018/02/18
881
3,199
<issue_start>username_0: **Device information:** * Motorola Moto G5 16GB (Cedric) * Stock firmware, android 7.0 * Custom recovery TWRP 3.2.1-0 (previously 3.1.0-0) * Bootloader unlocked (obviously) * Rooted, Magisk v15.0 I was just going to install Xposed framework, but there normal Xposed installer didn't work. I tried to flash the file using TWRP but I got error code 1. No /system partition. When I try to flash other zip files, I get similar error messages. When I exit TWRP it warns me and say: '*No OS installed, are you sure you want to reboot?*' When I reboot to the normal system partition, it just boots back into TWRP, same thing when I turn the device on. If I boot into the bootloader and start the device from there it does work and turn on. Once turned on everything works like it's supposed to, including Magisk. I can't find anything about this online, but I do know I once messed up my phone and flashed stock firmware using adb and fastboot from my computer. Before going back to stock, I soft bricked my device by installing PixelExperience ROM twice, first in December, the 12-11-2017 version, later in January I installed the 01-21-2018 version. This one however, didn't work at first. I installed a 64 bit version of TWRP and tried again, after which it worked. After installing it, my device didn't boot. Maybe it could, but I was sceptical since it automatically booted into recovery. But after flashing the stock firmware, it still didn't boot. I figured out on accident that booting via the bootloader did work. Possibly the custom ROM did work, but just didn't boot normally, just like the stock firmware. Link to xda thread for the ROM: <https://forum.xda-developers.com/g5/development/rom-t3710800> If you would like to look at the specific versions I installed, I still have them on my computer and will share them if asked. I completely reverted to stock and but it still wasn't fixed. **Edit:** I just saw this in TWRP, it says the system partition I've been having problems with is 17592186044369 MB, which is about 16777216 TB or 16384 PB. That's not correct of course. Can't seem to find anything about this only, though. [![TWRP SCREENSHOT](https://i.stack.imgur.com/bfL9fm.png)](https://i.stack.imgur.com/bfL9fm.png) Oh and for my English, it isn't my native language and I'm only 14, so if you have trouble understanding it, please say it so I can explain it in another way.<issue_comment>username_1: When you just flashed the os, twrp will tell you sure you want to reboot with no os installed, even if you just installed it , i dont know why but reboot system after flashing the OS and your device should boot normally! Upvotes: 1 <issue_comment>username_2: The size of your `/system` partition is highly suspicious indeed, which brings me two conclusions : 1. Either your partition is wrongly detected by TWRP, in which case you could double-check that your TWRP version is correct and properly installed (have you checked the checksum after downloading it ? 2. Or your `/system` partition is damaged. In that case, in TWRP, go to Wipe/Advanced Wipe, check `/system`, then Repair (exact path may be slightly different), and boot again. Upvotes: 0
2018/02/19
1,510
4,997
<issue_start>username_0: I usually use [OpenVPN Connect](https://play.google.com/store/apps/details?id=net.openvpn.openvpn&hl=es) android client for connecting to my OpenVPN server in a raspberry. I also use Tasker to automatically connect to the VPN when I am outside from home. My configuration is: ``` Send Intent Action:android.intent.action.VIEW Cat:None Extra:vpn.AUTOSTART_PROFILE_NAME: Package:net.openvpn.openvpn Class:net.openvpn.openvpn.OpenVPNClient Target:Activity ``` Few days ago, the OpenVPN version has been changed to 3.0.1 , and my tasker is not working any more. At least the tasks are not able any more to start a VPN connection or disconnect it. Obviously, that means that with the new version of the App, some configuration must be changed. Do any body knows what are these new configurations?<issue_comment>username_1: Ok, thanks to [this web](https://forum.xda-developers.com/u/tasker-tips-tricks/question-how-to-tasker-to-connect-t3427038). Seems that I am right and the configuration has been changed. The new settings for connecting will be: ``` Send Intent Action:android.intent.action.MAIN Cat:None Extra:de.blinkt.openvpn.shortcutProfileName:PROFIL ENAME Package:de.blinkt.openvpn Class:de.blinkt.openvpn.LaunchVPN Target:Activity ``` This is able to start the OpenVPN connection using a OVPN file. For disconnection, I also need to change the profile: ``` Send Intent Action:android.intent.action.MAIN Cat:None Extra:de.blinkt.openvpn.shortcutProfileName:PROFIL ENAME Package:de.blinkt.openvpn Class:de.blinkt.openvpn.activities.DisconnectVPN Target:Activity ``` The author comments -and it is true- that when disconnecting the application remains opened on the screen at foreground. A solution proposed on this forum for this issue is to use a not existing profile as a connection. When trying to connect to this non existing profile, the first action will be to disconnect the current one. As the profile does not exists no connection will be performed. Upvotes: 2 <issue_comment>username_2: <https://forum.xda-developers.com/u/tasker-tips-tricks/openvpn-3-0-0-connect-disconnect-tasker-t3750552> Default OpenVPN 3.0.0 - Connect and Disconnect with Tasker (Solution) Hi All, It would appear that the interface / code changed rather a lot in the most recent update and the previous intents are no longer working. I have figured out how to fix this. Please follow the directions below. Important Note: Your profile name is now prefixed with PC. E.g. My profile of test.co.uk/example [user] would now be PC test.co.uk/example [user] So, here are the settings (don't include the curly brackets): Connect Action: net.openvpn.openvpn.CONNECT Extra: net.openvpn.openvpn.AUTOSTART\_PROFILE\_NAME: PC {Your profile name} Extra: net.openvpn.openvpn.AUTOCONNECT: true Package: net.openvpn.openvpn Class: net.openvpn.unified.MainActivity Target: Activity Disconnect Action: net.openvpn.openvpn.DISCONNECT Extra: net.openvpn.openvpn.STOP: true Package: net.openvpn.openvpn Class: net.openvpn.unified.MainActivity Target: Activity Annoyingly they have made it so OpenVPN remains in the foreground on disconnect. I have yet to look into this. Upvotes: 0 <issue_comment>username_3: The offical docs (<https://docs.openvpn.net/connecting/connecting-to-access-server-with-android/faq-regarding-openvpn-connect-android/#How_do_I_use_tasker_with_OpenVPN_Connect_for_Android>) state: **CONNECT** a) Access Server module `Action: net.openvpn.openvpn.CONNECT` OR ``` Action: android.intent.action.VIEW Cat: None Mime Type: {blank} Data: {blank} Extra: net.openvpn.openvpn.AUTOSTART_PROFILE_NAME:AS {your_profile_name} Extra: net.openvpn.openvpn.AUTOCONNECT:true Extra: net.openvpn.openvpn.APP_SECTION:AS Package: net.openvpn.openvpn Class: net.openvpn.unified.MainActivity Target: Activity ``` b) OVPN Profile module `Action: net.openvpn.openvpn.CONNECT` OR ``` Action: android.intent.action.VIEW Cat: None Mime Type: {blank} Data: {blank} Extra: net.openvpn.openvpn.AUTOSTART_PROFILE_NAME:PC {your_profile_name} Extra: net.openvpn.openvpn.AUTOCONNECT:true Extra: net.openvpn.openvpn.APP_SECTION:PC Package: net.openvpn.openvpn Class: net.openvpn.unified.MainActivity Target: Activity ``` **DISCONNECT** ``` Action: net.openvpn.openvpn.DISCONNECT Cat: None Mime Type: {blank} Data: {blank} Extra: net.openvpn.openvpn.STOP:true Extra: {blank} Extra: {blank} Package: net.openvpn.openvpn Class: net.openvpn.unified.MainActivity Target: Activity ``` Java code example ``` String profile = "myvpn"; Intent openVPN = new Intent("android.intent.action.VIEW"); openVPN.setClassName("net.openvpn.openvpn", "net.openvpn.unified.MainActivity"); openVPN.putExtra("net.openvpn.openvpn.AUTOSTART_PROFILE_NAME", "PC "+profile); openVPN.putExtra("net.openvpn.openvpn.AUTOCONNECT", true); openVPN.putExtra("net.openvpn.openvpn.APP_SECTION", "PC"); activity.startActivity(openVPN); ``` The formatting is off but i hope it will help someone Upvotes: 2 [selected_answer]
2018/02/19
138
545
<issue_start>username_0: Even when the phone is on silent mode, some apps show audible video ads. How can I mute such ads?<issue_comment>username_1: Video ads use Android media stream to play sound Muting the phone media mutes ads as well Upvotes: 3 [selected_answer]<issue_comment>username_2: Get "Sound Assistant" or other apps that can manage sound settings "per app" (as it's for Samsung and I'm not sure it will be compatible with other brands). Find Google Play Movies or whatever it's named in your language. Mute this app. Upvotes: 0
2018/02/19
718
2,737
<issue_start>username_0: In [MIUI](http://en.miui.com/) (an Android ROM), there is an option in developer settings called MIUI optimization. When this option is enabled, an app can't be installed via USB (i.e. from Android Studio). [![](https://i.stack.imgur.com/Ur4aum.jpg)](https://i.stack.imgur.com/Ur4au.jpg) What is the purpose of this option? And if this option is disabled, will it negatively impact the phone's performance?<issue_comment>username_1: According to this [thread](https://forum.xda-developers.com/redmi-note-3/how-to/guide-redmi-note-3-sd-mtk-multi-tasking-t3358433), this feature (**Turn On MIUI Optimization**) > > enables a plethora of MIUI based settings & optimizations as per the guidelines set by the MIUI developers. > > > **It helps to load the app and the app data in parallel reducing load times and ensuring a slicker user experience.** However, this setting can sometimes cause a variety of issues on non-MIUI based apps such as Google Apps & Apps from Google Playstore. Users have recommended disabling the feature if you rely on Google Play Store for apps & services or use Global Stable or Global Beta MIUI ROMs. Here is a summary of observable changes when this feature is turned on or off: **With the MIUI Optimization Enabled, some users reported the following issues** > > * Cannot set third-party launcher like Nova, Apex or Google Now launcher. > * Wallpaper cannot be set using in-built options via custom launchers. > * Occasional lags, stutters or freezes while scrolling web-pages & long lists. > * Custom apps set as default restore to default MIUI apps on reboot. (Only on MIUI China ROMs) > * Cannot set accessibility services on reboot. > * Background apps cannot sync data. > * Music players stop playing after sometime. > * UI Animations are not synced properly. > > > **After turning off MIUI optimization** > > * Above issues may get solved. > * Settings → Data Usage → Graph changes to AOSP style. > * Settings → Battery & Performance → Battery Use → Graph changes to AOSP style. > * Settings → Installed Apps → All → Documents → It will not be disabled after every reboot. > * Settings → Additional Settings → Buttons → Settings may get reset. > * No OTA update notifications. Enable it to receive the OTA updates. > > > Upvotes: 3 <issue_comment>username_2: In addition to @xavier\_fakerat's answer, note that the "MIUI Optimizations" prevent the installers of various applications from launching correctly even on the phone itself, rather than over-USB. If you get unexpected "Installation failed" messages (not taking about Google Play Store; I never use that) - it might be a conflict between the installer and the MIUI optimization mechanism. Upvotes: 2
2018/02/19
1,001
3,463
<issue_start>username_0: *Disclaimer: This is not a duplicate, I've looked at [these questions](https://android.stackexchange.com/search?q=battery%20drop) but none are applicable(temperature) or provide an adequate answer.* Recently I've realized that my 15 month old LG G4 seems to have an issue with the battery in cool or cold weather: dry, no significant windchill, +5°C/+41°C **In at least 3 instances, it happened to drop from 50% or even 65% charge to zero, rebooting without warning. I've not seen issues at other times (higher temps)** I can even reproduce this: * Have the phone at 50% to about 70% charge * go outside if its around 5°C * take a couple of pictures with Open Camera. After a couple of minutes, it will reboot and only have a fraction (<10%) of the charge, and keep rebooting if I try to take pictures. I've tried all the "battery reset tricks" out there, but as I said above - I don't have any issues other than in the cold (+camera). Is this expected behaviour or should I replace my battery ? =========================================================== Do I want *too much* from my smartphone ? Should I scale back my settings to try and keep the power draw lower ? --- Additional Information: It's a Li-Po 3000 mAh (original) battery Android 7.1.2 (LineageOS 14.1) Open Camera settings: High Res (16:9 15.87 MP), 90% JPEG, GPS on, 100% display brightness, background thread, no flash I'm also uploading the pictures to owncloud via the owncloud App ("Instant Upload") over 3G/4G Here are [some graphs](https://i.stack.imgur.com/XlK58.jpg) from GSam Battery Monitor. If you look at them closely, it seems to "recharge" around 5% if its in a warmer environment again.<issue_comment>username_1: * [All batteries achieve optimum service life if used at 20°C (68°F) or slightly below](http://batteryuniversity.com/learn/article/discharging_at_high_and_low_temperatures) * For Li Ion ( or Li Po) the ideal *charging* temperature is 0°C to 45°C (32°F to 113°F) and operating temperature is –20°C to 60°C (–4°F to 140°F) [Source](http://batteryuniversity.com/learn/article/charging_at_high_and_low_temperatures) Based on the above, it looks like you have a poor battery given that * It is being operated within the designed temperature range * Unexplained sudden drop from above 50% or more to zero * Marginal increase in charge when brought indoors Till you get a replacement battery all I can think of by way of power consumption reduction is to delay the cloud upload (do it once it's charged / WiFi) **Edit:** Try a different camera app. It looks like Open Camera does consume more power and show increase in battery levels after reboot as quoted [here -in particular post of 17/12/2017 which matches very closely to what OP describes](https://sourceforge.net/p/opencamera/tickets/306/). If that doesn't help much change battery Upvotes: 2 [selected_answer]<issue_comment>username_2: My phone does this too. It's always done it, the phone (and battery) are 5 years old and everything works properly, just not when it's cold (way colder than +5°C). Maybe my battery is iffy, don't know that it is, don't know that it isn't, but since it works fine the rest of the time, I'm not losing sleep over it. I'm calling it "normal behaviour" for my phone. As a side not, if you see a guy out and about in -20°C weather holding his phone under his armpit and cursing his battery, come over and say "Hi!". Upvotes: 0
2018/02/19
553
1,965
<issue_start>username_0: I have noticed the new version of Android has notification dots. The new multicolor dots I find frustrating. I would prefer if I could set one color for all notification dots(like red for example).<issue_comment>username_1: * [All batteries achieve optimum service life if used at 20°C (68°F) or slightly below](http://batteryuniversity.com/learn/article/discharging_at_high_and_low_temperatures) * For Li Ion ( or Li Po) the ideal *charging* temperature is 0°C to 45°C (32°F to 113°F) and operating temperature is –20°C to 60°C (–4°F to 140°F) [Source](http://batteryuniversity.com/learn/article/charging_at_high_and_low_temperatures) Based on the above, it looks like you have a poor battery given that * It is being operated within the designed temperature range * Unexplained sudden drop from above 50% or more to zero * Marginal increase in charge when brought indoors Till you get a replacement battery all I can think of by way of power consumption reduction is to delay the cloud upload (do it once it's charged / WiFi) **Edit:** Try a different camera app. It looks like Open Camera does consume more power and show increase in battery levels after reboot as quoted [here -in particular post of 17/12/2017 which matches very closely to what OP describes](https://sourceforge.net/p/opencamera/tickets/306/). If that doesn't help much change battery Upvotes: 2 [selected_answer]<issue_comment>username_2: My phone does this too. It's always done it, the phone (and battery) are 5 years old and everything works properly, just not when it's cold (way colder than +5°C). Maybe my battery is iffy, don't know that it is, don't know that it isn't, but since it works fine the rest of the time, I'm not losing sleep over it. I'm calling it "normal behaviour" for my phone. As a side not, if you see a guy out and about in -20°C weather holding his phone under his armpit and cursing his battery, come over and say "Hi!". Upvotes: 0
2018/02/19
1,371
4,762
<issue_start>username_0: I am trying to synchronize my calendars using caldav in davdroid, using the following account credentials: > > "login with URL and user name" > > > Where the url is based on [this](https://developers.google.com/google-apps/calendar/caldav/v2/guide#connecting_to_googles_caldav_server) google caldav-api guide on how to use caldav for apple and or thunderbird: <https://apidata.googleusercontent.com/caldav/v2/calid/user> <https://apidata.googleusercontent.com/caldav/v2/calid/events> Where calid is substituded by either my google calender id in form: ``` <26-character long calender id> ``` or ``` <26-character long calender id>@group.calendar.google.com ``` As found in the google calendar settings in: <https://calendar.google.com/calendar/r/settings/calendar/> I have tried entering the 4 combinations into davdroid and the peculiar thing is that it works for 1 calendar for which I am listed as owner in the <https://calendar.google.com/calendar/r/settings/calendar/> link for that calendar, but it does not show the calendars in davdroid for calendars for which google calendar says it is "subscribed". So I thought it could be a permissions-issue. So I made a new test calendar to check whether that was indeed the case. I ensured for that calendar, I was listed as "Owner". Added the calender with the above 4 options but it again did not show the calender. After revisiting the test calendar, I noticed, this too was added as a subscription where I am listed not as > > <EMAIL> (Owner) > > > But as: > > <EMAIL> with a grayed out dropdown box with "make changes and > manage sharing" next to it. > > > The synchronizing of the calender for which I am owner worked already before I enabled the google caldav api, but just to be sure I enabled the google caldav api. It did not affect the outcome of my attempts so far. So the first step is to this problem is I think, how to create a calendar that lists me as owner, also after creation. But the main question is a generalized procedure on describing a way to add a calendar to davdroid for a 2-way sync to which which my google account is subscribed, (for example a calendar that is shared by with me by another gmail account). If you know how to do either the partial step, the generalized procedure, or spot an error in my attempt/approach please let me know, so I can adapt.<issue_comment>username_1: The solution is to select the > > "login with URL and user name" > > > option in davdroid. And then paste the full calendar option as specified in the second option of the caledar ID into the "Base URL": ``` <26 digit calendar id>@group.calendar.google.com ``` (For imported calendars that becomes: `<32 digit calendar id>@IMPORT.calendar.google.com`) Into: ``` https://www.google.com/calendar/dav//events ``` at the part. Yielding: ``` https://www.google.com/calendar/dav/<26 digit calender id>@group.calendar.google.com/events ``` (For imported calendars that becomes: `https://www.google.com/calendar/dav/<32 digit calender id>@IMPORT.calendar.google.com/events`) And filling in `@gmail.com` and . Notes: 1. When you click login on Davdroid it takes you to a screen where it displays your username, but there you should enter the Name of the calendar in stead. 2. The only calendar for which this will not work is the Inherited/unremovable calendar attached to your gmail account. I hope it helps anyone that does not want a complete gmail account in their android phone accessing all your phone data, but still wants to 2 synchronize their calendar app. Conclusion: So the first part, about the ownership of the calendar is not relevant. It even works with shared calendars. Note: If you enter the wrong password, it will not say 'invalid credentials' but simply: > > No caldav service found > > > **EDIT:** Here is an excel file that semi-automates the process of getting those Calendar base-urls and entering them in Davdroid, as it can be quite time consuming with 15+ different calendars. <https://github.com/a-t-0/PublicCodeLibrary/tree/master/VBA/Google%20Davdroid%20calendar%20app%20sync> Upvotes: 3 [selected_answer]<issue_comment>username_2: The current Google API / OAuth method is not supported by DAVdroid but it's still possible by using [the deprecated](https://developers.google.com/calendar/caldav/v2/guide#new_endpoint) format: <https://www.google.com/calendar/dav/[yourname]@gmail.com/events> username password Yet it requires the compromise [Allow less secure apps: ON](https://myaccount.google.com/security?pli=1#connectedapps) in the Google security settings. However, delegates don't sync. Tested on OnePlus 3t, Android 7.1.1, DAVdroid 1.10.1.1. Upvotes: 3
2018/02/19
2,562
8,870
<issue_start>username_0: Updated question (2018/2/20) ---------------------------- Thanks to grawity's answer and comment, my question can be updated. My final goal is to acquire detailed partitioning information (including the start and end address of each partition on my android phone), either using fdisk or parted. 1. How to "install" the parted command into my android smartphone? 2. Can I use fdisk on a Linux system or on Cygwin on a windows system? Knowing that fdisk brought by BusyBox can't handle GPT. (If so, maybe I could post another question.) --- The original question (2018/2/19) --------------------------------- I have installed Busybox on my smartphone, and I want to acquire detailed partitioning information, including the start and end address of each partition on my android phone. I can use fdisk command, but maybe because my phone's disk is GPT instead of MBR, command "fdisk -l" shows no output. So I want to use the command "parted". But I don't have it on my smartphone. How can I get it? I've traveled to [GNU website of "parted"](https://www.gnu.org/software/parted/). But what I can download is only source code. Do I need to compile that? If so, how do I compile that? Can I compile the source code with MinGW on a PC with Windows system? If I get the "parted" file, where should I put it to make it work? Is it under /system/bin? I haven't found a usable "parted" file yet. Is it because of my bad google skill or the file has to be compiled differently for different devices? I hope to find an official version of the "parted" file. --- EDIT (2018/2/19) ---------------- I do know my storage is GPT because `fdisk -l /dev/block/mmcblk0` tells me. And I've read on the net that fdisk can't handle GPT, while parted can. I'm just not sure why `fdisk -l` is showing nothing. ``` fdisk -l /dev/block/mmcblk0 Disk /dev/block/mmcblk0: 15 GB, 15634268160 bytes, 30535680 sectors 1908480 cylinders, 1 heads, 16 sectors/track Units: cylinders of 16 * 512 = 8192 bytes Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type /dev/block/mmcblk0p1 0,0,0 0,0,0 1 30535679 30535679 14.5G ee EFI GPT Partition 1 does not end on cylinder boundary ```<issue_comment>username_1: > > maybe because my phone's disk is GPT instead of MBR, command "fdisk -l" shows no output. > > > Or maybe it does not have the privileges to read the partition table. Though, as far as I know, many Android phones do not *use* software partitions, but something more complex than that: they partition the flash storage *in hardware*. So not even parted would help you in this case. This answer on Android.SE might be relevant: <https://android.stackexchange.com/questions/5232/how-can-i-view-the-android-internal-partition-table> **Regarding your `fdisk` output example.** It's *not* showing nothing – it's showing one partition! But it's the wrong kind; the actual problem is that your fdisk version *does not support GPT* and is showing you the contents of the "protective MBR" partition table. All GPT disks have a fake MBR containing one massive partition which covers the entire disk; its purpose is to prevent old MBR-only tools from accidentally destroying data. If you see it in fdisk's output, it means your version of fdisk is MBR-only. The `fdisk` which comes with util-linux has added GPT support in v2.23. However, the Busybox `fdisk` has not. --- That said, the rest is fairly generic and applies to *all* programs, not just `parted`. > > I've traveled to GNU website of "parted". But what I can download is only source code. Do I need to compile that? > > > Yes. > > If so, how do I compile that? Can I compile the source code with MinGW on a PC with Windows system? > > > Probably not. MinGW is oriented towards creating x86/x64 Windows builds – you need a cross-compiler which would provide Linux binaries *and* which would compile for a different CPU architecture (your smartphone uses some ARM variant). Cygwin might have a compatible version of gcc, but doing the compilation *on* Linux might be much easier. > > I hope to find an official version of the "parted" file. > > > It is rare for Linux developers to provide official compiled versions – that's usually left to the distributions. You can download the official packages of various distributions such as Debian (Raspbian) or Arch Linux ARM, and extract the needed files manually. * <https://packages.debian.org/search?keywords=parted> * <https://archlinuxarm.org/packages?q=parted> Be careful to pick the correct CPU architecture of your phone. Second, note that you'll need *more* than just the "parted" file: most of the core functionality is actually in a library (DLL file) called `libparted.so`. Upvotes: 2 <issue_comment>username_2: > > I can use fdisk command, but maybe because my phone's disk is GPT instead of MBR, command "fdisk -l" shows no output. > > > It's neither MBR nor GPT. Smartphones typically use MTD partitions. These partitions are configured in the device tree, so changing them is significantly more complicated than just running a partition editor. You can get information on the partitions by running `cat /proc/mtd`. Upvotes: 2 <issue_comment>username_3: ***Note:*** This is applicable to Qualcomm SoC with eMMC (block device accessible through FTL). Not tested on MTK or other chipsets (paths may differ) or the devices with raw NAND/MTD memory. PARTED ====== > > How to "install" the parted command into my android smartphone? > > > There is no official way, so `parted` isn't part of AOSP. Android doesn't want you play with its partition table. Using a static binary is the best option to avoid complications of dynamic linker/loader, libc etc. You may get parted static binary for `aarch64` (ARM-v8) and `armel` (ARM-v5) architecture from [`this link`](https://forum.xda-developers.com/android/help/how-to-boot-sd-card-qmobile-z8-bricked-t3712171). I have compiled these on ArchLinuxARM (running on my Redmi Note 4) and on Ubuntu (PC) using `gcc` (cross-)compiler with `glibc` and they work great. Building with `Bionic libc` on NDK (to make it fully Android-ish) needs a lot of changes in source code because function calls (libc) and also some syscalls (kernel) differ on Android and Linux. `devmapper` and `NLS` are disabled since former isn't directly used, latter isn't supported on Android. FDISK / GDISK ============= > > Can I use fdisk on a linux system or on Cynwin on a windows system? Knowing that fdisk brought by BusyBox can't handle GPT. (If so, maybe I could post another question.) > > > You may use `fdisk` on Android too, but `fdisk` is traditional tool to manipulate MBR partition tables, though newer versions also support GPT. `fdisk` shows somewhat info about GPT as well because GPT contains protective MBR (first sector of disk or eMMC) which contains information about partitions. Also, first partition `(modem)` on most of the Android devices which contains firmware for baseband processor (BP) is `FAT16`, more compatible with `fdisk`. For other partitions `fdisk` may behave weird or may crash. `Busybox fdisk` is very minimal like other applets, and I think it hasn't been updated for a while now. Instead, [`GPT fdisk (gdisk)`](http://www.rodsbooks.com/gdisk/) is a great tool for GUID Partition Tables and from certain aspects is better than `parted`. `gdisk` , `fdisk` and `mkfs.ext4` (mke2fs) static binaries are also available on above mentioned [link](https://forum.xda-developers.com/android/help/how-to-boot-sd-card-qmobile-z8-bricked-t3712171). You may put these anywhere in your PATH; `/system/bin`, `/system/xbin`, `/vendor/bin`,`/sbin` (volatile) or even somewhere on `/data` or `sdcard`. Now just execute: ``` ~# parted /dev/block/mmcblk0 (parted) p free ~# gdisk -l /dev/block/mmcblk0 ``` **Please note** that `fdisk -l` and `parted -l` won't show complete information (or not at all) about Android GPT because Linux kernel populates block devices directly under `/dev` while Android uses `/dev/block` path. We need to change code before compiling to make them work perfectly. `fdisk -l` shows `loop` devices because they share same nomenclature. `blkid` also shows partition info because it reads from `/proc/partitions` and `/sys/dev/block/`. Finally!!! ---------- With power comes responsibility and Linux tools are powerful. Really. A displacement of even a single byte in partition boundaries may put you in serious trouble, the worst being inability to use Factory Firmware Flashers. So, be careful! **Further reading:** * [ArchLinux Partitioning](https://wiki.archlinux.org/index.php/partitioning) * [Android Partitions](https://forum.xda-developers.com/android/general/info-android-device-partitions-basic-t3586565) Upvotes: 4 [selected_answer]
2018/02/20
722
2,791
<issue_start>username_0: I have **Two running Android apps** *(used for surveillance and doorbell)* permanently and simultaneously **on split screen**. Sometimes, the person who used the device (for personal purposes) forget to get everything back, or maybe something else happens, so it is necessary to: * Close all recent unnecessary apps. * Launch surveillance and doorbell apps in split screen. > > Is it possible to reboot the system every night automatically, then launch the two apps on the split screen? > > ><issue_comment>username_1: You can accomplish with automation. Using [Automate](https://play.google.com/store/apps/details?id=com.llamalab.automate) to demonstrate how to do it: 1. Select the Broadcast Receive block. Click on it, in the Action section, select "Boot completed". Click Done. 2. Select App Start block. Click on it, in the Package section, select the first app you wish to start at boot. Click Done. 3. Select the Interact block. Click on it, in the Action section, `Toggle split screen (Android 7+)`. In the Package section, select `com.android.systemui`. Type `android.widget,ImageView` in the "UI Element Class" section, then type `Recent Apps` in the "UI Element Text" section. Click Done. 4. Select the Delay block, in the Duration section set time the amount of time the flow will wait before continuing to the next block (we wait for the first app to start properly before opening the second). I have set it to 5 seconds. 5. Select App Start block. Click on it, in the Package section, select the second app you wish to start at boot. Click Done. 6. Save and give it a name. Link the blocks as seen on the image below. 7. In the Settings, select "Run on system startup". 8. Don't forget to give the necessary permissions when asked. Press start. [![IMG: ](https://i.stack.imgur.com/lJMGX.png)](https://i.stack.imgur.com/lJMGX.png) Every time you reboot your device, after the boot has been completed, the first app will be launched. Then, the screen will be split based on Recent apps with the first app occupying the top part of the screen. After a 5 second delay, the second app will be launched occupying the other part of the screen. The flow was inspired by this example: [Split screen Google Maps/Deezer](https://llamalab.com/automate/community/flows/26641) Upvotes: 3 [selected_answer]<issue_comment>username_2: Reddy's answer above works great, BUT you need to place another link between the "OK" of your second app and the "IN" of the receive broadcast or else it will work for your next reboot cycle, but then end and not work in the future. Further, you must make sure you have enabled "Run on system startup" in the general Automate settings menu. Image of extra link needed: ![](https://i.stack.imgur.com/SFPOV.png) Upvotes: 0
2018/02/20
385
1,365
<issue_start>username_0: I'm using Kingo Root, but it keeps stopping at 90% and giving me error code 0x12B263. I've tried iRoot, Kingo, and many more but they've all failed. Any suggestions would be appreciated.<issue_comment>username_1: You're going to have to use a computer to phone based soultion. One touch rooting apps use a exploit that has since been patched. Upvotes: 1 <issue_comment>username_2: As said by another buddy here, the exploitation used by the one click rooter has bed patched. Try **One Click Root**, it's exploits are updated often. (**Requires PC**) If still no luck there's two **HARD WAYS**. I wouldn't suggest this'd for regular user, and I take no responsibility if device is bricked. The two ways are: * **With a Linux**: Get any small linux, put device into recovery mode. You'll be able to browse system files of your device. Download a **SuperSU Flashable Zip**. Extract the "**su**"," **busybox**","**Superuser.apk**" from **arm7** folders in the zip. Copy "**su**"," **busybox**" into **/system/bin** and **/system/xbin**. Then copy **Superuser.apk** into **/system/app/**. Reboot the Device. * Recovery Flash: Search for how to flash **TWRP** on ***[I TAKE NO RESPONSIBILITY OF YOUR DEVICE IF YOU BRICK IT, IT'S ALL IN YOUR HANDS]*** *[BTW AS PER ME, EVEN HARD BRICK CAN BE FIXED FOR A **FEW PHONES**]* Good Luck Upvotes: 0
2018/02/21
1,168
4,847
<issue_start>username_0: I'm testing a new version of our app that now supports Android Auto Backup (by targeting API over 23). I've managed to get the system to back up the app's data by leaving it overnight (two nights), but when I uninstalled the app and installed it again, it didn't restore the data from the backup. However, I can still see the backup for the app under `Settings > System > Backup > App data > [appname]` and that it was last backed up yesterday. I first re-installed the app from an apk downloaded to the device. Would this not trigger the restore like installing from Google Play or over adb should? I've tried uninstalling again and installing over adb, but it still doesn't restore the data. Is there a way to force it to restore the data from the backup?<issue_comment>username_1: `adb shell bmgr restore` [Source](https://developer.android.com/guide/topics/data/testingbackup.html#TestingRestore) Additional inputs from OP incorporated from comments > > It appears that the reason it didn't restore automatically in my case was that there were many different devices backed up to the same Google Account, and it didn't know which "set" to use. I got a list of "sets" with the command `adb shell bmgr list` sets and could then use your command with the desired set like this: `adb shell bmgr restore` . > > > Upvotes: 3 [selected_answer]<issue_comment>username_2: I'm going to post an alternative answer to my own question, in spite of having accepted the previous answer. The reason is that I have since learned, on my personal device, that the Android Backup and Restore doesn't work as well as I expected, so while that wasn't the case in the case above, this might be the case for other people finding this question. Apparently, if restoring on a different device or even on the *same* device with a different OS, it won't restore anything but system data. This happened to me when I wiped my Moto X (2nd gen) to install LineageOS on it. That means that notification settings, WiFi passwords and background images will get saves, while app data (save games, app settings, etc) will *not*. I'm not sure if newer versions of Android come with better Backup and Restore functionality, but for now I'm going to be using a specialised backup app (Helium at the moment) to keep my data fairly backed up, and also use that when transferring to a new device. If anyone has any positive experiences with Android own Backup and Restore actually restoring app data on a new device, please share any details of android versions and device :) **Update on Helium** Here's a few words on my experience with Helium so far. At first I was a bit disappointed, due to a few limitations of the app. Using the free version you can't setup a scheduled backup, so I had to start it manually every time. This, however, became extremely tedious, as you can't save a "selection" of apps to back up, and so had to scroll through all your apps each time. So I bought the premium version, so I could set up scheduled backup tasks. But for some time this also didn't work, because the app kept losing "authorisation" or whatever it is, so I had to connect it through USB with USB debugging enabled and running the Helium desktop app every time I wanted to do a backup. And you can't just trigger a backup, only change the scheduled time until "in a minute" and wait... Then that seemed to stop being a problem, and authorisation isn't lost any longer, even over restarts. But another problem is that the backup can't run if the screen is locked. I'd like to have the backup run automatically in the night, while my phone is charging and on WiFi, but I only wake up to a message about the backup not having been able to run, because of the screen lock. This is easier to fix, by simply tapping the message to run the backup, but means I then have to leave the phone until done. Over all it works and I'm glad I've got backups (backing up to Google Drive), but it could work a lot better. I still haven't tried restoring, so there might be a call for another update when I've seen how well that works :-) **Update 2 on Helium** It's started losing the authorisation all the time again, which means that the automatic backups aren't happening, and I have to re-authorise and re-schedule to "now" to trigger them. Would be great to hear from any other Helium users out there, if they have some experiences with this. **Update 3 on Helium** It's not losing authorisation as much, which is probably because my phone isn't restarting as much (I've got a new battery). Also, there have been some updates to Helium, so now you can save selections of apps, which is really handy if you want to update which apps you backup in a recurring backup (almost as handy as if you could edit the recurring backup's settings). Upvotes: 3
2018/02/21
995
3,852
<issue_start>username_0: I have developed a web-based HTML and Javascript app which is distributed to company mobile phones via email or USB transfer as a zip file, which I would like to set up on people's devices with a shortcut on their home screen. However, I can't get the option in the Chrome browser to add it as a shortcut for the offline page. The option only becomes available if, for example, I upload the package to my online webspace and then load that URL in chrome. This isn't an option, as the app will load in confidential information which I don't want online. Are there any solutions or alternative options for this?<issue_comment>username_1: Download the page, open it in chrome, click the three dots in the top right and select 'Add to home' Edit: Just realized, I'm using the Brave browser (free on google play) and it works. It looks a lot like Chrome so it doesn't take long to get used to it. Edit #2: Orfox browser (Tor browser), also free, is able to do it. Just open the file and create a shortcut, just like with normal pages in chrome. This is a tor browser though, but maybe there are other browser that are lighter and also able to do it. Firefox browser also does the trick. Click the 3 dots in the top right, press page and create shortcut. Upvotes: 1 <issue_comment>username_2: 1. Using Chrome Browser (without root) ====================================== If you are looking for a solution using Chrome app, `Chrome isn't associated with Html files`, thus you can't associate it with HTML files, but you can: > > **P.S**: Allow the storage permission for the Chrome App > > > * Open Chrome Browser * Type the path of your file Ex: `file://mnt/sdcard/Documents/App/index.html` * Goto Options Menu (Three dots on the upper right) * Tick the Star on the top to Bookmark the html file in Mobile Bookmarks. * From your launcher put the "Chrome Bookmarks" widget on the desktop to access your bookmarked local file. 2. Using Total Commander (without root) ======================================= > > **P.S**: First, Allow the storage permission for the Total Commander App > > > * Install & Launch [Total Commander - file manager](https://play.google.com/store/apps/details?id=com.ghisler.android.TotalCommander&hl=en) * Locate your "index.html" file. * Tap & maintain on the index.html file. * From the pop-up Menu, tick the option "Create Link on Desktop" * Select the shortcut name. * Select the app used to open HTML files (I suggest to install Opera or Firefox before this) * Choose an Icon if you want. * Tap OK/ Apply. 3. Using Opera Browser (without root) ===================================== Opera Browser is a solution for your situation, maybe other browsers are also fine. > > **P.S**: First, Allow the storage permission for the Opera App > > > * Install [Opera browser - news & search](https://play.google.com/store/apps/details?id=com.opera.browser&hl=en) * Type the path of your file Ex: `file://mnt/sdcard/Documents/App/index.html` * Goto Options Menu (Three dots on the upper right) * At the bottom of the Option Menu, tick the option "Home Screen" * Select the shortcut name, and tap Add. Upvotes: 2 <issue_comment>username_3: Here's an alternative I am using to access a local HTML via (my Samsung) Home Screen. 1. Have a shortcut to Samsung Internet (because it allows Locked Tab) 2. Open the HTML file manually (eg. Using My Files file manager, "Open With" Samsung Internet) 3. Tap on the Tabs button to display the list of open tabs, press and hold the 'RecyclerView' of the tab showing the HTML file, choose to Lock it. Upvotes: 0 <issue_comment>username_4: I use a simple app called Website Shortcut created by Deltac Development. This app may work for your needs and can be edited and customized (i.e. company logo, changing path to different location, etc) Upvotes: 0
2018/02/21
408
1,466
<issue_start>username_0: Instead of the preinstalled "Launcher3" I'd like to use "Microsoft Launcher" – but when I choose it as default, it only lasts until reboot. After reboot "Launcher3" is again set as default. How to keep a launcher after reboot? Where are such things stored in general? (Android 5.0.2 - API 21) **EDIT:** My Phone is a Medion X5004. I tried via the settings menu in MS-Launcher, and via system settings. **EDIT2:** I tested installing "Apex Launcher" and set it as default - also resets to Launcher 3. So it doesn't seem to be specific to MS-Launcher. **EDIT3:** MS-Launcher does not sit on SD-card. **EDIT4:** Wiping cache has no impact... **EDIT5:** Tried to `chmod 440 /data/system/users/0/package-restrictions.xml` while launcher set to MS-Launcher - after reboot the file has write permissions again and Launcher3 "greets" me.<issue_comment>username_1: Here's something to try: Go into settings → apps. In the menu, select *show system apps* → launcher3 → set as default → clear defaults. When you go back to your homescreen, it will let you choose your default one. Choose Microsoft launcher as the default. Reboot your phone, and see if it helped. **Edit:** If the Microsoft launcher is stored on your SD card, move it back to the internal memory, that should fix it. Upvotes: 0 <issue_comment>username_2: Not really an answer – but problem does not occur after factory reset. Upvotes: 2 [selected_answer]
2018/02/22
493
2,071
<issue_start>username_0: I've just set up a WiFi router to use with an audio device which is controllable by Android devices through LAN. This router is expected to not have an internet connection - its sole purpose for me is to route the local network and enable the controlling via my Android phone. However, my phone (a Moto G5S, with Android 7.1.1 installed) simply refuses to connect to this router - even though I can perfectly connect to it from a laptop. I even removed my other routers from my phone, to prevent it from jumping to WiFi connections that have internet, but it still doesn't connect to this "offline router". Now, a bit of a plot twist: I did see a notification about the WiFi connection not having access to the internet, but I simply swiped it off. I tried connecting with my wife's Android, and, instead of swiping off the notification on her phone, I clicked it and I saw that it offered the option to stay connected even without internet. However, I can't do this on my Android anymore, since I got rid of that notification. Yeah, I feel stupid, but, in my defense, I had no idea that ability would be only available there. I even tried "forgetting" the WiFi connection and re-entering the password, but it just won't show me that notification anymore. So, any ideas of how to fix this, guys? How can I force the connection to my internet-less router, or, alternatively, how can I force my Android to show me the notification about "WiFi offline" again?<issue_comment>username_1: Here's something to try: Go into settings → apps. In the menu, select *show system apps* → launcher3 → set as default → clear defaults. When you go back to your homescreen, it will let you choose your default one. Choose Microsoft launcher as the default. Reboot your phone, and see if it helped. **Edit:** If the Microsoft launcher is stored on your SD card, move it back to the internal memory, that should fix it. Upvotes: 0 <issue_comment>username_2: Not really an answer – but problem does not occur after factory reset. Upvotes: 2 [selected_answer]
2018/02/23
825
3,396
<issue_start>username_0: It is said that with MIUI, it is possible to run the same app twice as if they are on two different phones. (example: WeChat or Line running with a work account and one running with a personal account). Is it possible to run the same app twice, and side by side on an Xiaomi Redmi 4X with MIUI 8? Or is it only possible to show them one at a time? If it is only possible to show one at a time, you can't really play some games such as Pokemon Go and do the Raid Battle at the same time using both accounts (since you have to switch screen to one at a time and therefore not play at the same time). And if it is possible side by side, can it be vertically or horizontally split on the screen, but won't the 2 apps be really small and make it not practical to play at the same time? Could some screenshot / YouTube video be posted if you are possible to make it happen?<issue_comment>username_1: You can't play the same game simultaneously, while gaming the active window only will be active in split-screen mode (see the example below), but you can play while you're watching Youtube, because gaming isn't like watching or listening. > > * Your device has a **1.4GHz octa-core** and **2GB**, it's not a high end device where you can run resource consuming apps twice, your chances of getting things up and running are low. > * The app cloning feature is good for WeChat,Line and other chat apps but not for gaming apps where your **5" device** is not enough to run two instances in a split screen. > * The following solution is almost for every Android Device with high end specs: > > > 1. Force activities to be resizable =================================== To force apps that doesn't support split screen feature, you have to enable this option from Developer Settings: * Goto Developer Options. * Scroll down and until "Force activities to be resizable" and activate it. * Restart your device. Now, you can use split-screen with any app, even if it doesn't support split screen feature. 2. Install [Parallel Space](https://play.google.com/store/apps/details?id=com.lbe.parallel.intl&hl=en) & [Parallel Space - 64Bit Support](https://play.google.com/store/apps/details?id=com.lbe.parallel.intl.arm64&hl=en) ========================================================================================================================================================================================================================== > > **Note:** Parallel Space has **access to many dangerous permissions** > > > * Launch Parallel Space and choose the apps you want to clone. * Launch the cloned instance of your app. * Tap & maintain on recents button to split the screen. * Launch the same app from your recents or from your home screen. 3. Example: Two instances of Clash Royale ========================================= In the picture below I'm Playing **Clash Royale** and **Clash of Clans** (by default they don't support split-screen feature) **in split-screen but not simultaneously**. ![](https://i.stack.imgur.com/QKWnf.png) Upvotes: 1 <issue_comment>username_2: On MIUI, you can play both game simultaneously since they don't use the native splitscreen made by Google. On MIUI installed on Nougat or Oreo, you don't need to install parallel space since it's native in MIUI but you still need to force activities to be resizable. Upvotes: 0
2018/02/23
1,421
5,217
<issue_start>username_0: Recently I purchased a Huawei Enjoy 7 from China and brought it back to Canada. (This phone is available only for purchase in China but it works perfectly fine in Canada and the states) Basically it isn't that easy to get Google Play / Other Google Apps (beacause the phone was meant for China) I have tried just getting the Google Play Store, as well as Google Play Services from a APK downloader online, but it just shows "Install Core GMS Packages to use google play" This is my main problem. Huawei phones like the Mate series or the P series (meant for America) can just download an APK for the [GMS Installer](https://drive.google.com/open?id=0B64ADSfC5LHbMHdlZ2ZONVhXVWM). But on the Huawei Enjoy 7, it doesn't work. (same message when opening google play) Here's where I find that it gets tricky, according to [this forum post](https://android.stackexchange.com/questions/177312/how-to-install-core-gms-packages-to-use-google-play-store) and this other [stack exchange post](https://android.stackexchange.com/questions/177312/how-to-install-core-gms-packages-to-use-google-play-store), you need to use TWRP to install GMS. (the stack exchange one isn't exactly relevant to my situation because it is a Mate 9) To anyone experienced with computers/android using TWRP or something that has full access to your phone can have damaging consequences if done wrong. The forum post has a small guide that can somewhat help but it isn't very clear. This other stack exchange post also shows how to use TWRP (there are also links to official guides) but it isn't exactly the same as what the forum post suggests me to do. My phone is currently running 7.0 nougat and not rooted (EMUI 5.0 I think). And I have the correct "Open GApps project" file on my computer and my phone. What I want is a **very clear and detailed guide that has official information to back it up** to show my how to properly install Google Play on a Huawei Enjoy 7 using TWRP. Or if there are any other methods on how to do so.<issue_comment>username_1: There are two methods here. If **Method 1** fails or you don't want to go through with it, try **Method 2**. Method 1: --------- I'm going to try something here. It may or may not work. I don't have any phone without play services to test this on. 1. First, download Google installer from Google drive link: [Google installer](https://drive.google.com/file/d/0B0l2sjcF9VU2WkFyWjQxT21pSUU/view?usp=drivesdk) 2. To install the file you will have to go to Setting >> Security >> Allow Unknown Sources. Once you check this option you will be able to install the files. 3. Tap the downloaded APK to initiate the installation process. 4. After completion, launch Google Installer by tapping open or from the home screen. It will have a Chinese name. 5. In the app, tap the big blue button at the bottom to start the install process. 6. It will then prompt you to install the necessary packages one after the other Method 2: --------- There is a thread in the XDA forums for your exact problem with the Huawei Enjoy The steps you need to follow are linked [here.](https://forum.xda-developers.com/showpost.php?p=74481630&postcount=9) **This method requires you to unlock your bootloader, flash a custom recovery** and install the OpenGapps package of your choice. For your convenience, I am copying all the steps here, but I would suggest you follow the instructions from their source. **(Bonus note: with help from Google Translate, you can get some more clarifications [here](http://www.huaweirom.com/guide/5205.html))** 1. Download a Chinese version of TWRP from [here.](https://pan.baidu.com/s/1o89gkKM) You don't need an account, just press the download button 2. Unlock your bootloader. Google will help. You need to get unlock code from Huawei. Go [here](http://www.emui.com/plugin.php?id=unlock&mod=detail), apply and follow the instructions. **All data will get wiped. Backup important data.** Once done you will get a screen with "Phone Unlocked!" written in the bottom 3. Then in the twrp folder you had downloaded you will find a batch file named something like "recovery-twrp一键刷入工具.bat". Run the batch file. The text in the console will be in Chinese but in Windows 10 you can copy and paste the contents of the console into Google Translate. Follow the directions and press 2 when prompted to boot into the recovery. 4. Download from www.opengapps.org and copy the compatible OpenGapps package of your choice (I suggest the micro) into your phone beforehand and then boot into TWRP, choose install, select the package you had copied earlier and then swipe to install. Once done, reboot. I have not actually tried any of this, but if you get stuck somewhere, please share the screenshots and I'll try to help the best I can. Upvotes: 1 <issue_comment>username_2: There is a special GMS installer for Huawei Enjoy 7. Here's the [link](https://mega.nz/#!PWpSmKIR!qurFjrEnjC9aqRoOmz8i3e96hyhQ04QKqLQh1A-lXKA). I was getting the same issue, but when I used this GMS installer it worked just fine. You can check [this video](https://www.youtube.com/watch?v=6Gy7qgyrxfY). Unfortunately, it's not in English, but still, it is clear. Upvotes: 0
2018/02/24
917
2,481
<issue_start>username_0: I have an IR touch frame device which I have to configure using the `idc` file, however I am not sure if it is used at all. I have changed the device type to `pointer` which should show a cursor on the screen when operated, and it is not happening. From `dmesg`: ``` [ 76.937599] [0: khubd: 40] usb 1-1: new full-speed USB device number 2 using xhci-hcd [ 76.952845] [0: khubd: 40] usb 1-1: New USB device found, idVendor=1ff7, idProduct=0013 [ 76.952907] [0: khubd: 40] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 76.952955] [0: khubd: 40] usb 1-1: Product: FC49WH00DL-CT-B2-10P [ 76.953002] [0: khubd: 40] usb 1-1: Manufacturer: Touch Device [ 76.953045] [0: khubd: 40] usb 1-1: SerialNumber: 1000 [ 76.969757] [0: khubd: 40] input: Touch Device FC49WH00DL-CT-B2-10P as /devices/usb.25/ff600000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/input/input5 [ 76.976113] [0: khubd: 40] hid-multitouch 0003:1FF7:0013.0004: input,hiddev0,hidraw3: USB HID v2.00 Mouse [Touch Device FC49WH00DL-CT-B2-10P] on usb-xhci-hcd.0.auto-1/input0 ``` The file I've created is: `/system/usr/idc/Vendor_1ff7_Product_0013.idc`. How can I make sure the file will be used? Is it enough to reconnect the device to "reload" the changes in the file, or would I have to reboot the device? Thank you<issue_comment>username_1: My `idc` file was not used due to incorrect file permission. The owner has to be `root` and the permissions need to be `644`. With this the file is picked up on each reconnect of the device. Upvotes: 0 <issue_comment>username_2: You can verify by this command: **adb shell dumpsys input**. This will list out all your input devices supported. In the dumpsys output look for Configuration File under Event Hub State->Devices->Go to your device name. Here you find your answer. For me it works. Upvotes: 2 [selected_answer]<issue_comment>username_3: As mentioned in [Link](https://username_3/how-to-identify-which-idc-file-used-by-input-device-in-android) , once you push the IDC File either using VID/PID or using device name, then you can look for "ConfigurationFile" parameter in the output of adb command "adb shell dumpsys input" for your device. You should see your IDC File in "ConfigurationFile" with complete path. ConfigurationFile : /system/usr/idc/Vendor\_1ff7\_Product\_0013.idc as in your case. Upvotes: 0
2018/02/26
311
1,128
<issue_start>username_0: So now, I just plugged my phone which is a Samsung Galaxy J2 Prime (SM-G532G), a notification pops up if I want an MTP or PTP devices, since I am charing I chose Charging on USB mode. Now when I plugged my phone that notification is nowhere in sight so I cannot change back to PTP or MTP. [EDIT] Just like to point out one thing. I've been using this same exact cable for software development purporses so yes it is working when I use MTP and for data transfer. I just don't have the option anymore to switch from USB Charging mode to either MTP to PTP. Any ideas? Phone: - Samsung Galaxy J2 Prime (SM-G532G) - Android 6.0.1 Thanks!<issue_comment>username_1: First go this path: About Device --> Software Info --> Click to Build Number up to enable Developet option in mobile. Then go to Setting and open this path: Developer Option --> USB Configuration --> Change mode from Charging to MTP. Upvotes: 2 <issue_comment>username_2: You can reach this setting in another way by dialing \*#0808#, it will take you straight to the USB Settings. Tap on AP then MTP. You may need to reboot. Upvotes: 0
2018/02/26
2,106
5,050
<issue_start>username_0: What is the `logo` partition on a Lenovo phone, and what is the format of it? The header of the 8MB partition: ``` 00000000 88 16 88 58 C2 8A 0A 00 ...X.... 00000008 4C 4F 47 4F 00 00 00 00 LOGO.... ``` I guess it is a boot screen picture. What is the format of this image?<issue_comment>username_1: > > **1. What is “logo” partition on a Lenovo phone?** > > > The logo partition (based on my experience with MediaTek devices) contains: * The very first boot logo (not the boot animation) * Battery charging sequences (many PNG images). * Second boot logo (`boot_logo` file). * Battery charging digits and percentage sign (each digit or sign has its own image). * (For devices supporting fast charging) Fast charging sequences (many PNG images) > > **2. I guess it is a boot screen picture.** > > > Not the boot logo only, it contains many images. > > **3. What is the format of this image?** > > > Not one image only, all of them are PNG files. > > **4. Additional details** > > > * `88 16 88 58` is the partition **offset**. * `C2 8A 0A 00` is the partition **size**, this is **little endian byte order**. * `4C 4F 47 4F` is the partition **name**. I can't confirm if this is MediaTek-specific or not. --- [Mediatek MT65xx/MT67xx Logo Editor](https://forum.xda-developers.com/t/changing-boot-logo-logo-bin-program.1953726/) ===================================================================================================================== If you wish to change the very first boot logo (not the boot animation) of your device based on MT65xx/MT67xx platforms, try [LogoBuilder](https://forum.xda-developers.com/t/changing-boot-logo-logo-bin-program.1953726/). [LogoBuilder](https://forum.xda-developers.com/t/changing-boot-logo-logo-bin-program.1953726/) can unpack and repack your `logo.bin` file which contains: * Boot logo * Battery charging sequences * Second boot logo (`boot_logo` file) [LogoBuilder](https://forum.xda-developers.com/t/changing-boot-logo-logo-bin-program.1953726/) is simple to use: * Unpack your `logo.bin` file. * Edit what you want. * Re-pack it. The LogoBuilder can make an `update.zip` to flash your new `logo.bin` file with a custom recovery. --- Further reading: [deflate compression](http://www.libpng.org/pub/png/spec/1.2/PNG-Compression.html). Upvotes: 2 <issue_comment>username_2: The images in the logo partition are raw 32-bit pixel data, possibly bgra or rgba, compressed with zlib but with *no compression header*. Skip the 512-byte header, and this is what you see (yours will be different, this is from a BLU Dash X2 phone). ``` 00000200: 2700 0000 f929 1300 a400 0000 012e 0000 '....).......... 00000210: 3b36 0d00 05bb 0d00 4e07 0e00 4a09 0e00 ;6......N...J... 00000220: d709 0e00 b20b 0e00 060e 0e00 8f0f 0e00 ................ 00000230: ac11 0e00 0814 0e00 3c15 0e00 d517 0e00 ........<....... 00000240: 451a 0e00 2b1d 0e00 d82b 0e00 763b 0e00 E...+....+..v;.. 00000250: f84a 0e00 a959 0e00 4d67 0e00 3874 0e00 .J...Y..Mg..8t.. 00000260: 1382 0e00 4f91 0e00 f6a0 0e00 6bb0 0e00 ....O.......k... 00000270: f90b 0f00 0068 0f00 bcc3 0f00 9b1c 1000 .....h.......... 00000280: d573 1000 9cca 1000 6223 1100 647e 1100 .s......b#..d~.. 00000290: c8da 1100 f536 1200 ae89 1200 658b 1200 .....6......e... 000002a0: 9cfc 1200 78da ecdd 3daf e458 42c7 e1fe ....x...=..XB... ``` The numbers are 32-bit integers, and the first one at offset 0x200 is 0x27, or 39, pictures in the logo partition. 0x1329f9 is the total length of the data; the rest of the partition will probably be padded with zeroes. The next 39 integers are the offsets of each image, for example the first is at offset 0xa4, plus 0x200 to account for the header, and you have 0x2a4. So you can see the first 12 bytes of data in the xxd output above, 0x78 0xda 0xec 0xdd... The size of the image will be the following offset minus "this" offset: in this case, 0x2d01 - 0xa4 = 0x2d5d, or 11613 decimal. So now you have what you need to extract the first image: `dd if=/tmp/logo.bin of=/tmp/img1.z bs=1 skip=$((0x2a4)) count=11613` To uncompress it, since it has no header, you have to add one: `printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - /tmp/img1.z | gzip -dc >/tmp/img1.dat`. You can then display it using ImageMagick: `display -size 360x$(($(stat -c %s /tmp/img1.dat)/$((360*4)))) rgba:/tmp/img1.dat` Information is from [rigacci.org](https://www.rigacci.org/wiki/doku.php/doc/appunti/android/logo_bootanimation). Niccolo includes a Python script that extracts all the images for you. Upvotes: 2 <issue_comment>username_3: > > What is a logo partition and what is the format of it? > > > Those first 16 bytes are part of a structure `part_hdr_t`: * `88 16 88 58` is the .magic field (search "PART\_MAGIC" and "0x58881688") * `C2 8A 0A 00` is the .dsize field, the partition data size * `4C 4F 47 4F` is the first four bytes of the .name[32] field (contrast with [username_1's answer](https://android.stackexchange.com/a/191501)) Upvotes: 0
2018/02/26
907
3,177
<issue_start>username_0: It used to be possible to find the IMEI number of a device from [Google Dashboard](https://myaccount.google.com/dashboard?pli=1). However, I couldn't find it now. Majority of the answers I find on the internet refers me to this method but it doesn't work. Is it possible to find the IMEI number of a lost Android phone using Google Dashboard? If yes, then how?<issue_comment>username_1: *Not a way to find it , but to document that it's not possible from Google Dashboard anymore* > > Is it possible to find the IMEI number of a lost Android phone using Google Dashboard? > > > **Unfortunately NO** Google removed this feature for reasons best known to them. From [Google Support](https://support.google.com/mail/forum/AAAAK7un8RU2cl1n0crK8U/?hl=en), see what *NoGoodDeed* says > > As catzrule states, Google has was removed IMEI information from the new dashboard view. > > > Google is considering where and if it might be appropriate to re-surface that info. > You can leave [Feedback](https://support.google.com/mail/answer/6142372) > about this with Gmail. > > > This is the latest official source (October last year) I could find, so there is no way out unless you have the box or bill mentioning IMEI. Other possibilities * If you synced to [itunes](http://trendblog.net/how-to-find-imei-android-ios-without-phone/) as claimed here ( I can't confirm) * Another *very* long shot is if you had installed a paid app that is single device use and is linked to your IMEI number (I have a call recorder app that does this and everytime I change my device , need to mail them with new IMEI number, so end up having a record) * As Bochur mentioned in comments (thanks), asking Telco is another possibility I wish Google would reintroduce this **Edit** Things that didn't help * Chatting with Google help from Play Store options - they were totally clueless and couldn't direct me to somebody who can help * Downloading data from [Google Dashboard](https://myaccount.google.com/dashboard?pli=1). Combed but to no avail. Only interesting thing is that you can see your Google ID here Upvotes: 3 <issue_comment>username_2: Yes, as of July 2019, you can still get your IMEI number from the dashboard. Just go to the ["Find your device"](https://myaccount.google.com/find-your-phone-guide) page and select your device. Then in the upper left corner, the name of your device will appear with an (i) icon next to it. Click on that and it tells you IMEI number. [![d b](https://i.stack.imgur.com/NnhLg.png)](https://i.stack.imgur.com/NnhLg.png) Upvotes: 4 [selected_answer]<issue_comment>username_3: Yes goto find my phone click on the lost device and click on locate then on the screen of the locate device click on the (!) It will tell you the imei # Upvotes: 0 <issue_comment>username_4: I have good news, I was able to find my Andriod Device using Google Dashboard by going to the Find My Device page once I logged in. Just press the i by the name of your device. Here is a print screen in case I am not clear. Hope it helps. [![Print Screen](https://i.stack.imgur.com/uC8hC.png)](https://i.stack.imgur.com/uC8hC.png) Upvotes: 2
2018/02/26
533
2,172
<issue_start>username_0: I am not sure what I am missing, but decryption the sdcard should be as easy as opening it if it it that few possible combinations. So what's the point of it? To clarify I mean booting into recovery mode, ADBing, and trying to decrypt the partition directly, without artificial timeouts that OSes do.<issue_comment>username_1: You are likely looking at an incorrect assumption that you can exhaust all possible combinations uninterrupted, in a short period of time. Which is incorrect because after 5 failed attempts, you are barred from entering PIN / password and a pause of 30 seconds is introduced before you try again or you would need to reset your phone to be able to use a new PIN. I am not sure how one plus implements this and may vary a little bit that's the standard expected behaviour called *rate limiting*. See my answers [here](https://android.stackexchange.com/a/148583/131553) and [here](https://android.stackexchange.com/a/172515/131553) *Note* This answer was before the question was edited and username_2's answer deals with çhanges made to question Upvotes: 1 <issue_comment>username_2: Countering your supplemental conditions... > > To clarify I mean booting into recovery mode, ADBing, and trying to decrypt the partition directly, without artificial timeouts that OSes do. > > > * Stock recovery doesn't have regular ADB capability (only ADB sideload, and that only flashes signed firmware). * Even with USB Debugging enabled, you can't authorize a random PC to debug over ADB, since the authorization dialog is behind the lockscreen. * Can't read/pull anything from `/data` even if you have ADB authorization, unless the device is rooted. * Can't flash a custom recovery without unlocking the bootloader, which nowadays requires flipping a switch in Settings - Developer options, again behind the lockscreen. Unlocking also fully wipes all data including the internal storage. * If the bootloader is already unlocked then theoretically none of the security measures would ever matter - but such is a very rare case for regular users, and anyone who do it would (or should) know the risk well already. Upvotes: 2
2018/02/27
1,467
6,137
<issue_start>username_0: The Google [Family Link FAQ](https://families.google.com/familylink/faq/#?account_activeEl=account-6) says you are only permitted to have one child per device. But on [this page it says you can add a second profile to your child's device](https://support.google.com/families/answer/7158477?hl=en). Does this mean two children share one device under Family Link? Or that there can be one Family Link account and one other account? What are the limitations / implications of a second account?<issue_comment>username_1: Many Android devices allow multiple user profiles (not to be confused with Google accounts). It's a similar function to what computers have, where you can have the admin account and the child one. From the [second](https://support.google.com/families/answer/7158477?hl=en) link you posted: > > The steps below will only work if your child's device allows multiple > profiles > > > From your comment on [this post](https://android.stackexchange.com/a/191293/241679) it's apparent that you're using an Asus Zenpad 3s. That device doesn't seem to have the multi user functionality. (You can confirm this info by simply going settings and looking for "users"). Therefore, you will not be able to add more accounts. So to explain the difference between the two links you posted, the [first one](https://families.google.com/familylink/faq/#?account_activeEl=account-4) seems to be talking about adding a second Google account to the same device (from settings → accounts → Google,) while the [second link](https://support.google.com/families/answer/7158477?hl=en) is discussing how to get past the limitation of one account per device, by adding a second user, which in turn make it as if you're using a different device, with a lock screen preventing the child from switching between users. > > Does this mean two children share one device under Family Link? Or > that there can be one Family Link account and one other account? > > > With a device that supports multiple users, you can add either a child, or a regular Google account. If you're adding a regular account, make sure to have a lockscreen preventing your child from switching between users. > > What are the limitations / implications of a second account? > > > Had that been possible, your child would be able to open Google play store, switch to the other account, and download any app they want. Therefore, they don't allow more accounts unless you add a new user to the device. Upvotes: 2 <issue_comment>username_2: Yes you can! I just did it. Under Family Link, I set up two Google accounts for my kid. I installed one on the device, and then created a new user on the device and added the second Google account into its setting. It seems to be working fine, allowing access to the one profile whilst the other is locked. The idea was that I set up one profile just for education purposes, and the other where I can install other apps, games, etc. The plan is to have tighter time restrictions on the gaming or fun profile and allow more access to the education apps so they will move to the second profile and do better activities once their game time is over. Maybe you can do this with other control apps, but I think this could be a good long-term solution under the Google Family Link system which doesn't seem to provide individual app timers. Upvotes: 2 <issue_comment>username_3: In family link I had to select the device (in my case an android nokia) and that had an option to allow my son to add other accounts. . This is restricted to a school controlled account so it's not any type of account. Upvotes: 0 <issue_comment>username_4: Yes! I have successfully setup two user profiles on my Android tablet, each using a different Google account, and both accounts are enrolled in Family Link. However, it wasn't easy. Some background: 1. Android devices let you have more than one user profile on the same device (but note that not all android devices support this option). 2. These user profiles are not the same as different Google accounts! Each user profile can be connected to one or more Google accounts of their choice, which may or may not be different from the accounts on other profiles. 3. A device always starts with one pre-installed user profile, which is the *administrator* profile. 4. If you are on the administrator profile, you can enroll a connected Google account in Family Link, and have a parent supervise the activity of that profile. * Note that Family Link is connected to the *Google account*, not the user profile. If you connect this account to any other profile on this or another device, Family Link will supervise that profile too. If you remove the account from the profile, the profile will no longer be supervised, but the account will remain enrolled in Family Link. 5. If you are on a user profile other than the administrator - you **cannot** enroll a connected Google account in Family Link. To make things worst, if you try to do this, you just get a generic "something went wrong" error message, with no additional clarification. Here is how I managed to work around this limitation: 1. For each Google account you want to enroll in Family Link, connect to this account while on the administrator profile of an Android device, and enroll it (by using the "parental controls" option in settings). * You can use multiple devices for this if you want, it's OK to use devices other than the one you eventually want to have the accounts on. * You can also repeat this for multiple accounts on a single device if you need to. After you enroll one account, remove it from the device, and then connect with the next account. 2. Once all accounts are enrolled in Family Link, you can create additional user profiles on your device, and on each profile connect to one of the accounts. * Note that if the administrator profile is already connected to a Family Link enrolled account, you might not be able to add additional user profiles. You need to explicitly allow this, using the Family Link app on a parent's device. I hope this helps. Upvotes: 0
2018/02/27
908
3,216
<issue_start>username_0: I need to manage an Android device remotely. It is a tablet running Android 6.0 used by an elderly person, which alters the setting from time to time. (Or maybe the person does, who knows). I live very far away and need to manage this device remotely. - check if WiFi is on and if not, turn Wifi on (already found an app for that) - check if the location service is on and if not, turn it on - restore the default launcher - restore the Default keyboard The device uses a slow mobile connection, so remote-desktoop as VNC/Temviewer is a no-go. Despite that, I do not want to manage the device over remote desktop, i only need to check the settings and alter them remotely.<issue_comment>username_1: Have you tried airdroid <https://www.airdroid.com/> but it does not give you full access to the tablet settings to get that you need something like <https://www.logmein.com/> i think it will work with a slow internet connection I hope my answer was helpful Upvotes: 0 <issue_comment>username_2: There is an application called [Tasker](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en). Which can be bit difficult to work with for you, if you're not familiar with it. but it's worth learning for your use case. You can make profiles which will get triggered when particular conditions are met. For example, you can start the wifi or turn your phone into silent mode when it's within 100mts of your home, or you can change the default launcher according to your needs in the question. [Here](https://www.androidauthority.com/how-to-use-tasker-199872/) you can find basic tutorial for Tasker, which can help you learn more about it. For your particular use case I found some profiles which can help you, 1) [Restore Default Launcher](https://android.stackexchange.com/questions/110106/dynamic-launcher-with-tasker) 2) [Restore Default Keyboard](https://www.xda-developers.com/how-to-automatically-change-your-keyboard-on-a-per-app-basis/) 3) [These are other profiles, you can look into](https://android.gadgethacks.com/how-to/tasker-101-5-useful-profiles-help-get-you-started-with-android-automation-0163529/). Since you can not root your tablet, these are the [use cases](https://www.reddit.com/r/androidapps/comments/5gsgvp/the_best_tasker_profiles_nonroot/dav3lug/?st=je7f6001&sh=191cdc22) for the profiles you can use/create without root. (These are just for your knowledge, because Tasker can do lots of stuffs even without root. Which can come handy in some other scenario you want to use in future) **Some ADB Commands I found which can help you**, 1) [Change the default Keyboard using ADB](https://stackoverflow.com/questions/15253983/change-the-default-android-keyboard-using-adb-or-java-code) 2) [Enable Location services On or off](https://android.stackexchange.com/a/114033/167921) **To connect using ADB remotely, [This answer](https://stackoverflow.com/a/3623727/1921481) can help you** The answers in the question above is not using adb shell su, so I'm assuming it will work on non rooted phones aswell (You already found answer for other use cases you mentioned in your question, So hopefully this solves your question). Upvotes: 1
2018/02/28
887
3,144
<issue_start>username_0: I'm doing a Lego EV3 robot for a project. It needs to play sounds (like a soundboard app on a phone, but triggered remotely). Sadly, the speaker on the EV3 brick is too quiet for this. I got the idea to use my old phone connected to a Bluetooth speaker. I want to hold my phone in my hand and with that phone, I want to make my other phone play short MP3 files. Without any wired connection. Sadly, I can't find any apps that already do this and I have no programming experience. Is there another way to remotely trigger playback of a sound file stored on the phone? I'm okay with rooting the phone.<issue_comment>username_1: Have you tried airdroid <https://www.airdroid.com/> but it does not give you full access to the tablet settings to get that you need something like <https://www.logmein.com/> i think it will work with a slow internet connection I hope my answer was helpful Upvotes: 0 <issue_comment>username_2: There is an application called [Tasker](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en). Which can be bit difficult to work with for you, if you're not familiar with it. but it's worth learning for your use case. You can make profiles which will get triggered when particular conditions are met. For example, you can start the wifi or turn your phone into silent mode when it's within 100mts of your home, or you can change the default launcher according to your needs in the question. [Here](https://www.androidauthority.com/how-to-use-tasker-199872/) you can find basic tutorial for Tasker, which can help you learn more about it. For your particular use case I found some profiles which can help you, 1) [Restore Default Launcher](https://android.stackexchange.com/questions/110106/dynamic-launcher-with-tasker) 2) [Restore Default Keyboard](https://www.xda-developers.com/how-to-automatically-change-your-keyboard-on-a-per-app-basis/) 3) [These are other profiles, you can look into](https://android.gadgethacks.com/how-to/tasker-101-5-useful-profiles-help-get-you-started-with-android-automation-0163529/). Since you can not root your tablet, these are the [use cases](https://www.reddit.com/r/androidapps/comments/5gsgvp/the_best_tasker_profiles_nonroot/dav3lug/?st=je7f6001&sh=191cdc22) for the profiles you can use/create without root. (These are just for your knowledge, because Tasker can do lots of stuffs even without root. Which can come handy in some other scenario you want to use in future) **Some ADB Commands I found which can help you**, 1) [Change the default Keyboard using ADB](https://stackoverflow.com/questions/15253983/change-the-default-android-keyboard-using-adb-or-java-code) 2) [Enable Location services On or off](https://android.stackexchange.com/a/114033/167921) **To connect using ADB remotely, [This answer](https://stackoverflow.com/a/3623727/1921481) can help you** The answers in the question above is not using adb shell su, so I'm assuming it will work on non rooted phones aswell (You already found answer for other use cases you mentioned in your question, So hopefully this solves your question). Upvotes: 1
2018/02/28
390
1,516
<issue_start>username_0: I know that when a new version of an app is published to the Play Store, users do not all see it immediately. This is understandable; even Google probably doesn't want its servers being hammered when a popular app is updated. I thought the delay was on the order of days, but now I suspect it's much longer than that. I turned off automatic updates because I like to be aware of when apps are updated in case a new bug is introduced. I check for updates every couple of days. It's not uncommon to see that an app was updated two or three weeks ago, when no such update was visible to me two days ago. Can it really take three weeks for users to see updated versions of apps?<issue_comment>username_1: I guess it depends on how the developer targets the audience . If the developer chooses to do a [staged rollout](https://support.google.com/googleplay/android-developer/answer/6346149?hl=en) > > You can release an app update to production using a staged rollout. With a staged rollout, your update reaches **only** a percentage of your users, which you can increase over time. > > > (Emphasis Supplied) For more details see the link It's best to contact the developer and check Upvotes: 1 <issue_comment>username_2: As far as my experience goes, as the release-manager for a popular app, once I roll out an update to 100%, I see the maximum adoption to the new version within 3-4 days. Given we publish updates weekly and the app has a respectable penetration, YMMV. Upvotes: 2
2018/02/28
751
2,940
<issue_start>username_0: so I have given my old phone to my mom and have forgotten to remove the my gmail account. I want to delete the phone from the "approved" list but I cannot find a way to delete it. I've looked at various guides and the options/settings they are talking about are not available anymore. I am looking at this page: <https://myaccount.google.com/device-activity> Any ideas? I'm trying to avoid changing my password since that means I need to change that on all my devices. Thanks<issue_comment>username_1: It's quite easy. Click on the device you wish to remove and confirm as shown in screenshot below from my list of devices [![enter image description here](https://i.stack.imgur.com/wzKFFm.png)](https://i.stack.imgur.com/wzKFFm.png) [![enter image description here](https://i.stack.imgur.com/UczCim.png)](https://i.stack.imgur.com/UczCim.png) **Edit** Try signing out of that account and signing in from that old phone and check if it shows up. Interestingly, for some users the *remove* button is not visible and there is an [ongoing bug report](https://productforums.google.com/forum/#!topic/play/GNrjCjuoaSQ) for more than a year. You may like to add your complaint the and follow for updates Upvotes: 3 <issue_comment>username_2: If you are unable to remove the device from the `Device activity` section of your Google account because the red button doesn't show up, go instead to [Google Security Checkup](https://myaccount.google.com/security-checkup) and expand `Your devices`, then tap on the 3 dots on the side of the device you want to remove to select the option. Upvotes: 3 <issue_comment>username_3: 1.) When I tried it via google.com/device-activity, the unknown device is listed, last used 4 days ago. The option to remove the unknown device is not available (i.e. no option to remove it, no 'red button'). However it does state that any unused devices after 28 days will be removed from the list. I changed my password 3 days ago. 2.) Going thru the "google security checkup" route, it only shows me a list of actively used devices, which does not include the foreign device. So, I assume Google is the one who will "remove" the unknown device off my "device activity" list in 24 days. As long as I've changed my password I should be OK. Upvotes: 0 <issue_comment>username_4: @reddy-lutonadio and to anyone else that seems to have the same problem I did just now, I had an unrecognized device on my account, a phone I have never owned, and the remove button did not exist, nor did the suggested fix you presented here work either, however, per the suggestion you gave, I discovered that a work-around did exist per your guided tip, however the remove option is not what was shown, sign out was the option needed that did the same job per your recommended link. thank you, and if anyone else sees that same issue, you can follow that link, but click sign out of device instead. Upvotes: 0
2018/03/01
960
3,762
<issue_start>username_0: Android 7.0 introduced the native multi-window API which allows apps to be viewed in split-screen mode globally. However, in actual usage, one downside prevents it from being as useful as some users would imagine. Many apps, when in the multi-window view but not in focus (i.e. user is interacting with another app in the multi-window view), pauses its activities: IM apps would no longer update incoming messages; music/video apps would pause playback; games would not proceed with their actions. The official developer guideline [briefly mentions](https://developer.android.com/guide/topics/ui/multi-window.html#lifecycle) the pausing behavior, and from what I understand, apps need to be programmed with this in mind so as to not exhibit it. But is there a way I can force the way around the limitation as a user? From what I've heard from fellow users, certain manufacturers' Android forks such as MIUI do not show such pausing whatsoever. **TL;DR: Can I prevent the out-of-focus app from pausing in multi-window?**<issue_comment>username_1: No that's not something you can effect as a user, or a developer. The multi-window behavior is defined by Android and any device that calls itself "Android" has implement the [rules for multi-window life cycle](https://developer.android.com/guide/topics/ui/multi-window#lifecycle). The bottom line is the app needs to be coded to respect the resume/pause vs. start/stop differentiation. Prior to the invention of multi window the distinction between the two was tenuous at best. Now it actually matters. In my experience, Google apps do a great job of working with multi window and it's hit or miss with everything else. YMMV. Upvotes: 2 <issue_comment>username_2: Early this November, Google has confirmed that multi-resume - running two apps simultaneously without pausing - will be part of the next major Android release (Q), thus indirectly confirming that this functionality is currently not a part of AOSP Android. However, Google also stated that... > > To help developers provide the best user experience on multi-window > with minimal effort, we're allowing device manufacturers to keep all > apps resumed when in multi-windows in P. > > > To opt-in to this behavior in Android P, add the following meta-data > in your app manifest: > > > > How to test: There are no device at the moment with this behavior but > device manufacturers are working to update existing devices to allow > developers to test. Stay tuned for more details from device > manufacturers. > > > This implies that such functionality will be available in Android P at a later time. As of now (December 2018) though, there is zero reference to `allow_multiple_resumed_activities` in AOSP Android code, meaning that the time has yet to come. Sources: [Google Blog](https://android-developers.googleblog.com/2018/11/get-your-app-ready-for-foldable-phones.html), [XDA-Developers](https://www.xda-developers.com/android-q-splitscreen-multitasking-multi-resume/) --- Android Q beta was released on March 13, 2019, marking the first public debut of the multi-resume feature on non-OEM Android. Unfortunately, there's still no reference to `allow_multiple_resumed_activities` in AOSP Android P code (Q not open-source yet, obviously), and the "There are no device at the moment with this behavior" statement didn't change in the aforementioned blog either - the situation remains unchanged for the majority of users and the custom ROM community. --- As of the formal release of Android 10, multi-resume has been made the default behaviour, as indicated in the [multi-resume design page](https://source.android.com/devices/tech/display/multi_display/multi-resume). Upvotes: 3 [selected_answer]
2018/03/01
404
1,776
<issue_start>username_0: so i made this stupid mistake of uninstalling whatsapp then giving away my phone without resting it to factory settings, so the other person now have my device, could he by a way or another retrieve my uninstalled whatsapp data? In other words, when we uninstall whatsapp, does all the data related to our whatsapp msgs and chats get deleted or do they stay in some form that could be retrieved? I don't know the guy very well so i don't trust him and i'd really appreciate to know what's what so maybe i could make a plan. Thank you.<issue_comment>username_1: There are two separate issues * Factory reset was not done , so it's technically possible to retrieve data but this would involve sophisticated methods *not* in the reach of an average person * As far as WhatsApp is concerned , when you uninstall , the data is not accessible even on installing again since you need to authenticate the telephone number , which I presume it s with you. WhatsApp database is encrypted making it more difficult to retrieve messages but your WhatsApp *pictures, videos and audio* can be accessed IMO, unless the other person is very savvy technically, it's not a cause for concern but then in future do remember to *encrypt your device and factory reset* to ensure that others cannot access your private data Upvotes: 2 <issue_comment>username_2: His gonna dowload his own WhatsApp then put in his own number,the back up of his WhatsApp will appear not yours,remember before going into WhatsApp after downloading it requires you to confirm your number,he cannot do that with someone else's number only his,so do not worry your WhatsApp info is safe and sound,they backed up on cloud somewhere,waiting for the rightful owner and his unique number. Upvotes: 1
2018/03/01
600
2,172
<issue_start>username_0: I really dislike the "feature" where apps can open other apps "inside" their own context. For example, I have a GitHub browser app that has registered the GitHub domain with my phone. When I click on a GitHub link from Chrome, the GitHub browser app opens by itself and is separately closeable (this is good). However when I click on a GitHub link from Yahoo Mail, the GitHub browser app is opened *within* Yahoo Mail, and it's not separately closeable (bad). Is there a setting where I can direct my phone to only open apps directly, preventing the behavior I see in Yahoo Mail?<issue_comment>username_1: > > Apps can launch other apps' activities inside their task. This makes > it impossible to switch back and forth between the two. > > > In that case you may use an Xposed module [ActivityForceNewTask](http://repo.xposed.info/module/com.germainz.activityforcenewtask) (You need [Xposed Framework](https://forum.xda-developers.com/xposed/xposed-installer-versions-changelog-t2714053) installed as well as root) This module sets the `FLAG_ACTIVITY_NEW_TASK` flag when starting a new activity, which 'fixes' that. It basically forces activities launched within applications to create a new task, allowing for much easier switching between the two. In this case if you click on a GitHub link from Yahoo Mail, the GitHub browser app is **not** opened within Yahoo Mail but as a **seperate task** with its own window, and it's separately closeable. --- *Here is an illustration, showing how the module addresses the problem in question*: [![enter image description here](https://i.stack.imgur.com/j1TPyl.png)](https://i.stack.imgur.com/j1TPyl.png) *Credits: <https://forum.xda-developers.com/xposed/modules/mod-activityforcenewtask-t2646504>* Upvotes: 2 <issue_comment>username_2: I solved this issue by using Firefox. You can disable opening links in applications and there is a menu item available called "Open in App". [![Firefox screenshot 1](https://i.stack.imgur.com/NC727.png)](https://i.stack.imgur.com/NC727.png) [![Firefox screenshot 2](https://i.stack.imgur.com/HEwf3.png)](https://i.stack.imgur.com/HEwf3.png) Upvotes: 1
2018/03/02
298
1,237
<issue_start>username_0: I'm using Logitech MK850 bluethooth keyboard and mouse combo on Samsung Galaxy S8+. If I'm using Samsung (default) keyboard, I can switch language (Korean/English) using Kor/Eng switch key on the keyboard (it's actually right Alt key). But I'm using Swiftkey (keyboard app.), this language switch key does not work. Shift + Space does not work either. How can I switch language using the bluetooth keyboard?<issue_comment>username_1: Go to settings-> language and input and then click physical keyboard. Now you can change language of your physical keyboard Upvotes: 0 <issue_comment>username_2: You can try to use some BT-aware helper application (for example, External Keyboard Helper (pro version it is not free, but there is a free demo in Google Play). Upvotes: 0 <issue_comment>username_3: Go to *Settings → Language and Input*, then find *Languages* and select *English* and your language. Now you should be able to use `Ctrl`+`Space` key combination to change languages from the Bluetooth physical keyboard. Upvotes: 2 [selected_answer]<issue_comment>username_4: On my Jademall Bluetooth keyboard connecting to an Android 11 A8, the key combination to change language is `SHIFT` + `SPACE`. Upvotes: 0
2018/03/02
3,336
11,217
<issue_start>username_0: I use `AccuBattery` and `Kaspersky Battery Life` to measure energy consumption. `Kaspersky Battery Life` shows, that all the tasks use minimal energy. `AccuBattery Pro` shows, that phone uses 5-10 mAh. This is a fairly new, 3000 mAh battery. Phone is a `THL T9 Pro`, `Android 6.0` is installed on it. UPDATE: I deleted all the mentioned applications and installed new one, `GSam Battery Monitor` to get detailed data: [![gsam screen](https://i.stack.imgur.com/qNPMhm.png)](https://i.stack.imgur.com/qNPMhm.png) There is data from the built-in usage chart too. I checked applications under Battery optimization, I found there only one, `Google Play Services`. [![built-in chart](https://i.stack.imgur.com/WRX1Um.png)](https://i.stack.imgur.com/WRX1Um.png)<issue_comment>username_1: How to nail **Phone Idle** battery drain is the question, but being unrooted device, it calls for some efforts. Finding the culprit apps isn't as easy as it is on rooted devices but is possible using [adb](/questions/tagged/adb "show questions tagged 'adb'") commands to enable higher privileges 1 (At the time of writing, OP is working on his Linux to detect his device 2. Once done with that, they can follow this answer.) The primary cause of idle drain is *truant* [wakelock](/questions/tagged/wakelock "show questions tagged 'wakelock'") (s) and the answer is around how to detect apps that cause wakelocks that hurt (Wakelocks aren't bad, they are needed but not such ones). It may help to improve [doze-mode](/questions/tagged/doze-mode "show questions tagged 'doze-mode'") performance but more about that later. **All methods below are working on my unrooted device running Oreo 8.0.** Tracking truant apps that cause battery draining wakelocks ========================================================== * **Measuring Battery Drain and first level wakelock detection** Battery usage statistics in Android, unfortunately, don't reveal much and are difficult to interpret (not withstanding the improvements in Oreo). [GSam Battery Monitor](https://play.google.com/store/apps/details?id=com.gsamlabs.bbm&hl=en) is arguably the best for stock devices. One needs to enable *enhanced statistics* (Menu → more → Enable more stats) and follow the steps which are `adb -d shell pm grant com.gsamlabs.bbm android.permission.BATTERY_STATS`**must read 3** For the PRO version, change 'com.gsamlabs.bbm' to 'com.gsamlabs.bbm.pro' (thanks [acejavelin](https://android.stackexchange.com/questions/191668/too-fast-draining-battery#comment248433_191668)). The enhanced statistics gives better view of app usage and wakelocks as shown. Long press of *held awake* (which in OP's case is 77%) shows additional information as shown in the third screenshot. [![enter image description here](https://i.stack.imgur.com/cvCUJm.png)](https://i.stack.imgur.com/cvCUJm.png) [![enter image description here](https://i.stack.imgur.com/ezSl0m.png)](https://i.stack.imgur.com/ezSl0m.png) [![](https://i.stack.imgur.com/CfJQ1m.png)](https://i.stack.imgur.com/CfJQ1m.png) * **Second level bad wakelock detection** (One can optionally start with this step) Download [Wakelock Detector [LITE]](https://play.google.com/store/apps/details?id=com.uzumapps.wakelockdetector.noroot&hl=en) ([XDA thread](https://forum.xda-developers.com/showthread.php?t=2179651)) which works without root (see this [slideshare](https://docs.google.com/presentation/d/1r3VlhZIZVSufZlAeICJet6QBtyAF7z06_ysl1kUKME4/edit#slide=id.g123bc9f140_169_7) for details). Two ways to run without root * As a Chrome extension or on Chromium. OP had issues with this * A better method is adb again `adb shell pm grant com.uzumapps.wakelockdetector.noroot android.permission.BATTERY_STATS` How to use (from Play Store description) > > * Charge your phone above 90% and unplug cable (or just reboot the phone) > * Give it a time (1-2 hours) to accumulate some wakelock usage statistics > * Open Wakelock Detector > * Check the apps on the top, if they show very long wakelock usage time then you found the cause of your battery drain! > > > While 2 hours is enough to gather the information about top culprits, longer duration obviously leads to more data. During data collection, don't use the device and let it be as you would normally use the phone (with data or WiFi connected as is your normal usage). Screenshots below from my device (not under test but normal usage). Left to right, they show Screen Wakelock, CPU Wakelock and Wakeup triggers. Check the top contributors to understand what's draining your battery. [![enter image description here](https://i.stack.imgur.com/GbEjcm.png)](https://i.stack.imgur.com/GbEjcm.png) [![enter image description here](https://i.stack.imgur.com/nJRXQm.png)](https://i.stack.imgur.com/nJRXQm.png) [![enter image description here](https://i.stack.imgur.com/H3MYTm.png)](https://i.stack.imgur.com/H3MYTm.png) Eliminating the bad apps or controlling them ============================================ Once you have identified the culprits, you have three choices * Uninstall them * Replace them with a comparable feature app with less power consumption (assumption being they are better designed and wakelocks don't cause havoc). See [Is there a searchable app catalog that rank applications by power and network bandwith usage?](https://android.stackexchange.com/q/191108/131553) * If you don't want to uninstall because you need the app, then [greenify](/questions/tagged/greenify "show questions tagged 'greenify'") them! Taming wakelocks and improving Doze =================================== [Greenify](https://play.google.com/store/apps/details?id=com.oasisfeng.greenify&hl=en) is a fantastic app but very powerful so needs to be used carefully. Read the [XDA thread](https://forum.xda-developers.com/apps/greenify) and [Greenify tag wiki](https://android.stackexchange.com/tags/greenify/info) for help. I will limit to using adb to unleashing a fair part of its power to help rein in wakelocks and enhancing Doze performance. A word about Doze, which was introduced since Marshmallow. Though it has evolved better, it has some drawbacks from battery saving point of view. * It takes time to kick in, during which apps are active causing drain (even though screen is off) * Doze mode is interrupted when you move the device, for example, when you are moving causing battery drain. Doze kicks in again when you are stationary with a wait period Greenify tackles these problems with *Aggresive Doze* and *Doze on the go* (There are other apps that do this too, like [ForceDoze](https://play.google.com/store/apps/details?id=com.suyashsrijan.forcedoze&hl=en), but Greenify manages both Wakelocks and Doze). [Instructions](https://greenify.uservoice.com/knowledgebase/articles/749142-how-to-grant-permissions-required-by-some-features) for using adb For different features, you need to run adb commands to grant the corresponding permission: * Accessibility service run-on-demand: `adb -d shell pm grant com.oasisfeng.greenify android.permission.WRITE_SECURE_SETTINGS` * Aggressive Doze on Android 7.0+ (non-root): `adb -d shell pm grant com.oasisfeng.greenify android.permission.WRITE_SECURE_SETTINGS` * Doze on the Go: `adb -d shell pm grant com.oasisfeng.greenify android.permission.DUMP` * Aggressive Doze (on device/ROM with Doze disabled): `adb -d shell pm grant com.oasisfeng.greenify android.permission.DUMP` * Wake-up Tracker: `adb -d shell pm grant com.oasisfeng.greenify android.permission.READ_LOGS` * Wake-up Cut-off: (Android 4.4~5.x): `adb -d shell pm grant com.oasisfeng.greenify android.permission.READ_LOGS` `adb -d shell pm grant com.oasisfeng.greenify android.permission.WRITE_SECURE_SETTINGS` Background-free enforcement on Android 8+ (non-root): ``` adb -d shell pm grant com.oasisfeng.greenify android.permission.READ_APP_OPS_STATS ``` I will restrict to snapshots of settings from my device to help set it up faster after running adb commands above. I have pro version so ignore those donation settings [![enter image description here](https://i.stack.imgur.com/0h30Sm.png)](https://i.stack.imgur.com/0h30Sm.png) [![enter image description here](https://i.stack.imgur.com/KAVxdm.png)](https://i.stack.imgur.com/KAVxdm.png) With those settings, even when the device is running, you will see a hibernation alert in your status bar with the app icon and in your notification panel. Clicking on that will force close and hibernate the app [![enter image description here](https://i.stack.imgur.com/CjZo3.png)](https://i.stack.imgur.com/CjZo3.png) You can also hibernate errant apps from Wakelock Detector by long pressing on the app [![enter image description here](https://i.stack.imgur.com/6F63T.png)](https://i.stack.imgur.com/6F63T.png) **Caution:** Be **very** careful with what you want to hibernate. Simple rule - don't hibernate apps that are critical to you. Hibernate you errant apps that are not critical **Edit** [BetterBatteryStats](https://play.google.com/store/apps/details?id=com.asksven.betterbatterystats&hl=en) ([XDA thread](https://forum.xda-developers.com/showthread.php?t=1179809)) is a very powerful tool which has been recently (end Feb 18) updated to work with Oreo and sweeter still is that escalated privileges using adb is possible `adb -d shell pm grant com.asksven.betterbatterystats android.permission.BATTERY_STATS` `adb -d shell pm grant com.asksven.betterbatterystats android.permission.DUMP` On Lollipop and forward, additionally run: `adb -d shell pm grant com.asksven.betterbatterystats android.permission.PACKAGE_USAGE_STATS` [![enter image description here](https://i.stack.imgur.com/gnaalm.png)](https://i.stack.imgur.com/gnaalm.png)[![enter image description here](https://i.stack.imgur.com/imSBRm.png)](https://i.stack.imgur.com/imSBRm.png) Happy Wakelock hunting! * **I've done everything you suggested but it didn't help** It's likely that a system app is causing the Wakelocks for which there isn't much you can do on an unrooted device 4 --- --- * 1 [Is there a minimal installation of ADB?](https://android.stackexchange.com/q/42474/131553) and for the latest version refer to Izzy's [awesome repo](https://android.izzysoft.de/downloads). Also see this [XDA guide](https://www.xda-developers.com/install-adb-windows-macos-linux/) * 2 [How do I get my device detected by ADB on Linux?](https://android.stackexchange.com/q/144966/131553) * **must read 3**: For all adb permissions to stick, force stop app to let the granted permission take effect. You can either do it in system "Settings → Apps → App name → Force stop", or execute this command: `adb -d shell am force-stop com.` * 4 [How to deal with (orphaned) WakeLocks?](https://android.stackexchange.com/q/34969/131553) Upvotes: 4 [selected_answer]<issue_comment>username_2: if you want to just use adb to tune Doze without extra Apps. you might be interested in <https://github.com/easz/doze-tweak> and if you don't want to install extra Apps, you can profile your battery with `adb bugreport` and analyze it with Battery Historian (e.g. <https://bathist.ef.lc/>). After identifying bad Apps, you can disable or restrict them. Upvotes: 1
2018/03/02
751
2,912
<issue_start>username_0: I'm aware that I don't need a SIM card to continue using my WhatsApp account after the initial activation. But say, hypothetically, I went into a pool with my phone inside my pocket and my SIM stopped working as a consequence, and I don't want to buy a new since I never use mobile data. When the carrier inevitably cancels my number and sells it to another person, and said person activates his WhatsApp account with that number, will I still be able to send and receive messages on my account?<issue_comment>username_1: Simple answer **No you can't use that account anymore** Reason being that WhatsApp is linked to your number. If the carrier sells that number and new owner activates WhatsApp , they will be prompted to authenticate and a new account is created for them. If they don't install WhatsApp you are good to go to the next time Whatsapp asks for authentication Actions to be taken for change of number *before* changing number are mentioned in [WhatsApp FAQ](https://faq.whatsapp.com/en/android/28000018/?category=5245246) Upvotes: 2 [selected_answer]<issue_comment>username_2: If you didn't activate the two-step verification, the new owner of the phone number will be the owner of your WhatsApp account. He won't of course have access to your previous messages, but he will receive new messages destined to yourself. He may even be seen with your profile picture and status. See this interesting Vice article : <https://www.vice.com/en/article/bv8mqd/how-i-hacked-whatsapp-account> Bottom line is : protect your account with 2-step verification. The new owner of your previous phone number won't be able to access your account, because he won't have your PIN. But after 7 days, he will be able to create a new WhatsApp account linked to your old number, and your account will be deactivated. See <https://faq.whatsapp.com/general/verification/about-registration-and-two-step-verification/?lang=en> : > > If you didn't enable two-step verification, but are prompted to enter a PIN, the previous owner of the phone number might have enabled it. In this case, you'll need to wait 7 days before resetting the PIN to access your account. > > > Additional info : if you don't use your WhatsApp account for 45 days, and it's activated on another device, WhatsApp will consider that the number has been recycled and will create a new account linked to that number. See <https://faq.whatsapp.com/general/account-and-profile/seeing-your-phone-number-already-in-whatsapp/?lang=en> : > > To help eliminate confusion with recycled phone numbers, we monitor account inactivity. If an account is unused for 45 days and then becomes newly activated on a different mobile device, we take this as a sign that a number has been recycled. At this time, we'll remove the old account data tied to the phone number - like the profile photo and About section. > > > Upvotes: 0
2018/03/03
738
2,816
<issue_start>username_0: I am using Facebook Messenger without a Facebook account (only a mobile number), and would like to transfer my messages from one Android phone to another. What is the best way to do this? I have tried using [Helium Backup](https://play.google.com/store/apps/details?id=com.koushikdutta.backup&hl=en) but it does not backup Facebook Messenger. [Titanium Backup](https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup&hl=en) unfortunately is not an option as the phone cannot be rooted (rooting it would require a data reset, which would delete the messages).<issue_comment>username_1: You can log in to facebook using that phone number and password whether or not that is the phone you are on, you could even log in to the website. Upvotes: 0 <issue_comment>username_2: **Added March 2019:** the "Account Key Backup" seems to have been removed from Messenger, so I have updated this answer. According to a [Messenger help page](https://www.facebook.com/help/messenger-app/1923081331058499?helpref=hc_fnav), > > In order to switch to a different account or access your account on another device, you'll need to add a password. To add a password to your account: > > > 1. From **Chats**, tap your **profile picture** in the top left corner. > 2. Scroll down and tap **Password**. > 3. Tap to enter a password and tap **OK**. > > > You should now have a password associated with your account and can Switch Account > > > The Messenger help page currently states "This feature is not currently available for Android" but it is present in the Android app. --- **Old solution: (cannot be used anymore)** To transfer Facebook Messenger conversations to a new phone without a Facebook account, while keeping the same phone number, do the following. 1. On the old phone, open Messenger and tap your profile picture to go to your profile settings. 2. Tap "Account Key Backup". 3. Select the option to back up your account key to Google Drive. After the backup has been made, Messenger will say > > Account Key Backed Up - Your account key is saved to Google Drive with the email address \*\*\*. You'll be able to sign into Messenger if you switch phones or uninstall the app. > > > 4. On the new phone, install Messenger, and open it. 5. Select the option "I do not have a Facebook account", and enter your phone number. You will receive an SMS with a verification code to enter in Messenger. 6. Messenger will ask you if you want to continue with your existing account; answer yes. Messenger will tell you that an account key has been found on Google Drive and use it to copy your conversations. However, secret conversations won't be copied. You will be logged out of Messenger on the old phone, and will no longer be able to use Messenger there. Upvotes: 1
2018/03/04
673
1,895
<issue_start>username_0: I accidently turned off the setting that allows google to appear when you swipe left instead of cycling through the screens of apps. I unfortunately cannot now find that setting to turn it back on, even though I have done several searches on the settings app, and opened every setting, have not been able to find it again. I have no idea what I did to make it turn on, it just came up and I wanted to see what it has done. I have completed several google searches such as [this](https://www.google.co.uk/search?ei=uSmcWsLHCObLgAb984fgAw&q=android+setting+for+google+app+on+home+screen+swipe+left&oq=android+setting+for+google+app+on+home+screen+swipe+left&gs_l=psy-ab.3..33i21k1.360751.370574.0.370683.72.61.5.0.0.0.184.5966.29j27.57.0....0...1.1.64.psy-ab..11.58.5806.6..0j35i39k1j0i131i67k1j0i67k1j0i131k1j0i20i263k1j0i22i30k1j33i22i29i30k1j33i160k1.140.veQeH1Cc8E8) one prior to my request. However I have not been able to find anything. Where can I go to find this setting? I have Android 7.1 on a Nokia 6.<issue_comment>username_1: > > Long press on an empty space on your home screen. Then select the > settings at the bottom right. Then make sure the *Show Google App* is > toggled on. > > > Credits: [Swipe left for Google Now not working?](https://www.reddit.com/r/GooglePixel/comments/5mypq1/swipe_left_for_google_now_not_working/?st=jed3hox3&sh=e92de4e0) Upvotes: 4 [selected_answer]<issue_comment>username_2: 1. Check if Google search (with OK Google) is available on the home screen, if yes, 2. Click on the G icon, which will open the personalised updates (cards), in the bottom right corner click on more (...), which will open a new tab 3. Here, (top of the screen) if you have multiple email addresses, check if the selected email address is correct. (this was the corrective action taken by me to get back the required feature) Upvotes: 0
2018/03/05
293
1,108
<issue_start>username_0: Is it possible to set the window animation scale to 0.25 on OxygenOS 5.0.4? The closest options I see are 0.0 and 0.5, but I'm hoping there would be a way to do this with root access.<issue_comment>username_1: If there isn't option in developer settings for that value of animation scale then there is [this](https://play.google.com/store/apps/details?id=com.zacharee1.systemuituner) app. App doesn't require root but you'll have to grant some permissions via ADB, you have guide how to do that when you launch app. Now when you do that under miscellaneous section there are animation speeds where you can set it to any value you want. Keep in mind that when you restart the device in most cases all modifications you made with app and permissions you granted are gone so you'll need to do it again. I say in most cases because to me sometimes happened that everything is fine and sometimes I needed to do it again. Upvotes: 1 <issue_comment>username_2: It seems [jOnePlus Tools](https://play.google.com/store/apps/details?id=net.jroot3d.joneplustools&hl=en) can do this. Upvotes: 0
2018/03/08
497
1,876
<issue_start>username_0: I'm android Marshmallow user. and I want to resent my password using android device manager. I signed in my google account and went to google's android device manager and it's not showing any option to reset the password. [![ADM window](https://i.stack.imgur.com/8SM9sm.jpg)](https://i.stack.imgur.com/8SM9sm.jpg) I went through some tutorial on google and they've shown this option with screenshot. But i'm enable to find it right now. can somebody pls help thanks in advance<issue_comment>username_1: Resetting pattern / password using ADM is possible for devices [running 4.4 or lower only](https://support.google.com/nexus/answer/3388218?hl=en) . Also see this [on Google forums](https://productforums.google.com/forum/#!topic/nexus/RxHohpnDWjM) Your way out is to reset your device after logging out of the Google account to prevent factory reset protection issues or keep guessing the password till you get it right Upvotes: 2 <issue_comment>username_2: Here’s [how to Unlock your Android device using Android Device Manager](https://www.cyclonis.com/how-unlock-android-phone-without-data-loss-if-forgot-password/). 1. Get on your PC or borrow a phone or tablet from a friend and go to "[Forwarding ...](https://www.google.com/android/find)". 2. Sign into your Google account that you use on your locked phone. 3. Choose the phone you want to attack in Android Device Manager. Choose "Lock". 4. A window will appear, which will prompt you for a password. Enter a new password. 5. Hit "Lock" a second time. 6. You'll get a confirmation message if everything went right. 7. Unlock your phone with the new password. 8. Finally, go to your phone's settings and remove the new password unless you want to keep using it. 9. Unlock your Android lock screen pattern with your Google Login (only works on Android 4.4 and older versions). Upvotes: 0
2018/03/09
702
2,780
<issue_start>username_0: My phone randomly shows the Download Manager downloading "Google play". I usually cancel this download since it seems fishy to me, and that's what my question (asked below) is about. Since this sounds all too common and like many questions posted here, let me clarify what this is not: * This is not a download within the Google Play store. * All apps are up to date in my play store. * My OS was recently updated to Oreo (Samsung Galaxy S8). * All my Samsung apps are also up to date. * As far as I can tell, I have set all updates to happen only on wifi, not on mobile data connections. * The download is happening via Download Manager. Long-press etc shows me info about the default "download manager" app itself, not about what it is trying to download. This reeks of malware to me, wherein some shady app might have just named itself "Google Play" so that I allow it to be downloaded and run it. A malware scan shows nothing (of course, I aborted the attempted download so that file was not scanned, but there seems to be no trojan trying to download more stuff) My questions are: * Has anyone seen this issue? Is it a regular deal, so that I should just let the phone do what it wants? * If this is "business as usual", how do I set it to happen on wifi and not on mobile data? * If this seems suspicious, what steps could I take to further investigate / remove the problem?<issue_comment>username_1: Resetting pattern / password using ADM is possible for devices [running 4.4 or lower only](https://support.google.com/nexus/answer/3388218?hl=en) . Also see this [on Google forums](https://productforums.google.com/forum/#!topic/nexus/RxHohpnDWjM) Your way out is to reset your device after logging out of the Google account to prevent factory reset protection issues or keep guessing the password till you get it right Upvotes: 2 <issue_comment>username_2: Here’s [how to Unlock your Android device using Android Device Manager](https://www.cyclonis.com/how-unlock-android-phone-without-data-loss-if-forgot-password/). 1. Get on your PC or borrow a phone or tablet from a friend and go to "[Forwarding ...](https://www.google.com/android/find)". 2. Sign into your Google account that you use on your locked phone. 3. Choose the phone you want to attack in Android Device Manager. Choose "Lock". 4. A window will appear, which will prompt you for a password. Enter a new password. 5. Hit "Lock" a second time. 6. You'll get a confirmation message if everything went right. 7. Unlock your phone with the new password. 8. Finally, go to your phone's settings and remove the new password unless you want to keep using it. 9. Unlock your Android lock screen pattern with your Google Login (only works on Android 4.4 and older versions). Upvotes: 0
2018/03/09
631
2,330
<issue_start>username_0: I want to restore factory android on my Nexus 7 2012 WiFi. I'm following [the official guide](https://developers.google.com/android/images). I start the device in fastboot mode by executiong: ``` adb reboot bootloader ``` This works well. But **when I run any command that uses** `fastboot` **the execution gets stuck**, eg: ``` $ fastboot oem unlock < waiting for any device > ``` The same issue with `flash-all.sh`. I also noticed that if I run ``` adb devices ``` it doesn't list the tablet. However it gets listed if I run the same command after entering Recovery Mode (I have TWRP recovery). **More details/preconditions:** I used to have CianogenMod on the device but I smashed it by mistake (I removed Android in recovery mode instead of simply wiping the data). I can't find the CianogenMod image anymore on LinageOS site (there is only Nexus 2013 available) so I'm trying to install at least what is available.<issue_comment>username_1: Resetting pattern / password using ADM is possible for devices [running 4.4 or lower only](https://support.google.com/nexus/answer/3388218?hl=en) . Also see this [on Google forums](https://productforums.google.com/forum/#!topic/nexus/RxHohpnDWjM) Your way out is to reset your device after logging out of the Google account to prevent factory reset protection issues or keep guessing the password till you get it right Upvotes: 2 <issue_comment>username_2: Here’s [how to Unlock your Android device using Android Device Manager](https://www.cyclonis.com/how-unlock-android-phone-without-data-loss-if-forgot-password/). 1. Get on your PC or borrow a phone or tablet from a friend and go to "[Forwarding ...](https://www.google.com/android/find)". 2. Sign into your Google account that you use on your locked phone. 3. Choose the phone you want to attack in Android Device Manager. Choose "Lock". 4. A window will appear, which will prompt you for a password. Enter a new password. 5. Hit "Lock" a second time. 6. You'll get a confirmation message if everything went right. 7. Unlock your phone with the new password. 8. Finally, go to your phone's settings and remove the new password unless you want to keep using it. 9. Unlock your Android lock screen pattern with your Google Login (only works on Android 4.4 and older versions). Upvotes: 0
2018/03/10
841
3,253
<issue_start>username_0: The term flashing in Android communities seems to be interchangeable with "Install" > > Because Google's apps are not open source, custom ROMs can't bundle Google's apps -- like Gmail, Hangouts, or the Play Store -- with their ROMs. That means you'll need to download and flash them separately. > > > From [How To Flash A ROM To Your Android Phone](https://www.lifehacker.com.au/2014/01/how-to-flash-a-rom-to-your-android-phone/) So if this is the case where does the term flashing come from?<issue_comment>username_1: > > The procedure of **modifying** or **replacing** the contents of such > flash memory i.e ROM is known as **flashing**. Thus, in layman’s terms, > flashing is essentially the same as installing or modifying the > firmware of a device that is stored on its protected flash memory. > > > Such modification can be perfomed on a special partition of the system called **recovery**. > > In Android, recovery refers to the dedicated, bootable partition that > has the recovery console installed > > > When you perform a factory reset, recovery is what boots up and erases the files and data. Likewise with updates — when restarting to install an official OS update, it's done in recovery. Recovery is also where one goes to manually install official OS updates downloaded from the Internet. (There are two types of recovery; stock recovery and custom recovery, but I'm not going to discuss it here) **Flashing** is the term originally used to describe the "modifying or replacing the contents of ROM memory, and has been traditionally used to install fresh OS from **custom ROMs**, The term also embraces the operation of mounting various partitions in order to copy files to the SD card without having to remove it or reboot into Android as well as **applications from a zip file** through recovery, has now come to be associated with installing. While most apps for Android devices are available at the app store for direct download and installation or as .apk files for direct installation, there are certain apps which are only available as zip files installable from recovery. Their **installation procedure** is the same as installing a custom ROM described. Hence the reason, terms ‘installing’ and ‘flashing’ can be used interchangeably to mean the same thing . **References** 1. [What Is Meant By Firmware, Stock & Custom ROMs And Flashing](https://www.addictivetips.com/mobile/what-is-meant-by-firmware-stock-custom-roms-and-flashing-guide/) 2. [What is Android recovery?](https://www.androidcentral.com/what-recovery-android-z) 3. [How To Install A ROM Or App From Zip File To Android Device From Recovery](https://www.addictivetips.com/mobile/how-to-install-a-rom-or-app-from-zip-file-to-android-device-from-recovery/) Upvotes: 2 <issue_comment>username_2: ROM is a short for read-only memory. Nowadays, it is often a writable memory that is not written in normal operation. In past days, it used to be rather EPROM/EEPROM. The term flashing probably comes from era of EPROM, which can be erased using a strong UV light. Erasure of whole memory is needed before EPROM is written. This is not the case of current flash memories, but the term “flashing” remains. Upvotes: 2
2018/03/12
464
1,598
<issue_start>username_0: I'm using `Google Pixel XL` / `Android 8.1.0` w/ March 5, 2018 security patch level. Yet, I've got following pop-up on my screen: [![1](https://i.stack.imgur.com/q6xl9m.png)](https://i.stack.imgur.com/q6xl9m.png) [![2](https://i.stack.imgur.com/0f4pum.png)](https://i.stack.imgur.com/0f4pum.png) --- Per `Play Protect` - "Looks good" - No harmful apps found. I understand one of way to go about it is to do `Factory Reset`, however is there another way which doesn't involve `Factory Reset`? I'm not really sure, how this virus got on my phone at the first place as I don't install anything outside of Play Store, any ideas what can be done to avoid this in future? Please advise.<issue_comment>username_1: I've seen these windrows in the past. Not sure if its a virus or just a popup trying to get you to download one. When it came up on mine, it came up simultaneously with a window I "DID" ask for. I closed the window with those messages, and moved to what I actually clicked on. Upvotes: 0 <issue_comment>username_2: It it **absolutely nothing** to worry. Feel at ease and close that shitting tab. There's a special word, or terminology, for this kind of behavior of a random webpage, "scareware". Scaring pages frighten and threaten you by telling you that you're in danger, and try to make you download their promoted software (or even a *real* virus - though that's rare but that *does* happen from time to time). Next time whenever you see something like this, close the tab with confidence. You're in no real danger. It's just a fake page. Upvotes: 1
2018/03/12
1,068
3,739
<issue_start>username_0: Seems that in Chrome for Android [version 65](https://blog.chromium.org/2018/02/chrome-65-beta-css-paint-api-and.html), a "feature" was introduced which doesn't allow you to take a screenshot in Incognito mode. When attempting to take a screenshot, Android will now show an alert saying "Taking screenshots isn't allowed by the app or your organization." ``` /** * Sets the attributes flags to secure if there is an incognito tab visible. */ @VisibleForTesting void updateIncognitoState() { WindowManager.LayoutParams attributes = mWindow.getAttributes(); boolean currentSecureState = (attributes.flags & WindowManager.LayoutParams.FLAG_SECURE) == WindowManager.LayoutParams.FLAG_SECURE; boolean expectedSecureState = isShowingIncognito(); if (currentSecureState == expectedSecureState) return; if (expectedSecureState) { mWindow.addFlags(WindowManager.LayoutParams.FLAG_SECURE); } else { mWindow.clearFlags(WindowManager.LayoutParams.FLAG_SECURE); } } ``` Source: [chrome/android/java/src/org/chromium/chrome/browser/incognito/IncognitoTabSnapshotController.java](https://chromium.googlesource.com/chromium/src/+/8e084f697e8acfe1d1752dee702d8d73eb9655b0/chrome/android/java/src/org/chromium/chrome/browser/incognito/IncognitoTabSnapshotController.java) This is imposing rules you can expect to have in a enterprise environment on a personal phone. > > The operation system UI should make clear when and how other apps are recording the screen. As an app developer, I should not be bothered with avoiding screen captures. Breaking this functionality breaks the lowest common denominator of data sharing: Taking a screenshot. One of the reason to make a screenshot is just because an application misses a proper data export functionality. > > > Source: [HN Discussion](https://news.ycombinator.com/item?id=16572761) > > [![](https://i.stack.imgur.com/3I7STm.jpg)](https://i.stack.imgur.com/3I7STm.jpg) > > > Is there any way to disable or prevent this behavior?<issue_comment>username_1: This appears to be a side-effect [hiding incognito tabs from the recent apps list](https://chromium-review.googlesource.com/c/chromium/src/+/809508), which is intended as a privacy feature. They also added an `--enable-incognito-snapshots-in-android-recents` switch to change this behavior, but unfortunately that's not easy to pass on Android, and there isn't an entry in `chrome://flags`. I didn't find anyone requesting a way to make it (easily) optional; I suggest filing a bug report about the screenshot-blocking side effect; that switch should at least be exposed as a flag. Upvotes: 3 <issue_comment>username_2: **Update:** 1. Navigate to `chrome://flags` [![](https://i.stack.imgur.com/1qGCHm.jpg)](https://i.stack.imgur.com/1qGCHm.jpg) 2. Search for "Incognito Screenshot" and mark and mark the `incognito-screenshot` as **Enabled** [![](https://i.stack.imgur.com/Y5t3um.jpg)](https://i.stack.imgur.com/Y5t3um.jpg) 3. Restart Chrome --- **Previous workaround:** For now, the workaround to take screenshots in Incognito mode is the following: 1. Navigate to `chrome://flags` 2. Search for "share-screenshot" and mark the `chrome-share-screenshot` as **Enabled** [![](https://i.stack.imgur.com/Rsr9nl.jpg)](https://i.stack.imgur.com/Rsr9nl.jpg) 3. Restart Chrome 4. Open Incognito mode, click the share button below the address bar [![](https://i.stack.imgur.com/TaJzgl.jpg)](https://i.stack.imgur.com/TaJzgl.jpg) 5. Select **Screenshot** and then **Save** [![](https://i.stack.imgur.com/YMhSgl.jpg)](https://i.stack.imgur.com/YMhSgl.jpg) Upvotes: 3 [selected_answer]
2018/03/13
239
873
<issue_start>username_0: When i get an incoming call, the ringer rings but the incoming call UI do not show up, instead the following notification is shown in the notification area: [![Notification](https://i.stack.imgur.com/Pmz6Xm.jpg)](https://i.stack.imgur.com/Pmz6X.jpg). So in order to answer the call i have to open the Phone app select the 'Return to call in progress' option, see the Screenshot: [![Phone App](https://i.stack.imgur.com/wUpzkm.jpg)](https://i.stack.imgur.com/wUpzk.jpg) Fixed: Cleared the storage and cache of the Phone app. Now it is working fine.<issue_comment>username_1: This happens when your hardware is finding it difficult to deliver an appropriate screen. Try rebooting and phone would be fine. Upvotes: -1 <issue_comment>username_2: I cleared the storage and cache of the Phone app. Now it is working fine. Upvotes: 1 [selected_answer]
2018/03/15
298
1,318
<issue_start>username_0: I installed two Google Play applications and saw, that they are actually the same app (completely same functionality and database) with only different splash screens. Isn't it against the rules?<issue_comment>username_1: That would depend largely on the app's license. Many open source licenses allow for such "forking". Upvotes: -1 <issue_comment>username_2: It's not *normal* but there's nothing to forbid a developer releasing multiple variants of the same product with different branding. Some companies even develop *white box* apps, which their customers add their branding to and publish, the same way that one off-brand gadget or home appliance is sold by different companies under different names. It's only forbidden if one developer violates copyright by publishing another developer's app without their consent; for example, if I decompile the APK of Angry Birds, replace the name and splash screens with "Bangin' Avians", and publish it on Google Play, then I'm violating Rovio's copyright on their product. Upvotes: 1 <issue_comment>username_3: If they're from the same developer or the software is open-source or maybe they're using a wrapper SDK, it's okay. But there're also softwares that are truely stealing other people's code as I have encountered such cases. Upvotes: 0
2018/03/15
333
1,394
<issue_start>username_0: I have a Huawei smartphone, which unfortunately bricked and stuck in a bootloop when I flash Magisk. It even got stuck getting into recovery mode. Can't find its firmware for now (Nova 2i - RNE-L22). Factory reset / wipe data also doesn't seem to work. What should I do?<issue_comment>username_1: That would depend largely on the app's license. Many open source licenses allow for such "forking". Upvotes: -1 <issue_comment>username_2: It's not *normal* but there's nothing to forbid a developer releasing multiple variants of the same product with different branding. Some companies even develop *white box* apps, which their customers add their branding to and publish, the same way that one off-brand gadget or home appliance is sold by different companies under different names. It's only forbidden if one developer violates copyright by publishing another developer's app without their consent; for example, if I decompile the APK of Angry Birds, replace the name and splash screens with "Bangin' Avians", and publish it on Google Play, then I'm violating Rovio's copyright on their product. Upvotes: 1 <issue_comment>username_3: If they're from the same developer or the software is open-source or maybe they're using a wrapper SDK, it's okay. But there're also softwares that are truely stealing other people's code as I have encountered such cases. Upvotes: 0
2018/03/16
626
1,988
<issue_start>username_0: I need to share wifi connection from my Moto to iPhone over Bluetooth with minimal or no manual interaction on Moto G. How can I make Bluetooth Tethering always enabled (On) at a LineageOS 14.1 device? Alternatively, how can I setup Tasker script to enable Bluetooth tethering on Moto G 2nd gen LTE (XT1079), running LineageOS 14.1 (build 20170922)?<issue_comment>username_1: Additional requirements: * [Secure Settings](https://play.google.com/store/apps/details?id=com.intangibleobject.securesettings.plugin) **Task** * Go to the Task tab and select **"New Task + "** * You can name this Task *AutoBluetoothTether* or anything. * Click **"+"** to add new Action * Plugin → Secure Settins → [Configuration: Actions → BT Tether] → On (Tick *Automatically Enable Bluettooth* option) Be sure to pair your Android device with Iphone (via bluetooth) prior and also you can set your profile to react to wi-fi connection i.e State → Wi-fi Connected (set SSID) Upvotes: 0 <issue_comment>username_2: [Automate](https://play.google.com/store/apps/details?id=com.llamalab.automate&referrer=utm_source%3Dreddit) can do so using its [Bluetooth tethering set state block](http://llamalab.com/automate/doc/block/bluetooth_tether_set_state.html), no additional plug-ins required. Upvotes: 1 <issue_comment>username_3: > > The Automate block doesn't work on my device (Android 8.0, MIUI 9). And the Tasker solution requires a non-free plugin Secure Setting. > > > Run this(root required) to enable bluetooth tethering: `service call connectivity 24 i32 2 null i32 0` It calls [startTethering()](https://github.com/aosp-mirror/platform_frameworks_base/blob/e80b45506501815061b079dcb10bf87443bd385d/core/java/android/net/IConnectivityManager.aidl#L80), while `24` represents `startTethering` and `2` represents `TETHERING_BLUETOOTH`. Tested on Android 8.0. You can check the interface definition(aidl) for your version if it didn't work on older devices. Upvotes: 0
2018/03/18
604
2,023
<issue_start>username_0: I am trying to connect andriod debug shell to oneplus 2, i have enabled USB debugging on my mobile and installed google usb drivers via sdk manager but still adb couldnt detect the mobile i tried restarting adb server also still facing same issue. I even tried updating the driver via device manager but not luck it says MTP driver is already installed. Can anyone please help me here.<issue_comment>username_1: Additional requirements: * [Secure Settings](https://play.google.com/store/apps/details?id=com.intangibleobject.securesettings.plugin) **Task** * Go to the Task tab and select **"New Task + "** * You can name this Task *AutoBluetoothTether* or anything. * Click **"+"** to add new Action * Plugin → Secure Settins → [Configuration: Actions → BT Tether] → On (Tick *Automatically Enable Bluettooth* option) Be sure to pair your Android device with Iphone (via bluetooth) prior and also you can set your profile to react to wi-fi connection i.e State → Wi-fi Connected (set SSID) Upvotes: 0 <issue_comment>username_2: [Automate](https://play.google.com/store/apps/details?id=com.llamalab.automate&referrer=utm_source%3Dreddit) can do so using its [Bluetooth tethering set state block](http://llamalab.com/automate/doc/block/bluetooth_tether_set_state.html), no additional plug-ins required. Upvotes: 1 <issue_comment>username_3: > > The Automate block doesn't work on my device (Android 8.0, MIUI 9). And the Tasker solution requires a non-free plugin Secure Setting. > > > Run this(root required) to enable bluetooth tethering: `service call connectivity 24 i32 2 null i32 0` It calls [startTethering()](https://github.com/aosp-mirror/platform_frameworks_base/blob/e80b45506501815061b079dcb10bf87443bd385d/core/java/android/net/IConnectivityManager.aidl#L80), while `24` represents `startTethering` and `2` represents `TETHERING_BLUETOOTH`. Tested on Android 8.0. You can check the interface definition(aidl) for your version if it didn't work on older devices. Upvotes: 0
2018/03/18
718
2,779
<issue_start>username_0: How can you block ads on a non rooted phone. I tried rooting and have no success.<issue_comment>username_1: Adguard is a good option (as suggested above) given it can employ more than one way of filtering ads from traffic. It can utilise local VPN or local HTTP proxy, but can have significant battery drain. A more lightweight option may be using DNS66, an open source application available for free on the [F-Droid Repository](https://f-droid.org/repository/browse/?fdid=org.jak_linux.dns66). > > DNS66 uses DNS level filtering to filter ad traffic. This means that > it only filters the ad traffic for a specific amount of time after > your device is connected to the internet. Therefore there will not be > any significant battery drain when you are using DNS66 to block ads > across the system of your Android device. > > > After installing, head to the **Hosts** tab at the top of the screen. From here, you'll have to pick at least one ad-blocking hosts file, which is basically a list of known ad servers that DNS66 will block for you. [![enter image description here](https://i.stack.imgur.com/uRYhtl.jpg)](https://i.stack.imgur.com/uRYhtl.jpg) Now you have to select the hosts file which contains the list of popular ad servers that are hosting the ads you see across the websites and apps. The most recommmended one is *Adaway hosts* (as it covers most popular ad servers) and then click on the Action option and select deny. This will now block all the ads that are hosted by the servers in the Adaway host file’s list. From here, head back to the Start tab from the top menu, then tap the "Start" icon near the bottom of the screen to start the VPN ad-blocking service. acknowledgements * [Block Ads in All Your Android Apps Without Root or Extra Battery Drain](https://android.gadgethacks.com/how-to/block-ads-all-your-android-apps-without-root-extra-battery-drain-0174614/) Upvotes: 2 <issue_comment>username_2: If you wish to keep your phone not rooted you still have several options. * use ad block apps on your phone * install AdBlock chrome extension for android * configure your router to block specific sites (not all of them has this feature) * deploy your own proxy to block what you want I've been in similar situation before and figured out that the best option for me it the 4th one. So I created a pre-configured squid image deployed in docker on raspberry pi, opened the port on my router and set RPI external ip address as proxy. Since then I have no ads on my phone, not on any site not in the apps and I don't have to worry about privacy because I manage the proxy. The docker image, its source code and a short documentation are available here: <https://github.com/andrassebo/squid-adblock> Upvotes: 0
2018/03/19
522
1,835
<issue_start>username_0: I just switched from iOS to Android. I bought a Samsung Galaxy S9+ and I am looking for a quick way to enable Do Not Disturb. iOS has a simple button to enable DND. However, I cant find a way to do this on my phone. Everything I google, doesnt seem to apply to this phone or android version. I tried [this](https://www.addictivetips.com/android/how-to-add-a-do-not-disturb-switch-to-the-volume-controls-in-android-7/), but it doesnt seem to apply to my phone.<issue_comment>username_1: Android 4.4. there is such a function. in the curtain. convenient, beautiful, functional. [![enter image description here](https://i.stack.imgur.com/YS1Ls.jpg)](https://i.stack.imgur.com/YS1Ls.jpg) [![enter image description here](https://i.stack.imgur.com/dsM9V.png)](https://i.stack.imgur.com/dsM9V.png) Upvotes: 1 <issue_comment>username_2: The Do not Disturb setting is easily accessible in the notification panel on most Android devices. To find it on a Galaxy S9+, using two fingers, swipe from the top of the screen, and you'll see all available quick settings. You should see DND mode as one of the option. (If it's not there, swipe the screen to the right or to the left to find it) Tap on the DND setting to turn it on or off. Long press on it to enter more DND settings. Below, is a screenshot of how this looks on a galaxy S8. it looks similar On an S9+ [![enter image description here](https://i.stack.imgur.com/4iaSbm.jpg)](https://i.stack.imgur.com/4iaSbm.jpg) **How to move it to a more convenient place:** To move the quick setting to a more convenient place like next to the WiFi setting, all you have to do, is press on the three dots (circled with green in the screenshot) and press on *button order* this will give you access to changing the order of the settings. Upvotes: 3 [selected_answer]
2018/03/19
1,208
4,578
<issue_start>username_0: I'm looking at the "Battery" section under "Settings", and there's two major sections: 1. a graph that shows how full the battery has been over some period 2. Which apps have used the most battery power over (what appears to be) that same period. There's a label between the two sections that says "Use since last full charge" And I can't figure out what constitutes "full charge". Things I've tried: 1. Not letting the battery get full. (thought it would be this simple a couple of months ago when I started this investigation, but it's not this simple) 2. Not letting the battery get empty (it seems to reset the stats more when the battery is low, 3. Time charging (it also seems to happen if it's a short or a long charge) So, I guess what I'm asking is, "What is it precisely that resets the battery stats?" Android is open source? Does this mean the code is readily available to look through? Where would I get started to try to figure it out myself? Is this kept in a battery library? Where's the source code for that? Here's an example of when it reset at about 75%. [![enter image description here](https://i.stack.imgur.com/2HpMe.png)](https://i.stack.imgur.com/2HpMe.png) I'm running 7.1.1<issue_comment>username_1: > > "What is it precisely that resets the battery stats?" > > > Quoting from an old post by a [Google engineer](https://plus.google.com/u/0/+DianneHackborn/posts/FV3LVtdVxPT) > > ....it is reset every time you unplug from power with a relatively full charge (thus why the battery usage UI data resets at that point).... > > > Relatively full is not defined AFAIK but from experience 90% charge does the trick of resetting it. IIRC on KitKat reboot also did that Location of `batterystats.bin` file is `/data/system/batterystats.bin` * I can't point you to the code * Battery usage statistics in Android is poor though it has improved considerably in Oreo. Without specifying the Android version and an accompanying screenshot your question about interpretation cannot be answered fully, but here's an example. Suppose you charged fully (100%) and used only YouTube and Chrome till it dropped to 70%. In app usage of it shows YouTube used 60%, it means 60 % of the drop (=30%) is used by it. In outlet words, 60\*30 =18% of battery capacity is used by YouTube. Similarly for Chrome and other apps. The total will never exactly match up. If you install GSam battery monitor, you get more meaningful interpretation [![enter image description here](https://i.stack.imgur.com/h0Q8bm.png)](https://i.stack.imgur.com/h0Q8bm.png) Upvotes: 2 <issue_comment>username_2: This answer is based on Android 9 (Pie). I have been trying to find the answer to this question for quite a while. Preventing the battery graph from resetting has become somewhat of a game for me - a game that I lose if the graph resets. If the battery charge reaches 90%, the graph will reset. Typically the graph will reset as soon as the battery is removed, but it may reset before this if the charge reaches full. I very rarely let the battery charge go above 80%, but this does not prevent a reset. Under the chart there is text indicating how long it has been since the graph was reset. Once it is reading more than a day, it does not seem to actually switch days based on when the graph reset, but from a fixed time in the day. For instance, I once had the graph reset at 9:47a.m. but a few days later I notice it went from 4 days to 5 around 10p.m. One the "days ago" value reaches 5, the graph may reset any time you take it off the charger, no matter what the charge state is. The graph may also reset itself spontaneously while not being charged if the battery graph app gets killed. Ironically, putting the phone in battery saver may make this more likely! I am still trying to determine the exact sequence of steps to prevent this, but it is slow because it takes at least 5 days until I can try the next experiment. When I get more data points I will update this answer. It is possible to prevent a reset for at least 8 days if all the conditions are right, as shown below: [![enter image description here](https://i.stack.imgur.com/tuFi9.png)](https://i.stack.imgur.com/tuFi9.png) Update: This is really frustrating me. The battery guage will apparently reset even before 5 days has been reached, as early as 4 days, 9 hours. Just taking it off power, with the screen on, seeing that it has not reset, and then turning off the screen for 5 seconds and turning it back on has led to it resetting multiple times. Upvotes: 2
2018/03/20
529
1,983
<issue_start>username_0: I have a Lenovo K6 with Android 7 and when I try to send an emoticon from any keyboard like Gboard, Swift or Chrooma (the device does not have a native keyboard) the emoticon does not appear at all to the people I sent it to. For example if I send 'Hi (smileyface emoticon)', only 'Hi' will show up to the recipient but also only 'Hi' appears if I go to messages app and see what I have sent. I have tried lots of emoticons from complex to very simple and I haven't been able to send any. This is not a carrier issue because my previous phone (LG G4) with the same carrier and plan was showing emoticons and they reached the recipient. Is there some setting that I can change so that I will be able to send emoticons through SMS?<issue_comment>username_1: Several steps to the solution 1. Recipients should have Android Kitkat or newer to view the emojis. 2. The fonts in used on your Lenovo K6 does not support the emojis. 3. The Android 7 provided for your K6 does not support emojis. You can't do much for any of the above cases as they depend on someone other than you. Wait until their side is rectified or a workaround is provided. **Solution that you can do!** Install an Emoji Android keyboard. Search for it in the playstore. Upvotes: 2 <issue_comment>username_2: After some search I found what the problem was! 1. In the messaging app settings I went to advanced settings 2. I tapped 'Input mode' and instead of GSM alphabet which was the default option I selected 'Automatic' Now my emoticons are delivered and I am :) Upvotes: 1 [selected_answer]<issue_comment>username_3: Mine is a Huawei Nova 2 that had the same problem I just now fixed it. Go to Messages - Settings - Advanced, and then there's an option that says "Convert special characters in SMS". If it is on, it will not show emojis when you text. Just uncheck it and it works. ![](https://i.stack.imgur.com/s14nbl.png) ![](https://i.stack.imgur.com/XZdCZl.png) Upvotes: 1
2018/03/20
369
1,469
<issue_start>username_0: I have LG G3 (D855) and running stock firmware, Someday back my phone start showing invalid sim then i tried same sim with different phone and its working. Now i know there is some fault in phone, i was keep trying then after few minutes my phone restart with awkward loud beat and then shut down/restart to boot. To boot i need to take out battery but it still restart or shut down automatically. I flashed my phone to stock KDZ successfully but still i am facing same issue. My screen sometimes stuck to LG logo or LG logo disappears and shut down (Need to take out battery to start my phone again), Boot sometimes to home screen then turn off. I flashed to D85530e\_00\_0927.kdz , which is stock i was using before any issue in my phone. Please help me to fix my phone<issue_comment>username_1: Lots of LG phones are showing up bootloop issues. The issue you are facing can be closely related to other bootloop issues seen in LG phones. And if it is, I dont think you can do much to fix this issue. You may however give a try installing a light weight OS like lineage OS. I had faced similar situation with Nexus 5x. Installing Lineage OS helped a bit(restarts/sudden shutdowns became less frequent). In my case replacing motherboard solved the issue for me. Upvotes: 0 <issue_comment>username_2: Same problem here. LG service"s solution was a new mobo euro 200. I replaced the battery for euro 5 and everything was like new. Upvotes: 1
2018/03/22
443
1,666
<issue_start>username_0: Is there a way with or without root to display a notification dot for my Messenger(text messaging) app on the home screen but not on the notification dropdown? Part of this setting is standard for all apps for iOS but the setting "On the lock screen" seems to only be available for certain applications like Gmail and Android Messenger in Android. Not to mention this doesn't hide the notification on the swipe down notification bar. [![enter image description here](https://i.stack.imgur.com/u9R6Dm.png)](https://i.stack.imgur.com/u9R6D.png)<issue_comment>username_1: This works for a lot but not all apps. Download an app called "AutoNotification" in the app store. Open notification categories. From there set the app to importance to low priority. Disable vibrate. Enable Show Notification Dot. Disable blink light. On the lock screen. "Don't show notifications at all." Upvotes: 1 <issue_comment>username_2: This is possible with the Pixel 2 and Android 9. Go in your app notifications (facebook messenger in this example) and make sure "Allow notification dot" is ON. Then select which category and in "Behaviour", select "Show silently and minimise". ![](https://i.stack.imgur.com/pye5C.jpg) ![](https://i.stack.imgur.com/ZsG5s.jpg) When you get a new message, there will be a dot on the icon (second in the top row) and no notification on lock screen, no notification in top bar with the clock. However, if you drag down the menu, you will see a small notification. ![](https://i.stack.imgur.com/WRfnu.jpg) ![](https://i.stack.imgur.com/UjpNz.jpg) Best I could find. Tested with facebook messenger and gmail. Upvotes: 2
2018/03/23
338
1,187
<issue_start>username_0: How to root Android 6.0.1 on samsung galaxy J5 sm-j500h? Please.<issue_comment>username_1: This works for a lot but not all apps. Download an app called "AutoNotification" in the app store. Open notification categories. From there set the app to importance to low priority. Disable vibrate. Enable Show Notification Dot. Disable blink light. On the lock screen. "Don't show notifications at all." Upvotes: 1 <issue_comment>username_2: This is possible with the Pixel 2 and Android 9. Go in your app notifications (facebook messenger in this example) and make sure "Allow notification dot" is ON. Then select which category and in "Behaviour", select "Show silently and minimise". ![](https://i.stack.imgur.com/pye5C.jpg) ![](https://i.stack.imgur.com/ZsG5s.jpg) When you get a new message, there will be a dot on the icon (second in the top row) and no notification on lock screen, no notification in top bar with the clock. However, if you drag down the menu, you will see a small notification. ![](https://i.stack.imgur.com/WRfnu.jpg) ![](https://i.stack.imgur.com/UjpNz.jpg) Best I could find. Tested with facebook messenger and gmail. Upvotes: 2
2018/03/23
2,121
7,946
<issue_start>username_0: I want to transfer a large file with `adb pull`, but my USB connection disconnects all the time, interrupting the transfer. How can I make this work?<issue_comment>username_1: ADB can not pull files partially or resume. Also modifying the PC side of ADB is AFAIK of no use to you, as the provided functionality is provided by the on-device part (which you can't replace). From my point of view there are two possibilities left: 1. Install an FTP server (app) that allows to automatically start with Android and that is able resume the download. Let is share a directory, the file you want to get is located in, or use your 20 seconds time window to move the file into the FTP shared directory. 2. Another option would be a cloud synchronization app (or command-line tool you could call via adb) that is able to push files automatically block-wise to the server (like the DropBox desktop client does). Unfortunately AFAIK the official Android DropBox client works differently and is of no use for you in this scenario. But some 3rd party Dropbox app or a different cloud sync app may be usable. Upvotes: 0 <issue_comment>username_2: Here's a [Python 3 script that implements a workaround based on `adb` and `dd`](https://gist.github.com/username_2/e94ff95ea834500abe2da81ac2a7764f). It continuously retries and resumes downloads when disconnection happens. ``` #!/usr/bin/env python3 # adb-repull.py # # ADB pull emulation for machines with problematic USB ports/cables. # It continuously retries and resumes download when disconnection happens. # # Copyright (c) 2018 <NAME> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. import errno import math import os import subprocess import sys import time BUFFER_SIZE = 8192 SLEEP_TIMEOUT = 5 def run_with_retries(function): while True: try: return function() except ConnectionError as e: print(e) print('Retrying after {} seconds'.format(SLEEP_TIMEOUT)) time.sleep(SLEEP_TIMEOUT) def size_to_blocks(size): return math.ceil(size / BUFFER_SIZE) def get_size(remote_file): print('Getting size of {}'.format(remote_file)) with subprocess.Popen(['adb', 'shell', 'du', '-b', remote_file], stdout=subprocess.PIPE, stderr=subprocess.PIPE) as process: out, err = process.communicate() if len(err) > 0: raise ConnectionError('Disconnected') size_and_remote_file = out.decode('utf-8').split() if len(size_and_remote_file) > 0: return int(size_and_remote_file[0]) else: raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), remote_file) def is_execout_supported(): print('Checking if exec-out is supported') with subprocess.Popen(['adb', 'exec-out', 'echo'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) as process: out, err = process.communicate() if len(err) > 0 and err.decode('utf-8').strip() != 'error: closed': raise ConnectionError('Disconnected') result = process.returncode == 0 print('Yes' if result else 'No') return result def get_size_with_retries(remote_file): return run_with_retries(lambda: get_size(remote_file)) def is_execout_supported_with_retries(): return run_with_retries(is_execout_supported) def update_progress(remote_file, current_block, last_block, speed): if current_block % 1000 == 0 or current_block == last_block: progress = (current_block / last_block) * 100.0 speed_in_mib = speed / (1024 * 1024) print('Downloading {} {:.1f}% ({:.1f} MiB/s)'.format(remote_file, progress, speed_in_mib)) def pull(remote_file, local_file, remote_size, execout, output): print('Downloading {}'.format(remote_file)) last_block = size_to_blocks(remote_size) local_size = os.path.getsize(local_file) current_block = size_to_blocks(local_size) time_elapsed = 0 bytes_downloaded = 0 dd_command = "dd if={} bs={} skip={} 2>>/dev/null".format(remote_file, BUFFER_SIZE, current_block) command = ['adb', 'exec-out', dd_command] if execout else ['adb', 'shell', 'busybox stty raw ; {}'.format(dd_command)] with subprocess.Popen(command, stdout=subprocess.PIPE) as process: while current_block < last_block: time_start = time.time() current_block += 1 expected_buffer_size = remote_size - local_size if current_block == last_block else BUFFER_SIZE buffer = process.stdout.read(expected_buffer_size) buffer_size = len(buffer) if buffer_size != expected_buffer_size: raise ConnectionError('Wrong buffer size {}. Disconnected'.format(buffer_size)) output.write(buffer) local_size += buffer_size time_end = time.time() time_elapsed += time_end - time_start bytes_downloaded += buffer_size speed = bytes_downloaded / time_elapsed update_progress(remote_file, current_block, last_block, speed) print('Done') def pull_with_retries(remote_file, local_file): remote_size = get_size_with_retries(remote_file) execout = is_execout_supported_with_retries() with open(local_file, 'a+b') as output: output.seek(os.SEEK_END) run_with_retries(lambda: pull(remote_file, local_file, remote_size, execout, output)) def main(argv): if len(argv) < 2: print('Usage: %s /mnt/sdcard/remote.bin [local.bin]' % argv[0]) else: try: if sys.platform != 'linux': raise OSError('Unsupported platform') remote_file = argv[1] local_file = os.path.basename(remote_file) if len(argv) < 3 else argv[2] pull_with_retries(remote_file, local_file) except OSError as e: print(e) main(sys.argv) ``` For me, the performance is the same as `adb pull`. If you experience problems with performance—try to play with `BUFFER_SIZE` value. Upvotes: 2 <issue_comment>username_3: You have a few options here if your connection keeps breaking. 1. Use [the script by username_2](https://android.stackexchange.com/a/202737/44325) to resume using `dd` command. 2. Use Wireless ADB over Wi-Fi. The connection may be slightly slower. This is easier, but will also stop when disconnected from WiFi because it is the same as ADB. Go to developer options, enable Wireless Debugging, then tap on the words/arrow "Wireless Debugging". Now you can start ADB wirelessly. Look at your IP and port, and enter them with `adb connect IP:port` 3. Install RSync in Termux (Fdroid). RSync has a resume option. You will need to be able to start the SSH server on one of the devices (either with `systemd` on the computer, or running `sshd` directly on Termux), with RSync on both devices. You can do this on Windows using WSL, but the WSL network is quite slow. Upvotes: 0
2018/03/24
481
1,765
<issue_start>username_0: i did not find any solution on xda-developers, so i am posting this question here. i am trying unlock bootloader on nokia6 when i give command: ``` sudo fastboot oem unlock ``` or ``` sudo fastboot flashing unlock ``` always i am getting error: ``` ... FAILED (remote: oem unlock is not allowed) finished. total time: 0.002s ``` **phone model: Nokia6(T1021)** **android version: 8.0.0** **usb debuging and oem unlocking is on** Does Nokia not accept unlocking bootloader?<issue_comment>username_1: So your question is Does Nokia not accept unlocking bootloader? Technically it's not actually up to Nokia but more of the license that they're using to develop android firmware. When developing an OS for Android you must follow the license terms of the AOSP ( Android Open Source Project ) this means that many elements of your firmware are strictly open source and any person should be granted the same access to the source code as they themselves have been granted by the license, many companies refuse to follow the GPL License in this way as well as many other license's, Technically you should be able to have access to the kernel source code due to such terms, however they'll refuse to give it up, Their has been many legal disputes about this that have forced companies to release the kernel source. Upvotes: -1 <issue_comment>username_2: As far as I am aware of, the Nokia Android phones by HMD Global **does not allow unlocking bootloader**. I have also stated the same in [another answer](https://android.stackexchange.com/a/190015/205764). So you're out of luck, at least for the time being. Reference: [XDA Developers](https://www.xda-developers.com/hmd-global-kernel-sources-bootloader-unlocking/) Upvotes: 2
2018/03/24
484
2,214
<issue_start>username_0: **I am trying to remove forgotten PIN number on my Samsung Galaxy S3 without removing any data.** I already installed custom recovery TWRP, but **cannot mount /system partition** -> Invalid argument error. I found some tutorials that suggest changing /system file system to FAT and then back to original file system, to be able to mount. I am affraid this will remove all data and I want be able to use my phone. Is this correct? The phone is not rooted, but error is not about permissions, but about some argument.<issue_comment>username_1: It highly depends on how you change the partition FS and what software you use to do it. If I guess it right, the FS on your `/system` partition is Linux ext4, which does not have a lossless way to be converted to FAT that I am aware of, so I guess it's mostly formatting it twice: to FAT, then back. It's obvious that formatting will make all data on that partition lost. However, if you find, or if the tutorial instructs, another way to losslessly convert ext4 to FAT, it's possible that you can change the FS without losing any data. But **be aware** that changing ext4 to FAT will mess up all the permissions on files, which may potentially lead to extra work before it turns into a usable state. Proceed with caution. Upvotes: 1 <issue_comment>username_2: Formatting the system partition will not delete your user data, Any data created by system software is stored on the data partition, this includes data from apps downloaded and installed. For example, if you set up your device without using root customizations ( changing build.prop, installing xposed or root access type modifications ) on the system, then all the data will be stored separately onto the data partition. A factory reset would usually only wipe the data partition and cache partition for this reason. Any system modifications can be saved by doing a backup first, then reformatting the system partition and restoring onto the new partition.. It's sometimes necessary to reformat the system because the entire system scheme has changed and probably requires more or less space, meaning the partition has slightly moved from it's physical location. Upvotes: 0
2018/03/26
108
383
<issue_start>username_0: I would like to make adb pull but I'm not able to locate this folder. I suppose it's in the /data folder but it says Permission denied. Somewhere I read if I try the full path it might work. Thank you.<issue_comment>username_1: should be `storage/sdcard0/DCIM` Upvotes: 2 <issue_comment>username_2: It's /storage/emulated/0/Dcim/ Upvotes: 3 [selected_answer]
2018/03/28
169
623
<issue_start>username_0: I'm trying to set a Google Pixel to boot when the power is connected. I found discussion of using the `fastboot oem-off-mode charge = 0` command, but when I reboot the device into the bootloader and try the command I get a `fastboot: usage: unknown command oem-off-mode` error. Is this command no longer supported or did they rename the command?<issue_comment>username_1: I had a hyphen in the wrong spot. The proper command is `fastboot oem off-mode-charge = 0` Upvotes: 2 [selected_answer]<issue_comment>username_2: Try `fastboot oem off-mode-charge 0` (without equal sign) instead. Upvotes: 0
2018/03/28
446
1,839
<issue_start>username_0: Yes, I didn't get that backwards. And all I found is "slow tethering", even here this was never asked before. So, here I am! Internet is slow on the device, but fast for other devices connected to it. It doesn't look like the fault of some software I'm using (browser, openvpn) Soooo how in the world? And how in the world do I fix it? Model: Doogee T5. OS 6.0, Nothing is changed, no root.<issue_comment>username_1: Chances are that internet is not slow but it might be that the servers of the apps or sites that you use on phone are not responding that quickly To identify the problem use your phone's internet in pc by tethering and try downloading a file that you think is giving full or expected download speed, when done just remember the speed and copy link of this download to phone , now try to download this very same file from android from [ADM](https://play.google.com/store/apps/details?id=com.dv.adm) and add new download by pasting that link and start download ( make sure you turn off tethering before this and all other apps that use internet are not running to get best speeds ) let the download run for few minutes to make sure it reaches stable speed and than compare both the pc speed and this android speed and do report back Upvotes: 0 <issue_comment>username_2: So, I have discovered the cause of this problem... the darn chinese brick is riddled with vendor's own poorly written system level adware. It constantly opens connections to it's servers which turns into a DoS attack on the device itself, akin to shooting your neighbor's house with a bazooka through your own door's keyhole. The device's own network gateway is differerent from the gateways for wifi and bluetooth hotspots, so those are unaffected. Installing a firewall app solves the issue. Upvotes: 2 [selected_answer]
2018/03/28
558
2,310
<issue_start>username_0: I'd love your thoughts on this. Several months ago I mistakenly clicked a popup on a website, and since then have been getting intermittant popups says "your sim card is infected...etc" and it tries to direct me to the play store to install some sketchy "antivirus" app (which I have never downloaded). The issue is, I've done multiple factory resets, but after a few days I get the popup again. I've tried 10 antivirus apps from the play store, google chrome's malware detector, but everything comes up clean. Most recently, I used TWRP to completely wipe all data from my phone (wiped Dalvik, system, storage, data, cache, everybox I could check), and before reinstalling Oreo 8.1 I wiped all my data being synced by Google. Still, a few days later, I get the popup, without visiting sketchy websites or downloading non-standard apps in the interim. I figure there is either something that is being synced to my phone from my Google account (I use google Fi and it requires I use my google login), or there is some niche in my phone that is not getting wiped. The only other thing I can think of is that these are just regular popups, and not part of malware, but that seems unlikely since I didn't get them before I clicked the banner that one time. Any suggestions on how to get rid of this thing? Thanks!<issue_comment>username_1: You can try identifying the app the next time it brings up that popup by checking the foreground activity using dumpsys: `adb shell dumpsys activity activities|grep mFocusedActivity` OR If it's just a window without an activity use `adb shell dumpsys window windows` and search for apps whose windows have `isReadyForDisplay()=true`, this may help you be able to identify exactly what app is responsible for the popup so you can disable or remove it Upvotes: 2 <issue_comment>username_2: Thanks for the input everyone. It wasn't an app. That's been the difficulty for people with this issue, is that it isn't some app. At least as far as I can tell. I got my cellular provide to supply a new SIM card (which they did for free). And while I've cleared my google synced content and used TWRP to blank and reinstalled my OS several times before, I basically did it back to back to back...and probably again. No problems since. Upvotes: 0
2018/03/29
354
1,362
<issue_start>username_0: I am trying to use messenger with the default Google keyboard on my stock Pixel1 using messenger. Somehow it got hosed and now instead of enter on the keyboard it shows an Emoji (in blue). If I hold down on the emoji I see the enter button but this isn't what I want. I want the enter button to be the default. I tried switching the keyboard to Dvorak and switching back. I have tried everything I can find. How do I switch a stock Oreo device from having the emoji button to the enter button?<issue_comment>username_1: 1. Hold down the comma button 2. Select GBoard 3. Select Preferences 4. Make sure Show Emoji Switch Key is on. Although this solves this issue I am not 100% convinced this was how I got to this problem. Is there a gesture or something that caused this to switch? [source](https://www.reddit.com/r/GooglePixel/comments/5s7ykg/google_gboard_how_do_you_get_rid_of_the_emoji/) Upvotes: 1 <issue_comment>username_2: I have the same problem but until I can solve it, if you press the shift key for a second or so, the return key temporarily replaces the emoji. Upvotes: 0 <issue_comment>username_3: you have to go to Settings, disable Dedicated emoji key, then for the button Access of emoji key over Enter key, do never opt to replace the enter key with the emoji key, your aim will invariably get fulfilled Upvotes: 0
2018/03/29
135
581
<issue_start>username_0: I have a WhatsApp account in my old phone, but I have put my SIM card in my new phone. Now when I opened WhatsApp in my old phone its asking for verification. Will verification delete my contacts & messages?<issue_comment>username_1: I don't think verification will delete anything, usually it's just an SMS verification code that has to be entered into the app. 2FA ( Two Factor Authentication ) Upvotes: 0 <issue_comment>username_2: No, it will not delete any of your contacts & messages. It's an simple verification code not more than that. Upvotes: -1
2018/03/29
261
1,069
<issue_start>username_0: Long story short, on a R11Max\* (?) device with MT6592 CPU running Android 5.1 and reported 8GB storage (though possible to use SD card), when trying to install additional apps than the ones than came at purchase, always shown dialog that there is no storage space left, yet there is plenty left, even when SD card is inserted and is selected prefered install location default write disk. Though taking pictures or videos with the camera works, so storage is not full. Of course, from a generic/unbranded device, expectations are much lower, for example there was no fire while charging, fingers crossed! Any suggestions? * from Wish.com, was advertised as AllCall Rio Android 7.0, so yea...<issue_comment>username_1: I don't think verification will delete anything, usually it's just an SMS verification code that has to be entered into the app. 2FA ( Two Factor Authentication ) Upvotes: 0 <issue_comment>username_2: No, it will not delete any of your contacts & messages. It's an simple verification code not more than that. Upvotes: -1
2018/03/30
1,240
4,848
<issue_start>username_0: I have a phone running android 4.4 and the app requires android 5.0 or higher. I want to install this app on android 4.4. Do you have any way, help yourself. Thank you very much.<issue_comment>username_1: there is no way to run to run apps with higher from your android version try old versions of the app and the last option is rooting and it have so so many risk of bricking your phone so using old versions is the best choice Upvotes: 2 <issue_comment>username_2: Sometimes an app has the ability to run on an old device, but there is also something in an app's apk file, indicating the oldest version that can install this app. For example, maybe an app CAN be run on android 4.4 but the author of the app set the minimum supported version to android 5.0. So it is possible to change it. Afterwards the app ***might*** be able to run on old devices, while it may also crash. An android app downloaded from Google Play or somewhere else is an apk file, which is actually just a zip compressed package, containing multiple files, e.g. dalvik bytecode, pictures, text resources. To learn more about apk file's structure you can just google it. One of the files is AndroidManifest.xml, that was originally a xml file before the author "compile" and publish the app. You don't have to know what is xml but it was "human readable" before being published and become unreadable when the app finally reached you. The AndroidManifest.xml have a line looks like `android:minSdkVersion="8"` , sdk version 8 means Android version 2.3, sdk version 23 means Android 6.0, search for "android sdk versions" to get a full list. Now however, this line had already been converted to something unreadable. We need something else. One of those things is apktool, it can "decompile" an xml or even the whole app back to what we can read and edit, then "compile" it back to apk. There're plenty of blogs about how to use apktool so I won't run into details. Using apktool you can decompile the apk, change the `minSdkVersion` to a very small number or just 1, compile the app back, then install. Notice: 1. You have to "sign" the apk after compiling it back. Google for details. 2. You have to uninstall the previously installed version of the app before reinstall the modified one. 3. Do not publish a modified apk, it's illegal. 4. Don't expact too much from this method. The app may still crash. 5. Though I often do this but it's really complicated for non-programmers to do the modification so feel free to ask, and prepare to give up at any moment. Upvotes: 3 <issue_comment>username_3: Upgrade the android even I had android 4.3 jelly bean I installed an AOSP for my device. The AOSP was android 7.2.2 nougat. Now I can enjoy all the app that were not compatible with Android 4.3. I am answering from the same device, don't worry about getting your device bricked even my device got into bootloop 2 times while installing. I fixed it by flashing with my stock ROM. Before installing any custom ROM or even before installing custom recovery get the stock ROM for you device as a safer side, if you need any help go to XDA forum and get help from top developers. Hope that helps.. EDIT - I have Xperia M (C1905) you can check the official stock ROM for this device the last revision given by Sony was Android's 4.3, But a developer from XDA forum ported AOSP for Xperia M. Thanks to that guy, If you need some proof I can add some links to the AOSP rom page. Upvotes: 0 <issue_comment>username_4: Here's a possible workaround that worked for me with the Google Home app: 1. The Google Play store recognized the smartphone running Android 4.4.4 and would not install the latest version which required Android 5+. 2. I found an archived version of the Google Home app on apkmirror and used it to install that supported version using the Adroid Debug Bridge (ADB) from the Android SDK (see: <https://www.apkmirror.com/apk/google-inc/google-home/google-home-2-14-50-11-release/google-home-2-14-50-11-3-android-apk-download/download/> ) The basic ADB command is: adb install [PackageName].apk This assumes you have your smartphone/tablet connected to your computer via a USB connection and the the smartphone/tablet has USB Debug mode enabled to allow a 'push' install from the computer to the device you want to install the app to. Upvotes: 0 <issue_comment>username_5: If you're a rooted user, you can simply change your android version by editing the /system/build.prop , for this find the following line and edit the way you want: ``` ro.build.version.release=xx ``` where xx is the android version you want, after that restart your device. If you're not rooted user you can modify the Androidmanifest.xml file of the apk and modify the minSdkVersion, there's alot of tools that do this. Upvotes: 0
2018/03/30
284
1,174
<issue_start>username_0: I have a Samsung Galaxy Edge with Android 7.0. I want to rule my phone with my voice without touching it even if it's locked. I mean some basic functions, like unlocking the phone. So whenever I say my secret word my phone will unlock, or if I say "how many notifications" it will say "no new notifications" for example (without unlocking the phone). Is this possible or is there an app for this?<issue_comment>username_1: I think if you search about it you may find application to do this, but i don't recommend it. because application like that need to turn on mic and process voices coming from it whole the time which shortens battery life. Upvotes: 3 [selected_answer]<issue_comment>username_2: The unlocking can be done via Voice Access. Refer to [this answer](https://android.stackexchange.com/a/234748/287958), at worst you may need to apply screen grid to input touches by screen coordinate. As for the custom commands, I would go about that using a PC to deliver ADB commands, but the caveat obviously being the hardware dependency. Actually, I've made similar scripts in the past except for RainMeter (one-click unlock, etc.). Upvotes: 1
2018/03/30
133
598
<issue_start>username_0: Last time it did. will it? because I forgot.<issue_comment>username_1: Factory reset has nothing to do with your phone number of your sim and as stated by comment above you can always remove your sim before resetting and reinsert after that and it has nothing to do with facebook message as when you reinsert you will receive messages as you are receiving currently **TL;DR resetting won't affect sim number or facebook messages** Upvotes: 1 <issue_comment>username_2: no it do not change your sim card number but all the contacts on your phone will be lost Upvotes: 0
2018/03/31
200
895
<issue_start>username_0: I have an Android phone that has 3gb of RAM available it uses nearly 1.4gb at boot up and max of 2gb on using chrome ,WhatsApp and Samsung Internet and when I switch to recent apps they restart and that I hate because despite of having more than enough RAM my Android is unable to utilize it .Please help me in getting better ram management.<issue_comment>username_1: Factory reset has nothing to do with your phone number of your sim and as stated by comment above you can always remove your sim before resetting and reinsert after that and it has nothing to do with facebook message as when you reinsert you will receive messages as you are receiving currently **TL;DR resetting won't affect sim number or facebook messages** Upvotes: 1 <issue_comment>username_2: no it do not change your sim card number but all the contacts on your phone will be lost Upvotes: 0
2018/03/31
332
1,294
<issue_start>username_0: i was trying to connect my samsung galaxy tab 2 7.0 to my laptop but is not recognized. it was charging and i tried to look at the internet for the solution but nothing worked out. i tried debugging it and hitting the build number on my tab. i tried everything but nothing happened. i only have one laptop and one connector. i was trying to recover my deleted photos so im asking for your help. i'll appreciate everything you did.<issue_comment>username_1: If you are using windows try to open **Device Manager** then you may see it under "other devices" as MTP device for example [![enter image description here](https://i.stack.imgur.com/KRs35.png)](https://i.stack.imgur.com/KRs35.png) so double-click on it ==> Driver tab ==> update driver ==> you will see [![enter image description here](https://i.stack.imgur.com/dMcoM.png)](https://i.stack.imgur.com/dMcoM.png) try both, but in second option let your computer search in this location (**C:\Windows\WinSXS**)by typing it in the shown text field. I hope this help you Upvotes: 0 <issue_comment>username_2: Or you can simply download your samsung Usb setup from internet and simply install it in your computer. It seems like you have no software to handle your android device when connected to pc. Upvotes: -1
2018/04/01
595
2,180
<issue_start>username_0: I installed Termux and using the pkg system installed tmux. However, the tmux that installs doesn't appear to support copying and pasting. I can enter copy mode, but I can't select text and copy it to the clipboard using the spacebar and the enter key. Is there any way to go about this?<issue_comment>username_1: Unfortunately, tmux can't access Android system clipboard, unlike real GNU/Linux distros. The copy mode is pretty much isolated in tmux, so you can only copy from and paste to within sessions. To paste from clipboard, long-press (hold) anywhere on the terminal screen and tap "Paste" in the pop-up menu. To copy to clipboard, long-press some text on the terminal screen. Drag the pins to select the text you want to copy and tap "Copy" in the pop-up menu. Upvotes: 3 <issue_comment>username_2: Try having this line in your `~/.tmux.conf` file: ``` set-window-option -g mode-keys vi ``` This enables a set of vi key bindings that seems to work fine. I used the Spacebar and Enter keys to copy that line from within a tmux session running in Termux and pasted it into this textbox in Chrome with Ctrl+v. Upvotes: 4 [selected_answer]<issue_comment>username_3: This answer may be irrelevant to your needs, but I arrived at your post while trying to solve a problem. Unlike with the x windows system, you don't need anything but Termux to paste text. Use "share" on the selected text, share to Termux, then enter a filename as prompted, and tap open folder. Upvotes: 2 <issue_comment>username_4: In vim, go into input mode by pressing `i` and then use `CTRL`+`ALT`+`v` to paste. Note: you can use specific keyboard apps or an external keyboard to gain access to `CTRL` and `ALT` keys. * Hacker's keyboard: [Google Play](https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard) / [F-Droid](https://f-droid.org/packages/org.pocketworkstation.pckeyboard/) * AnysoftKeyboard: [Google Play](https://play.google.com/store/apps/details?id=com.menny.android.anysoftkeyboard) / [F-Droid](https://f-droid.org/packages/com.menny.android.anysoftkeyboard/) (description at F-Droid broke, so don't let that fool you) Upvotes: 1
2018/04/01
692
2,562
<issue_start>username_0: When I use the Android version of Adblock Plus 1.3 without root, everything seems to work fine. But now, I have a new phone that I'm not willing to root, and I like the idea of having AdBlock as a proxy to strip everything, but everything times out quite often. Sometimes it works, but others it just keeps timing out and creating all kinds of connection problems. I updated recently to the latest dev version [from here](https://downloads.adblockplus.org/devbuilds/adblockplusandroid/), but I still have the same problem. I feel that this issue is happened because of power saving maybe? Some kind of deprioritization of AdBlock? I have Galaxy Note 8. Please advise.<issue_comment>username_1: Unfortunately, tmux can't access Android system clipboard, unlike real GNU/Linux distros. The copy mode is pretty much isolated in tmux, so you can only copy from and paste to within sessions. To paste from clipboard, long-press (hold) anywhere on the terminal screen and tap "Paste" in the pop-up menu. To copy to clipboard, long-press some text on the terminal screen. Drag the pins to select the text you want to copy and tap "Copy" in the pop-up menu. Upvotes: 3 <issue_comment>username_2: Try having this line in your `~/.tmux.conf` file: ``` set-window-option -g mode-keys vi ``` This enables a set of vi key bindings that seems to work fine. I used the Spacebar and Enter keys to copy that line from within a tmux session running in Termux and pasted it into this textbox in Chrome with Ctrl+v. Upvotes: 4 [selected_answer]<issue_comment>username_3: This answer may be irrelevant to your needs, but I arrived at your post while trying to solve a problem. Unlike with the x windows system, you don't need anything but Termux to paste text. Use "share" on the selected text, share to Termux, then enter a filename as prompted, and tap open folder. Upvotes: 2 <issue_comment>username_4: In vim, go into input mode by pressing `i` and then use `CTRL`+`ALT`+`v` to paste. Note: you can use specific keyboard apps or an external keyboard to gain access to `CTRL` and `ALT` keys. * Hacker's keyboard: [Google Play](https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard) / [F-Droid](https://f-droid.org/packages/org.pocketworkstation.pckeyboard/) * AnysoftKeyboard: [Google Play](https://play.google.com/store/apps/details?id=com.menny.android.anysoftkeyboard) / [F-Droid](https://f-droid.org/packages/com.menny.android.anysoftkeyboard/) (description at F-Droid broke, so don't let that fool you) Upvotes: 1
2018/04/01
1,342
4,869
<issue_start>username_0: There are multiple ways to disable Peek/Heads Up notifications in previous versions of Android (e.g. [these](https://android.stackexchange.com/questions/105902/how-to-disable-heads-up-notifications-in-android-lollipop-notification-popup-a) or [these](https://forum.xda-developers.com/android/general/howto-4-to-disable-heads-notifications-t3197660)), but it seems that the changes introduced by Oreo (Android 8.X) [prevents them all](https://www.reddit.com/r/Android/comments/7pacf6/headsup_notifications_annoying/). Is it possible to disable Heads Up notifications globally, for all apps, in Oreo? I mean without disabling all normal notifications, or other features, but just this one. Ideally with no root required, but root solutions are also ok.<issue_comment>username_1: A root option is available, using the "[Nougat / Oreo Quick Settings](https://play.google.com/store/apps/details?id=it.simonesestito.ntiles)" app. The app itself doesn't require root, but the Heads Up quick-setting does. It basically enables multiple new quick-setting tiles in the Quick Settings Menu. One of them is "Heads-Up" (in category `System (secure)`), which allows to enable or disable Heads Up notifications. It is pretty easy to use: * Open the app, search for "Heads-Up", tap on it and enable it. * Edit the Quick Settings Menu, search for the new tile "Heads-Up", and drag it to the top panel. * The tile will currently show it's enabled (in white or, in my case, blue). If you cannot disable it, you should make sure the app is granted root permissions. * I needed to enable the Setting `Run in aggressive mode` in the app settings in order for it to work. It seems it depends on the phone to need that setting or otherwise. Once it is disabled, Heads Up notifications will be globally disabled. And you can at any time enable them at will using that Quick Setting. This was tested in a rooted Oneplus 5T (OOS 5.0.4, on Android 8.0.0). Upvotes: 0 <issue_comment>username_2: It's possible to disable the heads-up notifications with [`adb`](https://developer.android.com/studio/command-line/adb), without root, using one of the two options below. Sadly, on some of the most recent LG or username_1sung phones, this setting is saved only in RAM, hence it only works until the next reboot. Preliminary steps (required for both options) ============================================= On your phone: * Disable "Disable alerts during game" feature (see [this issue](https://github.com/zacharee/SystemUITunerRedesign/issues/40#issuecomment-489406051) for details) * Under Android Settings/Developer Options, enable **USB Debugging**; * Under Android Settings/Developer Options/Select USB Configuration, enable **PTP (Picture Transfer Protocol)**; * Plug your phone to your computer. On your computer: 1. Install [Android Debug Bridge (adb)](https://developer.android.com/studio/command-line/adb); 2. Install the [Universal ADB Drivers](https://adb.clockworkmod.com/); 3. Run `adb devices`; 4. Verify your phone is listed under `List of devices attached` On your phone: * press OK on **Allow USB Debugging?** Option 1 ======== On your computer: * Run `./adb shell settings put global heads_up_notifications_enabled 0` Option 2 ======== On your phone: 1. Install [SystemUI Tuner](https://play.google.com/store/apps/details?id=com.zacharee1.systemuituner) 2. Follow the instructions and run the required adb commands 3. Edit *Quick Settings*: [![Edit Quick Settings](https://i.stack.imgur.com/OPpmx.png)](https://i.stack.imgur.com/OPpmx.png) 4. Add the *Heads-up Notifications Toggle* to quick settings: [![Add toggle to quick settings](https://i.stack.imgur.com/S00kt.png)](https://i.stack.imgur.com/S00kt.png) 5. Tap on the toggle to disable the heads-up notifications: [![Heads-up notifications disabled](https://i.stack.imgur.com/cIgLR.png)](https://i.stack.imgur.com/cIgLR.png) As mentioned above, both options work only until the next reboot on some phones which save this settings in RAM, so option 2 is more convenient because it allows to easily re-disable the heads-up notifications after reboot using the quick settings toggle. Android 9 and above =================== It is possible to disable them from: * Settings > Custom restrictions > Don't pop notifications on screen ([source](https://www.reddit.com/r/GooglePixel/comments/96tmy0/no_heads_up_notifications_in_android_9/)) If that still doesn't work try disabling and enabling: * Apps & notifications > Special app access > Adaptive Notifications ([source](https://support.google.com/pixelphone/thread/13646080?hl=en)) username_1sung Galaxy S21 ================== Unfortunately none of the options mentioned above work for this phone: if you know a way to disable them without root please add a comment to this answer or an answer to the original question. Upvotes: 4
2018/04/03
386
1,481
<issue_start>username_0: I lost the info symbol in whatsapp, but the info option is there in the upper three dots menu. I don't know what is the reason. How can I regain it? My phone is samsung galaxy J7 nxt. Below is a screenshot of where the option used to be:![enter image description here](https://i.stack.imgur.com/OL37Bm.jpg)<issue_comment>username_1: WhatsApp has changed the location of the option in it's latest update. That's not an issue, it's just a little change to the design. All you have to do, is press on a message that was written by you, and press on the three dots on the top right of the page. ![enter image description here](https://i.stack.imgur.com/nChEPm.jpg) If however you'd like to get the option back, the only way to do that would be by downloading an older version of whatsapp from [apkmirror](https://www.apkmirror.com/apk/whatsapp-inc/). You can also leave them feedback letting them know that you'd like the option moved back. To leave them feedback, open WhatsApp settings → help → contact us. Upvotes: 2 <issue_comment>username_2: WhatsApp has made several recent amendments in its interface. Though these are not big ones. So there is absolutely nothing to worry about it. Another change that WhatsApp has made is with the Online Status Check. Previously, a couple of weeks ago whenever we open messenger to message a person say XYZ, we could clearly see the line "*Last Seen at sometime*. But now we can only see the time. Upvotes: 0
2018/04/04
263
939
<issue_start>username_0: I have YU Yuphoria 5010...When i start Mobile it shows CYANOGEN then "optimizing apps ..." and then it complete and again starts optimizing. My main concern is internal data... I don't want to wipe it out. Please help me out as soon. Also my mobile is not rooted and does not have twrp.<issue_comment>username_1: I was once struck in a boot loop and when I went to service centre, they found that it was not a software but a battery problem. Try getting it changed. Upvotes: -1 <issue_comment>username_2: I got my solution to this problem. In one of post it is mentioned that start phone in safe mode. And i do so and really it WORKS!!!! Just press volume down key after first time optimizing ends and then it will boot in safe mode.[Here is detailed answer that i mentioned](https://android.stackexchange.com/questions/187072/my-android-phone-stuck-at-optimizing-apps-again-and-again/194197#194197) Upvotes: 0
2018/04/04
1,624
4,056
<issue_start>username_0: I am working with ADB on my Samsung Galaxy device. I want to get the IMEI number of the device using ADB, but I have been unable to do that. I tried the following: ``` adb shell dumpsys iphonesubinfo ``` but it returns nothing. I also tried with Service Call Command: ``` adb shell service call iphonesubinfo ``` but it gives me a strange result like this: ``` Result: Parcel( 0x00000000: 00000000 0000000f 00350033 00390038 '........3.5.8.9.' 0x00000010: 00320037 00380030 00350034 00350031 '7.2.0.8.4.5.1.5.' 0x00000020: 00300031 00000033 '1.0.3... ') ``` Can anybody help me out with this?<issue_comment>username_1: `adb shell dumpsys iphonesubinfo` works only for phones below Android 5 Lolipop. Because Android Nougat is over 5.0, you need: `adb shell service call iphonesubinfo 1 | awk -F "'" '{print $2}' | sed '1 d' | tr -d '.' | awk '{print}' ORS=` Upvotes: 2 <issue_comment>username_2: Try putting this code in to a .bat file and running it: ``` @echo off setlocal enabledelayedexpansion for /f "tokens=6*" %%a in ('adb shell "service call iphonesubinfo 1 ^| grep -m 1 \"'\""') do ( set imei1=%%a) for /f "tokens=6*" %%b in ('adb shell "service call iphonesubinfo 1 ^| grep -m 2 \"'\""') do ( set imei2=%%b) for /f "tokens=4*" %%c in ('adb shell "service call iphonesubinfo 1 ^| grep -m 3 \"'\""') do ( set imei3=%%c) set imei=!imei1!!imei2!!imei3! echo !imei! > imei.txt for /f "delims=" %%d in (imei.txt) do ( set DeviceIMEI=%%d set DeviceIMEI=!DeviceIMEI:'=! set DeviceIMEI=!DeviceIMEI:.=! set OIMEI=Phone IMEI !DeviceIMEI! ) echo %OIMEI% pause ``` I got it from this StackOverflow thread: <https://stackoverflow.com/a/34362809/8173870> Upvotes: 3 [selected_answer]<issue_comment>username_3: Given the tag [7.0-nougat](/questions/tagged/7.0-nougat "show questions tagged '7.0-nougat'"), I'm assuming you have or are targeting Android Nougat. Android Nougat comes with *toybox* which acts as an alternative to busybox and has some useful utilities. I managed to use those tools to print IMEI like this: ``` adb shell service call iphonesubinfo 1 | toybox cut -d "'" -f2 | toybox grep -Eo '[0-9]' | toybox xargs | toybox sed 's/\ //g' ``` Since you wouldn't be getting an interactive shell when using a script or an app, you can pass the commands like this: ``` adb shell "service call iphonesubinfo 1 | toybox cut -d \"'\" -f2 | toybox grep -Eo '[0-9]' | toybox xargs | toybox sed 's/\ //g'" ``` Upvotes: 3 <issue_comment>username_4: The following ADB command works on my Windows PC to get clear IMEI result: `adb shell "service call iphonesubinfo 4 | cut -c 52-66 | tr -d '.[:space:]'"` Upvotes: 2 <issue_comment>username_5: Using [android-svc](https://github.com/T-vK/android-svc/): ``` android-svc --adb call 'iphonesubinfo.getDeviceId();' ``` would return something like this: ``` 358972084515103 ``` Upvotes: 2 <issue_comment>username_6: You may not have realized it, but you've actually posted the answer to your own question: ``` Result: Parcel( 0x00000000: 00000000 0000000f 00350033 00390038 '........3.5.8.9.' 0x00000010: 00320037 00380030 00350034 00350031 '7.2.0.8.4.5.1.5.' 0x00000020: 00300031 00000033 '1.0.3... ') ``` Specifically, the portion to the right: ``` '........3.5.8.9.' '7.2.0.8.4.5.1.5.' '1.0.3... ' ``` Simply put it all on one line and remove the single quotes and it becomes: `........3.5.8.9.7.2.0.8.4.5.1.5.1.0.3...` Now remove the dots and you get: ``` 358972084515103 ``` (aka your IMEI number) Upvotes: 2 <issue_comment>username_7: #### esim imei is available via: ``` input keyevent KEYCODE_CALL; sleep 1; input text '*#06#'; uiautomator dump --compressed /dev/stdout\ |tr ' ' '\n'\ |awk -F'"' '{print $2}'|grep "^[0-9]\{15\}$" \ |nl -w 1 -s':'\ |sed 's/^/IMEI/g' ``` ``` IMEI1:xxxxxxxxxxxxx IMEI2:xxxxxxxxxxxxx ``` Upvotes: 2
2018/04/06
457
1,563
<issue_start>username_0: I have an S8 And a Nintendo switch, The switch doesn't support VPNs. Is it possible to share the VPN Connection to my Nintendo switch over hotspot? My PC Can already do this but I want to play outside!<issue_comment>username_1: 1. Download the [VPN-Client-App](https://play.google.com/store/search?q=vpn%20provider&c=apps) from any provider on your Android 2. Setup and connect the VPN (an instruction you find on the site from your vpn service) 3. Turn on the mobile Wi-Fi hotspot feature from your Android settings [![enter image description here](https://i.stack.imgur.com/CWOPl.png)](https://i.stack.imgur.com/CWOPl.png) 4. Then it should work! Upvotes: 0 <issue_comment>username_2: Yes its possible, I have covered one method to achieve this already [on this post](https://android.stackexchange.com/a/170532/209414). Alternatively, our fellow user, [Mygod](https://android.stackexchange.com/users/181631/mygod) has shared one application to achieve this called VPN Hotspot and is available both on [XDA Labs](https://labs.xda-developers.com/store/app/be.mygod.vpnhotspot) or [F-Droid](https://f-droid.org/packages/be.mygod.vpnhotspot/). As expected both these methods need **root**, for non root solution you may have to look at something like [PDANet+](https://labs.xda-developers.com/store/app/be.mygod.vpnhotspot) Upvotes: 3 <issue_comment>username_3: If you run a pie rom with aosp updated kernel just enable acesses point, usb wired alternative: pdanet ... or http injector in rooted devices can run a proxy server Upvotes: -1
2018/04/06
527
1,717
<issue_start>username_0: I'm trying to add a contact on Telegram, the specified number can be added through other phones, but not the same here: > > [![contact](https://i.stack.imgur.com/af6Dgm.jpg)](https://i.stack.imgur.com/af6Dg.jpg) > > Screenshot (click to enlarge) > > > [Name] is not on Telegram yet, would you like to invite them to join? > > > Any suggestions?<issue_comment>username_1: 1. Download the [VPN-Client-App](https://play.google.com/store/search?q=vpn%20provider&c=apps) from any provider on your Android 2. Setup and connect the VPN (an instruction you find on the site from your vpn service) 3. Turn on the mobile Wi-Fi hotspot feature from your Android settings [![enter image description here](https://i.stack.imgur.com/CWOPl.png)](https://i.stack.imgur.com/CWOPl.png) 4. Then it should work! Upvotes: 0 <issue_comment>username_2: Yes its possible, I have covered one method to achieve this already [on this post](https://android.stackexchange.com/a/170532/209414). Alternatively, our fellow user, [Mygod](https://android.stackexchange.com/users/181631/mygod) has shared one application to achieve this called VPN Hotspot and is available both on [XDA Labs](https://labs.xda-developers.com/store/app/be.mygod.vpnhotspot) or [F-Droid](https://f-droid.org/packages/be.mygod.vpnhotspot/). As expected both these methods need **root**, for non root solution you may have to look at something like [PDANet+](https://labs.xda-developers.com/store/app/be.mygod.vpnhotspot) Upvotes: 3 <issue_comment>username_3: If you run a pie rom with aosp updated kernel just enable acesses point, usb wired alternative: pdanet ... or http injector in rooted devices can run a proxy server Upvotes: -1
2018/04/07
460
1,589
<issue_start>username_0: I bought game a few years ago. I performed factory reset on android tablet because it was slow. Installed game after some time. Now I see ads. But I paid for that app? What can I do to get add free version? Or can I get refund?<issue_comment>username_1: 1. Download the [VPN-Client-App](https://play.google.com/store/search?q=vpn%20provider&c=apps) from any provider on your Android 2. Setup and connect the VPN (an instruction you find on the site from your vpn service) 3. Turn on the mobile Wi-Fi hotspot feature from your Android settings [![enter image description here](https://i.stack.imgur.com/CWOPl.png)](https://i.stack.imgur.com/CWOPl.png) 4. Then it should work! Upvotes: 0 <issue_comment>username_2: Yes its possible, I have covered one method to achieve this already [on this post](https://android.stackexchange.com/a/170532/209414). Alternatively, our fellow user, [Mygod](https://android.stackexchange.com/users/181631/mygod) has shared one application to achieve this called VPN Hotspot and is available both on [XDA Labs](https://labs.xda-developers.com/store/app/be.mygod.vpnhotspot) or [F-Droid](https://f-droid.org/packages/be.mygod.vpnhotspot/). As expected both these methods need **root**, for non root solution you may have to look at something like [PDANet+](https://labs.xda-developers.com/store/app/be.mygod.vpnhotspot) Upvotes: 3 <issue_comment>username_3: If you run a pie rom with aosp updated kernel just enable acesses point, usb wired alternative: pdanet ... or http injector in rooted devices can run a proxy server Upvotes: -1
2018/04/08
529
2,032
<issue_start>username_0: I have an LG G5, and I recently took a video of 5 minutes with it (the maximum) which appeared to be corrupted. The phone stopped the video alone since it arrived to the maximum recording time, and started saving - something that took some pretty long minutes. After a while of not touching my phone (to not accidentally interrupt the saving) I wanted to watch the video and realized it's corrupted and can't be open. In the file explorer, I found two files in the format of `DATE_TIME.mp4` (1.6GB) and `DATE_TIME_temp.mp4` (0KB). Any possible (free) way to fix this video? How can I make sure it won't happen next time? Thanks! *Note: If relevant - not rooted, stock rom, latest update.*<issue_comment>username_1: Copy that file to a PC and use a video converter to convert it to a different format, such as .mov or .avi You'll be able to enjoy your movie after conversion. You can convert the working video back to .mp4 too if you wish to. Upvotes: -1 <issue_comment>username_1: First, try some converters from play store. It's hard to name a converter because some of them checks the file for errors before converting them and ignores if they can't convert it. Try Freemake video converter on PC first. It's a commercial software so make sure that it helps before buying it, use a free trial. There are many open source alternatives as well, you can search for them in sourceforge, github etc. iTunes is the last option, if you have an iDevice. Another tip: Try to play the file with VLC on PC, and an error message may pop up. It might say what's actually wrong with the file. Good luck! Upvotes: 0 <issue_comment>username_2: MP4 Fixer > > [MP4 Fixer on Google Play](https://play.google.com/store/apps/details?id=com.smamolot.mp4fix) > > > This used to be a common problem with Screen Recorders that didn't save the information of recorded videos correctly. Using MP4 Fixer i could read the video and fix the duration information allowing normal viewing. Upvotes: 2 [selected_answer]
2018/04/09
289
1,206
<issue_start>username_0: So I just flashed suhide lite onto my nexus 5x after reading around that I could use it to bypass root detection for banking apps and android pay; however even if I set it so my banking app (halifax) can't detect root I open it up and it still states an error code about it being rooted. Anyone able to help me figure out an alternative or if I'm missing something?<issue_comment>username_1: There're apps like VirtualApp, VirtualXposed and Parallel Space that can clone your apps into a "sandbox" environment. I've just tested cloning my root management app SuperSU into VirtualXposed and it didn't detect the device has been rooted. I guess that banking apps may also fail to detect root, but it's not guaranteed. All those apps can be used free and VirtualApp **was** open sourced. VirtualXposed won't be available for you because banking apps detect not only root but also xposed. **But anyway keep in mind that sandbox apps are always able to see all app's private data inside it.** Upvotes: 2 <issue_comment>username_2: Ended up switching over to Magisk instead and now it all works and can use android pay and halifax banking app by simply using magiskhide. Upvotes: 1
2018/04/10
306
1,282
<issue_start>username_0: I have an Android phone (Moto Z) and for some reason the buttons stopped responding. This wasn't an actual issue until one night I let the battery die... the phone accepts the charger AND charges but since the buttons don't work I can't turn it on. When I plug the phone into my computer, and I can see it as a USB device (lsblk). What now? Is there a way to issue a command to the device from my computer (Arch Linux) telling it to turn on?<issue_comment>username_1: There're apps like VirtualApp, VirtualXposed and Parallel Space that can clone your apps into a "sandbox" environment. I've just tested cloning my root management app SuperSU into VirtualXposed and it didn't detect the device has been rooted. I guess that banking apps may also fail to detect root, but it's not guaranteed. All those apps can be used free and VirtualApp **was** open sourced. VirtualXposed won't be available for you because banking apps detect not only root but also xposed. **But anyway keep in mind that sandbox apps are always able to see all app's private data inside it.** Upvotes: 2 <issue_comment>username_2: Ended up switching over to Magisk instead and now it all works and can use android pay and halifax banking app by simply using magiskhide. Upvotes: 1
2018/04/10
417
1,520
<issue_start>username_0: I am using default Google Clock application for time and alarm setting on my Moto X4. Moving to clock on it, there's globe icon under home time, which is used to set and display different city time. I have added some cities, and then I cannot see any option to delete that city. On tapping, Menu->Settings on top-right corner, I cannot found any option to delete it. How to delete those added city time? [![enter image description here](https://i.stack.imgur.com/ftfUq.png)](https://i.stack.imgur.com/ftfUq.png)<issue_comment>username_1: 1. Open Google Clock. 2. Switch to Clock menu. 3. Press and Hold city time you need to remove, then you can see a `Delete` icon there(globe icon changed to dustbin icon), swipe down to Delete it (Android 8 Oreo). Upvotes: 2 [selected_answer]<issue_comment>username_2: Just type the city after clicking the globe, then uncheck that checkmark. Upvotes: 0 <issue_comment>username_3: On my Android V. 9 the Help function directed me to: 1. Open Clock function 2. Press the location to be deleted 3. Drag the location to the bottom of the screen, it should disappear I did this and it worked. Note: This does not work on the new, redesigned Google clock app. Upvotes: 2 <issue_comment>username_4: 1. Open clock function. 2. Press the + to "search for a city". 3. Type in the city you wish to remove. 4. Uncheck it. Upvotes: 3 <issue_comment>username_5: In the new, redesigned app, swiping to the left on the clock you want to remove does the job. Upvotes: 2
2018/04/10
121
487
<issue_start>username_0: Recently in my android smartphone, while toggling GPS the notification popping up "in.android.location.PROVIDERS\_CHANGED". Why this is happening recently & not before and how to disable it?<issue_comment>username_1: There are some apps that give debug messages for location, as in my case one assistant app. As soon as I uninstalled the app, the messages disappeared. Upvotes: 0 <issue_comment>username_2: Resolved by uninstalling the NoBroker app. Upvotes: 1
2018/04/10
275
964
<issue_start>username_0: As the title says, do I need a smartphone with more RAM or one with a higher processor in order to load a big excel file faster ? For instance : Snapdragon 835 with 8GB RAM vs Snapdragon 845 with 6GB RAM, which is faster to load a big excel file ?<issue_comment>username_1: RAM should not be an issue with smartphones that have 6GB or 8GB of it (I have 1GB and Excel workbooks load fine - not really large ones) . So, in that case, it would be the processor. Also, a factor not mentioned in your question: the RAM speed. A lot of smartphones have RAM at 1033Mhz or 1.6Ghz, making a really fast processor pointless without RAM that can support those speeds. Upvotes: 1 <issue_comment>username_2: Normally 3GB or 4GB Ram coupled with the 1.5 GHz processor is enough to open a medium size excel document file. If you use a 8GB ram smartphone device with snapdragon 845 CPU So there is a slight difference in opening Excel file. Upvotes: 0
2018/04/11
321
1,277
<issue_start>username_0: I want to enter developer more, [How do you see Memory usage in Android O?](https://android.stackexchange.com/questions/181734/how-do-you-see-memory-usage-in-android-o), but am wondering if there are any dangers in doing so. Obviously I could change things and mess up, but will I open security holes to other apps by being in developer mode? Or are there other issues I need to consider? I am using a Sony XZ1 compact. Thanks, Fed<issue_comment>username_1: No, it's completely safe to enable developer options. Doing so only lets you access these options from your phone settings. Some of them may be dangerous under some circumstances, but they have to be explicitly enabled by you, as they are not activated automatically. Upvotes: 2 [selected_answer]<issue_comment>username_2: Developer mode is nothing near to the "REAL DANGER" on android. It's safe for most part unless you click or change something you should not. If you are just a casual android user go ahead. If you want really very very technical insight (and probably thilling work) on android, you can try rooting your phone. **I neither recommend nor force to any harm done to your smartphone especially by rooting it. Remember, Rooting your phone voids it's warranty.** Upvotes: 0
2018/04/11
667
2,130
<issue_start>username_0: I observed in case of Mi phones like Redmi Note 4 & Mi Max2. We’re not able to disable Google Apps like Chrome, Play Music, Play Movies & TV, etc. Please let me know, how to disable Google apps?<issue_comment>username_1: If you can't disable it normally in settings or the disable button has been greyed out for some reason then I'd suggest you'd follow this procedure given in this MIUI form thread: [Disable Google Apps In MIUI 8 (and 9)](https://c.mi.com/thread-114433-1-0.html) which I too confirm to be 100% working (tested). 1. Install [Quickshortcutmaker](https://play.google.com/store/apps/details?id=com.sika524.android.quickshortcut&h=en) from Playstore 2. Select normal search - under input box type **manage apps** and click search [![enter image description here](https://i.stack.imgur.com/Wvk20m.jpg)](https://i.stack.imgur.com/Wvk20m.jpg) [![enter image description here](https://i.stack.imgur.com/q3bPcm.jpg)](https://i.stack.imgur.com/q3bPcm.jpg) 3. In search results it will show settings click it, you will find "manage apps" under click then click **try** (or create shortcut by pressing create). [![enter image description here](https://i.stack.imgur.com/AbWGFm.png)](https://i.stack.imgur.com/AbWGFm.png) 4. From here a list of installed applications is shown, navigate to the desired google app(s), select the app, and now you can click **disable** button to disable the app. [![enter image description here](https://i.stack.imgur.com/reM4Am.jpg)](https://i.stack.imgur.com/reM4Am.jpg) **NB: No root is required!** Acknowledgements * **[Disable Google Apps In MIUI 8](https://c.mi.com/thread-114433-1-0.html)** Upvotes: 1 <issue_comment>username_2: I will tell you how I achieved this on my Redmi note 5 pro: 1. Get adb 2. Enable usb debugging, connect your phone to pc. 3. Use adb shell to give this command: ``` pm uninstall --user 0 package_name ``` 4. This must work, tested on miui 9.2.7.0 5. The apps will come back after factory reset More info: [XDA Developers](https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/) Upvotes: 0
2018/04/11
784
2,751
<issue_start>username_0: According to [this post](https://android.stackexchange.com/questions/51651/which-android-runs-which-linux-kernel) Android 7.1 has kernel 4.1.1 and Android 6.0 has kernel 3.18.10. I installed Android 6.0 on a Nexus 5 (using the latest google image) and ended up with kernel 3.4. Then I installed 7.1 on a Nexus 6 (also using the latest google image) and ended up with kernel 3.10. I could go try on a newer version yet on a newer phone but I'm doing this to get dwarf-based callstacks on perf runs and I really want to do it on the oldest phone possible. Has anyone  gone through this before?<issue_comment>username_1: Android devices generally don't receive major kernel upgrades, and Nexus devices certainly never did. Even when OS upgrades take place they only get minor-version kernel patches. The table in the other question is intended to represent what a **new** device would ship with given the **first** version of Android it supported, but even that is not a hard-and-fast rule. For your specific example, Google has no code for either the N5 or N6 with a 3.18 kernel. Both remained on their original major versions (3.4.y and 3.10.y, respectively) for their entire lifetimes. You can check the "hammerhead" and "shamu" related tags in the [kernel/msm](https://android.googlesource.com/kernel/msm.git/+refs) repo to verify this. If you need a newer kernel on one of those devices you're likely going to have to port it yourself, unless you can find another 3rd party that already undertook this work. Upvotes: 3 [selected_answer]<issue_comment>username_2: Chipset manufacturers ship close source drivers which makes it impossible to update the kernel to a major version. Huge third party roms like Lineage OS do not update the kernel even if you install a newer Android version. ASOP maintainer resigned over this issue <https://plus.google.com/+JeanBaptisteQueru/posts/9HHRURorE7g> Currently, there are a few efforts fix this issue such as Collabera is spear heading the effort to run Android on Linux graphic pipeline <https://lwn.net/Articles/733463/> I.MX platform have upstream gpu drivers. I.MX6 is upstreamed and working I.MX6 Development boards can boot Android <https://www.xda-developers.com/its-now-possible-to-boot-android-on-i-mx6-platforms-without-proprietary-blobs/> This I.MX6 5 in tablet should have full upstream support <https://necunos.com/shop/> In the future, Librem 5 will be the first fully open GNU phone. <https://puri.sm/products/librem-5/> I.MX8 gpu driver development is a work in progress Anholt has been working on Videocore for Broadcom, but I find it a shame by the lack of adoption among handset manufacturers. <http://www.anholt.net/papers/index.html> Upvotes: 0
2018/04/12
764
2,941
<issue_start>username_0: My device has Android 7.0. I believe my device is affected with some malware. Symptoms: 1. Pop up ads in the middle of the screen. When I click on the close button, it starts downloading random apps. 2. Sometimes uninstall UI appears to be changed and when it says "Uninstall successful", I click the OK button and it starts downloading random apps. 3. I uninstall suspected apps, but somehow it comes back. 4. Even if I uninstall suspected apps, it still shows me ads. I've turned off unknown sources, but somehow it still gets installed. Suspected apps: 1. Clock (there are two apps named clock) 2. Application.app.sdk2.config I don't want to reset my phone except as a last resort. How else can I remove the malware when uninstalling doesn't work?<issue_comment>username_1: 1. **Backup your contacts and media files.** Backing up contacts to your Google account is the best way, your media files can be backed up on your computer. 2. **Do a factory reset** Depending on your specific model instructions will vary. You need to enter the "recovery menu," which involves first turning your phone completely off, and then holding a specific key while pressing power. It's usually one of the volume keys. Then navigate the menu using the volume keys to select factory reset. 3. **Only reinstall apps from the Google Play store.** Yes, there's plenty of cool apps and games that are not in the Play Store. If they're not in the Play Store, they are likely doing bad things. Upvotes: 1 <issue_comment>username_2: There are two ways to do it. **METHOD 1: Uses adb tools.** 1. Download ADB Tools from Google. On Linux run `sudo apt install adb`. 2. Enable "Allow USB debugging" in Developer options in Settings. If they aren't there, go to About and tap Build number 7 times. 3. Run `adb devices` and select "Allow" on your device when it asks you. 4. Run `adb uninstall (package name)`. (package name) is not the name of the package (that is the label). It is , for example, `com.android.clock` for the system Clock app. **METHOD 2: Requires root.** 1. Root your device. One-click root options like KingRoot exist, but only for Android 5.1.1 or below. In your case, you will need to use custom recovery to gain root (do-able with TWRP and SuperSU, for example). 2. Install Lucky Patcher from luckypatchers.com/download. If i says it is a virus, tap "More Options" then "Install Anyways (Unsafe)". 3. Allow root access, and then find the apps you suspect are viruses. For example, in the case of the Clock apps, don't uninstall `com.android.clock` or `com.google.android.clock`. 4. Find the app. If it is adware, it will usually say "Google Ads found" in blue under it (Keep in mind many genuine apps use Google Ads, too). Tap the app, and then select "Uninstall". 5. Afterwards, uninstall Lucky Patcher with the system package manager, and select "Permanently unroot" if you don't want to keep root. Upvotes: 0
2018/04/13
691
2,654
<issue_start>username_0: I tried to install an apk from online on a virtual device, but it wouldn't install due to INSTALL\_FAILED\_NO\_MATCHING\_ABIS. I'm able to install it on an ARM image, but ARM images are super slow on my computer. So is it possible to convert or modify the apk to use x86? One of the answers on this [post](https://stackoverflow.com/questions/24572052/install-failed-no-matching-abis-when-install-apk?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa) said "If you using Genymotion you need [Installing ARM Translation and GApps](http://forum.xda-developers.com/showthread.php?t=2528952)". But comments on that answer said that it doesn't work anymore. So is there any way to do this?<issue_comment>username_1: No, it's not possible. You need to find a version of the app that was compiled for x86, or without any architecture-specific parts (i.e. Java only). Upvotes: 3 [selected_answer]<issue_comment>username_2: ### Genymotion with ARM translation You can use [genymotion](https://www.genymotion.com/fun-zone/) (the personal use version is free) with an Oreo ROM + ARM\_Translation\_Oreo.zip (google the filename to download it). Once you download the zip simply drag-and-drop it into the emulator window, accept the prompt and then reboot the emulator. It's not a lightweight solution since genymotion uses virtualbox as a backend but it works way faster than google's arm images available with android studio. ### Standard Android emulator with an ARM image Another option (does not answer your question directly) is to actually use an ARM image instead of X86. In Android Studio > Tools > AVD Manager > Create Virtual Device when prompted to **Select a system image** select the **Other images** tab and pick an arm-based image — those images will run VERY slowly compared to X86. You will get a warning that it's not recommended, but you might get acceptable performance if you select the oldest API version possible (depending on your needs) with a low screen resolution. Upvotes: 2 <issue_comment>username_3: as for now android R (11) x86\_64 supports arm application , just tested it and it works , but there is no way to root it , if you look for testing applications will be for nothing Upvotes: 0 <issue_comment>username_4: In Android emulator <https://developer.android.com/studio/releases/emulator> page, highlighted that arm based application now can be install and run on android 9 and 11 emulator. As @K3rnel31 comment, android 11 emulator can't start as writable-system. Android will be your friends. It requires download the "Android 9.0 Google X86\_ARM" system image. Upvotes: 1
2018/04/13
527
2,122
<issue_start>username_0: i want to change the device-modell of a non-rooted device. is there ANY way to do it (that doesnt involve rooting)? maybe also an app that sends that the device is compatible.<issue_comment>username_1: No, it's not possible. You need to find a version of the app that was compiled for x86, or without any architecture-specific parts (i.e. Java only). Upvotes: 3 [selected_answer]<issue_comment>username_2: ### Genymotion with ARM translation You can use [genymotion](https://www.genymotion.com/fun-zone/) (the personal use version is free) with an Oreo ROM + ARM\_Translation\_Oreo.zip (google the filename to download it). Once you download the zip simply drag-and-drop it into the emulator window, accept the prompt and then reboot the emulator. It's not a lightweight solution since genymotion uses virtualbox as a backend but it works way faster than google's arm images available with android studio. ### Standard Android emulator with an ARM image Another option (does not answer your question directly) is to actually use an ARM image instead of X86. In Android Studio > Tools > AVD Manager > Create Virtual Device when prompted to **Select a system image** select the **Other images** tab and pick an arm-based image — those images will run VERY slowly compared to X86. You will get a warning that it's not recommended, but you might get acceptable performance if you select the oldest API version possible (depending on your needs) with a low screen resolution. Upvotes: 2 <issue_comment>username_3: as for now android R (11) x86\_64 supports arm application , just tested it and it works , but there is no way to root it , if you look for testing applications will be for nothing Upvotes: 0 <issue_comment>username_4: In Android emulator <https://developer.android.com/studio/releases/emulator> page, highlighted that arm based application now can be install and run on android 9 and 11 emulator. As @K3rnel31 comment, android 11 emulator can't start as writable-system. Android will be your friends. It requires download the "Android 9.0 Google X86\_ARM" system image. Upvotes: 1