The Optimizer Repeatedly Deletes My .apk Files - Huawei P30 Pro Questions & Answers

I have encountered the same problem described in this post.
I have a P30 pro with EMUI 12. I have turned off "auto-clear junk" switch in Optimizer but it still operates auto-clear.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I saved some .apk files in the storage for backup. Each time the auto-clear finished, I found my .apk files disappeared.
I can't directly modify the storage permission of Optimizer.
I tried revoke storage permission in ADB
Code:
adb shell pm revoke com.huawei.systemmanager android.permission.WRITE_EXTERNAL_STORAGE
but got an error.
I contacted Huawei customer service. They replied that this was an prototype device and they couldn't help.
Although I can uninstall this app via ADB, I'm not sure whether it will cause system instability.
Is there any way to protect .apk files in phone storage except for uninstalling Optimizer?

wak3 said:
I have encountered the same problem described in this post.
I have a P30 pro with EMUI 12. I have turned off "auto-clear junk" switch in Optimizer but it still operates auto-clear.
View attachment 5933703
I saved some .apk files in the storage for backup. Each time the auto-clear finished, I found my .apk files disappeared.
I can't directly modify the storage permission of Optimizer.
View attachment 5933717
I tried revoke storage permission in ADB
Code:
adb shell pm revoke com.huawei.systemmanager android.permission.WRITE_EXTERNAL_STORAGE
but got an error.
View attachment 5933733
I contacted Huawei customer service. They replied that this was an prototype device and they couldn't help.
Although I can uninstall this app via ADB, I'm not sure whether it will cause system instability.
Is there any way to protect .apk files in phone storage except for uninstalling Optimizer?
Click to expand...
Click to collapse
yes their is a way i am not sure if it will work but go to setting and go to apps their will be admin apps or something and many special apps access just turn off everything and another way is to install another anivirus software like (AVG,Avast ) and when they take control it is next to impossible to delete anything with your permission .
Hope u liked it pls like and follow me

Never happened to me. Optimizer only deletes cache and junk files automatically
Must be a setting you messed with...

Related

Droid explorer (sideload without root!)

