Question and Answer about Android from Stack Exchange network.


I have a broken-screen, non-rooted Xiaomi Redmi Note 6 Pro that looks like this

and I'm experiencing a LOT of ghost touches (and the digitizer's gone).

I am using scrcpy to control it from my PC, so I want to disable the touchscreen because otherwise it interferes with my commands and does what it wants.

I don't want to detach the digitizer physically since I have no tools for opening my mobile and this one has to be opened from the screen, so I could damage it more.

How can I do it (possibly with ADB)?

there is a prominent gallery app that I am using -f-stop . been using it for very long time and never had this issue . gallery app itself seems to be working but when I select more than one picture and invoke system share so I can share those with other apps like WhatsApp... everything crashes. it gives me an option to view the app log crash in an email attachment, that it prepared to send to Google for feedback unfortunately selfish as it may sound, I cannot send that attachment to my email It just directly sends it without even keeping a sent copy in my Gmail. using some kind of a hack I pulled up all that log info and I am putting it in pastebin_with_crash_log_info

The relevant error is:

Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f08007a
at android.content.res.ResourcesImpl.getValueForDensity(ResourcesImpl.java:246)
at android.content.res.Resources.getDrawableForDensity(Resources.java:905)
at android.content.res.Resources.getDrawableForDensity(Resources.java:880)
at com.android.internal.app.ResolverActivity$TargetPresentationGetter.loadIconFromResource(ResolverActivity.java:669)

here are the more relevant details

crashing system share app concerned is

com.Android google.com.gms

Source file
ResourcesImpl.java
Source class
android.content.res.ResourcesImpl
Source method
getValueForDensity
Line number
246

os details

magisk rooted Android q project treble ROM

I just purchased a used Samsung Tab S3 which comes with Verizon network capabilities. I don't want to use cell capabilities, just Wifi.

