[Q] Fixing a broken system App that crashes when there IS internet access - Other Tools & General Discussion

Hi guys.
I need some help or instructions.
I have in my Asus an app that is good, but always crashes. This is a system app called Asus MyLibrary, or Asus Reader.
This doesn't happen only to me, but its known to always crash for everybody
http://www.transformerforums.com/fo...ashes-every-time-i-try-start-asus-reader.html
http://www.transformerforums.com/forum/applications/26417-my-library-replacement.html
http://forum.xda-developers.com/showthread.php?t=1155510
The fix to the problem is turn wifi and data off (or turn on Airplane mode), then it will work fine.
Many people think it is because the app tries to connect to Asus servers (which are down) and this crashes the app.
I would like some help on how to disable this seeking of an internet connection within the app, then recompile it, sign it.
But then it is a system app. Can it be installed as a normal app? (My device is not rooted).
I have tried another app that reads the apk, removes permission to access the net, and packages it into a new apk. This apk wouldn't install in my device. Perhaps because the package name is the same still. I tried modifying the package name (com.asus.reader) to something else (I called it MyReader, com.android.myreader), recompiled, signed, zip aligned, and it still won't install. (App not installed). Perhaps it is conflicting with the original system app still in the phone?
I have two attachments, one is the original apk from the system folder, and reader-sz.apk is the one i've tried to modify the name and package, then signed, and zipaligned. Did I do something wrong that it won't install in the device?
In summary, there are two questions really.
1) Why doesn't reader-sz.apk install in my device? I've changed the app name and package name in the manifest.xml
2) How do I remove (or disable, or nullify) the app from accessing the internet, from within the app itself? (I think simply removing permissions will still crash it, may need to go into the functions itself, is that even possible?)
Please if anyone can guide me, I think you may help many-many users.

Related

Need help--TTS in settings crashes ("secure table" in 4.4.4?) $ incentive for help...

Need help--TTS in settings crashes ("secure table" in 4.4.4?) $ incentive for help...
--The device is a Note Edge running 4.4.4, but I do not believe the problem is device-specific.
--The app is one specific Cereproc Text to Speech voice/engine
What happened? I was upgrading from a Note 3 to Edge. I used TiBu to backup and restore. I know better than to restore system apps. This is a user/data app. This app installs the apk, library files, and voice resource files to internal storage. Naturally TiBu does not properly backup this app. When I upgrade to a new device, I usually have to re-download. No big deal.
In this case, I forgot. After everything got restored, I went to Settings>Language/Input>TTS, and chose the Cereproc voice. Immediately, I get "Settings is not responding". The only way for me to select another TTS is to deinstall the Cereproc voice. Yes, I've tried wiping cache/dalvik and uninstall/reinstall, no joy.
The interesting thing is that I am able to install another Cereproc voice, any other, and it works just fine. It's only this specific one that will cause Settings to crash every time.
After doing some looking, I found these below. In excerpt:
https://code.google.com/p/android/issues/detail?id=63122
When updating our TTS engine to comply with Android 4.4 from Android 4.3 we have experienced odd behaviour in relation to the TextToSpeechSettings and java.util.Locale.getISO3Country when the application had an active install during the update process on a Google Nexus 4. The result of this behaviour is that the TextToSpeech Settings crashes as a result of MissingResourceException when the Android system is handed the locale eng_NULL.
I am pretty sure this locale (eng_NULL) was somehow associated with the package name of our application as it's default. An uninstall/reinstall doesn't fix the problem, leading me to believe it is cached somewhere in the system settings, however, a reinstall with a different package name results in an error/warning free install/operation.
I think the correct behaviour should be that the application should be handed an eng_GBR locale and not eng_NULL as it's default. Without rooting the device, there does not seem to be a way to alter this value.
Click to expand...
Click to collapse
It seems to be fixed here:
https://android-review.googlesource.com/#/c/87756/
This is an attempt to fix uncaught MissingResourceException
that would be thrown if default language of selected engine is
set to a locale that has no 3-letter country/language code.
Click to expand...
Click to collapse
Yet another post related to seemingly the same thing:
http://stackoverflow.com/questions/22297532/text-to-speech-output-screen-crashing
This in an Android bug and it's very frustrating.
There is a bug reported here (which is fixed as of this, but not yet rolled out to actual devices) and a related one here.
If the locale you are declaring cannot be matched by the system, then the Settings will persist to crash. I tried clearing everything to prevent this from happening, but the System is caching this value somewhere and attempting to match it prior to checking any updated locale in your app.
I changed my code to a locale that I knew would be matched, wiped my device and resintalled...
You need to make sure that you declare the locale correctly as heb-HEB I think!!! But beware!!! If Android doesn't recognise it, you'll get the crash again....
It's best to declare an extra locale that you default to and then check in the Settings if the locale code you are using is displayed correctly. If it's not, don't select it! And try again....
I posted on the bug report above, asking where Android persisted this incorrect locale, but I got no answer.... If you can find out, you wouldn't need to wipe your device. I tried wiping all caches in recovery, but it didn't work.
The engine settings are stored in secure table, and there is no way to alter those values (unless rooted)
Click to expand...
Click to collapse
The important take-aways are :
1) Wiping cache and reinstalling doesn't solve the problem
2) If it's a different version or package of the same app, it works just fine
3) Again, I can install any other Cereproc voice, and it works just fine
4) There is a "secure table"(?) where it *CAN* be altered and fixed if I have root? I do have root, but how do I fix this??
I can really use some help on this folks. I'll pledge $15 via PayPal to anyone who gives me specific information/instruction on getting past this. I really don't want to factory reset.....
Thanks.

