Question and Answer about Android from Stack Exchange network.


I was given an old Tesco Hudl2 recently (Model No. HTFA4B), and the one of the first things I did - perhaps unwisely - was to do a factory reset on it.

Now, after choosing my WiFi connection, it tells me:

Couldn't access internet

An internet connection is needed to setup your hudl. Please check your WiFi settings or connect to a different network.

This page suggests the update server (rather than the "internet") is probably down.

A packet capture seems to suggest it's connecting to https://device.mobile.tesco.com/, but the certificate there expired on 26 June.

A thread at Modaco may have more information, but the forums have been down for at least the last couple of days.

My Samsung Galaxy tab A6 shows the correct time on the home screen. However when it's locked it shows the time one hour ahead. So 10:30 instead of 9:30 for example.

How do I get the lock screen clock to show the same time as the home screen clock?

Default files app is showing many files (mostly photos) that don't exist anymore. How to clean it up?

All of these files existed under /sdcard and were cleaned via synchronization with my PC over ssh. I don't keep my old photos on my phone, and most of the rest was just junk.

(Yes the files really don't exist. If I tap them it just spins. It's like the files app can't handle the file not being there.)

I've operated this way for a long time, but it's glitched out now.

This is an rooted essential PH-1 phone; firmware is from this year. Note that rooted PH-1 phones run patched firmware.

So there is already a working macro that does the following:

Whenever I dial/call a number with a prefix other than the ones I specified, a dialog box appears. I wanted to "filter" the numbers so I would be notified if I was to make a call to a number belonging to a different network/company.

To clarify, there are two codes in the prefix. One is the country code and the other is the network code. For instance, country code is +63 and network (company) code is 945. Furthermore, the country code +63 is interchangeable with 0 and both valid are when making a call. So a +63945xxx number is the same as 0945xxx.

My current issue is that 4-digit prefixes (the ones starting with 0 like 0945, 0917, etc) are already "filtered" by the existing macro. However, 6-digit prefixes (the ones starting with +63 like +63945,+63917 are not filtered), hence 0945 and +63945 which are virtually the same will get different responses (One will prompt a dialog box and the other will not). What I am looking for is a way to first convert +63 to 0 so that it becomes a 4-digit number which the macro can filter.

Here is a link to my previous question which can be used as reference.

Make a pop up message if about to call area codes excluding specified

Also attached is the macro that currently filters 4-digit prefixes but overlooks 6-digit ones.

Edit: 8/15/2020 14:10

I started a new macro from scratch just to be sure. But result in log seems to be the same. Examples of numbers called would be +639451234567 and 09451234567. All numbers dialled prompted a dialog box. Here are the screenshots:

(https://i.stack.imgur.com/wksR0.png) (https://i.stack.imgur.com/FJTtc.png) (https://i.stack.imgur.com/y9Jqi.png) (https://i.stack.imgur.com/qnwbm.png) (https://i.stack.imgur.com/JTS76.png) (https://i.stack.imgur.com/uBuJ8.png)

Edit: 22:30 Below macro given by beeshyams works well.

I need install a game update (1.9GB), but I have have 800 MB or so of internal storage left and I can't run the game on my sd card. I went through my apps and found that the largest one that I don't need was the "package installer" app, which is 800 MB. To my small knowledge, I need that app to install Apk's, but I can do it with other app installers. I haven't experimented with Android system files before, so I have no idea what will happen if uninstall Package Installer.

Edit: This now answered, thanks to advice. I'm just too stupid to find the check mark on my phone.

So I wanted a pop up message/dialog box to appear whenever I dial/call number with prefixes excluded from my list.

To clarify, there are two codes. One is the country code and the other is the network code. For instance, country code is +63 and network (company) code is 945. Country code is only one. While network code reaches like a hundred. I want a pop up message to appear when the prefix is other than +63945*, +63917*, +63906*, and 20+ other numbers. In other words, there would be no pop up when the prefixes I set are being dialled/called while every other number would prompt a pop up message.

I used this macro but all the numbers I dial seem to activate the dialog box. The macro is working but there seems to be an error somewhere.

(Click to enlarge the images)

enter image description here enter image description here enter image description here enter image description here enter image description here enter image description here

I want to watch a film with my friends on my Xiaomi/Redmi7/Android9. I have Bluetooth headset and he have normal Headphones (with cable).

How can I output the sound on BT and AUX at same time?

There is a particular game which is in beta release in on country, in my country it is possible to register on a waiting list and in South America it just says "not available in your country". Is there a general explanation why the availability is different between different countries? Is it for marketing and purchase power adjustments or some other reason?

I had rooted my Android phone, and after uninstalling all browsers, I am unable to use the Gmail app on my phone. While I still get notification of Gmail in the notification bar, it closes as soon as I open the app.

I had tried some other apps (other than Android built-in apps for mail) like Microsoft Outlook, but the problem remains the same. On reinstalling the browser (like Chrome), my mail apps work properly.

Is it possible to use the Gmail app without browsers installed? Any solution including any third-party app is okay.

On a Chrome or other Chromium browser (Brave, Kiwi..) on Android

When I click "add to home screen" from the Brave/Chrome menu, on some sites the icon that is added does not open website but instead opens a custom app created for the website (so called "PWA").

I want to create a simple website link that opens the website in a browser (so I can use search / see the url from the address bar and so on).

How can I do that with Brave or Chrome?

First main question:

is it possible to switch(not only on or off) the state of the mobile data and wifi using adb? (for example for wifi: if you don't know the state of the wifi now. you send several commands and then you are sure that the wifi state changed.) if this is not possible then the question is how to find out the state of wifi and mobile data using adb?

second:

is it possible to switch the state of the wifi-hotspot and the usb-modem via abd?

what can I do:

I'm use

adb shell svc data enable/disable
adb shell svc wifi enable/disable

To turn on/of wifi and mobile data. But I don't know a way to switch the state with one command like "adb shell svc data toggle". Maybe there is a command that returns the state of the Wi-Fi or mobile data? Like adb shell svc data state. and it returns "on" or "off". is there a way to switch it when the phone is locked?

I also use such commands to switch the wifi-hotspot and usb-modem (unlike first two commands above the screen may be off, but the phone must be unlocked):

adb shell am start -n com.android.settings/.TetherSettings
adb shell input keyevent 20
adb shell input keyevent 20
adb shell input keyevent 20
adb shell input keyevent 66

first line opens the settings page. keyevent 20 - simulates key press down, keyevent 66 - enter. it's for usb-modem. for wifi-hotspot i use same first line,key20 key66 key20 key66.

i have samsung a50(android 10) and ubuntu 20. the modem state switching bash script is located at /usr/local/bin so I can run it from the console just by writing the filename.

I would like to install my termux environment (usr folder) to an SD card. is this possible?

I have seen this post Can I install packages to external SD card on Termux in Android?. From what I understand the problems mentioned there is only if you want to install individual packaged to the SD card. I'm looking to install the whole usr folder.

I switch from Google Android to LineageOS and prepare all my data to be ready for the switch. Everything is on Nextcloud so, Contact, Photos, etc are already out of my device. I want to backup SMS/MMS messages and Call log. I can backup them with Samsung Switch, but is there a way to import them in LineageOS after?

Update 1

I'll not install LineageOS with Google Apps support, so any apps from Google Play will not be able to run after the LineageOS install. I can install app from F-Droid or run command line in Linux shell if needed.

Thank you!

Question is simple, is there an easy way to enable developer options on startup from a command line script or 3rd party app? I want to set the flag for 'Disable HW overlays' on startup because it gets turned off every-time I restart the system.

For reference I am on Android 10, with bootloader unlocked, custom recovery, and rooted.

The ADB method is easy enough, but I may not have a computer at hand. Can I retrieve the PID with a Termux package or an app, or any other methods (including those which require root)?

There is a well-known question on how to get APKs from an Android device with adb.

However, this fails for split APKs, because there, adb shell pm path com.example.someapp does list you not only one path, but many as shown in this example:

adb shell pm path com.example.someapp
package:/data/app/com.example.someapp-5Vnt5z8Kiyfka4DG7cFr3Q==/base.apk
package:/data/app/com.example.someapp-5Vnt5z8Kiyfka4DG7cFr3Q==/split_config.en.apk
package:/data/app/com.example.someapp-5Vnt5z8Kiyfka4DG7cFr3Q==/split_config.x86.apk
package:/data/app/com.example.someapp-5Vnt5z8Kiyfka4DG7cFr3Q==/split_config.xxhdpi.apk

So how to do that? Do you need to pull all? Or is base.apk (the filename you always get for non-split-apks) e.g. enough? And how to reinstall them then later?

But I didn't do any recovery and of course I didn't press any button.

It happened already two times.

What does it mean? Does somebody is trying to hack my google account?

I have 2 factor google authentification, but didn't get any SMS, which is supposed happens if somebody is trying to change my password.

I found the following discussions on:

google community

reddit

but it isn't clear for me what does it mean and what should I do.

Do I need a different root file if I have installed a custom rom on Android?

Who creates root files for devices?

I am trying to configure my emulator to connect to my WiFi as per these instructions, however, I find that the "redir" command is not available. My emulator is for API version 29, and its image was generated from the AVD manager supplied with version 4.0.1 of Android Studio.

What gives?

From nowhere, my friend got a notification that com.google.android.trichromelibrary was downloading together with a progress bar.

screenshot

Why?

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