After setup, on the lock screen and in the notification center is a message from "Setup Wizard" that says "Activation Incomplete" and to call Verizon support to activate the device (which I don't want to do).

Is there a way to remove this message without calling Verizon?

My Xiaomi Redmi Note 6 Pro broke and 3/4 screen is completely black, I can't see anything but a little part below

enter image description here

Other than that, the touch doesn't work AND sometimes the screen triggers some random coordinate touch. If that's not enough, Xiaomi devices must be unlocked at least 1 time after startup with pattern, but can't. I usually use biometric unlock such as fingerprint sensor and facial recognition but, again, can't.

I want to still use it anyways as a mobile hotspot. I managed to turn on mobile data on adb but, trying to activate hotspot like suggested in this post, so adb shell service call connectivity 24 i32 0, I receive this output:

Result: Parcel(
0x00000000: fffffffc 00000019 00610063 006c006c '........c.a.l.l.'
0x00000010: 006e0069 00500067 0067006b 00630020 'i.n.g.P.k.g. .c.'
0x00000020: 006e0061 006f006e 00200074 00650062 'a.n.n.o.t. .b.e.'
0x00000030: 006e0020 006c0075 0000006c 00000330 ' .n.u.l.l...0...'
0x00000040: 00000193 00610009 00200074 006f0063 '......a.t. .c.o.'
0x00000050: 002e006d 006e0061 00720064 0069006f 'm...a.n.d.r.o.i.'
0x00000060: 002e0064 006e0069 00650074 006e0072 'd...i.n.t.e.r.n.'
0x00000070: 006c0061 0075002e 00690074 002e006c 'a.l...u.t.i.l...'
0x00000080: 00720050 00630065 006e006f 00690064 'P.r.e.c.o.n.d.i.'
0x00000090: 00690074 006e006f 002e0073 00680063 't.i.o.n.s...c.h.'
0x000000a0: 00630065 004e006b 0074006f 0075004e 'e.c.k.N.o.t.N.u.'
0x000000b0: 006c006c 00500028 00650072 006f0063 'l.l.(.P.r.e.c.o.'
0x000000c0: 0064006e 00740069 006f0069 0073006e 'n.d.i.t.i.o.n.s.'
0x000000d0: 006a002e 00760061 003a0061 00320031 '..j.a.v.a.:.1.2.'
0x000000e0: 00290038 0009000a 00740061 00610020 '8.).....a.t. .a.'
0x000000f0: 0064006e 006f0072 00640069 006e002e 'n.d.r.o.i.d...n.'
0x00000100: 00740065 0043002e 006e006f 0065006e 'e.t...C.o.n.n.e.'
0x00000110: 00740063 00760069 00740069 004d0079 'c.t.i.v.i.t.y.M.'
0x00000120: 006e0061 00670061 00720065 0065002e 'a.n.a.g.e.r...e.'
0x00000130: 0066006e 0072006f 00650063 00650054 'n.f.o.r.c.e.T.e.'
0x00000140: 00680074 00720065 00680043 006e0061 't.h.e.r.C.h.a.n.'
0x00000150: 00650067 00650050 006d0072 00730069 'g.e.P.e.r.m.i.s.'
0x00000160: 00690073 006e006f 00430028 006e006f 's.i.o.n.(.C.o.n.'
0x00000170: 0065006e 00740063 00760069 00740069 'n.e.c.t.i.v.i.t.'
0x00000180: 004d0079 006e0061 00670061 00720065 'y.M.a.n.a.g.e.r.'
0x00000190: 006a002e 00760061 003a0061 00300032 '..j.a.v.a.:.2.0.'
0x000001a0: 00330035 000a0029 00610009 00200074 '5.3.).....a.t. .'
0x000001b0: 006f0063 002e006d 006e0061 00720064 'c.o.m...a.n.d.r.'
0x000001c0: 0069006f 002e0064 00650073 00760072 'o.i.d...s.e.r.v.'
0x000001d0: 00720065 0043002e 006e006f 0065006e 'e.r...C.o.n.n.e.'
0x000001e0: 00740063 00760069 00740069 00530079 'c.t.i.v.i.t.y.S.'
0x000001f0: 00720065 00690076 00650063 0073002e 'e.r.v.i.c.e...s.'
0x00000200: 00610074 00740072 00650054 00680074 't.a.r.t.T.e.t.h.'
0x00000210: 00720065 006e0069 00280067 006f0043 'e.r.i.n.g.(.C.o.'
0x00000220: 006e006e 00630065 00690074 00690076 'n.n.e.c.t.i.v.i.'
0x00000230: 00790074 00650053 00760072 00630069 't.y.S.e.r.v.i.c.'
0x00000240: 002e0065 0061006a 00610076 0033003a 'e...j.a.v.a.:.3.'
0x00000250: 00300033 00290038 0009000a 00740061 '3.0.8.).....a.t.'
0x00000260: 00610020 0064006e 006f0072 00640069 ' .a.n.d.r.o.i.d.'
0x00000270: 006e002e 00740065 0049002e 006f0043 '..n.e.t...I.C.o.'
0x00000280: 006e006e 00630065 00690074 00690076 'n.n.e.c.t.i.v.i.'
0x00000290: 00790074 0061004d 0061006e 00650067 't.y.M.a.n.a.g.e.'
0x000002a0: 00240072 00740053 00620075 006f002e 'r.$.S.t.u.b...o.'
0x000002b0: 0054006e 00610072 0073006e 00630061 'n.T.r.a.n.s.a.c.'
0x000002c0: 00280074 00430049 006e006f 0065006e 't.(.I.C.o.n.n.e.'
0x000002d0: 00740063 00760069 00740069 004d0079 'c.t.i.v.i.t.y.M.'
0x000002e0: 006e0061 00670061 00720065 006a002e 'a.n.a.g.e.r...j.'
0x000002f0: 00760061 003a0061 00380033 00290031 'a.v.a.:.3.8.1.).'
0x00000300: 0009000a 00740061 00610020 0064006e '....a.t. .a.n.d.'
0x00000310: 006f0072 00640069 006f002e 002e0073 'r.o.i.d...o.s...'
0x00000320: 00690042 0064006e 00720065 0065002e 'B.i.n.d.e.r...e.'
0x00000330: 00650078 00540063 00610072 0073006e 'x.e.c.T.r.a.n.s.'
0x00000340: 00630061 00280074 00690042 0064006e 'a.c.t.(.B.i.n.d.'
0x00000350: 00720065 006a002e 00760061 003a0061 'e.r...j.a.v.a.:.'
0x00000360: 00330037 00290035 0000000a          '7.3.5.).....    ')

I also wanted to install an application on the phone to control it through the pc, but can't because it needs confirmation from phone itself.

After I tried to use a screen unlocker bash file (through windows ubuntu subsystem) and, finding the coordinates for the points, the screenshots from the phone lock screen are blank so I can't see which coordinates they are.

After that I also tried to use AdbControl (written in Java), which should stream the phone to the pc , but it gives me errors for every single frame.

I tried also Mi Suite with no luck: although I connected my device it shows this:

enter image description here

Any thoughts?

Title says it all, pretty much.

A quick Google search (surprizingly) did not return any pertinent results.

I guess it might boil down to copy-pasting some system folders/files from one Android installation (via USB-C, via a PC) to the other. But I prefer not to be the guinea pig here...

(PS: I'd rather not have to revert to Firefox's "sync"-feature for various reasons... anyway, it's obvious that "sync" would work, but that's not the question here...)


EDIT:

  • My phone(s) aren't rooted.
  • Neither a 3rd-party app, nor a cloud-based solution is what I'm interested in.

Related link(s):

seems like the transfer-via-USB-route would require a rooted phone :(

This question is based on an observation of Android's powerful security features, In my old Android Lollipop third party apps had read access (but no write access) to external SD card, but my Android Pie prevents apps from even reading / writing data to the external SD card? But the preinstalled apps will prompt to aquire these permissions. Is there a way for app developers to circumvent this ?

I'm trying to understand why there is no GUI way or Post-Installation process to accept the android SDK Build Tools license:

Failed to install the following Android SDK packages as some licences have not been accepted.
   build-tools;28.0.3 Android SDK Build-Tools 28.0.3
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

After searching a lot I found the command for sdkmanager.exe but the directory tools/bin/ does not exist in C:\Users\MyUsername\AppData\Local\Android\Sdk.

Can anyone help me to accept the license to move on? :)

I bought a cheap Chinese Android-based set top box for the bedroom. It came with a few apps preloaded, amongst which YouTube and Netflix.

Unfortunately, the developers of this box seem to have missed a few steps, and the device does not seem to be configured properly as an Android TV device. The result is that the installed YouTube app is the Android TV version, but the installed Netflix app is not. Needless to say, in this situation the Netflix user experience is suboptimal. When I try to install the Android TV version of Netflix, Google tells me that the device is not compatible.

Due to the whole lockdown situation, replacing the device by one that is done properly is complicated right now (courier services are in lockdown as well where I live, and the shop where we bought it is not currently in operation until after the lockdown), so I would like to explore the possibility to override these restrictions somehow. I don't mind hacking the device, as long as it doesn't require rooting the thing, as that might mean Netflix won't work anymore at all, which obviously I wouldn't want.

How do I figure out why the Android TV version of Netflix won't install on my device, and is it possible to override this restriction somehow?

On Gboard, when I long-press the "a" character, for example, I can see some other "a" characters pop up which have different marks or diacritics on them. By using long-press, I am able to easily type the ā and Ā characters, but we don't have such an option for "h" character for instance, as I would like to similarly type the ḥ and Ḥ characters. And similarly, I would like to be able to type some other Unicode characters like ʿ by long-pressing the ' key. These characters are accepted in standard academic Arabic romanizations and copy-pasting these Unicode characters from other applications is very inconvenient.

  • Is it possible to be able to add my own characters to the long-press of the current characters on Gboard?
  • Or is it possible to create my own keyboard layout and add that to Gboard (like we add new languages and each language has its own key-set)?
  • If not, is there a way to hack-edit the language source file (when we download a language in Gboard) and assign my custom keys to them, so that when that language is set in the Gboard, it has my custom keys set in it?
  • Or if it is not possible on Gboard, then is there any other keyboard app that allows us to customize its keys like this?
  • If it is not possible on Gboard, how to suggest a custom-long-press-key-setting feature to the Gboard team?

Thanks.

I rooted Intex Cloud Cube v08 and installed an xposed module. After restarting the device it says

"unfortunately system UI has stopped"

and after tapping on ok it again shows the same. It is still the same after restarting.

I tried key combinations

volume down + power key -: It is going into safe mode but not recovery mode

volume up + power key -: Just restarting normally

I don't have custom recovery

How to solve this problem and go into the stock recovery mode?

This XDA blog How A/B Partitions and Seamless Updates Affect Custom Development on XDA has some Q&A's, of which :

  • My device supports A/B partitions, does that mean I can make use of a Project Treble Generic System Image?

Not necessarily. Project Treble and A/B support are unrelated. The Motorola Moto Z2 Force doesn’t support Project Treble, yet it supports the A/B partition scheme.

  • My device supports Project Treble, does that mean I have an A/B partition scheme?

This is not always the case. The Honor 9 Lite is a prime example as it supports Project Treble yet does not have an A/B partition scheme.

(Emphasis added)

I thought Treble and A/B devices are synonymous in the sense having one implied other. That's not the case

Why is this? What are the differences?

As displayed in this image is there a sound control for Android notification/drop down menu?

Alternatively some other mechanism. The volume buttons are broken on my phone.

Ideally well rated app.

I want to root my Tecno Camon 12 Air but nothing works. I got samsung devices rooted within a blink but this one just does not. I have:

  • Allow OEM bootloader to be unlocked checked
  • Tried different PC softwares like KingoRoot iRoot etc.
  • Tried almost all of the apps which said they could root

I have searched everywhere and tried almost everything but could not have the job done. Every time some adb command is rejected by an indefinite printed on the command-line or it just reboots to get back normal. No change. Nor the fastboot commandos work as in fastboot it gets hang on the same thing. Which is a crucial step in ROM patching or bootloader unlocking.

Its running Android 9 Pie and the processor is MTK Helio P22 if that helps.

I have a google account that I want to log into from the Gmail App of and android device. I ONLY want gmail, not hangouts, drive, etc. So I am trying to add the account as a standard email address in gmail.

In my gmail account I have gone to settings>Forwarding POP/IMAP and enabled IMAP. Then following these instructions (https://support.google.com/mail/answer/7126229) I try to add the email in the gmail app on my phone.

I open up Gmail>Menu>Settings>Add Account type in my email address and then click Manual set up>IMAP On the incoming settings, I type my email, password, and "imap.gmail.com"

That works fine... but then on the next step...SMTP... On the incoming settings, I type my email, password, and "smtp.gmail.com"

And is says "username or password is incorrect" And then in my gmail account, I get an email titled "Critical security alert" that says "Someone just used your password to try to sign in to your account from a non-Google app. Google blocked them, but you should check what happened."

How can I get a gmail address added to the gmail account via IMAP instead of having to add my whole google account to the whole phone?

Thanks for your help on this!!

Whatsapp 2.20.108 on Android 9

I try to export a chat with media. I export it either to gmail or gdrive. (please note the difference: You can backup and export to gdrive. I'm interested in the export functionality)

For some chats, it works; but for other chats, only a few media are exported instead of all. Also the chat messages are not always exported properly. For example, for one chat, only messages after June 2018 are exported, but not the older ones.

What's going on here? Can this be changed? I want to save all the chat text and all pictures, videos, audio, documents.

I have various Android devices, rooted, with version ranging from Android 4.1 to Android 6.0. I want to enable 4x MSAA using shell/ADB.

The code below is used to enable Hardware Overlay through a shell script

service call SurfaceFlinger 1008 i32 1

But is there a way to enable 4x MSAA?

I've been using lineageOS 14.1 for a long time on my Galaxy S4 mini (gt-i9195) and recently wanted to try some apps requiring root access. In the developer options I could set root access only to "ADB only". I tried installing su from https://download.lineageos.org/extras via TWRP but the installation failed (probably because I tried installing the arm64 version instead of arm, I'm guessing retrospectively?). Anyway, I decided to upgrade TWRP to 3.3.1-0 (from 3.0.1-0 before I think) following random advice I found online. I started flashing 3.3.1-0 to the recovery partition via TWRP but it got stuck while "Patching system unconditionally". After more than an hour of this I powered off and restarted into recovery mode.

Surprisingly, TWRP now boots as version 3.3.1-0 without any issues. However, whenever I try to boot system into lineageOS I just get the Samsung startup logo and then the screen stays black.

Any idea how I might be able to start up lineageOS again? I would try rolling back to an older version of TWRP maybe, but I couldn't yet figure out how to get the image file onto the phone. I tried installing adb on my desktop and plugging the phone in via USB but adb devices does not find the phone. Might Odin work for this despite not having the standard ROM and without wiping the phone?

Unfortunately I don't have a backup, as I didn't have the storage space for it. But while there's nothing super important on the phone I would still of course prefer not having to wipe everything.

I can't find a way to set a daily limit to my daughter regardless of her devices. I want her to spend 2h max on screen no matter which device she uses on that day.

Yet she's getting 2h on her tablet and 2h on her smartphone.

Am I missing something? Does Family Link only allow to set device-specific limits?

I have published a mobile game in Google Play Store. Apparently it cannot be played in China as China has banned Google. Huawei provides an alternative app store -- Huawei AppGallery. Does it mean that if I upload my game there, players from China will be able to download my game?

Answers to this question Is power consumed from battery to run the phone when charging? explain how charging while phone is in use does both - charging the battery and powering the on going activities.

My question is different — Can I stop charging the battery but use the connected power for ongoing activities?

Why do I want to do this?

and

  • at the same time use the charging power to keep running the phone without any heat stress on battery, thus extending battery life.

  • Also the battery is not drained, enabling me to use the phone for longer time without charging

Edit : I am not looking for dedicated cables or hardware that can possibly do this

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes