Non-root - Installing app as priv-app - OnePlus 5 Questions & Answers

As part of corporate access, I had to install MobileIron on my phone. MobileIron requires that the phone be unrooted and encrypted. Hence I reverted my rooted phone to a Stock Oxygen OS ROM with encrypted data partition.
One side effect of this is that MobileIron has locked manual installation of any apps manually.
One workaround that I could think of is to install a apk installer app (such as apkpure) as priv-app using a temporary boot into twrp. But I am unable to figure out how to install the APKPure app as a system privileged app. I have tried the following but none of that worked:
1. Copy the apk to /system/system/priv-app when booted in twrp.
2. Install the app as a user app and then move /app/data/apkpure directory to /system/system/priv-app when booted in twrp.
Is there any way to achieve this?

sukucorp said:
As part of corporate access, I had to install MobileIron on my phone. MobileIron requires that the phone be unrooted and encrypted. Hence I reverted my rooted phone to a Stock Oxygen OS ROM with encrypted data partition.
One side effect of this is that MobileIron has locked manual installation of any apps manually.
Click to expand...
Click to collapse
What I am currently doing is that whenever I need to install an apk manually, I disable MobileIron, install the required apps and then go thru the re-registration of MobileIron.

Related

[Q] Root probs

Recently I rooted my Glacier.Still on rooted froyo.I have few quations.
1.How to do NANANDROID BACKUP?Where is this option?On bootloader,rom manager or TB?
2.Do I need busybox?What is busybox?
3.I cannot install latest worldwide unlock GMaps.Even I backup,wipe,uninstall old GMaps & Street view,i can't install New GMaps.End of the installation say "Applicatiom not insatalled".I reboot device & try,still same result.How do I install this?
4.Is it ok to uninstall T-mobile TV,Apppack?
5.I cannot move non-system app to system folder.It says"Cannot move because Read only" even I mount as R/W.I know I can easly convert non-system apps to system apps via TB.But I would like to know,why I cannot mova apps to system.
TIA
crazykas said:
Recently I rooted my Glacier.Still on rooted froyo.I have few quations.
1.How to do NANANDROID BACKUP?Where is this option?On bootloader,rom manager or TB?
2.Do I need busybox?What is busybox?
3.I cannot install latest worldwide unlock GMaps.Even I backup,wipe,uninstall old GMaps & Street view,i can't install New GMaps.End of the installation say "Applicatiom not insatalled".I reboot device & try,still same result.How do I install this?
4.Is it ok to uninstall T-mobile TV,Apppack?
5.I cannot move non-system app to system folder.It says"Cannot move because Read only" even I mount as R/W.I know I can easly convert non-system apps to system apps via TB.But I would like to know,why I cannot mova apps to system.
TIA
Click to expand...
Click to collapse
Nandroid backup is done inside of clockwork recovery which you can use rom manager to boot into.
Custom roms will usually come with busybox, but if you want to update your version you can download busybox installer from market
Not sure what you are doing with google maps, but if you uninstall maps it shouldnt give you a problem reinstalling another google maps apk manually or from market.
If it says read only on system folder then you have not changed to write access. What file browser are you using?
You can absolutely unstall any of the tmobile bloatware including tmobile tv. If you want a precooked rom that has all of this stuff removed and is stock in every other way then check the link in my sig for my mysense rom. It may be exactly what you are looking for.

Cyngn Dialler crashing on CM13. Need to uninstall without losing installed apps.

EDIT: Nevermind guys, I found out the solution myself. I formatted the system partition in TWRP and reflashed the ROM again. But still, I would like to know if there is a way we can get root access inside TWRP's terminal emulator.
I installed CM13 on my Nexus 6P and on top of that I installed c-apps package. Now the dialler app is crashing and not allowing me to receive any calls. Though they have mentioned a way to uninstall it via adb, but is there any other way to do it, as I don;t have a cable with me right now in my office. I don't want to format my system partition and lose all the installed apps again
I tried the terminal emulator inside TWRP 3.0, but it doesn't have root access. Can someone please guide me?

[TOOLS Fire HD 6&7 ] Rooting, Gapps, Launchers, Block OTA & Ads + More

