Bad package installed in Xiaomi MI A2 Lite - Android Q&A, Help & Troubleshooting

Hello,
I have a big problem to uninstall a package that I naively installed on the phone.
First of all, the phone works rather normally but:
a) I can't uninstall this app
b) I can't uninstall any other app
c) The app is present in the Accessibility section as a service (it's a clone of LiveNetTv).
The package is named com.a02f252e890bf12d80.eccfe059f8f8a9f521.
I would like to connect the phone to PC via Adb so that I can uninstall the app
from Adb using the indications described here:
h ttps://gadgetstouse.com/blog/2020/07/10/how-to-uninstall-stock-apps-from-android-without-rooting/
The big problem is this one: from the Developer options, when I enable "Debug USB" option,
immediately the option is turned off (every single time), so it's almost impossible for me
to see the phone from PC: if from Powershell I launch the command "adb devices", the device
is never recognized so I can't launch any command to uninstall the app.
I hope you can help me with step by step: the device is not rooted and I prefer not to root it.
Thanks so much for the attention.

vaiadubai said:
The big problem is this one: from the Developer options, when I enable "Debug USB" option,
immediately the option is turned off (every single time), so it's almost impossible for me
to see the phone from PC
Click to expand...
Click to collapse
Restore Android's default settings in Developer options. Re-boot Android. Then re-try.

jwoegerbauer said:
Restore Android's default settings in Developer options. Re-boot Android. Then re-try.
Click to expand...
Click to collapse
In Developer options I don't see the option you quote.
Under System -> Advanced -> Reset options I only have 3 voices:
a) Reset Wi-Fi, mobile data and Bluetooth: I already did it.
b) Reset App Preferences (once clicked, the menu disappears immediately).
c) Reset All Data (I hope to solve before doing this).
For better info, the software of this device is of the type Android One.

Thanks for the answers,
at the end I preferred doing a reset of the phone's data.
With apps memorized in Google Drive it seems not so long to recuperate
a configuration similar to the original.

Related

[Q] Rooted and Ran GladEnable... Still No Sideloading

My Atrix is on 4.1.83 AT&T
I rooted using the GingerBreak
After rooting I ran the Gladenable script as per procedure in this forum
http://forum.xda-developers.com/showthread.php?t=1017373
It installed succeessfully and i clicked allow when Super User permission displayed.
Now when i try to install 3rd party apps like Amazon / Teamviewer, I am still getting the message "This application comes from unknown source and cannot be installed"
Am I missing something?
How do we know if GladEnable is installed ?
Is there any other option i have to select to Enable Sideloading?
I did see in the Super User Apps tab, 5 New Unknown Apps
Its all almost same time and detail shows
1. mount
2. cp sqlite
3. chmod
4.gladenable.sh sideload
5. gladenable.sh tether
So all above confirms GladEnable installed.
Is these 5 are correct or should i need to see more?
What happen if i run the Glad Enable again?
did you tick the box to allow unknown sources?
When I go into Settings > Applications > Development
I didn't see the option to Allow Unknown Sources.
These are the things i see..
USB Debugging
Stay awake
Allow mock locations
Am I looking at the right place?
Also Under Settings > Applications
I did see these Menus
Manage Applications
Running Services
Development
Double tap home launch
try running root explorer or titanium backup to verify Root access
sakdroid said:
When I go into Settings > Applications > Development
I didn't see the option to Allow Unknown Sources.
These are the things i see..
USB Debugging
Stay awake
Allow mock locations
Am I looking at the right place?
Also Under Settings > Applications
I did see these Menus
Manage Applications
Running Services
Development
Double tap home launch
Click to expand...
Click to collapse
Unknown Sources will be the First option in the Application menu followed by Preferred install location, manage applications etc. Make sure usb debugging is still on and leave it on! Run glade enable again just say no to them all accept the sideloading one. Give that a shot.
I had exactly the same problem. Download the app called root checker and make sure that you are rooted and have the busybox installed. Also, if you are trying to Run GladEnable.bat on Windows 7, make sure that you run it as admin by holding down control and double-clicking, like step 8 mentions. And last, but not least, make sure you have the usb on debbuging mode, you select the "None" usb option on the on your phone, and that windows uses the debbuging drivers when plugged in. I hope this info helps you.
Thanks everyone for the support!
I just reran Glad Enable and now I see the Unknown source under application menu.