Accessing system folder without root access

Hi all.
I'm after quite specific need but would like to know more general answer / solution if possible at all.
I know that wihtout being rooted there's not much one can do with system folders, but still, there are some ways and tricks to get to them, one of them being Backup option provided by android, using ADB shell.
I'm after specific file, that is /data/data/com.android.mms/shared_prefs/com.android.mms.categoryInfo.xml
Using Htc One M8, stock rom, I've tried to do adb backup of com.android.mms application, but all I got was 1kb (actually 41 bytes) sized file, which contains nothing.
I wonder, is there any other way to get to the specific system app folder, if you're NOT rooted?
Any help would be highly appreciated.
Additional info: I'm after that file because it has stored Secure message box password in Plain text. My phone is about to go to the service due to several issues, including battery getting way overheated when used, and not charging over 25% at all, and the only thing left to make a backup is the secure box storage, which I used as an "Other inbox" folder in order to have the main Inbox a bit more "clean", and I know I've set it to something stupid and short, and I've accessed them not long ago, but for the f's sake I can't get in the folder anymore (and I'm highly betting that after several attempts even the real password is no longer accepted, and that being the reason I can't figure out the pass by trying, but there's nowhere info it thats true, and if so, how long to wait before real one would be accepted etc...)
Big thanks if anyone could help out, if not - not gonna be the end of the world. But would kinda like to store some of the messages that are newer than my latest backup...
Cheers!
cucolino said:
Hi all.
I'm after quite specific need but would like to know more general answer / solution if possible at all.
I know that wihtout being rooted there's not much one can do with system folders, but still, there are some ways and tricks to get to them, one of them being Backup option provided by android, using ADB shell.
I'm after specific file, that is /data/data/com.android.mms/shared_prefs/com.android.mms.categoryInfo.xml
Using Htc One M8, stock rom, I've tried to do adb backup of com.android.mms application, but all I got was 1kb (actually 41 bytes) sized file, which contains nothing.
I wonder, is there any other way to get to the specific system app folder, if you're NOT rooted?
Any help would be highly appreciated.
Additional info: I'm after that file because it has stored Secure message box password in Plain text. My phone is about to go to the service due to several issues, including battery getting way overheated when used, and not charging over 25% at all, and the only thing left to make a backup is the secure box storage, which I used as an "Other inbox" folder in order to have the main Inbox a bit more "clean", and I know I've set it to something stupid and short, and I've accessed them not long ago, but for the f's sake I can't get in the folder anymore (and I'm highly betting that after several attempts even the real password is no longer accepted, and that being the reason I can't figure out the pass by trying, but there's nowhere info it thats true, and if so, how long to wait before real one would be accepted etc...)
Big thanks if anyone could help out, if not - not gonna be the end of the world. But would kinda like to store some of the messages that are newer than my latest backup...
Cheers!
Click to expand...
Click to collapse
Yes and not.
if you don't have root access, you can not copy an application from the system folder, to make this the ADB would need root permissions. but....
You can download the stock rom, and copy/extract/edit the app you need it.
xdedeone said:
Yes and not.
if you don't have root access, you can not copy an application from the system folder, to make this the ADB would need root permissions. but....
You can download the stock rom, and copy/extract/edit the app you need it.
Click to expand...
Click to collapse
Actually no, if the file is user specific, as in my case, the help of stock rom's file is not gonna help.
Anyway, SOLVED now.
As per this post: http://forum.xda-developers.com/showthread.php?t=2054401
The backup of the app was made and got the file. I've done the same thing without success, because on HTC, the messaging app is com.htc.sense.mms and NOT com.android.mms.
Therefore creating backup of the com.htc.sense.mms did result kin getting exactly what I needed.
In the extraction of the tar .ab archive using dd in linux, I got folder app, within there is a folder com.htc.sense.mms, wihtin there's a folder sp, and there is com.htc.sense.mms.categoryInfo.xml which has the secure box password stored in plaintext.
Voila! )

