Hi all
Question is if it is possible to downgrade built-in app without root. The reason is factory image include quite new version of Google Photos which doesn't include option to not drain battery by enabling "backup while charging only". Installing older version is the cure but built-in apk is newer than latest apk which supports such option (v2.16). This old version creates such option in config file which is seen by the latest version too so upgrading GPhotos to the latest version still preserves this option in settings. Btw. running Android 8.1.
But it seems there is no way how to do it.
1. Uninstall is not possible as app sits as system one so it can be disabled only
2. App downgrade is not possible as also "adb install -r -d app.apk" is not supported in newer Android for no-debug files
3. It is possible to uninstall app from data partition so it seems app is not installed by "pm uninstall --user 0 com.google.android.apps.photos" but by using adb shell pm install command it is not possible to install older apk as PackageManager sees SYSTEM apk and denies installation due to DOWNGRADE error.
Is it somehow possible, without root, to run once old version of APK which writes required attrib to Photos config file and then update app back again?
It seems it is not possible without root as PackageManager always refuse package installation also in case it is placed to --user 0 session.
Do anyone have some hints?
Many thanks
Nobody knows?
Related
I just discovered a new permission request "Android System" UID System User 1000 in SuperSU .
I can't explain where this comes from.
So I did the following:
1.) Factory Wipe
2.) ODIN and simply flashed the Stock ROM with 1 file ROM in PDA slot
One thing I didn't do was Format the System Partition
But the next time I install SuperSU the permission request appears again.
So I want to know, does ODIN flash and Factory Wipe, truly wipe everything?
You didn't wipe everything. You didn't wipe the system partition where the su request came from.
Thanks, I thought the TAR.MD5 Odin ROMs clear out everything in the system partition before writing.
Weird, even after going into Touch CWM and doing the following:
1.) Factory Wipe
2.) Clear Cache
3.) Clear Davlik Cache
4.) Mounts and Storage > Format /System
5.) Reboot to Bootloader
6.) Loaded ROM via ODIN N8010XXUCMK2 http://www.android-hilfe.de/origina...jellybean-4-1-2-20-11-2013-a.html#post6823310
7.) Loaded Touch CWM
8.) Installed SuperSU zip
Upon the second restart, it again requests for root from Android System UID User 1000
Huh.. strange. You wiped everything this time so that's weird. I've never seen a su request from Android System (the android system has root as default, as an OS should have). I'll dig a little and i'll be back soon.
UPDATE: I think i cracked the case. It's Xposed that does this on Samsung devices. If you do not use Xposed, it could be SuperSU. Be sure to have the latest version installed.
If you are referring to this:
Current Superuser/SuperSU releases have security holes that allow any application to execute commands as root without the user's permission (even apps with no permissions). Please upgrade immediately to SuperSU >= v1.69 or another patched release.
Click to expand...
Click to collapse
The device is on one of the latest SuperSUs 1.80 and then updated to 1.85, and never on SuperSU =< v1.69
Regarding the System User Request, Is below what you are referring to?
cernekee said:
On a rooted Android <= 4.2.x device, /system/xbin/su is a setuid root binary which performs a number of privilege checks in order to determine whether the operation requested by the caller should be allowed. If any of these checks fail, the denial is recorded by broadcasting an intent to the Superuser app through the Android Activity Manager binary, /system/bin/am. /system/bin/am is invoked as root, and user-supplied arguments to the "su" command can be included on the "am" command line.
On a rooted Android >= 4.3 device, due to changes in Android's security model, /system/xbin/su functions as an unprivileged client which connects to a "su daemon" started early in the boot process. The client passes the request over a UNIX socket, and the daemon reads the caller's credentials using SO_PEERCRED. As described above, /system/bin/am is called (now from the daemon) to communicate with the app that implements the user interface
Click to expand...
Click to collapse
If I understand this properly, it's saying SuperSU accesses some functions as the System User 1000 on Android devices previous to OS version 4.3
On Android 4.3 and newer, SuperSU access those same functions without using System User 1000.
This would explain why this permission request does not appear on my Android 4.3 device, but it does on my Android 4.1.2 device.
Is this the correct understanding?
klau1 said:
If I understand this properly, it's saying SuperSU accesses some functions as the System User 1000 on Android devices previous to OS version 4.3
Click to expand...
Click to collapse
Internally, Superuser/SuperSU can switch UIDs to execute different subprocesses with different user credentials. But these do not generate requests that you would see on the screen.
To track down the source of the request, can you run these commands from a PC while the SuperSU dialog for "Android System" is on the screen, then paste the results?
Code:
adb shell busybox ps -Tl
adb shell ps
Here it is:
Attached
The command output of "adb shell ps" is also inside, just search for "adb shell ps" in an txt editor to jump to it.
Although, I'm a noob I will try to help. If I mind correctly , If you go supersu > setting is a checkbox that says something about "system processes" or similar, make sure that is unchecked. You could also try emailing to the developer of supersu, your rom and kernel
Sent from my Xperia Mini using XDA Premium 4 mobile app
I know that, but just indiscriminately "trusting" the user doesn't make it safer. Just like keeping your doors open so you won't hear anyone break in doesn't stop the actual breakin from happening.
And it's also a stock ROM from: http://www.android-hilfe.de/origina...jellybean-4-1-2-20-11-2013-a.html#post6823310
Is it possible these Stock ROM uploads are infected with malware?
Hi guys,
I tried almost every Lollipop ROMs available, they are either buggy or doesn't provide a great battery life which I care about a lot since this is my primary device. Definitely KK [pa ROM] battery life is way better than LP. So decided to go back, but I have the problem where almost 186 apps I have to install it manually since the auto restore doesn't work in KK properly. Is there a way to batch install the apps from the backup without all those install prompts so that I don't want to press install 186 times? These are the ways already tried,
1. Tools from XDA -- Doesn't install every apk, it says some are 'Invalid APKs' while I can install it manually without any problems.
2. Terminal Emulator - Can I even batch install with it?
Please let me know if any method available. Thanks
seriously looking for the same. Anyone please tell me to do this. Im trying to do this using terminal emulator.
Trying below command
pm install apkname.apk from terminal from the apk folder but its giving invalid uri.
---------- Post added at 01:14 PM ---------- Previous post was at 01:01 PM ----------
You can use system app remover. It worked great in kitkat...... and if possible use marshmallow its yielding great battery
The correct terminal commands:
cd YourApkBackupDirectory
install -D -m 644 Name.apk /data/app/Name/base.apk
Pack these commands into a usual shell. You also can install all apk's of one directory by wildcards.
Some apps create another directory-name in /data/app. Idk, whether it matters.
After installing go to recovery, wipe both caches and reboot.
Anyone could please suggest me a debloater script for honor 8 MM?
rooted or no root?
Rooted
All the time I try to delete a bloated app it returns. I managed to freeze the app but that's not the right way. Sometime I have problems with the gallery even if I have quick pic. I can't freeze the gallery because if I try to upload a pic in a social app like badoo it just does nothing. I have to go to twrp and clean the cache all the time
whitehollow said:
All the time I try to delete a bloated app it returns. I managed to freeze the app but that's not the right way. Sometime I have problems with the gallery even if I have quick pic. I can't freeze the gallery because if I try to upload a pic in a social app like badoo it just does nothing. I have to go to twrp and clean the cache all the time
Click to expand...
Click to collapse
Try adb
Connect phone to laptop or pc (you must have adb fastboot on it)
Open cmd (press shift then right click on adb folder choice open command prompt)
Type adb shell
Then type pm list package | grep huawei (or google or app name). It will show all package app you find.
Then type pm uninstall -k --user 0 com.huawei.xxx (it it package name show from command above)
It will remove any app you want (you can try on rooted or no root device. With no root device, you can still install ota when have)
Thanks I'll try before reinstalling android. A script would be easier anyway.
whitehollow said:
Thanks I'll try before reinstalling android. A script would be easier anyway.
Click to expand...
Click to collapse
What is your device brand? L09 or what?
Anyone have a good list of bloatware that can be safely removed from this device?
Hi there!
I just tried to install whatsapp fouad on my device after uninstalling it.
When I'm trying to install it with my file manager the device is asking me if I want to install it as update to this existing application - but there is very big problem - I don't have one.
When I tried to install the original whatsapp - another problem - can't install the app.
What can I do??
I tried to restart the device, clear cache.. Nothing work.
I also tried to search for whatsapp at the apps section.. Nothing found.
*Please help*
Thanks a lot!
@Tal Cohen
Seems Whatsapp was preinstalled as system app: if that's correct then it wasn't removing fully Hint: If your device is rooted run Link2SD, convert Whatsapp to user app and then try again to remove it.
1.if you are common user see this
After you uninstall the app, you can go to settings-->apps to found out whatsapp is still in apps list, if yes enter it's app detail info page, and there aren't an uninstall button means the whatsapp has a persistent version in system.
check the system persistent whatsapp version, and compare with the version you want to install, if the one you want to install is high, but you still install fail that means may be persistent whatsapp has an different signature to the one you what install. you will need a root permission to delete the origin persistent whatsapp apk file and reboot you devices to try again.
2.if you are a develop see this
first try install command see the error type:
adb install -r [your new whatsapp path]
after fail it will show your the error type, I think may be it's signature different cause.if true, try to found out the origin app path
using following command:
adb shell dumpsys package [whatsapp's packageName] | grep "apk" >[log_save_path]
you can found out the origin whatsapp apk path, if is under /system/app or /system/priv-app that means it's a persistent app, you will need a root permission to delete it. other you can just delete it without permission, reboot and try to install again.
hope this can help you!
Hi,
I've successfully removed all miui and android bloat with the ADB tool, which is fantastic without root.
But I cannot remove the Facemoji keyboard from Xiaomi. It gives failure -1000.
Any idea what it means?
I also tried using the hidden menus for miui app in the play store but also there the uninstall is 'unsuccessful'.
Is there any way to remove it still, without rooting the phone ?
Using Xiaomi redmi note 8t, latest android version update.
Same For me. No one have any idea?
An IME is installed as a system-app and/or system-privileged-app, means you need root rights to uninstall it.
You will need root for this method:-
1) Disable it using adb shell:
pm disable-user com.facemoji.lite.xiaomi
2) Next, use a root file manager app (I used Fx), and navigate to System(Root)/data/app/ and find facemoji package. Verify by opening the folder and checking if base.apk exists in the folder. Delete this package folder.
3) Reboot.
https://www.reddit.com/r/PocoPhones/comments/mxiglw
Here's a simple trick to remove it.
jwoegerbauer said:
An IME is installed as a system-app and/or system-privileged-app, means you need root rights to uninstall it.
Click to expand...
Click to collapse
Can you please confirm that root access is required to uninstall Facemoji Emoji Keyboard for Xiaomi? I tried using adb commands and Xiaomi ADB/Fastboot Tool but it didn't work. Any help is very much appreciated.