[Q] pre-installing same apps into thousands of new phones?

Hi All,
I am interested in possible options for installing the same apps into thousands of brand new
android phones, with least effort per-phone possible. Also, in future, some additional actions
might be needed, like changing phone configuration/settings, etc. Phones might be of different
manufacturers and models, Android OS versions, etc.
For now the best option I was able to find is using ADB (Android Debug Bridge).
Workflow would be following:
1. Unbox/unpack phone, insert battery, turn phone on
2. Using phone, navigate to Settings->Applications->Development, check “USB Debugging”
3. Connect phone to PC using USB
4. Run some self-made batch scripts, which would do "adb install", "adb push", etc.
(many phones could be connected, installing same apps simultaneously from one PC)
5. Disconnect, turn off, remove battery, pack phone back into box.
Is above workflow possible? Or am I missing something?
Maybe there is a better option than using ADB? Maybe inserting SD card into each phone,
which would contain some auto-run install script, if that is doable? It would eliminate time
needed for connecting to PC, navigating to "USB Debugging", etc.
Rest of the questions I still don't have answers to:
1. Maybe it is possible to install apps / configure phone without connecting battery
(using power provided by USB connection)? Tried on some phones, no luck so far.
2. Maybe it is possible to instal/configure via USB without manually checking "USB Debugging"?
For example maybe using download/recovery mode? Could Odin3 be used for this?
3. After APP is installed, is there some generic way of adding its icon on home screen, using ADB?
Or method is different for each UI (data stored in different folders, different formats, etc.)?
The sdcard method wont work for sure
The adb way works
The recovery way is possible but depending on the phones recovery, many new phones do not accept update.zip files signed with test key, if u use samsung phones there is no way without flashing a custom kernel first.
If u manage to produce a custom factoryfs.rfs file for samsung gs2 for example, you could use odin for this.
----------------------------------------
tapatalked
Please use the Q&A Forum for questions Thanks
Moving to Q&A
Scripted ADB apk install works OK.
But now I have problem of loosing "welcome screen / initial configuration wizard" (whatever it's called, but most phones, if not all of them, have it) for users.
I mean to use ADB, I have to enable "USB debugging mode". So I need to access main menu. This means I need to power on phone, and get past "welcome screen". Most phones don't have "skip" button in those. So I am forced go through "welcome / initial configuration" steps, and phone owner will not see it again, when he starts his phone (which is bad).
Is there some common way for most android phones to re-enable phone "welcome / initial configuration" screen, without doing factory reset? Or to do factory reset without loosing apps? Or to cancel welcome screen somehow (allowing me to access phone menu), so that it pops back on next phone restart?

USB Debugging enable on boot?

I've turned on the developer options and can enable the USB Debugging option to be able to use Titanium backup. However I notice when I reboot the device it gets disabled again. Does anyone know of something/somehow to ensure it's enabled on boot?
Thanks!
---Eric
Got it, need root shell of course:
- Remount /system in readwrite mode.
- Add this to /system/build.prop: persist.service.adb.enable=1
- Save, remount as read only.
- Reboot.
Well...didn't really work...though it did, any ideas? USB debugging for me has to be manually picked each time.
So what seems to work for me upon reboot is that I use SManager and have a script run as root at boot up:
#!/system/bin/sh
echo 1 > /data/property/persist.service.adb.enable
This seems to enable USB debugging upon each boot. The build.prop worked once, but did not seem to keep it enabled.
Any chance anyone else has come up wth a different way to retain USB debugging on reboot? I just had to rebuilt my phone from scratch by restoring from stock and executing a script at boot up could potentially be fatal. I'm a linux admin so I do know what I am doing but without a unlocked bootloader and the ability to recover from a CWM backup, I'd rather not mess with the OS too much if possible.
x86cpu said:
So what seems to work for me upon reboot is that I use SManager and have a script run as root at boot up:
#!/system/bin/sh
echo 1 > /data/property/persist.service.adb.enable
This seems to enable USB debugging upon each boot. The build.prop worked once, but did not seem to keep it enabled.
Click to expand...
Click to collapse
JCDinPGH said:
Any chance anyone else has come up wth a different way to retain USB debugging on reboot? I just had to rebuilt my phone from scratch by restoring from stock and executing a script at boot up could potentially be fatal. I'm a linux admin so I do know what I am doing but without a unlocked bootloader and the ability to recover from a CWM backup, I'd rather not mess with the OS too much if possible.
Click to expand...
Click to collapse
I use Tasker with the secure plugin.
It allows turning on USB Debugging. I use it to turn on USB Debugging as a condition after boot.
Also the worst case with a script, you re-install/flash the OS.
I've reinstalled my Verizon LG G3 from stock ROM twice now. The first time I rooted it with IOROOT and the USB debugging option stays enabled after reboot. The second time I rooted it with Stump root and the USB debugging option does not stay enabled after reboot. No idea what is different between them but maybe someone else can dig through and figure it out.
I have the same problem, when I reboot the phone and open titanium backup.
tech_head said:
I use Tasker with the secure plugin.
It allows turning on USB Debugging. I use it to turn on USB Debugging as a condition after boot.
Also the worst case with a script, you re-install/flash the OS.
Click to expand...
Click to collapse
Could you share how to set this up? Thanks
bamemanxxa3416 said:
Could you share how to set this up? Thanks
Click to expand...
Click to collapse
Set up a task with the "secure Settings" plug in.
You are going to go into the "System Actions" and select "USB Debugging" then select the radio button to "On" then save.
Now you are going to create a profile that uses an Event.
The even will be a "System" type of event and under system you will see "device boot".
Once you have created the event add the USB Enable task you created.
This all assumes you know how to use tasker.
problem fixed......
tech_head said:
Set up a task with the "secure Settings" plug in.
You are going to go into the "System Actions" and select "USB Debugging" then select the radio button to "On" then save.
Now you are going to create a profile that uses an Event.
The even will be a "System" type of event and under system you will see "device boot".
Once you have created the event add the USB Enable task you created.
This all assumes you know how to use tasker.
Click to expand...
Click to collapse
Very nice instructions and thanks for taking the time
because of stumproot, if using iosroot then problem will never appear.
ericsmart said:
because of stumproot, if using iosroot then problem will never appear.
Click to expand...
Click to collapse
Actually not true.
I used ioroot and I have the issue of USB Debug not sticking.
That's why I came up with the way to fix it in tasker.
tech_head said:
Actually not true.
I used ioroot and I have the issue of USB Debug not sticking.
That's why I came up with the way to fix it in tasker.
Click to expand...
Click to collapse
but, it's good to have other solution, it's all good that you guided them who have similar problem.
I have the same problem as you.
tech_head thanks for giving this tasker newb enough bread crumbs that I was able to figure it out and solve the problem (and learn something in the process).
Real easy check usb debug,then plug phone into computer go to your folder that you have adb shift right click mouse all at once open cmd window here check Ethernet mode on phone check rsa cert when prompted type adb devices press enter then adb reboot then enter when LG logo appears unplug phone now your usb debug will always stay checked
WHATSAMATTA U ALUMNI
the tasker approach is now disabled and deathsquad737`s approach has caused it to stay checked... Thanks!
Hi Guys
I found a easy way to fix it.
1) turn on USB debugging
2) Connect G3 to your PC
3) Reboot your G3 when keep connected to PC
4) Unplug
Now the debugging option will be kept.

Can't install apk on 2.0 to save my life

Must be the ADB issue on 7.1.1 but it's driving me crazy. I've tried adb debugging then using "adb install appname.apk" it doesn't work . Someone had a working method on 2.0 when it was a beta build but i can't find the thread. Help me out peeps!
You need universal ADB drivers working and enable ADB Debugging in Developer Settings of the watch. Check the device manager for devices without any drivers and verify that ADB Debuggin is active. Of course you need to activate these first. Go to the settings menu, and scroll down to "About" Tap it. Scroll down to the bottom again, where you see "Build" something Tap it seven times. After the third tap, you'll see a playful dialog that says you're four taps away from being a developer. (If only it were that simple, eh?) Keep on tapping, and *poof*, you've got the developer settings back.

ADB initiated Titanium Backup?

Background:
I have a rooted SM-G900V (Verizon Galaxy S5) running Lollipop with a broken screen. I have Titanium Backup installed and it was supposed to be running weekly but wasn't. I have recovered my photos, contacts, etc. by connecting to my PC and copying the internal storage and from my gmail restore to a new GS5. I want to recover app data from a couple apps. The phone has USB debug turned on and I can connect with ADB.
I thought I could just run an ADB backup, but apparently in order for the backup to initiate I have to press a button on the lower right of the screen...which is broken. I suppose if I could connect via WiFi and then use a MHL cable I could use a keyboard/mouse to click the button on the phone but I don't have a MHL cable right now and I don't know if that would work anyway (WiFi ADB hasn't worked for me to this point).
THE QUESTION:
I've done a lot of reading and found a number of ADB options that sounded viable, but have not been successful. I have TitaniumBackup installed and thought that I could launch the "backup all" batch process but don't see how to make that happen. I have a new GS5 that is identical setup so I could record some actions on that one and play them on the broken one potentially.
I'm open to any suggestions.
bkenobi69 said:
......... THE QUESTION: I've done a lot of reading and found a number of ADB options that sounded viable, but have not been successful..........
Click to expand...
Click to collapse
The only thing I can think of is to guide you to the following thread that should, hopefully, be what you need.
https://forum.xda-developers.com/showthread.php?t=2786395
Good Luck!
~~~~~~~~~~~~~~~
UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my Enigma Machine {aenigma = Latin for "Riddle"}.
I really appreciate the suggestion. FWIW, I sort of came up with a similar approach myself that I almost have working. I turned on ADB WiFi on the device and then plugged in my wireless USB mouse/keyboard. I set up a script that performs a screen capture every 2 seconds and downloads it locally. With Windows7 image viewer, it automatically updates when the image changes so I get a slide show of what's happening on screen. The only issue I have is that the SD card isn't set up for TitaniumBackup apparently since I get an error when I select the backup action. If I can get TitaniumBackup set up correctly, I should be golden!
Thanks for posting that link. Ironically, the solution I developed was very similar in concept. I will give a short description for others who may need to recover data from a phone with a broken screen.
Prerequisites:
* TitaniumBackup - This can be installed from the Play store even if the phone is not functioning
* USB debug mode enabled - Without this, you are stuck. The only issue here is newer phones don't always enable MTP on connection. My old on did but the new one does not. If it doesn't connect via MTP, you will need to install MTPEnabler or similar.
* USB keyboard/mouse combination
* USB cable
* Charged fully functional phone sans screen
* ADB software - You must have the same version on the phone and PC. If not, it won't work reliably/at all. I went with fastboot_adb(1.0.32)_071114_r21 since I have 1.0.32 on my SM-G900V.
Basic steps:
1) Unpack the ADB software on your PC in a convenient location (C:\ADB)
2) Connect phone to PC via USB
3) Send command to enable WiFi ADB connection
4) Disconnect phone from USB
5) Connect ADB via WiFi
6) Run following batch script:
:loop
adb shell screencap /sdcard/screen.png
del screen.png
adb pull /sdcard/screen.png
echo captured
timeout /t 2
goto loop
Click to expand...
Click to collapse
This will dump a screen shot every 2 seconds
7) Open screen.png in Windows image viewer. It should automatically update when the image is refreshed.
8) Type "launch titaniumbackup" and press enter on wireless keyboard.
9) Using either tab or mouse, select the check box to launch TB.
10) Using either tab or mouse, select "menu" from upper right.
11) Using mouse, select "batch actions" from the list.
12) Using mouse, select "RUN" next to "Backup all user apps" from the list.
If all went well, you now have your phone backup up all application data to your SD card which can be easily used on a new phone to restore data.
NOTE:
It may be possible to also use the built-in ADB backup function. I attempted this at one point, but it requires selecting a button in the lower right on the phone. Since I was using ADB over USB at the time, I could not click the button on the phone since I only had one device connected (no hub). If you have a hub it may be possible to use that approach. Alternately, if you use ADB over WiFi, it should also work. However, be aware that there is no way to see where you are clicking or confirm that it worked other than looking at the files on the SD card as ADB backup doesn't appear to give any feedback. Also, this isn't as easy as TB when it comes to restoring as you either have to backup every app one at a time or all together. When restoring, it's also a one shot deal so you can't select specific apps to restore from a larger set.

Categories

Resources