[Q] Is there a way to hide apps from each other?

I'm no pro, so forgive anything stupid I may say in advance. I recently learned that any android application has permission to see any application installed on your device. I'm a bit of a privacy nut, and I have concerns with this for a plethora of reasons. I was hoping to learn of a method that would allow me to somehow prevent apps from being able to see what's installed, or at minimum, mask the actual application names so the data an app gets is useless for any purposes they may have for it.
Is there any way to achieve such a thing?
I'm no pro either, but what I do is I use two apps to accomplish this. The first is MyAppSharer (no root required). The second is Advanced Permission Manager (again, no root required). Both can be found on the play store.
First I use MyAppSharer to create an .apk of the app I want to isolate. Place it In the download folder (or any folder of your choosing). Next I install the .apk with Advanced Permission Manager. While installing simply uncheck the 'view other apps permission' or whatever it's called and that might work.
The only concern I have is that apps usually check to see if they have access to all their permissions before startup, and if one is missing it might either not allow you to launch the app or or will crash. Or it'll work perfectly fine and all's well
Good luck
I think you need to hide apps and permission manager. For me, I used to use Greenify, the ForceStop as permission manager, which are available on xposed module repository, but they both require root.
For hiding apps, maybe the "PrivateMe" can help you, it also can hide photos, install apps in hidden mode.
Dresden_ said:
I'm no pro, so forgive anything stupid I may say in advance. I recently learned that any android application has permission to see any application installed on your device. I'm a bit of a privacy nut, and I have concerns with this for a plethora of reasons. I was hoping to learn of a method that would allow me to somehow prevent apps from being able to see what's installed, or at minimum, mask the actual application names so the data an app gets is useless for any purposes they may have for it.
Is there any way to achieve such a thing?
Click to expand...
Click to collapse
The sudo hide xposed module is exactly what you want to figure out
You will get first list of apps where you have to select ''which app to hide"
Then you will get second list of apps where you can select "from which apps to hide that app"
If you want any help regarding xposed,reply me back
Please push the thanks button if it helped
Enjoy:victory::victory:
Regards milkyway3

New to Android. Installed ES File Explorer on my GS7 without knowing it's spyware