Download the latest tools from the AFH link near end of post. It includes the changes in the attached "jobs" zip. You only need "jobs" if you downloaded the tools before May 11
EDIT May 29: Playstore is currently unreliable. Until updated, use the workaround here.
UPDATE May 17: Install Other Launcher and Install Kingroot tools may not complete if Windows username has spaces. I'll fix in next update. Until then, if your username has spaces, use this fix.
Here are tools for the 2014 Fire HD 6 and 7. A little late, I know, but some of you who still troll the forums may find them handy. Download the tools from AFH link, extract and run RUNME.bat.
IF YOU PLAN TO ROOT, TURN OFF WIFI NOW!
Tested working on OS 5.1.2.1 and below, except:
- Current Kingroot can't root 5.1.2.1. You need to downgrade. See "ROOT OS 5.1.2", below.
- OS 4: Only OTA blocking is implemented in the Block/Unblock jobs. [5/13/16 UPDATE: Also, Play Store isn't working on OS 4.
.. I probably won't fix it unless there's some demand. Try the video guide here. OS 4 users, also see post #11 for useful info about custom launchers.]
THE TOOLS
Install Play Store
Install Nova Launcher to /priv-app [root]
Install Other Launcher to /priv-app [root]
Uninstall priv-app Launchers [root]
Install Apps
Block/Unblock: OTA, ADS, AMAZON LAUNCHER, APPSTORE, AMAZON SEARCH [root]
Root Checker
Device Info
Root Tools
Install Kingroot ~ Root ~ Block OTA
Replace Kingroot with SuperSU [root]
DESCRIPTIONS
Before running a job, look here for any tips and instructions. This info is also in the readme.txt in the zip​
INSTALL PLAY STORE - Like it says. Works on both rooted and unrooted OS 5. Not for OS 4. EDIT May 29: Playstore is currently unreliable. Until updated, use the workaround here.
INSTALL NOVA LAUNCHER - Installs Nova to /system/priv-app so widgets work. If you just rooted, make this your first custom launcher. You can replace it or add a different one later.
INSTALL OTHER LAUNCHER Installs the launcher app in user_launcher folder to priv-app. Get the apk for the launcher you want (from apkmirror.com for example) and put it into the folder and run the job. EDIT 5/16/2016: Filenames must end with ".apk" No spaces allowed; replace with "_". (The tool will find spaces and pause while while you fix.)
HOW TO INSTALL GOOGLE NOW (also in Readme.txt):
It's much easier to install Google Now if Amazon is blocked, and you need a custom launcher to do that.
1. If you don't have a custom launcher installed, use Install Nova tool (installs Nova and blocks Amazon)
If you have a custom launcher, block Amazon so your custom launcher is running.
2. Get Google Now (small) from apkmirror.com, e.g., put into user_launcher folder and run Install Other Launcher job.
You'll boot to your "other" launcher
3. Run Google Now in app drawer and:
If prompted to Update Google App (Get it from Google Play), do it.
If prompted that other launcher is default, tap link to go to Amazon Settings. In Apps & Games>Manage all Applications: Swipe to All, scroll to your other launcher, tap it and see if "Launch by Default" is on. If yes, Clear Defaults. If no, go to your launcher settings and see if you can turn off default there.
Some launchers don't give up their default easily. If pressing home key doesn't show "Select Home App" after doing the above, run Block/Unblock tool and switch to Amazon. Then block Amazon again. After restart, press home key and you'll get "Select Home App" and be able to choose Google Now.
UNINSTALL LAUNCHERS - Uninstalls and deletes everything associated with a launcher installed to /priv-app. If multiple, prompts you to choose the one to uninstall.
INSTALL APPS - Installs all the apps in the user_apps folder. Put the apks into the folder and run the job. Filenames must end with ".apk" No spaces allowed; replace with "_". (The tool will find spaces and pause while while you fix.) Don't install a launcher with this; use one of the launcher tools.
BLOCK/UNBLOCK - OTA, ADS, AMAZON LAUNCHER, APPSTORE, AMAZON SEARCH
Except for OTA, these work only on rooted OS 5. OTA does a soft block on unrooted OS 4, hard block on rooted.
OTA: Disables update packages and renames DeviceSoftwareOTA.apk for a "hard" block. Unblock reverses it.
ADS: Blocks/unblocks the lockscreen ads.
AMAZON LAUNCHER: Block disables the stock launcher (Amazon UI) and the Appstore, which forces the home key to use your custom launcher. Unblock switches you to Amazon. Checks for custom launcher before disabling Amazon. Black screen with multiple custom launchers: If you haven't set a default launcher, disabling Amazon will boot to black screen. (System doesn't know which launcher to use.) Press home key (circle at bottom) for launcher choices. TIP: To easily switch between your launcher and Amazon, use @bibikalka's guide here to set up "one-tap switching" from launcher home screen.
APPSTORE: Blocks the appstore so in-app links take you to the Play Store (instead of throwing that stupid Appstore prompt). Amazon complains bitterly if you run this from Amazon UI, so use it at your custom launcher or just use the Amazon launcher block.
AMAZON SEARCH: If you have Google Search installed, blocking Amazon Search makes your launcher search bar use Google instead of Amazon shopping.
DEVICE INFO - Just some specs that I find interesting. Lazy man's way to find out which tablet is plugged in, OS it's running, whether rooted . . .
INSTALL KINGROOT, ROOT, BLOCK OTA - Installs Kingroot, prompts you through rooting and blocks OTA updates.
- Installs kingroot v.4.8.5 by default.
- You can skip installation if Kingroot already installed
- You can install a later version if available: Check for new versions here: http://forum.xda-developers.com/android/apps-games/one-click-root-tool-android-2-x-5-0-t3107461
ROOTING AND UPDATES: An update file can download while you're rooting. The Kingroot tool prevents it from installing as soon as you press Enter to tell the tool you're rooted. Then it looks for any downloaded file and if it finds one it tells you where it is and prompts you to delete.
Amazon says that updates install when the the device is not being used, but be aware that on OS 5 there's some risk. To minimize the risk, never leave the tablet idle while rooting. Just keep running Kingroot until root is successful and then press Enter to block installation of any download. (These instructions are in the tool.) To eliminate all risk, you can downgrade and root OS 4.5.3. On OS 4 the tool blocks update installation before rooting. (There's no way to do this on OS 5.) From OS 4.5.3, you upgrade with root in TWRP per bibikalka's root Tut.
True story: Kingroot once rebooted 5 times and told me "Root Failed" 3 times before finally succeeding. An update had downloaded to /cache, but the kingroot tool successfully blocked installation and found the file, which I deleted. So, although it's possible you could get upgraded, as long as you keep the tablet busy trying to root and then press Enter as soon as you're rooted, it's very unlikely.
REPLACE KINGROOT WITH SUPERSU - Installs W0lfDroid's sh script and prompts you through using it to replace Kingroot.
I reviewed and tested the script and it does (only) what it says: Removes all Kingroot (except Purify app, which tool uninstalls) and installs SuperSU. The tool uses SuperSU v. 2.4.6 for OS 5 (known working on OS 5.1.2) and SuperSU v. 2.4.9 for OS 4 (because 2.4.6 didn't seem to work).
FULL DISCLOSURE: I lost root one time after running this on OS 4. I think the problem was SuperSU 2.4.6 and that's why I changed it. I've tested many times and this only happened once, but you should know it happened. AFAIK W0lfDroid script is still the best free tool for the job.
ERRORS: Script was written to remove Kingroot from multiple android versions, so it tries to remove Kingroot files that don't exist on Lollipop. THIS PRODUCES LOTS OF ERRORS. THAT'S OK. I left in all commands so it will work on OS 4, too.
USE THIS SOON AFTER ROOTING. W0lfDroid's script should work fine even with root apps installed, but all I know for sure is it runs quick and easy on a "fresh" system.
ADB Sideload
There's an adb-sideload job in the jobs folder. I didn't put it on the menu because it uses commands that may not run on some systems. Also, if you know what you're doing, it's probably faster to manually sideload an update. If someone wants to try it, put the update bin file into adb_sideload folder and run sideload.bat.​WINDOWS TESTING: Script was tested on English-language versions of Win 7 Pro and Home. Some testing on Win 10. (Thanks @SpaceBananas!) There's nothing that can hurt your tablet, but there may be kinks to work out based on Windows version. Hope a tester will work with me to help make the tools accessible to everyone. Thanks!
ADB DRIVERS REQUIRED: Try the guide in first link below. If problems, try the second.
Guide: http://forum.xda-developers.com/fir...ivers-fire-t3189000/post62561840#post62561840
Other options: http://forum.xda-developers.com/showpost.php?p=63072252&postcount=2
ROOT OS 5.1.2
IF YOU PLAN TO ROOT, TURN OFF WIFI NOW!
ROOT GUIDE: Follow this guide to use Kingroot and the root tools to set up your tablet.
At this time, Kingroot can only root OS 5.1.2 (February 2016) and below.
You can downgrade OS 5.1.2.1 (March 2016) to 5.1.2 and root, as explained in Root Guide, but this is an exception!
In general, never downgrade in order to use Kingroot. It's the fastest way to a brick!
You may be able to safely downgrade a higher OS to OS 4.5.3, root, and then upgrade in TWRP per @bibikalka's root Tut. Before trying this on an OS later than 5.1.2.1, make sure the tutorial says it's safe.
DOWNLOAD THE TOOLS FROM AFH ➔ . FireHD_TOOLS v 1.2
Update as of 5/11/16
➔ If you got the tools before the update, just replace the jobs folder in FIREHD_TOOLS with the one in attached "jobs_v1.x.zip"
Change Log
5/11/2016 - v1.2: Updated sideload.bat. (Missed the Find/Findstr fixes.)
5/10/2016 - v1.1: Fixed "No such file or directory" and "Permission denied" errors for users with *nix Find command installed
.
Nice Work!
@DoLooper - Magnum Opus, no less !
Why version 0.1 ??? The first release - solid 1.0 !!!
Updated. See OP.
Guys, I could use some feedback. Tools are getting downloaded a lot. Anybody using them? Are they helpful? Problems? Wishes? Anything? Thanks!
.
Updated again <sigh>. Sideload tool didn't get updated in v1.1. Apologies to those who downloaded the jobs zip.
DoLooper said:
Updated. See OP.
Guys, I could use some feedback. Tools are getting downloaded a lot. Anybody using them? Are they helpful? Problems? Wishes? Anything? Thanks!
.
Click to expand...
Click to collapse
Thanks DoLooper.
I tried these tools on my Fire HD 7 running 4.5.5.1 rooted with KingRoot.
I was able to use the script to successfully switch from KingRoot to SuperSU as well as to install Nova Launcher.
However, I had issues with the script elsewhere.
The play store seemed to install okay and it let me put in my google account info. After that, things went down hill. I was able to open the Play Store app without it crashing, but I just kept getting the "Error retrieving information from server. [RH-01]" message . I tried numerous things to correct this, but nothing seemed to work. In the end, I downgraded to 4.5.5, wiped data, cache and dalvik, and then flashed gapps via TWRP. This worked out, so all is good now.
I also had trouble with blocking the default launcher. Nova seemed to install okay, but the default launcher still worked and was a constant nag with each press of the home button. I fixed this by freezing the default launcher via Titanium Backup.
I don't know if these issues are particular to 4.5.5.1, or if I'm just unlucky. Regardless, I still appreciate your effort for putting this together. :good:
I'm currently trying to get wallpapers and widgets to work on the Nova launcher with no success. I tried the fixes intended for earlier Kindle models and (not surprisingly), they didn't work. Specifically, I tried Stunt's Wallpaper Fix and Kindlefree from the app store.
Any ideas where I should look for guidance on making Wallpapers and Widgets work?
Thanks again!
notorious.dds said:
Thanks DoLooper.
I tried these tools on my Fire HD 7 running 4.5.5.1 rooted with KingRoot.
I was able to use the script to successfully switch from KingRoot to SuperSU as well as to install Nova Launcher.
However, I had issues with the script elsewhere.
The play store seemed to install okay and it let me put in my google account info. After that, things went down hill. I was able to open the Play Store app without it crashing, but I just kept getting the "Error retrieving information from server. [RH-01]" message . I tried numerous things to correct this, but nothing seemed to work. In the end, I downgraded to 4.5.5, wiped data, cache and dalvik, and then flashed gapps via TWRP. This worked out, so all is good now.
I also had trouble with blocking the default launcher. Nova seemed to install okay, but the default launcher still worked and was a constant nag with each press of the home button. I fixed this by freezing the default launcher via Titanium Backup.
I don't know if these issues are particular to 4.5.5.1, or if I'm just unlucky. Regardless, I still appreciate your effort for putting this together. :good:
I'm currently trying to get wallpapers and widgets to work on the Nova launcher with no success. I tried the fixes intended for earlier Kindle models and (not surprisingly), they didn't work. Specifically, I tried Stunt's Wallpaper Fix and Kindlefree from the app store.
Any ideas where I should look for guidance on making Wallpapers and Widgets work?
Click to expand...
Click to collapse
Thanks for feedback. Tools apparently need work for OS 4.5.5.1. I tested pretty well on 4.5.3 and 4.5.5, but not 4.5.5.1. There may be some peculiarity there.
- The play store error has been reported on some 2015 Fires (using a different tool, but same method to install). It's unclear why it happens on some devices and not others, and they haven't found a fix, but it may be an OS 4 issue on the Fire HDs. I'll look into it.
- Nova & stock launchers: The block on stock launcher didn't work because it isn't implemented for OS 4. As mentioned at top of OP, only OTA block is available for OS 4. I'll need to add it in an update. Hadn't thought about need for it when using the Nova tool.
Would you please look in /system/priv-app folder and see if com.teslacoil.launcher.apk is at the bottom of directory? If so, are perms set to rw- r-- r--? Let me know and we'll proceed from there to get you widgets. Thanks.
DoLooper said:
Thanks for feedback. Tools apparently need work for OS 4.5.5.1. I tested pretty well on 4.5.3 and 4.5.5, but not 4.5.5.1. There may be some peculiarity there.
- The play store error has been reported on some 2015 Fires (using a different tool, but same method to install). It's unclear why it happens on some devices and not others, and they haven't found a fix, but it may be an OS 4 issue on the Fire HDs. I'll look into it.
- Nova & stock launchers: The block on stock launcher didn't work because it isn't implemented for OS 4. As mentioned at top of OP, only OTA block is available for OS 4. I'll need to add it in an update. Hadn't thought about need for it when using the Nova tool.
Would you please look in /system/priv-app folder and see if com.teslacoil.launcher.apk is at the bottom of directory? If so, are perms set to rw- r-- r--? Let me know and we'll proceed from there to get you widgets. Thanks.
Click to expand...
Click to collapse
Thanks for the help!
I found the com.teslacoilsw.launcher-1.apk file, but it's in my /data/app folder... and it is chmod'ed to 644.
Also, I did successfully install the AppWidgetPicker.apk and LiveWallpapersPicker.apk files to /system/app using the "kindlefree" app, but I think that about all the app did. These files are also chmod'ed to 644.
notorious.dds said:
Thanks for the help!
I found the com.teslacoilsw.launcher-1.apk file, but it's in my /data/app folder... and it is chmod'ed to 644.
Also, I did successfully install the AppWidgetPicker.apk and LiveWallpapersPicker.apk files to /system/app using the "kindlefree" app, but I think that about all the app did. These files are also chmod'ed to 644.
Click to expand...
Click to collapse
I've been using OS 5 for too long! Forgot you can't get wallpaper on OS 4 without fussing. It's unclear from your post: Did the pickers get wallpaper to work? This is the way we did it back when we always booted twrp and installed xposed: http://forum.xda-developers.com/fire-hd/general/how-to-wallpaper-custom-launcher-t3123009
As to widgets: What I meant is, you should have /system/priv-app/com.teslacoil.launcher_4.2.2.apk. Do you? I just retested this on 4.5.3. Nova (com.teslacoil.launcher_4.2.2.apk) got copied there and chmod'ed to 644 as it should and widgets are working fine.
No wallpaper is a bad problem, though, and no tool can fix it--unless that LiveWallpapersPicker DID work. Let me know. And let me know about /system/priv-app/com.teslacoil.launcher_4.2.2.apk.
BTW, how come you want to stay on OS 4?
DoLooper said:
I've been using OS 5 for too long! Forgot you can't get wallpaper on OS 4 without fussing. It's unclear from your post: Did the pickers get wallpaper to work?
Click to expand...
Click to collapse
Nope.
DoLooper said:
This is the way we did it back when we always booted twrp and installed xposed: http://forum.xda-developers.com/fire-hd/general/how-to-wallpaper-custom-launcher-t3123009
Click to expand...
Click to collapse
I think I tried that to no avail, but I can't remember exactly which module I used.
DoLooper said:
As to widgets: What I meant is, you should have /system/priv-app/com.teslacoil.launcher_4.2.2.apk. Do you? I just retested this on 4.5.3. Nova (com.teslacoil.launcher_4.2.2.apk) got copied there and chmod'ed to 644 as it should and widgets are working fine.
Click to expand...
Click to collapse
I think I ended up installing Nova via the app store so that's why it wasn't on the system partition. However, my widgets seemed to work when I checked again. I have no idea why they wouldn't work when I first tried them. I did end up creating two simple scripts via the "Scripter" app that would enable and disable the stock launcher. I put them as widgets on the nova desktop allowing for single click toggling of the stock launcher.
DoLooper said:
No wallpaper is a bad problem, though, and no tool can fix it--unless that LiveWallpapersPicker DID work. Let me know. And let me know about /system/priv-app/com.teslacoil.launcher_4.2.2.apk.
Click to expand...
Click to collapse
No, nothing seemed to fix the wallpaper... always black. Am understanding this correctly that the wallpaper works on this thing if I load Lollipop?
DoLooper said:
BTW, how come you want to stay on OS 4?
Click to expand...
Click to collapse
I didn't want to fiddle around with change the bootloaders every time I wanted into TWRP. At this point, it doesn't matter anyway... I hard bricked the device by flashing the 5.2.0 stock recovery last night
The post about using this to revert to stock should be edited or removed. It's bad.
The only reason I was trying to revert to stock was that I ended up getting into a situation where the stock launcher would continue looping back to the Welcome/select language screen. I wiped cache, data, and dalvik and reflashed the 4.5.5 rom which didn't fix it. I even tried that same approach including a wipe of system... same result. I was quite surprised to see the problem continue even after wiping everything. At that point I figured I go back to full stock and start over... BAD IDEA.
Anyway, I ordered a new one and it should be here tomorrow. I'm now curious if it's possible to recover the bricked device via the UART port on the motherboard. We'll see.:fingers-crossed::fingers-crossed:
notorious.dds said:
. . .
I think I ended up installing Nova via the app store so that's why it wasn't on the system partition. However, my widgets seemed to work when I checked again. I have no idea why they wouldn't work when I first tried them. I did end up creating two simple scripts via the "Scripter" app that would enable and disable the stock launcher. I put them as widgets on the nova desktop allowing for single click toggling of the stock launcher.
No, nothing seemed to fix the wallpaper... always black. Am understanding this correctly that the wallpaper works on this thing if I load Lollipop?
I didn't want to fiddle around with change the bootloaders every time I wanted into TWRP. At this point, it doesn't matter anyway... I hard bricked the device by flashing the 5.2.0 stock recovery last night
The post about using this to revert to stock should be edited or removed. It's bad.
The only reason I was trying to revert to stock was that I ended up getting into a situation where the stock launcher would continue looping back to the Welcome/select language screen. I wiped cache, data, and dalvik and reflashed the 4.5.5 rom which didn't fix it. I even tried that same approach including a wipe of system... same result. I was quite surprised to see the problem continue even after wiping everything. At that point I figured I go back to full stock and start over... BAD IDEA.
Anyway, I ordered a new one and it should be here tomorrow. I'm now curious if it's possible to recover the bricked device via the UART port on the motherboard. We'll see.:fingers-crossed::fingers-crossed:
Click to expand...
Click to collapse
Sorry to hear about the brick. Good thing Amazon is patient with us.
Yes, wallpaper works fine on OS 5. [For others who read this, on OS 4 the only way to get wallpaper is with Xposed (installed in TWRP) and the kindleBG module in the link I posted above. And BTW, although the tools don't block OS 4 Amazon launcher ATM, it can be done manually. Commands are here.]
Thanks for your input. Play store didn't work for me either this time, despite earlier success. Everything else except the launcher block (and other non-OTA blocks) does work, so for now I'm just going to edit post and see if there's any other interest in play store on OS 4. (I trust you'll get OS 5 on replacement or will want to update to it.)
As to TWRP: Once tablet is set up, booting TWRP isn't needed much except for upgrading. and bibikalka gives us lots of options for doing it.
Let us know if anything comes of UART port tests. You'd be the hero of the community!
Workaround for Windows username with spaces
The Install Other Launcher and Install Kingroot jobs may not complete if your Windows username has spaces in it. I'll fix this in next update. Meanwhile here's the workaround:
1. Right-click RUNME.bat and choose Edit. [file opens in Notepad]
2. Add a blank line under :: Set paths and run menu.
3. Type: SET "username=abc"
4. Make sure this section of RUNME looks like below and then save and close Notepad
Code:
:: Set paths and run menu.
SET "username=abc"
SET "main=%CD%\"
SET "jobsdir=%main%jobs\"
[remaining code]
This changes the username only for the tools. The rest of Windows continues to use the real username.
I'm getting ready to update. Please let me know if you found any problems.
Used the tool on my Fire HD 6 (4th Gen) running a Rooted OS 5.1.2.1 to install a new launcher and block OTA's, ads, fire launcher, appstore, and Amazon search. Everything worked without issue! Thanks for the awesome and simple to use tool! Tablet is now almost pure Android. Great work!!!
Sidenote: Used bibikalka's TUT (http://forum.xda-developers.com/fire-hd/general/how-to-upgrade-to-lollipop-root-gapps-t3163950) on my Fire HD 6 that was currently running Fire OS 4.5.3 with TWRP Recovery to obtain a Rooted Fire OS 5.1.2.1..
I adb'd the 5.1.2 upgrade to my slab this way.
$ adb push update-kindle-20.5.4.2_user_542168620.bin /sdcard/
3047 KB/s (663908627 bytes in 212.722s)
My OS is FIRE OS 5.1.2 Build Date March 31, 2016 1:37 AM.
I tried and got an error to the effect, "cannot upgrade because the upgrade you are trying is older than the one you have".
So I'm probably running an even later version of 5.1.2 where they blocked that loophole.
I'm just going to by a cheap Chinese slab and root that.
wallywallywally said:
I adb'd the 5.1.2 upgrade to my slab this way.
$ adb push update-kindle-20.5.4.2_user_542168620.bin /sdcard/
3047 KB/s (663908627 bytes in 212.722s)
My OS is FIRE OS 5.1.2 Build Date March 31, 2016 1:37 AM.
I tried and got an error to the effect, "cannot upgrade because the upgrade you are trying is older than the one you have".
So I'm probably running an even later version of 5.1.2 where they blocked that loophole.
I'm just going to by a cheap Chinese slab and root that.
Click to expand...
Click to collapse
use adb sideload in Stock recovery
Sent from my KFFOWI using XDA Labs
sd_shadow said:
use adb sideload in Stock recovery
Sent from my KFFOWI using XDA Labs
Click to expand...
Click to collapse
Yuh, I used sideload AND IT WORKED!!
I also have a fire 5th generation. Does the same procedure work for that, assuming I use the proper 5.1.2 for that device: https://kindle-fire-updates.s3.amaz...ate-kindle-global-37.5.4.2_user_542168620.bin
wallywallywally said:
Yuh, I used sideload AND IT WORKED!!
I also have a fire 5th generation. Does the same procedure work for that, assuming I use the proper 5.1.2 for that device: https://kindle-fire-updates.s3.amaz...ate-kindle-global-37.5.4.2_user_542168620.bin
Click to expand...
Click to collapse
yes
Sent from my KFFOWI using XDA Labs
Confirmed, this procedure worked for Fire (5th generation), however the amazon update file is different (see a few posts back)
I just got a fire HD 6 (4th Gen) with the 4.5.2 OS.
Everything I see talks about 4.5.3 and later. I have not turned on wifi, so basically in a holding pattern for now. I want to root/twrp and maybe a custom rom.
Can some give me advice on the best path to take? Should I upgrade then root? Or root then upgrade? Any advice is appreciated.

[GUIDE] Ad removal - Debloat - Block OTA: easy TWRP install scripts

[SIZE=+3]TWRP scripts: Ad removal - Debloat - Block OTA[/SIZE]
[SIZE=+2]Amazon Prime Variant and OEM Variant[/SIZE]
Tested on Prime and OEM variants. Please report back if any issues​
[SIZE=+1]This guide only require you to be able to boot TWRP. You can follow this TWRP install guide and perform the installation of these .zip files AFTER step 8) (You must backup your system in case anything goes wrong, you will also need this backup to perform any future OTA, such as the one activating band 12). You can either stop there after installation, or proceed to the following steps if you want to have root access.[/SIZE]​
[SIZE=+1]All .zip have to be installed using the TWRP "Install" function. You will need to download them on your phone or copy them on a SD card. You do not need to install all these packages at once. These scripts do not install or remove anything on /system, they only rename some files. All scripts can be extracted and opening "update-binary" with your favorite text editor will allow you to see exactly what is done (always a good idea if you are concerned with your device security), and customize it if you wish.
This will only rename the stock apps in your /system. If an update was performed, or if you used the app previously, the app and it's files may still be present on your device /data even after running these scripts but you will be able to uninstall them as any other app. This also means that you can rerun these scripts after a future OTA and they will not erase any app you reinstalled yourself on /data.
A "reset all" script is also provided to restore all apps and unblock OTA.
You can individually restore any app by using a file manager with root access (or TWRP built-in one) and rename any "*.apk_" to "*.apk", app will show up again after the next reboot.
[/SIZE]​
[SIZE=+1]Disable ads, block OTA and Amazon PARTIAL debloat "bluR1-AMZ-PARTIALdebloat-blockOTA"[/SIZE]​This package will remove all the ads from your Prime phone and block future OTA. You DO NOT need to reset / wipe your phone after installation.
It will also remove all Amazon apps from your system except for the Amazon Underground app store (recommended).
This option allows automatic background updates from the amazon app store and do not need you allow the installation of packages from unknown sources.
[SIZE=+1]Disable ads, block OTA and Amazon FULL debloat "bluR1-AMZ-FULLdebloat-blockOTA"[/SIZE]​This package will remove all the ads from your Prime phone and block future OTA. You DO NOT need to reset / wipe your phone after installation.
It will also remove all Amazon apps from your system including the Amazon Underground app store.
[SIZE=+1]Google PARTIAL debloat "bluR1-GOOGLE-debloat"[/SIZE]​This package will remove SOME stock Google apps that can be easily downloaded from the google play store and are not required for the system.
This will only remove apps in the /system partition. This means that if you downloaded or reinstalled some of the apps they won't be removed by the script. It also means that if you previously used the phone and some apps were updated they will still be installed in your /data/app, but you will be able to uninstall them manually as any other app.
List of removed apps and their Google Play link for easy reinstall:
Google Search bar on home screen
https://play.google.com/store/apps/details?id=com.google.android.googlequicksearchbox
Google Talkback
https://play.google.com/store/apps/details?id=com.google.android.marvin.talkback
Google GMail
https://play.google.com/store/apps/details?id=com.google.android.gm
Google Play Music
https://play.google.com/store/apps/details?id=com.google.android.music
Youtube
https://play.google.com/store/apps/details?id=com.google.android.youtube
Google Drive
https://play.google.com/store/apps/details?id=com.google.android.apps.docs
Google Maps
https://play.google.com/store/apps/details?id=com.google.android.apps.maps
Google Chrome
https://play.google.com/store/apps/details?id=com.android.chrome
Google Talk Services
https://play.google.com/store/apps/details?id=com.google.android.tts
Google Play Videos
https://play.google.com/store/apps/details?id=com.google.android.videos
Google Photos
https://play.google.com/store/apps/details?id=com.google.android.apps.photos
Google Agenda
https://play.google.com/store/apps/details?id=com.google.android.calendar
Google Hangouts
https://play.google.com/store/apps/details?id=com.google.android.talk
Google Calculator
https://play.google.com/store/apps/details?id=com.google.android.calculator
Google Clock
https://play.google.com/store/apps/details?id=com.google.android.deskclock
It will not disable Google Play store, Play services etc. Some of the apps can be removed by editing the script yourself. See the "update-binary" file. No additional help to do so will be provided, do it at your own risks.
[SIZE=+1]Mediatek and BLU PARTIAL debloat "bluR1-MTK_BLU-debloat"[/SIZE]​This package will remove SOME stock Mediatek and BLU apps.
Remove useless BLU app and Opera preinstaller.
Remove the ugly File Manager app. Replace it by any other file explorer app is you like.
Amaze File Manager is a great and open source alternative https://play.google.com/store/apps/details?id=com.amaze.filemanager
[SIZE=+1]Restore all apps and OTA "bluR1-RestoreApps-OTA"[/SIZE]​This package will restore all apps and unblock OTAs.
Changelog:
07/30/2016 - Topic creation. Amazon ad removal / debloat / OTA blocking scripts from the original post moved here for a better visibility. Initial release of Google and Mediatek debloat scripts.
08/17/2016 - MTK debloat script updated to fix FileManager removal bug
10/01/2016 - Scripts updated to v2. Now only rename files, restore script provided (V1 downloads: AMZ-PARTIAL 740, AMZ-FULL 828, GOOGLE 747, MTK 536)
05/31/2017 - Some scripts updated to v2 or v3, support V8.4 and V21 changes in folder and apk names. (V2 downloads: AMZ-PARTIAL 774, AMZ-FULL 1208, MTK 544, RESTORE 294)
07/13/2017 - MTK and OTA restore script updated to fix a typo in BLUHelp debloating. (V3 previous downloads: MTK 60, RESTORE 44)
thanks for this! very nice of you to make all the different options as well.
worked great for me on first try.
Now I'm tempted to buy the 50 version, would this leave your phone as stock?
rmartinezdl said:
would this leave your phone as stock?
Click to expand...
Click to collapse
I do not have access to a stock ROM or nandroid backup to compare everything so I can't be 100% sure but as far as I know pretty much yes.
Scripts worked perfect and didn't delete the Google apps I actually use! Thanks!
Problems after Factory Reset
after factory reset got a Error looping, “Unfortunately, Setup Wizard has stopped.”
Method to bypass problem,
1. Boot into TWRP Recovery
2. Mount System ( Mount → check System )
3. Advanced → File Manager
4. Browse to /system/priv-app/Setup-Wizard
5. Delete it
Also, home button and menu button doesn't work
(had to restore from backup)
Fibrizox said:
after factory reset got a Error looping, “Unfortunately, Setup Wizard has stopped.”
Method to bypass problem,
1. Boot into TWRP Recovery
2. Mount System ( Mount → check System )
3. Advanced → File Manager
4. Browse to /system/priv-app/Setup-Wizard
5. Delete it
Also, home button and menu button doesn't work
(had to restore from backup)
Click to expand...
Click to collapse
Or in between the pop up error messages you can go to Settings-> Apps->App Permissions and give Setup Wizard the necessary permissions.
So to clarify I can use the script to also disable ota for a prime that's been converted to OEM? excellent
I am a Prime-Member and would like to buy two NEW BLU R1 HD - 16 GB - Black - Prime Exclusive - with Lockscreen Offers & Ads:
https://www.amazon.com/dp/B01H2E0J5M/ref=twister_B01G7TG6SW?_encoding=UTF8&psc=1
However, since I am buying these two cellphones for my sons, and I don't want that they have access to my amazon account details...
So, I would like to know if these phones will come fully registered to my Amazon account, or if it is possible to block or unregister these phones to my Account ?
So, my Amazon Orders, List and Shopping Cart, can not be seen or used by my sons ?
At first and if not totally necessary, I not want to root or modify nothing on this Blue phone... I just would like to totally block in some simple way, my Amazon account that I will use to purchase these phones, possibly because both will come already registered to the same account.
ulises.rodriguez said:
I am a Prime-Member and would like to buy two NEW BLU R1 HD - 16 GB - Black - Prime Exclusive - with Lockscreen Offers & Ads:
https://www.amazon.com/dp/B01H2E0J5M/ref=twister_B01G7TG6SW?_encoding=UTF8&psc=1
However, since I am buying these two cellphones for my sons, and I don't want that they have access to my amazon account details...
So, I would like to know if these phones will come fully registered to my Amazon account, or if it is possible to block or unregister these phones to my Account ?
So, my Amazon Orders, List and Shopping Cart, can not be seen or used by my sons ?
At first and if not totally necessary, I not want to root or modify nothing on this Blue phone... I just would like to totally block in some simple way, my Amazon account that I will use to purchase these phones, possibly because both will come already registered to the same account.
Click to expand...
Click to collapse
They do not come registered to your account at all. Signing into an amazon account is an option during setup, but not required.
Thanks for letting me know that these BLUE phones, not come pre-registered to an amazon account...
That's just what I wanted to know before ordering my two phones.
The scripts worked perfectly except for the MTK one. The ugly file manager is still there.
oakami said:
The scripts worked perfectly except for the MTK one. The ugly file manager is still there.
Click to expand...
Click to collapse
This is strange. What phone version do you have? (Prime, normal, Prime converted to normal, etc)
Is the Gallery App gone? If yes try to uninstall the file explorer manually like any other app, else try to run the script again to be sure nothing went wrong.
emc2cube said:
This is strange. What phone version do you have? (Prime, normal, Prime converted to normal, etc)
Is the Gallery App gone? If yes try to uninstall the file explorer manually like any other app, else try to run the script again to be sure nothing went wrong.
Click to expand...
Click to collapse
I have the prime version. I flashed TWRP plus superSU and Xposed. The gallery app is gone. I tried installing the script again but the file manager is still there.
oakami said:
I have the prime version. I flashed TWRP plus superSU and Xposed. The gallery app is gone. I tried installing the script again but the file manager is still there.
Click to expand...
Click to collapse
Found the problem. Please redownload the script from the original post, I updated it and it should now remove properly the file manager.
Thank you for your bug report!
Thanks so much for this.
Also wanted to let people know that I removed Google Play Service and Google Play (store) without any issues so far.
I will update this post if I run into any problems.
Thanks again!
Any way to make the Camera app launch Google Photos? It now just gives me an error since I removed the Gallery app...
lostman1027 said:
Any way to make the Camera app launch Google Photos? It now just gives me an error since I removed the Gallery app...
Click to expand...
Click to collapse
No, use of the default gallery app is hardcoded in the camera app.
You can only launch Google Photos using the shortcut displayed after taking a new picture.
If you use an alternative camera app (I use Open Camera https://play.google.com/store/apps/details?id=net.sourceforge.opencamera ) these will correctly launch Google Photos or any other default gallery app.
For testing purpose (seems to work ok on my phone) here is an update of the scripts.
These ones will not delete the apps in /system but rename them from *.apk to *.apk_ effectively disabling and hiding them.
Two main advantages:
- Each app can easily be individually disabled/reactivated using TWRP builtin file explorer or any file explorer with root access by renaming them back to *.apk.
- Easily revert to an out of the box state to be able to apply an OTA update by simply using "bluR1-RestoreApps-OTA.zip" script. This will "rebloat" your system. If you installed root etc you still have to take care of this yourself.
If you are giving these scripts a try, please report success / failure so I can eventually update the original post.
Edit 09/10/2016: scripts updated to debloat non-prime phones, restore script released.
Edit 10/01/2016: scripts are now available on OP, beta is over. Thanks to the few testers that reported back!
Oops, wrong thread.

Can't Uninstall System Appps

I recently realized that since October, I can't uninstall my system apps such Calendar, Calculator, FM Radio, etc.
I used EU & MIUI Kosmos ROM and both gave the same result. I usually freeze them on Titanum Backup, then Uninstalled them, then reboot my phone. But after rebooted, the apps kept going back. I tried to uninstalled them with another apps such Root uninstaller, Root app deleter, successfully uninstalled, but when I tried to rebooted the phone it was boot-looped.
So, now I can only disable them through the Titanium Backup. I rooted my phone with Magisk, and I checked the two advanced option in Magisk Manager [Preserve Force Encryption & Preserve AVB 2.0/dm-verity.
Anyone knows why that happened? And how can I properly uninstall those system apps like usual?
Is the checked choices on the Magisk Manager be the cause?
aschleon said:
I recently realized that since October, I can't uninstall my system apps such Calendar, Calculator, FM Radio, etc.
I used EU & MIUI Kosmos ROM and both gave the same result. I usually freeze them on Titanum Backup, then Uninstalled them, then reboot my phone. But after rebooted, the apps kept going back. I tried to uninstalled them with another apps such Root uninstaller, Root app deleter, successfully uninstalled, but when I tried to rebooted the phone it was boot-looped.
So, now I can only disable them through the Titanium Backup. I rooted my phone with Magisk, and I checked the two advanced option in Magisk Manager [Preserve Force Encryption & Preserve AVB 2.0/dm-verity.
Anyone knows why that happened? And how can I properly uninstall those system apps like usual?
Is the checked choices on the Magisk Manager be the cause?
Click to expand...
Click to collapse
Yesterday i flashed Hellas Miui and faced the same problem. I tried to debloat using debloater magisk module and it showed successful but after rebooting the apps were still there.
I googled a bit and found out that we need to disable all magisk modules before uninstalling system apps.
Then i successfully uninstalled mi video and weather using "System App Remover (Root Needed)" from playstore.
Try debloat via adb
There are several topics about that.
https://forum.xda-developers.com/re...loat-redmi-note-7-miui-10-3-5-0-root-t3928466
I had the same problems a month back. I used to uninstall apps using titanium but that doesn't work now and root uninstaller sends the phone to fastboot. The terminal solutions only disables them.
After a lot of research I found a solution.
1. You must be rooted
2. Install any root browser (I used root explorer)
3. Go to
System/apps
System/ priv apps
System/ product / apps
System/ product/ priv apps
All the suckers are there, delete the ones bugging u (u should know what u r deleting, at ur own risk)
5. Reboot and voila :good:

Categories

Resources