I'm surprised I have never seen this program mentioned on here before and this will actually install apks without root or sideloading enabled! Even though it says you need root you don't for alot of operations!
http://de.codeplex.com/ get it here
Here are some of the things that you can do with this and its free!
Features:
Multiple Device Support
Copy and auto-apply update.zip
Copy local files to device
Auto detection of connected/disconnected device
APK file icon and extended information
Device command shell window
Reboot device
Reboot device in to recovery mode
Open files for viewing / execution locally with the default file type executable
Drag & Drop file copy from Explorer
Flash Recovery Image
Package Manager (Install & Uninstall)
No need to mount SD card to access files from computer
Access files in other directories besides SD card
Copy files from device to local clipboard
Paste files from local clipboard to device
Open files on local machine
Display open with dialog to specify what to open a file with
Right click APK and Uninstall
Right click APK and Install
Delete files from device
Take a Screen Shot (landscape or portrait)
Plugins can register as a component to open files
Open from within Computer
Should now work with more ROMs as long as they are Rooted and have busybox
Device "Friendly Name" instead of device serial number.
Android Screencast Plugin - Control your android device with your mouse and keyboard
Install/Uninstall APK files right from explorer
Standalone plugin runner (will mainly be used for windows 7 jump lists and the apk installer but can be used to run any plugin.
Better Hero Support
Backup the "Google Experience" applications and creates an update.zip containing the applications
Use an existing Android SDK with Droid Explorer, or let Droid Explorer set up the SDK for you.
I've been using this prog for a while now and think its an absolute necessity to have on my pc. Hope you enjoy this!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[/URL]
[/IMG]
Nice and useful, but this should be under themes and apps, not development.
Stock Bell Atrix on Rogers with updated radio, Rooted, deodexed, Honeycomb theme, and frozen!
D_one said:
Nice and useful, but this should be under themes and apps, not development.
Stock Bell Atrix on Rogers with updated radio, Rooted, deodexed, Honeycomb theme, and frozen!
Click to expand...
Click to collapse
I see your point but this can definetly be used for developmental purposes and its not an app for android its a windows app.
Gutterball said:
I see your point but this can definetly be used for developmental purposes and its not an app for android its a windows app.
Click to expand...
Click to collapse
not really sure what you can develop with it.
dLo GSR said:
not really sure what you can develop with it.
Click to expand...
Click to collapse
Just the fact that you can sideload without root or having sideloading enabled. Is a development really. Just for example with this you can actually push the gingerbreak.apk to your phone without having sideloading enabled to obtain root.
you can do that with adb too
and the sideload wonder machine
thanks alot...I have root access but don't have sideload, because I do everthing with adb oO

[Q] Is there a way to let my computer have root access to my phone?

I want to change the icons for all my apps and APK edit needs the .apk file. Unless there's an easier way to do this.
Adb shell
Would give u terminal
Then su.
Would give you root access
But you could also do ...
Adb pull /where/your/app/is/located
Sent from my SAMSUNG-SGH-I897 using XDA App
^ What he said. You can also use DroidExplorer but in my opinion it isn't the best thing to depend on.
For some reason I just couldn't get adb to work right. Every time I tried to launch it it screwed up and then closed again. I'll try DroidExplorer. If that doesn't help I'll try adb again. Thanks guys.
You have to use a command prompt. You don't just double click it to open.
Hm, when I tried to install DroidExplorer I got this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
BigTortoise said:
Hm, when I tried to install DroidExplorer I got this:
Click to expand...
Click to collapse
Learn how to use adb or go home
Sent from my SAMSUNG-SGH-I777
you could use a root file explorer on your phone and copy all the apks to your sdcard, mount that to the pc, modify the apks, and then either drop all those back in with the same file explorer or make a flashable zip containing all of them...
studacris said:
you could use a root file explorer on your phone and copy all the apks to your sdcard, mount that to the pc, modify the apks, and then either drop all those back in with the same file explorer or make a flashable zip containing all of them...
Click to expand...
Click to collapse
adb pull /system/app/nameoffile.apk
or
adb pull /system/app/*
so much faster.
if you dont learn how to use ADB, you will find yourself up **** creek at some point, if you plan on doing ANY modifications/theming. especially theming, because if you screw up your framework-res.apk, you have no way of fixing it without adb access....
lets not take the lazy ass way out of it here. when you are doing anything to your phone, you should know basic adb commands. if you dont, you shouldnt be touching your phone
This page should help with learning the commands
>>HERE<<
This page is a thread where I had problems with adb on Ubuntu
>>HERE<<
And this is a page that Pirateghost recommends on getting you started with adb
>>HERE<<
Now, we have done about everything we can for at this point, short of coming to your home and doing it for you. Have fun, and be careful out there.

[SOLVED] USB Debug Whitelist not present on 4.2.2?

Does anybody get the prompt for authorizing the PCs that connect through ADB?
According to several articles (example here), whenever a computer connects it's RSA key will be validated and a prompt will appear on the device if it's still not registered:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'm running 4.2.2 (10.3.A.0.423 Generic ES) and never get this prompt, despite using the latest ADB version (1.0.31).
/data/misc/adb/ exists on the device but is empty, BTW.
Can anyone else confirm this, or preferably a way to activate the behavior?
UPDATE
I found the problem :victory:
On the /default.prop file (which is part of the kernel and therefore can't be manipulated directly), there's this:
Code:
ro.secure=1
It controls whether adb connections will run as root (if 0) or as shell (if 1).
But there's an additional parameter that should be there:
Code:
ro.adb.secure=1
which if set, triggers the standard behavior described before - prompting for a visual confirmation of the RSA key of the incoming connection.
Once I added an init.d script with
Code:
[COLOR="SeaGreen"][B]setprop ro.adb.secure 1[/B][/COLOR]
everything is working properly.
Bump!
Apparently the prompt only appears when you issue a command via adb. I would try it for you, but cannot be bothered to boot my laptop just now
If you haven't already, just try adb devices or something and see if the prompt appears.
If you already tried it (I realise you probably have, just throwing ideas around ) and the prompt doesn't appear, Sony probably removed the functionality from their rom for whatever reason (I can't think of any valid reason!).
Sent from my C6603 using Tapatalk 2
kingvortex said:
Apparently the prompt only appears when you issue a command via adb. I would try it for you, but cannot be bothered to boot my laptop just now
If you haven't already, just try adb devices or something and see if the prompt appears.
If you already tried it (I realise you probably have, just throwing ideas around ) and the prompt doesn't appear, Sony probably removed the functionality from their rom for whatever reason (I can't think of any valid reason!).
Click to expand...
Click to collapse
I had tried all that
After digging into the code I found the solution, check the OP.
Like this one
http://forum.xda-developers.com/showpost.php?p=43886371&postcount=104
Sent from my C6603 using xda premium
gm007 said:
Like this one
http://forum.xda-developers.com/showpost.php?p=43886371&postcount=104
Click to expand...
Click to collapse
It would be useful if I had stumbled on that earlier
Actually, I want mine to be "secure" in the sense that it only allows adb connections from my computer, and prompt for any new ones.
That's what the ro.adb.secure is for.
As for the uid of the shell once you're connected, I want to be root and therefore ro.secure=0.
But since I'm running the stock kernel and can't unlock my bootloader to run a custom one, I use an insecure adbd binary, instead of changing ro.secure to 0.

[Q] Auto root not working for me

Hello, I have tried to follow the AIO guide that has a sticky, but I had no luck there. I ended up installing "adb-setup-1.4.2" by snoop05 on my windows PC and that got me started in the right direction (I think). I've unlocked my bootloader, it says device is UNLOCKED: status code 3. Awesome.
Now to use CF-Auto-Root. I have my phone in bootloader mode. I run "root-windows" batch file and the cmd prompt comes up (ran as admin), I press any key to continue and this happens:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
http://imgur.com/bcliyxO
I then press any key again, and nothing changes. No red android, no change.
What the f*** am I doing wrong?!
Please halp!
Thank you.
What I did was shift right click in the explorer window and you should see a option to open cmd window here. Then type in root-windows.bat and hit enter.
Basically the cmd prompt is not at the right directory. Which is causing the failure
Wow ok, I figured it out. Don't run as administrator, just run the batch file normally.
/facepalm.
kyrue said:
Wow ok, I figured it out. Don't run as administrator, just run the batch file normally.
/facepalm.
Click to expand...
Click to collapse
I don't know that administrator mode was the problem. Like Elevate08 wrote, just opening the batch file probably didn't work because adb wasn't in the same directory. I added adb/fastboot to the PATH variable so I can run it from anywhere. I don't use the explorer for this sort of thing though. I just open a command prompt.
He wasnt in the correct place to do what he did.....the files are in a folder called root and the batch file called cmd.exe from windows\system32
Open a command prompt in the root folder as administrator, then run the batch file from the command line. Or open the command prompt and then run the batch file as administrator which is the same difference
GL
Hey thanks everyone for the replies. I didn't do anything different other than running the windows batch file normally, instead of running as administrator. I'm sure it was cringe worthy to a lot of people on here but at least I got it done. I installed TWRP and did a backup, which I then transferred to my PC. downloading a custom ROM now, and going to give that a try too

[FIX] CM12 Install from sdcard Application not installed error

I got this error I searched a lot before I found the solution. I'll post it here in case some people needs it.
I've just installed CM12 nightly and when I tried to install an APK from my SDCARD, I got an "Application Not Installed" error without any error number.
"unknown source" is turned on in the security setting.
Tried via ADB install and got: [INSTALL_FAILED_CONTAINER_ERROR].
Logcat was showing:
Code:
E/Vold ( 109): Error creating imagefile (Read-only file system)
E/Vold ( 109): ASEC image file creation failed (Read-only file system)
W/Vold ( 109): Returning OperationFailed - no handler for errno 30
The solution was to go to Settings -> Applications -> Menu -> Preferred install location
And change "Let the system decide" to "Internal device storage".
Everything is working fine now.
Hope it will help some others !
I dont have this option under settings -> apps. Please hlep
JoJo2211 said:
I dont have this option under settings -> apps. Please hlep
Click to expand...
Click to collapse
Post a screenshot of your Settings > Apps screen.
also need help, cant install apks, and i dont have this option in settings/apps, please help
Hey, No Preferred Install Location, Please Help.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
---------- Post added at 10:11 PM ---------- Previous post was at 10:03 PM ----------
Primokorn said:
Post a screenshot of your Settings > Apps screen.
Click to expand...
Click to collapse
I cannot upload any images , they dont allow me to
I know it's been a while, but I want to add to this thread in case someone else comes across it and is having a similar issue. Based on what I've pieced together, this is what's happening. CM12 did away with the option to select the default install location for apps. This used to be under Settings -> Apps -> 3-dot overflow menu.
Now, that option is gone and in the background CM12 has set the default install location to be "Let the system decide." Of course when the apps are large enough, it wants to move them to the SD card and that becomes a problem when the device does not have an SD card or is out of space.
This bug also affects some large apps from the Amazon appstore and no amount of cache or data clearing and rebooting is going to resolve it. The simple and only solution I ever found, was to somehow tell the system to install all apps to "Internal storage." Otherwise you'll see a lot error codes 907 and 963 along with the dreaded "Application is not installed" message.
Since we don't have the option to do so via the menu we have to do it via a terminal emulator or adb. I believe they both require root, but I could be wrong on that one. The code would be as follows:
Code:
adb shell
su
pm set-install-location 1
Obviously skip the first line if you're entering into a terminal emulator. I hope this helps those who are still running into this bug that still rears its ugly head from time to time. Cheers.

Categories

Resources