So, like the title says. I wanted a file explorer and I've seen some recommendations of ES as a great option. 20 minutes after installing, I got a popup ad from ES while using a different app; I immediately uninstalled it, but upon searching the web I've since learned that app used to try to hijack your lock screen and creates suspicious folders inside the phone's storage.
Now I'm worried that my phone could somehow be compromised by this app. My questions are:
1. Should I worry, or uninstalling is enough? If this was a Windows computer I'd just wipe the main partition and do a fresh install, but being new to Android I don't know if I'm overreacting.
2. Btw, what would be the Android equivalent of wiping the main partition and doing a fresh install?
3. Just to be sure, I followed what's described in this article and monitored the traffic on my phone for a while with Fiddler. I learned that sometimes when I shut down the phone it connects to api.glympse.com port 443. I understand that Glympse is a geolocation sharing service; does anyone know what in the phone would be trying to send info there and why? Is this normal?
Thanks.
firesinis said:
So, like the title says. I wanted a file explorer and I've seen some recommendations of ES as a great option. 20 minutes after installing, I got a popup ad from ES while using a different app; I immediately uninstalled it, but upon searching the web I've since learned that app used to try to hijack your lock screen and creates suspicious folders inside the phone's storage.
Now I'm worried that my phone could somehow be compromised by this app. My questions are:
1. Should I worry, or uninstalling is enough? If this was a Windows computer I'd just wipe the main partition and do a fresh install, but being new to Android I don't know if I'm overreacting.
2. Btw, what would be the Android equivalent of wiping the main partition and doing a fresh install?
3. Just to be sure, I followed what's described in this article and monitored the traffic on my phone for a while with Fiddler. I learned that sometimes when I shut down the phone it connects to api.glympse.com port 443. I understand that Glympse is a geolocation sharing service; does anyone know what in the phone would be trying to send info there and why? Is this normal?
Thanks.
Click to expand...
Click to collapse
Hi... i used ES file explorer without any problem... did you download it from the play store?
1. Usually uninstalling an app is enough.. there may be some files remaining in your storage partition under android >data folder.
2. Wiping your phone by entering recovery mode by pressing home+ vol up + pwr button... you may also reflash your os through odin
3.can't answer that because i don't know
I had ES Explorer for years, until they started to do really stupid things, like these random hyjacks.
So, I uninstalled the app and never had any ads anymore, su I guess this is sufficient to get rid of ES Explorer.
Only happens with the free version, been running Pro for a good while and it does none of the above

Accidentally Removed Some Apps via ADB

I finally found a way to disable/uninstall apps after a long time, and I could put the ADB I got to use. I've been looking for a way to disable/uninstall various apps, especially the ones that can't be normally disabled/uninstalled, and came across this article: www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/. It really helped, since I couldn't get root on my phone (not available).
I started with some apps I knew I don't use (most of the google ones), but accidentally uninstalled a few necessary ones. I got one of them back via ADB, but not the other two: com.google.android.setupwizard and com.google.android.configupdater. Does anyone know where I could find the APKs file for setup wizard and configupdater? I couldn't find them on apkpure.com... If these aren't necessary for using an android-based device, please let me know.
A minor thing I noticed is that I can still disable apps after uninstalling via ADB and turn off data. Also, I could turn off special access settings (appear on top, change system settings, etc.) but those revert to on after a moment. It doesn't bother me too much (as much as the fact that uninstalled apps still remain in the Apps list).
Edit: accidentally removed com.sec.android.app.personalization (can't find on apkpure).
Also, when I was removing unecessary apps, I could get rid of samsung pay, but not the related framework via ADB. I don't know what caused this, and I tried to remove pay before and after attempting to remove the framework. There were no crashes of any kind; just the command prompt (I use windows) returning a blank line instead of success/failure.
Also, when I was removing unecessary apps, I could get rid of samsung pay, but not the related framework via ADB. I don't know what caused this, and I tried to remove pay before and after attempting to remove the framework. There were no crashes of any kind; just the command prompt (I use windows) returning a blank line instead of success/failure.
Update: Found all of them on apkmirror instead. Case closed.
The setup wizard one was causing issues (looping app has stopped), so I removed it again with ADB. I might've got the wrong version or something...
Edit: Can't find a version of com.sec.android.app.personalization that will install properly, and my contact names are messed up (and the app stopped working).
MOD ACTION:
Thread closed as duplicate at the request of OP.

Categories

Resources