[Q&A] [MOD/APK] CLEANSER for CM12 v1.9 [multi-devices] - HTC Sensation

Q&A for [MOD/APK] CLEANSER for CM12 v1.9 [multi-devices]
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [MOD/APK] CLEANSER for CM12 v1.9 [multi-devices]. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!

hinxnz said:
Please request for an App if you don't see it in the list.
Click to expand...
Click to collapse
Play movies & TV APP

DomagojX said:
Play movies & TV APP
Click to expand...
Click to collapse
Yeah I was thinking of adding gapps removal, I only using pico gapps which is very minimal.
Do you have full gapps? Could you enter code below in terminal for me and post outcome.
The code just creates a list of your system apps.
Code:
ls /system/app /system/priv-app

I have micro gapps
here you go
Code:
acct
cache
charger
config
d
data
default.prop
dev
devlog
etc
file_contexts
firmware_q6
firmware_radio
fstab.pyramid
init
init.cm.rc
init.environ.rc
init.pyramid.rc
init.pyramid.usb.rc
init.rc
init.superuser.rc
init.trace.rc
init.usb.rc
init.zygote32.rc
mnt
proc
property_contexts
root
sbin
sdcard
seapp_contexts
selinux_version
sepolicy
service_contexts
storage
sys
system
tombstones
ueventd.pyramid.rc
ueventd.rc
usbdisk
vendor
BasicDreams
Bluetooth
Browser
CMFileManager
CMWallpapers
Calculator
Calendar
Camera2
CaptivePortalLogin
CertInstaller
ConfigUpdater
DeskClock
Development
DeviceSettings
DocumentsUI
DownloadProviderUi
Eleven
Email
Exchange2
FaceLock
Galaxy4
Gallery2
Gmail2
GoogleCalendarSyncAdapter
GoogleContactsSyncAdapter
GoogleTTS
HTMLViewer
HoloSpiralWallpaper
InCallUI
KeyChain
LatinIME
LiveWallpapers
LiveWallpapersPicker
LockClock
Maps
NoiseField
OpenWnn
PacProcessor
PackageInstaller
PhaseBeam
PhotoPhase
PhotoTable
PicoTts
PrintSpooler
Provision
SoundRecorder
Stk
Terminal
UserDictionaryProvider
Videos
VisualizationWallpapers
WAPPushManager
webview
AudioFX
BackupRestoreConfirmation
CMAccount
CMUpdater
CalendarProvider
CellBroadcastReceiver
Contacts
ContactsProvider
CyanogenSetupWizard
DefaultContainerService
Dialer
DownloadProvider
ExternalStorageProvider
FusedLocation
GmsCore
GoogleBackupTransport
GoogleFeedback
GoogleLoginService
GoogleOneTimeInitializer
GooglePartnerSetup
GoogleServicesFramework
InputDevices
MediaProvider
Mms
MmsService
OneTimeInitializer
Phonesky
ProxyHandler
Settings
SettingsProvider
SetupWizard
SharedStorageBackup
Shell
SystemUI
TeleService
Telecom
TelephonyProvider
ThemeChooser
ThemesProvider
Trebuchet
Velvet
VoiceDialer
VpnDialogs
WallpaperCropper
com.hinxnz.cleanser.apk
talkback
[email protected]:/ $

Persistent scripts
Hi,
How does the persistent app removal work? I ran the installer and it beautifully removed all the bloat from the ROM.
But on upgrades it seems that the bloat is added again and not automagically removed. Do i have to do something to make it run the cleanup scripts again?
I am using TWRP v2.8.6.0
-m4rcu5

m4rcu5.net said:
Hi,
How does the persistent app removal work? I ran the installer and it beautifully removed all the bloat from the ROM.
But on upgrades it seems that the bloat is added again and not automagically removed. Do i have to do something to make it run the cleanup scripts again?
I am using TWRP v2.8.6.0
-m4rcu5
Click to expand...
Click to collapse
With an addon.d and init.d script.
Did you upgrade ROM from CM12 to CM12.1 because in the backup script in the ROM.zip, it removes all addon.d scripts, I don't know why but I guess to avoid incompatibility issues.
Or on all ROM upgrades? Did you enable survival mode in the installer?

hinxnz said:
With an addon.d and init.d script.
Did you upgrade ROM from CM12 to CM12.1 because in the backup script in the ROM.zip, it removes all addon.d scripts, I don't know why but I guess to avoid incompatibility issues.
Or on all ROM upgrades? Did you enable survival mode in the installer?
Click to expand...
Click to collapse
I just did an CM12.1 snapshot update (clicked download in the updater, said yes to install, and then manually selected the zip to install in TWRP) but all the bloat re-appeared. I did have the cleanser zip installed.
So to de-bloat I did the following:
Rebooted into TWRP, installed the cleaner.zip, selected app-removal, ticket the "install persistent script", selected a whole bunch of apps (including the launcher), next, next, reboot. Installer exited with code 0.
Is there any way to recognize the cleaner init.d script when it should run?

m4rcu5.net said:
I just did an CM12.1 snapshot update (clicked download in the updater, said yes to install, and then manually selected the zip to install in TWRP) but all the bloat re-appeared. I did have the cleanser zip installed.
So to de-bloat I did the following:
Rebooted into TWRP, installed the cleaner.zip, selected app-removal, ticket the "install persistent script", selected a whole bunch of apps (including the launcher), next, next, reboot. Installer exited with code 0.
Is there any way to recognize the cleaner init.d script when it should run?
Click to expand...
Click to collapse
If the installer exited without finishing then it wouldn't work. Try turning off phone, removing battery for 5 secs if you can or how ever you reset device if you can't remove battery and try again, I can't think of a reason why it shouldn't work now. Try wiping cache then reboot recovery. You could upload recovery log if still getting the error.

hinxnz said:
If the installer exited without finishing then it wouldn't work. Try turning off phone, removing battery for 5 secs if you can or how ever you reset device if you can't remove battery and try again, I can't think of a reason why it shouldn't work now. Try wiping cache then reboot recovery. You could upload recovery log if still getting the error.
Click to expand...
Click to collapse
I just ran another test.
Wiped cache and dalvik.
Installed cleanser.zip, set up survival scripts, installer exited successfully.
Installed the latest snapshot.
Rebooted the phone into OS.
Android started upgrading the apps.
At this point the cleanser did nothing, the homescreen appeared and asked me if i would like to use trebuchet (one of the things I removed). Another reboot after that also triggered nothing.
The only way to get sanity restored is to launch recovery, run the cleanser.zip again and remove the apps.
What can I send to help find out why the cleaners did not run at step 4?

m4rcu5.net said:
I just ran another test.
Wiped cache and dalvik.
Installed cleanser.zip, set up survival scripts, installer exited successfully.
Installed the latest snapshot.
Rebooted the phone into OS.
Android started upgrading the apps.
At this point the cleanser did nothing, the homescreen appeared and asked me if i would like to use trebuchet (one of the things I removed). Another reboot after that also triggered nothing.
The only way to get sanity restored is to launch recovery, run the cleanser.zip again and remove the apps.
What can I send to help find out why the cleaners did not run at step 4?
Click to expand...
Click to collapse
It's because you installed rom straight after flashing mod and mod couldn't configure the scripts upon reboot.
Edit: PM sent with test version.

hinxnz said:
It's because you installed rom straight after flashing mod and mod couldn't configure the scripts upon reboot.
Click to expand...
Click to collapse
Another couple of tries later i still cannot get it to work
- On a working ROM, install cleanser via recovery.
- App Removal, tick Survival mode, tick a bunch of apps (including trebuchet en file manager), Remove now, It finishes without problems, reboot.
- Now I have a nice and clean ROM.
Next CM update;
- Download the update, hit update. System boots recovery, installs CM update and boots.
- You see android updating the Apps and dropping to lockscreen.
But after unlocking, all the cruft is still there.
It seems as if the init script is either not deployed, removed on update or fails.

m4rcu5.net said:
Another couple of tries later i still cannot get it to work
- On a working ROM, install cleanser via recovery.
- App Removal, tick Survival mode, tick a bunch of apps (including trebuchet en file manager), Remove now, It finishes without problems, reboot.
- Now I have a nice and clean ROM.
Next CM update;
- Download the update, hit update. System boots recovery, installs CM update and boots.
- You see android updating the Apps and dropping to lockscreen.
But after unlocking, all the cruft is still there.
It seems as if the init script is either not deployed, removed on update or fails.
Click to expand...
Click to collapse
Can you post outcome of this code in terminal:
Code:
ls /system/etc/init.d /system/addon.d

hinxnz said:
Can you post outcome of this code in terminal:
Code:
ls /system/etc/init.d /system/addon.d
Click to expand...
Click to collapse
Yes, sure:
Code:
~$ ls /system/etc/init.d /system/addon.d
00
00aae
00aaf
00aag
00aao
00aar
00aat
00aav
00aax
00aaz
00banner
90userinit
30-gapps.sh
31-faceunlock.sh
50-cm.sh
55-cleanser.sh
blacklist
~$ cat /system/addon.d/55-cleanser.sh
#!/sbin/sh
#
# /system/addon.d/55-cleanser.sh
#
. /tmp/backuptool.functions
list_files() {
cat <<EOF
etc/init.d/00
etc/init.d/00a
EOF
}
case "$1" in
backup)
list_files | while read FILE DUMMY; do
backup_file $S/$FILE
done
;;
restore)
list_files | while read FILE REPLACEMENT; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
[ -f "$C/$S/$FILE" ] && restore_file $S/$FILE $R
done
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac
~$

m4rcu5.net said:
Yes, sure:
Code:
~$ ls /system/etc/init.d /system/addon.d
00
00aae
00aaf
00aag
00aao
00aar
00aat
00aav
00aax
00aaz
00banner
90userinit
30-gapps.sh
31-faceunlock.sh
50-cm.sh
55-cleanser.sh
blacklist
~$ cat /system/addon.d/55-cleanser.sh
#!/sbin/sh
#
# /system/addon.d/55-cleanser.sh
#
. /tmp/backuptool.functions
list_files() {
cat <<EOF
etc/init.d/00
etc/init.d/00a
EOF
}
case "$1" in
backup)
list_files | while read FILE DUMMY; do
backup_file $S/$FILE
done
;;
restore)
list_files | while read FILE REPLACEMENT; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
[ -f "$C/$S/$FILE" ] && restore_file $S/$FILE $R
done
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac
~$
Click to expand...
Click to collapse
Yeah init.d scripts aren't applied, it probably a mount issue.
I'd say system is read only. I'll fix it when I have some time and maybe drop you a test version first.

hinxnz said:
Yeah init.d scripts aren't applied, it probably a mount issue.
I'd say system is read only. I'll fix it when I have some time and maybe drop you a test version first.
Click to expand...
Click to collapse
Cool,
I will be sticking around.
Let me know if you need more info!

hinxnz said:
Yeah init.d scripts aren't applied, it probably a mount issue.
I'd say system is read only. I'll fix it when I have some time and maybe drop you a test version first.
Click to expand...
Click to collapse
Hey, Did you have any chance building the new version?

m4rcu5.net said:
Hey, Did you have any chance building the new version?
Click to expand...
Click to collapse
Hey been busy, maybe able tonight, I'll pm you.
Edit: Hey there, did you manage to test the cleanser.zip v2.1 that I sent you?

Related

[PATCH] Firerat 'all in one' patch file [ v1.4.1 beta2 - 2010-11-07 ]

Originally posted in the CM5 test thread, this is my all in one 'patcher'
basically it consolidates 'scripts' I have been posting in the CM5 thread to help people out.
It also includes a couple of things that I have not posted, but found useful myself. these are the 'shabang' and 'remount script'
fr-patch141-BETA3.txt
Current options
Code:
# All In One Patcher AIOMenu Version 1.4.1 BETA2
##################################################################
[1] [ ] (a2sd) FroYo Apps 2 sdext
[2] [ ] (sdext) sd-ext mount for CM6
[3] [ ] (lwp) Live Wallpaper (work around) \*
[4] [ ] (lsd) Leagacy /system/sd mount point
[5] [ ] (swap) swap
[6] [ ] (shabang) shabang
[7] [ ] (remount) system remount script
[8] [ ] (fb) Facebook 1.2.x sync for G1/Dream/Trout
[9] [ ] (fixp) fix_permissions patch ( for CM5.0.x )
[10] [ ] (dc2x) dalvik-cache bind mount
[11] [ ] (ddb) /data/(data,system) bind mount
[12] [ ] (rba) random bootanimations
[13] [ ] (fsdext) force sd-ext mount script
------------------------------------------------------------------
Enter the Number ( separate multiple with space )
Enter 0 to install sellected
This 'patch' file is simply for delivery, it is not required once you have installed the patches you want.
Update:2010-08-04
the 1.3.x version of Facebook no longer requires the 'fb fix'
Change log
1.4.1 beta2 ( 2010-11-07 )
typo fixes
removed messages that printed Danger detected ,, just creates confusion
added /data/local/bootanimations to random bootanim, ( for people without sd-ext )
1.4.1 beta ( 2010-10-28 )
v1.3.5 FroYoApps2sd see here for instructions point 4 onward
new menu system
you can still pass options, the ones in ()
new script, data/data bind, put /data/data on /sd-ext and get more room
force sd-ext mount, use line aio fsdext in your customMTD mtdpartmap.txt file
ensures your new nightly cm6.1 will mount /sd-ext
new script, random bootanimations
put a collection of bootanimation.zips in /sd-ext/bootanimations/
either rename the zips or give each one its own folder
1.4.0 ( 2010-09-06 )
v1.3.4 FroYoApps2sd see here for instructions point 4 onwards
swappy's swapfile creation now gives progress display
userinit patch ( for those without sd-ext mount ) working again
a change in CM6 nightlies supports /data/local/userinit.sh but not userinit.d, patching was skipped, but now it checks for both .sh and .d
made some changes to the script 'generation', making easier ( I hope ) to manage on github
1.3.9 ( 2010-08-23 )
fixed 'id' error in RA Recovery ( probably has more problems in RA Recovery, I'll fix in next version )
v1.32 FroYoApps2sd see here for instructions point 4 onwards
1.3.8 ( 2010-08-12 )
v1.3.8b , fixed a null variable + a fi on wrong line
added FroYo apps2sdext ( v1.2 )
includes ApkManager, to manage app location
added swapfile support ( create and resize swapfile with swappy in terminal/adb shell )
1.3.7 ( 2010-08-10 )
can be run in recovery
swappiness defaults to 20
new script /system/bin/swappy , change swappiness ( just type swappy in terminal )
remount rw/ro now works again ( I included the fix this time )
lwp script 'recreates' hw3d.xml if it does not exist
1.3.5 => 1.3.6
minor changes
1.3.4 ( 2010-07-16 )
added sdext mount for CM6
includes IConrad01's fix
Included IConrad01's fix in swap script
[*]fix system remount script ( remount (rw/ro) now working
before fix only (rw/ro)system symlinks were working oops, I didn't upload that fix
1.3.3 ( 2010-06-23 )
minor clean up for MT3G userinit patch
support for Custom partition layouts, ZERO brick risk!
if you are using a Custom Partition map, dc2x will now behave like DangerSPL ( dalvik-cache bind mount to sd-ext )
why? because we are playing about and have got rid of cache I have 90mb system and 114mb data
1.3.2
fixes dex getting rebuilt each boot, after flashing NoneDanger CM5.0.7 test(3/4) or NoneDanger CM5.0.7 test5+
will make a better fix for next major revision.
1.3.1
fixed the reverse flag ( changed from -r to rev , and the test in script )
1.3
added reverse option for swap lwp and dc2x
fixed userinit patch for those without sd ext partition
1.2
Fixed Patch 20userinit to use /data/local/userinit.sh ( not /sd-ext/userinit.sh)
added laegacy sd mount point 'fix'
Fixed neocore workaround ( LWP script ) NB Neocore workaround currently disabled
expanded fix_permissions target ( some roms have .sh )
Only run fixp when SD_EXT_DIRECTORY environment is found
1.1
Fixed script to install userinit.d directory in the right place when no sd-ext partition.
1.0
First release
Can I use this script on any rom?
_probably_ but I have only tested it on CM5/6 ( so far )
the options marked with * require 'run-parts' this is where the boot.img executes scripts within a specified directory.
When I was writing the script I anticipated this and incorporated a check, disabling the install of the options which require it.
edit: the dc2x might do very nasty things to a none CM5/6, I'll insert a sanity check
I like the idea of some of the 'run-part' scripts, but my rom doesn't use that
I have an idea in mind, where I test the running boot.img's init.rc for the import/trigger commands. I can use that to setup a run parts
trouble is, not all ramdisks are made equal.
Some popular 'roms' don't have a boot.img with a compatible init, even though the init.rc has import/trigger. So it may not work and I don't fancy manually fixing all the broken boot.imgs
But I may at some point detail how you can do that yourself
Some more detail on the options
*new* Random Bootanimations
This adds a script which will randomly select a bootanimation from /sd-ext/bootanimations ( or /data/local/bootanimations/ if /sd-ext is not mounted )
it searches for zip files in the bootanimations folder.
you can either have
unique names e.g.
/sd-ext/bootanimations/bootanimation1.zip
/sd-ext/bootanimations/bootanimation2.zip
/sd-ext/bootanimations/nexusanim.zip
or each in its own folder e.g.
/sd-ext/bootanimations/ba1/bootanimation.zip
/sd-ext/bootanimations/nexus/bootanimation.zip
/sd-ext/bootanimations/another/another.zip
or a mix of both, I don't care
if /system/media/bootanimation.zip exists, that will also have a random chance
( personally I remove it from the ROM before flashing, it saves me a chunk of system space,, I just put a copy in /sd-ext/bootanimations/
*new* data/data binds
Space tight on data?
this will put /data/data ( and /data/sysem ) on your sd-ext, and bind mount them back to data
it will free up 30+mb * on /data
* depends on how many and what apps you have
if you decide you don't like it
Code:
su
sh /sd-ext/userinit.d/11datadata-binds off
to turn it off , note it will check if you have enough space on data, don't blame me if it refuses to move it back, or if it moves it back and you get low space warnings. titanium backup and do a full wipe and start again from scratch
shabang
simply adds #!/system/bin/sh to the wrapper scripts for some of the java code in /system/framework
basically it will let you run things like pm ( package manager ) from an Almquist shell (ash), bash or busybox sh ( which I think is just ash )
remount
is a somewhat bloated script inspired by Maxisma's rwsystem script
the 'bloat' is cachehack detection ( to make sure all system files are rw ) and some feedback, both to the user and any scripts which use it (via a 0/1 exit code )
lwp
when I first did the '3D' kernel for CE1.2, ( based on what Case_ did )
I hinted in the ramdisk's init.rc at what goes on here
the patch does two things
first , on boot it restricts access to /dev/msm_hw3dr and /dev/msm_hw3dc, so only root and the graphics group can access it.
Then, we give the graphics group to apps which have the android.permission Write External Storage
the idea being that Live wallpapers would be forced to drop back to software3d
( we know lwp worked ok(ish) on ramhack kernels ; )
but Gallery3D and most Games get given graphics group ( becuse they have the WES permission )
NB, this will not fix the 'Nexus LWP Pack' pushed from another ROM
only Market LWP will work on cm5 test3
swap
on boot get a script to run, which just runs swapon against every sd partition, its a 'suck and see' but it works no matter which partition you have swap on, so no messing about editing it for typical g1 setup fat32/ext/swap , or an mt3g with just fat32/swap
fb
Edits the build.trout.prop file, changing a couple of values so that facebook 1.2.1 sync works
( if you ask me its the app which is broken, but this is a workaround )
fixp
the fix_permissions script is hardcoded with the legacy /system/sd, this patch converts it to use $SD_EXT_DIRECTORY
so it won't miss apps on your sd card ext partition
dc2x
Dalvik-cache bind mounts
For NoneDangerSPL , a bind mount between /cache/dalvik-cache and /data/dalvik-cache is created on boot
NoneDanger has a /cache partition of 67mb , which is perfectly adequate for the dex files
it frees up space on data ( which is 14mb smaller than DangerSPL )
For DangerSPL
/cache is way too small, at just 30mb , but stock cm5's framework and system app dex files are 31mb , which does eat right into the space available on data
so, a bind mount between /sd-ext/dalvik-cache and /data/dalvik-cache is created on boot., very much like the old style a2sd
this option will free up space on data, especially useful if you have apps which want to create large /data/data/ directories
for MT3G , didn't make much sense to do anything, data is huge, but with /cache at 80mb I could be persuaded to bind with that
reserving for future use
great work firerat.
like
Will this script work for cm5 based ROMs like Superbad 1.2.1?
tman7510 said:
Will this script work for cm5 based ROMs like Superbad 1.2.1?
Click to expand...
Click to collapse
yeah, should be fine
can't guarantee it as I haven't looked at superbad, but if it is cm5 based, no problem.
so how do we use it? Just download the patch to the root of sd and run the commands from terminal or what?
Klyentel said:
so how do we use it? Just download the patch to the root of sd and run the commands from terminal or what?
Click to expand...
Click to collapse
Code:
example
sh /sdcard/fr-patch12.txt swap lwp fixp
will setup swap, patch fix_permissions to see apps on sd
and setup the gpu permissions to enable lwp + 3d apps
It seems like the LWP fix doesn't want to play nice with the MyTouch 1.2
Firerat said:
Code:
example
sh /sdcard/fr-patch12.txt swap lwp fixp
will setup swap, patch fix_permissions to see apps on sd
and setup the gpu permissions to enable lwp + 3d apps
Click to expand...
Click to collapse
thanks, I should of waited before i asked that question... Right after posting I read back over the OP and saw the example in the code box. Gonna try this out now.
Awesome work Firerat. Just used it to fix Facebook sync in CM 5.0.7-t3 for G1. Works perfectly.
Re: [PATCH] Firerat 'all in one' patch file [ v1.2 - 2010-05-11 ]
Works like a charm, after a flash and a fix, I haven't the slightest problem.
Thanks firerat!
Oh, and if you delete /sd-ext/userinit.d/25Swap
swap will be turned off
(I'll add a revert feature to the script )
Click to expand...
Click to collapse
has this been done?
how to revert?
shawn1224 said:
It seems like the LWP fix doesn't want to play nice with the MyTouch 1.2
Click to expand...
Click to collapse
as I don't have a mytouch 1.2 I can't test it
but I can't think why it wouldn't work if it worked on a g1
maybe I need to clarify, it won't fix the lwp which fc, because they are not supported in the framework
currently, cm5 test3 , only lwp from the market work
it appears lwp are being coded out of the dream/magic frameworks
presumably because of their lack of stability
Hi Firerat
I've installed the patch because my facebook wasn't syncing properly; I installed the "/all". Thanks now facebook syncs but since that I can not switch back to 2G only, even when I tick the "only 2G network" the 3G icon and connexion are always here, it firstly disappear and then 2 sec after the 3G reappears.
Do you havea a clue ?
Cheers !
Firerat said:
as I don't have a mytouch 1.2 I can't test it
but I can't think why it wouldn't work if it worked on a g1
maybe I need to clarify, it won't fix the lwp which fc, because they are not supported in the framework
currently, cm5 test3 , only lwp from the market work
it appears lwp are being coded out of the dream/magic frameworks
presumably because of their lack of stability
Click to expand...
Click to collapse
Yea, I wasn't banking on it working with the Nexus default LWP but I still get the reset glitch when it goes into sleep mode using seeds of life LWP off the market.
tplotplo said:
Hi Firerat
I've installed the patch because my facebook wasn't syncing properly; I installed the "/all". Thanks now facebook syncs but since that I can not switch back to 2G only, even when I tick the "only 2G network" the 3G icon and connexion are always here, it firstly disappear and then 2 sec after the 3G reappears.
Do you havea a clue ?
Cheers !
Click to expand...
Click to collapse
sorry , not a clue
and I really can't see how anything would effect 3G
Thanks for the reply mate, I was thinking about the same, the script changes nothing related to the 3G settings, I really don't understand :s
I will nand backup
Keep up the good shared work anyway
Cheers
shawn1224 said:
Yea, I wasn't banking on it working with the Nexus default LWP but I still get the reset glitch when it goes into sleep mode using seeds of life LWP off the market.
Click to expand...
Click to collapse
hmm,
seeds of life seems to be working on my g1
let me see if I can figure out why it wouldn't be working for you
My bad Fire, I just backed up, test 3 img before your script was being installed, wiped everything and had the same problem again, so nothing to do with your work
Cheers

[TOOL][BIN]BusyBox Recovery Flashable Zips **ALL-ARCHS**

Update 14-Jul/18: Busybox v1.29.0 released (Complete changelog: here)
Hello XDA,
All the flashable zips include two builds.
SELinux Enabled and Normal
This post will give you a pretty good idea about the difference.
There are 401 applets included in the normal and 413 applets included in the selinux build.
Here's a list for the same.
NOTE: Installing busybox does not modify your device's selinux status.
Architectures supported: arm, arm64, x86, x86_64, mipsel, mips64el and mipseb.
The attached zips install busybox in one of /magisk/bbxyds, [/data/adb]/su/xbin, /system/xbin, [/system]/vendor/bin after cleaning older busybox binaries and their symlinks from the device (if any).
Universal busybox installer flashable zip detects the architecture and installs busybox accordingly.
Code for mounting the su.img and running in embedded mode is borrowed from the SuperSU project.​
SELinux status is automatically detected by the installers.
Behaviour of all the installers as well as the cleaner can be manipulated using a bbx.conf file which should be placed in one of /sdcard, /data or /cache. For more details refer to the second post.
TWRP recovery or Flashfire is recommended for flashing the attached installers, however the code is pretty generic and should work on other recoveries too.
Projects using my BusyBox builds are:
Open Gapps
Apps2SD
Project Skynet
StØck ROM Sense 5 by @denkem
Stock Debloated roms for nexus 5, 6, 5x and 6p by @tupac4u
Inlightning Org
Universal SafetyNet Fix by @Deic
If you would like to include my builds in your project, a link to this thread in the project thread would be expected.
Also, if you can, pm me about it so I can add the name to this list.
Credits:
@7175 for his thread
@bovirus @Chinaboy5216 @skulldreamz for testing and reporting
XDA for...do I need to say it
Disclaimer: Neither me nor anyone else at XDA is responsible for what happens to your device. Please use the tools/utilites attached at your own discretion.
Having said that, I'll try my best to help you with any bugs or exceptions you might face.​
Download: Click here
Mirror: Sourceforge​
Busybox-CLEANER.zip and all the installers clean BusyBox in /su/xbin /data/adb/su/xbin /system/xbin /system/vendor/bin /vendor/bin /data/adb/su/bin /system/bin /su/bin /magisk/phh/bin /su/xbin_bind /data/adb/su/xbin_bind and /magisk/bbxyds
The installers will automatically detect 32/64 bit arch and install the appropriate binary
NOTE: If FlashFire gets stuck on a black screen or errors out when flashing, please flash from recovery instead. (There seems to be a /system mounting issue on some devices in FlashFire)
File list:
Busybox-<VERSION>-YDS-UNIVERSAL.zip
Flashable zip compatible with all architectures.
Busybox-<VERSION>-YDS-<ARCHITECTURE>.zip
Architecture specific flashable zip files.
Busybox-<VERSION>-YDS-<ARCHITECTURE>.tgz
Consists of pre-compiled busybox binaries.
Not flashable
Busybox-installer-<ARCHITECTURE>.bin
Executable files for installing busybox without rebooting in recovery mode. See 2nd post for more details.
Not flashable
Source code (zip, tar.gz)
Source code files automatically generated via Github releases.
Not flashable
For older versions refer to my androidfilehost, drive, mediafire or sourceforge folders.
Toolchains used for building these binaries can be found here (host arch -> x86_64).
For official busybox source and changelog refer here.
Do report how these work out for you, as most of the testing has been done on emulators.
You can request any applet in this thread. If it does not affect the size of the whole binary or there are enough users backing it, I'll add it in the next release.
When reporting please attach the BusyBox-YDS-installer.log, it should be in either /sdcard, /data or /cache.
Source:
https://github.com/yashdsaraf/busybox
https://sourceforge.net/p/busybox-yds/code
Op
bbx.conf:
Allowed options in bbx.conf are,
installdir=<path>
Change the directory for installing busybox to <path>. If <path> is not a valid directory, then the installer will fall back to the default installation directory.
Note: Any older busybox installation in the supplied directory will be cleaned.
Warning: Please use this option only if you are absolutely sure about what you are doing.
e.g installdir=/data/local/xbin
​
selinux=[0|1]
Controls the selinux support in busybox.
E.g To disable SELinux support
Code:
selinux=0
To enable SELinux support
Code:
selinux=1
​
noclean
If supplied, the installers will skip cleaning any previous busybox installations.​Sample:
To install busybox in /data/local/xbin without cleaning previous busybox installations with SELinux support enabled, following would be a valid bbx.conf file
Code:
installdir=/data/local/xbin
noclean
selinux=1
Note: Busybox cleaner only reads the installdir option and cleans busybox in that directory
Self extracting executables:
All the .bin files in the download link in the above post are self extracting executables. They can install busybox directly from a terminal without rebooting in recovery.
Usage:
Install any terminal app.
Get root privileges,
Code:
su
E.g if you have the installer for ARM downloaded in sdcard, run this
in the terminal,
Code:
sh /sdcard/Busybox-installer-arm.bin
And watch the magic happen.
Options:
-h | --help
Show help message.​ -i | --interactive
Run script in interactive mode.​-nc | --noclean
Do not clean previous busybox installation(s) (IF ANY).​-oc | --onlyclean
Clean previous busybox installation(s) (IF ANY) and exit.​ If supplied, all other options are ignored except installdir.​--selinux=[es|o]
Enable or disable selinux support in busybox.​--installdir=<path>
Install busybox in <path>.​Tip: To clean busybox in a custom directory, run the installer in onlyclean mode and set installdir to the custom directory which needs to be cleaned.
e.g. to clean busybox in /data/local/xbin run the installer as
Code:
sh <script_name> -oc --installdir=/data/local/xbin
@YashdSaraf
Thanks for new thread
"[TOOL][BIN]busybox flashable for all architecture via recovery"
I will remove "Latest" and add info that is flashable via recovery.
I will change the thread title in
Nice work .
Keep it up !!!
Sent from my E2303 using XDA Free mobile app
bovirus said:
..Thanks for new thread....
Click to expand...
Click to collapse
is the issue mentioned here addressed? @YashdSaraf, hope you read my pm.
@YashdSaraf had a quick question. I have been using your busybox zips since you've staying building and i first want to say thank you. My question is when i use the busybox unistaller zip or busybox cleaner with your zip it says that it removes 0 symlinks and when i use stericson busybox zip it says that I'm removing 3xx plus symlinks. I was just wondering wondering why his and osmosis show that binaries were symlinked and yours showed that 0 were? I want to lastly say though that your zip worked and busybox was installed and worked correctly. I like some of the extra binaries yours offers do just a curious question thanks.
Sent from my Nexus 6P using Tapatalk
m0han said:
is the issue mentioned here addressed? @YashdSaraf, hope you read my pm.
Click to expand...
Click to collapse
I did, I'm sorry I was too busy switching to a new OS. Anyways, I've got a couple of ideas over what might've gone wrong. I'll pm you the updated installers as soon as I'm done for testing. :good:
skulldreamz said:
@YashdSaraf had a quick question. I have been using your busybox zips since you've staying building and i first want to say thank you. My question is when i use the busybox unistaller zip or busybox cleaner with your zip it says that it removes 0 symlinks and when i use stericson busybox zip it says that I'm removing 3xx plus symlinks. I was just wondering wondering why his and osmosis show that binaries were symlinked and yours showed that 0 were? I want to lastly say though that your zip worked and busybox was installed and worked correctly. I like some of the extra binaries yours offers do just a curious question thanks.
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
I did not update the uninstaller after systemless root was introduced so it must be looking only in the /system partition for busybox. I'll upload the updated uninstaller today.
Thanks for your support.
YashdSaraf said:
.....I'll pm you the updated installers as soon as I'm done for testing.....
I did not update the uninstaller after systemless root was introduced....
. I'll upload the updated uninstaller today.......
Click to expand...
Click to collapse
got your pm. will test the updated installer and revert by pm.
is this 'the updated uninstaller'? can this be used in 'any setup'?
m0han said:
got your pm. will test the updated installer and revert by pm.
is this 'the updated uninstaller'? can this be used in 'any setup'?
Click to expand...
Click to collapse
Yes the one attached in the OP is the latest one. It will clean busybox in /system/bin, /system/xbin, /su/bin, /su/xbin.
So yeah it can be used in 'any setup'.:good:
@YashdSaraf
Are there any news about busybox for ARM and 64boit Android SO (like 5.1.)?
YashdSaraf said:
.....I'll pm you the updated installer......
Click to expand...
Click to collapse
...will test the updated installer and revert .....
your zip worked well, i think. thanks.
86_64 for zenfone 2 Z00A?
@YashdSaraf
Thanks for sharing mate. really appreciated. :good:
PM sent
Cheers,
UITA
@YashdSaraf
thanks for your busybox.
I had some problems to install it (I tried arm/arm64/all zip file withS elinux).
Every time the installation end with error "Wrong architecture".
My build propri content about cpu is
# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
# use ro.product.cpu.abilist instead.
ro.product.cpu.abi=arm64-v8a
ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=arm64-v8a
To install I had to use previous zip file (1.24.1) where you not have archictecture check and replace 1.24.1. busybox with busybox extracted by 1.24.2 zip.
Where can i get the error log of your script? It show just only /data...
Please check your script.
Thanks.
@YashdSaraf Could you update busybox to 1.24.2?
@exodius48
All busybox files in first post are version 1.24.2.
@YashdSaraf
Please add a note in first post about the vesrion of busybox.
bovirus said:
@exodius48
All busybox files in first post are version 1.24.2.
Click to expand...
Click to collapse
Sorry for asked it. I couldn't find busybox version on 1st post, also on the tittle.
@exodius48
In the first post there are various Download links with all busybox for all platforms.
OK... the BusyBox app on the play store had an update to 1.24.2.
When I install the update from 1.24.1 to 1.24.2, it states that it installed successfully, it doesn't reflect it.
It still shows that 1.24.1 is installed.
I tried wiping the dalvik cache before and after as well as reinstalling the app and it still reflects 1.24.1.
Also, it displays that 1.24.2 will be installed in the system xbin but, doesn't.
Thank you.
bovirus said:
@YashdSaraf
thanks for your busybox.
I had some problems to install it (I tried arm/arm64/all zip file withS elinux).
Every time the installation end with error "Wrong architecture".
My build propri content about cpu is
# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
# use ro.product.cpu.abilist instead.
ro.product.cpu.abi=arm64-v8a
ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=arm64-v8a
To install I had to use previous zip file (1.24.1) where you not have archictecture check and replace 1.24.1. busybox with busybox extracted by 1.24.2 zip.
Where can i get the error log of your script? It show just only /data...
Please check your script.
Thanks.
Click to expand...
Click to collapse
Hey,
I think the reason for failure was that the script could not detect the /data partition.
Please try these zips instead.
arm arm64
There should be a BusyBox-YDS-installer.log in either /sdcard, /data or /cache, whichever your device supports.
Do attach it when reporting back.:good:
Ibuprophen said:
OK... the BusyBox app on the play store had an update to 1.24.2.
When I install the update from 1.24.1 to 1.24.2, it states that it installed successfully, it doesn't reflect it.
It still shows that 1.24.1 is installed.
I tried wiping the dalvik cache before and after as well as reinstalling the app and it still reflects 1.24.1.
Also, it displays that 1.24.2 will be installed in the system xbin but, doesn't.
Thank you.
Click to expand...
Click to collapse
I'm not sure what are you talking about. I'm not related whatsoever to any play store busybox installer apps. Try one of the installers from the op to install 1.24.2 busybox.

[MODULE] Detach3 - Detach Market Links

Detach3
Introduction
This Magisk module is for detaching apps from the Google Play Store.
It removes your defined packages from the 'Manage apps and device" section and disables them from auto-updates.
Installation
Flash module in Magisk Manager only.
Not necessary to reboot after flashing this module.
This module is designed to flash as many times as you like.
It is configured with a *configuration file. You can create one before flashing this module to define your package(s) or the default one will be used instead, which detaches YouTube by default.
Add your package name(s) you would like to detach to the configuration file, with each package name on a new line.
You can add more package names to your configuration file or the default one at any time, then simply just flash module again to apply it. Again, no need to reboot or any other user interaction needed.
Read the log that Magisk Manager displays when flashing the module, it displays the detached package(s) for confirmation.
*Configuration file: /storage/emulated/0/Android/detach.cfg
Reattach
https://forum.xda-developers.com/t/module-detach3-detach-market-links.3447494/post-84951411
Scheduler
https://forum.xda-developers.com/t/module-detach3-detach-market-links.3447494/post-84981039
Uninstallation
Uninstall with Magisk and reboot.
Troubleshooting
Follow uninstallation method. After reboot open playstore, navigate to the 'Manage apps and device' section so it can populate and then re-flash the module.
Still have an issue? Post your problem in detail and upload your Magisk installer log, found in your Download directory after saving it ( Shown here ).
Changelog
Spoiler: Click to expand
v3.00
- Initial release
v3.01
- Disabled Fallback broadcast
v3.02
- Disable auto-update for detached apps
- Disable playstore running in background
- Added uninstall script to revert changes
v3.03
- Updated sqlite3 binary
- Added support for x86 and x64
v3.04
- Added package check for configuration file
- Minor alterations
v3.05
- Recompiled sqlite3 binaries
- Improved device platform check
- Added database check
- Added the default detach.cfg file
- Minor alterations
v3.06
- Improved installer checks
- Fixed inflating uninstall script error
- Tidied installer script
- Added reattach feature*
* Comment out package name(s) in detach.cfg to reattach.
v3.07
- Fixed minor install.sh error on Android 11
- Improved some installer logic
- Added scheduler feature*
*Termux and Termux:API apks need to be installed beforehand for scheduler
v3.08
- Fixed playstore update log error on some devices
- Fixed script not applying package names with the same string of characters
- Fixed minor installer check for checking packages
- Fixed termux-api binary check
- Disabled package checks on some devices
- Added option to open playstore with scheduler notification
- Added option to open configuration file with scheduler notification
- Added option to flash module with scheduler notification
v3.10 - Note: Disable scheduler and uninstall previous version before installing this version.
- Removed package check (Some users have had issues, reboots etc.)
- Removed scheduler (Not needed for now)
- Removed unnecessary coding
- Added new method to prevent detached apps repopulating
- Added disabling of Play store trackers
- Other minor alterations in installer script
- Cleaned up installer script for new method
v3.11
- Added ignore GET_USAGE_STATS in AppOps
v3.12
- Updated sqlite binaries
- Removed disabling of fallback receiver
- Added disabling of alarm manager background service
v3.13
- Updated sqlite binaries
- Added ignore RUN_ANY_IN_BACKGROUND in AppOps
- Added ignore RUN_IN_BACKGROUND in AppOps
- Disabled App Discovery Service
Frequenly Asked Questions
Spoiler: Click to expand
Q. Can I use the old detach.txt?
A. No, I decided to ditch it. It now uses a new method explained in the installation section.
Q. Where is the boot script installed?
A. No boot script is needed for detaching, everything is done while flashing the module.
Q. Does this break safetynet?
A. No, it doesn't conflict with safetynet at all.
Q. Why shouldn't I re-enable Play Protect?
A. It will interfere with the module's purpose.
Q. Will having Play Protect disabled, open me up to vulnerabilities?
A. No, the playstore scans their market apk's after developers upload them.
Q. I usually install after-market apks (modified ones) and I think play protects me from this?
A. You should scan your unknown apk with Total Virus.
Q. How do you find a package name?
A. Magisk Manager lists your apps with the package name underneath each one, in the Magisk Hide list.
Q. What Magisk version is needed?
A. The module template is designed for Magisk v20.4+
Q. Do I need to uninstall previous version before updating?
A. No, unless stated. Just flash updated version.
Q. Do auto-updates still work for all my other apps that aren't detached?
A. Yes, auto-update and other notifications etc still work.
Download
See attached below -- detach-3.xx.zip
Previous versions
Detach Market Links for Theme Ready Apps *
Introduction
This Mod is for detaching apps from the Google Play Store that are included in the Theme Ready Apps zip and/or aroma installer from Team Black Out for CMTE and Substratum theme engines.
*Now also includes majority of all themed apps by Team Black Out by using an optional txt file.
The purpose is that updates will not show in your update list and also in update notifications from the Google Play Store.
This allows you to auto-update or the ability to use the update all button without the worry of updating Theme Ready Apps which will break your themes for those apps updated.
The Google apps that are detached if you're not using the optional txt file are Gmail, Google App, Google Plus, Hangouts, YouTube and Gboard (Google Keyboard).
Installation
Flash Mod in recovery, no need to wipe anything but if using SuperSU systemless mode or Magisk, flash this mod afterwards.
No need to flash again in-between ROM updates if using SuperSU systemless mode or Magisk or if your ROM supports addon.d scripts.
To detach more themed apps, place the detach.txt file either on root of your sdcard or internal storage and remove the comment from the apps you wish to detach and then flash Detach.zip
You can also use the optional detach.txt file to just selectively detach Theme Ready Apps.
If you don't use the supplied detach.txt file, only Theme Ready Apps will be detached.
To add your own custom packages (apps), read here > https://forum.xda-developers.com/showpost.php?p=72194332&postcount=147
Uninstallation
Rename detach.txt on sdcard to detach.remove, flash Detach.zip again and reboot.
This will remove all files related to installation, including the txt and custom file and restores all market links.
Note
If not using SuperSU or Magisk, you need to have init.d support.
The configured script doesn't execute until after 60 seconds when boot has completed, this also includes the remove script too.
This Mod has been tested by myself on Android 6 and 7.
You still have the ability to update your Theme Ready Apps via Google Play Store but you'll need to use the search function instead.
Changelog
v1.0
- Initial release
v1.1
- Changed detach method
v1.2
- Disabled service for database
v1.3
- Bug fixes
v1.4
- Added static sqlite binary
v2.0
- Added themed apps to detach with configuration txt file (optional)
v2.1
- Cleaned up installation script
- Added mod removal option
v2.2
- Magisk compatible (systemless installation)
- SuperSU systemless mode compatible (systemless installation)
- Fixed init.d detection
- Fixed market links reappearing
- Updated detach.txt (added Wallpapers, Pixel Launcher, Capture (GoPro))
v2.3
- Updated script and detach.txt (added Gboard, Clock, Camera, Google Connectivity Services, Google VR Services, Google Play Services)
v2.4
- Updated script and detach.txt (added Google Carrier Services and the ability to add custom packages)
v2.5
- Fixed market links reappearing
v2.6
- Main script updated for removal process
- Disabled code for a playstore service that no longer needs to be disabled
- Removed Contacts, Phone and Photos from default install
Thanks @hinxnz, I'll try the newest one.
Report 1.3: My theme ready gapps were detached except Google Calendar. I installed Black Google Calendar from TBO. Is there something I can do for this?
sunanulh said:
Thanks @hinxnz, I'll try the newest one.
Report 1.3: My theme ready gapps were detached except Google Calendar. I installed Black Google Calendar from TBO. Is there something I can do for this?
Click to expand...
Click to collapse
I was thinking about adding more themed apps to detach but would have to either use a config file on sdcard for example or probably better to make an aroma version but I would need all the package names first.
hinxnz said:
I was thinking about adding more themed apps to detach but would have to either use a config file on sdcard for example or probably better to make an aroma version but I would need all the package names first.
Click to expand...
Click to collapse
I think a "fulfilled" config file is simpler. So the users have just to add/remove '#' symbol.
For the name of the apps, maybe you can ask to TBO.
Cheers
hinxnz said:
I updated mod, see if it works for you now & I made a thread for it too > http://forum.xda-developers.com/and...detach-market-links-theme-ready-apps-t3447494
Click to expand...
Click to collapse
It's still not working on Stock rooted N. Thanks for trying.
Glad I saw your post that you put this thread up!
I downloaded 1.3 and flashed it and rebooted and waited for two minutes, but YouTube is still showing an update.
cmo220 said:
It's still not working on Stock rooted N. Thanks for trying.
Click to expand...
Click to collapse
Could you call script manually with Terminal Emulator and post output
RED ZMAN said:
Glad I saw your post that you put this thread up!
I downloaded 1.3 and flashed it and rebooted and waited for two minutes, but YouTube is still showing an update.
Click to expand...
Click to collapse
But the first version still works for you?
YouTube hasn't been updated for awhile AFAIK, what version is showing an update?
Are the other theme ready apps showing in your 'My apps & games' list?
Do you have any apps in your 'Wishlist', found in side menu?
hinxnz said:
Could you call script manually with Terminal Emulator and post output
But the first version still works for you?
YouTube hasn't been updated for awhile AFAIK, what version is showing an update?
Are the other theme ready apps showing in your 'My apps & games' list?
Do you have any apps in your 'Wishlist', found in side menu?
Click to expand...
Click to collapse
I couldn't get a /su.d folder so I put it in /system/su.d, which was already there and working. Here is the output.
angler:/ $ su
angler:/ # /su.d/99-detach.sh
sush: /su.d/99-detach.sh: not found
127|angler:/ # /system/su.d/99-detach.sh
angler:/ # Component {com.android.vending/com.google.android.finsky.services.DailyHygiene$DailyHygieneService} new state: disabled
CANNOT LINK EXECUTABLE "sqlite3": cannot locate symbol "u_setDataDirectory_55" referenced by "/system/xbin/sqlite3"...
Aborted
CANNOT LINK EXECUTABLE "sqlite3": cannot locate symbol "u_setDataDirectory_55" referenced by "/system/xbin/sqlite3"...
Aborted
And a bunch more of the same error.
The first version? I've deleted the previous versions .zips.
I've installed 1.0, 1.2, and 1.3.
Youtube has been showing this way for about a week, even after reboots.
11.32.53 is what's showing on Google Play, I've got 11.29.55 installed from TBO Theme Ready Apps v 21.
com.google.android.youtube
Showing up in the My apps & games list as installed...
Gmail
Google App
Google+
Google Photos
Hangouts
Wishlist, yes, I've got several.
RED ZMAN said:
The first version? I've deleted the previous versions .zips.
I've installed 1.0, 1.2, and 1.3.
Youtube has been showing this way for about a week, even after reboots.
11.32.53 is what's showing on Google Play, I've got 11.29.55 installed from TBO Theme Ready Apps v 21.
com.google.android.youtube
Showing up in the My apps & games list as installed...
Gmail
Google App
Google+
Google Photos
Hangouts
Wishlist, yes, I've got several.
Click to expand...
Click to collapse
Could you call script in Terminal Emulator and post output too.
For example:
Code:
su
/system/su.d/99-detach.sh
I don't think I've used terminal emulator except for twice since the G1, so I'm not sure if I did this right.
[email protected]:/ $
[email protected]:/ $ su
system/su.d/99-detach.sh <
sush: /system/su.d/99-detach.sh: not found127|[email protected]:/ #
hinxnz said:
Could you call script in Terminal Emulator and post output too.
For example:
Code:
su
/system/su.d/99-detach.sh
Click to expand...
Click to collapse
Is there any reason you are using a dynamically linked sqlite in your zip? the error the user is getting is because of that I believe. Idk I would try to use a static sqlite binary. Ill attach one so you/someone can have, but in case anyone is curious how to quickly compile sqlite3 statically ill post it in the spoiler tags below.
oh and just to note, I forgot to rename it from sqlite3 to sqlite before uploading
Im not going to explain the lines though, pretty straight forward imho
/opt/androideabi is my ndk toolchain prefix
Code:
mkdir sqlite3-static
cd sqlite3-static
wget https://sqlite.org/2016/sqlite-amalgamation-3140100.zip
unzip sqlite-amalgamation-3140100
cd sqlite-amalgamation-3140100
export PATH=$PATH:/opt/androideabi/bin
cp $(ANDROID_BUILD_TOP)/bionic/libdl/libdl.c .
cp /opt/androideabi/sysroot/usr/include/android/dlext.h .
cp /opt/androideabi/sysroot/usr/include/dlfcn.h .
arm-linux-androideabi-gcc -static -I./ -L./ -ldl *.c -o ../sqlite3
cd ../
file ./sqlite3
Surge1223 said:
Is there any reason you are using a dynamically linked sqlite in your zip? the error the user is getting is because of that I believe. Idk I would try to use a static sqlite binary. Ill attach one so you/someone can have, but in case anyone is curious how to quickly compile sqlite3 statically ill post it in the spoiler tags below.
oh and just to note, I forgot to rename it from sqlite3 to sqlite before uploading
Im not going to explain the lines though, pretty straight forward imho
/opt/androideabi is my ndk toolchain prefix
Code:
mkdir sqlite3-static
cd sqlite3-static
wget https://sqlite.org/2016/sqlite-amalgamation-3140100.zip
unzip sqlite-amalgamation-3140100
cd sqlite-amalgamation-3140100
export PATH=$PATH:/opt/androideabi/bin
cp $(ANDROID_BUILD_TOP)/bionic/libdl/libdl.c .
cp /opt/androideabi/sysroot/usr/include/android/dlext.h .
cp /opt/androideabi/sysroot/usr/include/dlfcn.h .
arm-linux-androideabi-gcc -static -I./ -L./ -ldl *.c -o ../sqlite3
cd ../
file ./sqlite3
Click to expand...
Click to collapse
Thank you Surge! :highfive:
Surge1223 said:
Is there any reason you are using a dynamically linked sqlite in your zip? the error the user is getting is because of that I believe. Idk I would try to use a static sqlite binary. Ill attach one so you/someone can have, but in case anyone is curious how to quickly compile sqlite3 statically ill post it in the spoiler tags below.
oh and just to note, I forgot to rename it from sqlite3 to sqlite before uploading
Im not going to explain the lines though, pretty straight forward imho
/opt/androideabi is my ndk toolchain prefix
Code:
mkdir sqlite3-static
cd sqlite3-static
wget https://sqlite.org/2016/sqlite-amalgamation-3140100.zip
unzip sqlite-amalgamation-3140100
cd sqlite-amalgamation-3140100
export PATH=$PATH:/opt/androideabi/bin
cp $(ANDROID_BUILD_TOP)/bionic/libdl/libdl.c .
cp /opt/androideabi/sysroot/usr/include/android/dlext.h .
cp /opt/androideabi/sysroot/usr/include/dlfcn.h .
arm-linux-androideabi-gcc -static -I./ -L./ -ldl *.c -o ../sqlite3
cd ../
file ./sqlite3
Click to expand...
Click to collapse
Cheers, thanks and yeah that's definitely the reason
Super idea, this would of been good a few months ago when google pushed their framework update and it broke some apps that i kept from updating,,, @Shaftamle google keyboard is the main on one, thank you
3GotoM ym morf tneS
Version 1.4 works for me now on 7.0. Thanks everyone!
Installed version 2.0 earlier today and seems to be working perfectly. Nothing showing needing updated.
Thanks!
How to add Black Google Calendar and Black Keep in the list?
sunanulh said:
How to add Black Google Calendar and Black Keep in the list?
Click to expand...
Click to collapse
Just remove the comments from those two as well as the other theme apps you flash.
Here's an example, theme ready apps, calendar and keep will be detached.
Code:
Contacts
Gmail
Google App
Google Plus
Hangouts
Phone
Photos
YouTube
#Inbox
#Duo
#Dropbox
#PushBullet
Calendar
Keep
#Telegram
#Swiftkey
#Translate
I have tried installing your script... And no matter how I go about... I cannot get the script to populate the su.d directory like it should...
And... Since I don't understand your flashable... I can't pull what I want out of it...
Could you explain how to install said script without recovery?
Thanks

[APP][ROOT][5.0+][1st Nov 2020] Migrate - custom ROM migration tool

Jumping from one custom ROM to another can be a challenging task. So I decided to make an app to simplify the process.
Introducing
Migrate!
Migrate-GPE (v4.0) is on Google Play
It was temporarily suspended. Read more here: https://forum.xda-developers.com/showpost.php?p=82230451&postcount=1273
Download from Google Play Store
Download from AndroidFileHost
Download from XDA labs (removed as XDA Labs has shutdown)
CODEBASE ON GITHUB
{
"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"
}
With Migrate, you can back up:
App apk
App data
App runtime permissions
Contacts (as vcf file)
SMS messages
Call logs
Current ROM screen DPI
Current default keyboard option
App installer (Migrate 3.0)
Adb state (Migrate 3.0)
Font scale (Migrate 3.0)
... everything in one app.
Ok. So its just another of those backup and restore apps, right?
Sort of... but with a twist.
Restoring everything requires flashing the backup via TWRP.
ALTERNATELY
You can use the Migrate Flasher app (if your phone does not have a compatible recovery, or your recovery is broken).
If you are flashing via TWRP, see the below screenshot.
All your apps and data are restored to a directory under /data/balti.migrate, /data/local/tmp/migrate_cache (from v2.0+) and a helper app is injected into the system.. Once you boot up your new ROM, the app will spring up, ask for root permission and do all the job while you can relax.
IF YOU ARE USING MIGRATE FLASHER
The process is similar. Only difference is Migrate Helper is not injected into system, but installed as a user app. There is no use of recovery environment.
Once Migrate Helper is installed, just press RESTORE APPS AND DATA and proceed as usual.
Please see the HOW TO FLASH section on Migrate Flasher for complete illustration.
IF you have already flashed using TWRP (with no errors) then the above sections about Migrate Flasher is not applicable.
Donations:
Well, the app already has ads, so you need not explicitly donate anything
But if you are feeling reaalllyyy grateful for the app, you can donate here: paypal.me/sayantanrc
Thanks.
Migrate Gemini (v4.0) release
Hello everyone.
Migrate 4.0 is now released.
There are 2 editions of Migrate.
Migrate NG: This is the Non-Google and Beta edition. It is not published on Google Play store. It will continue having in-app updates. Moreover new features will be tested on these builds first. People who did not like firebase analytics, this edition is for you as it does not have firebase SDK anymore. However, Google admob ads are still present.
Download link (NG): https://www.androidfilehost.com/?fid=10763459528675575696
Migrate GPE: This version is Google Play Edition. It is the stable version. It does not have in-app updates anymore as it violated Google Play policies.
Download on Google Play: https://play.google.com/store/apps/details?id=balti.migrate
Coming from alpha 3.1, if you update via the in-app updater, you will be switched to the Non-Google Edition.
Thank you.
Want to translate the app?
The strings.xml file is available here: https://github.com/SayantanRC/translations
Telegram group!
We now have a Telegram group for migrate:
http://t.me/migrateApp
This is not to rival XDA but only another form of communication between users and me
Thanks.
FAQ:
Click here for Troubleshooting options
If you are facing issues while flashing, refer to this video: https://youtu.be/0Cp6TNayXnM
Full manual extract guide: https://forum.xda-developers.com/showpost.php?p=82198185&postcount=1269
How is this app different from Titanium backup?
This app is a ROM migration tool. It not only backs up app and data, but also contacts, SMS, call logs etc. Moreover, the restoration process also involves flashing via TWRP. Titanium backup is an excellent app. Migrate just views the restoration process differently.
In recent times however, Migrate Flasher app can be used to flash a zip even if you dont have a compatible TWRP recovery. Everything is almost the same other than just the flashing part, which is done from the Flasher app.
Do I need to download the Migrate app to restore the apps?
No. Only your ROM needs to be rooted. The restoration process is handled by a helper app, which deletes itself after restoring everything.
Is it necessary to use Magisk?
The app works best with Magisk. Other options like Lineage OS su addon causes weird errors like incomplete file copy, etc.
All apps are restored from recovery?
No. That is not possible. Because Recovery is a completely different environment from Android. Think of it as installing a Windows game from a Linux distro. Instead from recovery, an app is injected into system which takes up the restore process when android boots up. Most things are automated, so you need not worry much.
A quick word on SD card support...
SD card support in v2.0 requires a Magisk module "ExSDCard Access Enabler", made by developer Romain. According to him, this module requires FUSE support on ROMs. FUSE is supported on some ROMs as a legacy feature as Android has moved away from FUSE to SDCARDFS. As such, the current implementation may or may not work based on your device and ROM.
If it does not work for you, please wait until either the module developer rewrites the module or I find a different implementation Thanks for your patience.
From version 5.0+ (Not yet released, available on GitHub)
Users will be able to natively store backups on SD Cards, especially on Android 11+.
For lower Android versions, Storage Access Framework is used (along with root access) to store backups on SD Cards as well as on USB-OTG.
Changelog
Version 4.0 [1st November 2020]
# Compatibility fixes for Android 11
# Add Message center to display important announcements.
# Migrate helper now allows to retry failed apk installs
# Add a "Migrate flasher only" backup option
# Save app icons as png files
# Show number of apps selected for backup in Extra backups screen
# Keep screen on when calculating backup size
# Save last state of selection in extras
# Don't remount /data partition in system test
# Many under the hood changes
Version 3.1.1 [25thApril 2020]
# Fix issue in v3.1 where restore would not be possible for apps with unsupported characters in the name.
Version 3.1 [24thApril 2020]
# Probable fix to data restore problems
# Probable fix to helper crashing during loading apps
# Record raw list of files in a backup
# Many other minor improvements
Use v3.1.1 above
Version 3.0.3 [18thApril 2020]
#. Slightly tweaked logo.
#. Probable fix to No metadata found after flashing.
Version 3.0.1 [9thApril 2020]
#. Bug fixes
#. Added translations
Version 3.0 [20th March 2020]
#. The app is rewritten in Kotlin
#. Many new preferences have been added.
#. Helper app is now available on Google Play.
#. Many fixes in recovery. Support for SAR and Android 10.
#. Added options for backup of app installer, font scale, adb state
#. Set max zip size in preferences.
#. Verification of zips after backup is complete.
#. Many more changes and improvements…
Version 2.1 [15th Jan]
# Minor errors are now suppressed, but recorded in log.
# Fix icon retention form previous backup
# Fix wrong backup duration display.
# Fixed a bug in error correction mechanism.
# Probable fix for some apps not being backed up.
# Fix for error 6 in TWRP for some locales.
# Fixed a long standing wrong /data space calculation in TWRP.
# Migrate helper no longer uninstalls app before installing.
# Added Telegram group link!
Version 2.0.1 [30th Dec] (christmas_beta)
# Fixed a probable crash in Migrate helper (needs a magisk module)
Version 2.0 [26th Dec] (christmas_beta)
# Experimental SD card support (needs a magisk module)
(please read the previous post)
# Support for split apks
# "Abort" option in Migrate helper
# "Temporary disable" in Migrate helper
# Apks are now unpacked under /data/local/tmp/migrate_cache
(probable fix to some devices unable to install apks)
# Each backup zip now has a busybox file as fallback
Version 1.2 [12th Nov] (beta)
# Completely avoid "dumpsys" to backup app permissions
# Now app data in tar.gz is unpacked in /data/data
(probable fix to "Operation not permitted" issues in Google Pixel and some other devices)
Version 1.1.1 [10th Nov] (beta)
v1.1 (skipping upload)
# [New] Backup verification before zipping
# Major code refactoring and under-the-hood changes
# CANCEL button now kills the backup process
# Fix to "set_progress()" in recovery
# Probable fix to "Failed to change locale for db"
# Probable fix to missing updater-script
# Probable fix to some "Operation not permitted" issues
# Remove illegal characters from backup name
# "Share scripts" option should now work properly.
v1.1.1
# Fix to a no-closing-quote issue in helper
Version 1.0.5 [7th Nov] (beta)
# Probable fix to "android.os.TransactionTooLargeException"
# Better in app protection to prevent zips from not being made
# App version is now written in logs
# App now targets Oreo instead of Pie to potentially avoid some crashes
# Fixed unexpected ( in restore process
Version 1.0.4 [5th Nov] (beta)
# Improvements to logging
# Ignore tar socket warnings
# New update-binary to prevent TWRP error 3
# Should fix a null String issue while reading backup data
Version 1.0.3 (beta)
# Fixed log sharing
# Share script file in log
# Blacklist Android system from system app backup list (prevents tar socket error)
Version 1.0 (beta)
# Initial release
Some plaguing bugs on some devices
"dumpsys not found"
(Severity: mild. Only permissions are not backed up)
Mainly in ASUS devices. Probable solution is to not use dumpsys at all.
Probably fixed in v1.2
"tar: can't execute 'gzip': Permission denied"
(Severity: severe. Do not restore this backup)
I still have no idea why this is happening. Probable solution is use something other than tar.gz
Data files cannot be moved during restore. "Operation not permitted"
(Severity: severe)
No idea yet. Prominent in Google Pixel devices and some Xiaomi devices
Probably partially or completely fixed in v1.2
Error 7 (or 6) in TWRP
(Severity: severe)
This issue which was supposedly fixed in v1.1.1 seems to occur again on few devices
Since I cannot reproduce the issue and the number of error reports are pretty small, please send the recovery.log from TWRP:
- Goto Advanced -> Terminal in TWRP
OR
open an adb shell inside TWRP
- Type the following and press enter: cp /tmp/recovery.log /sdcard/
- Reboot and upload the recovery.log file (from internal sd card) here.
Stuck at calculating size.
(Severity: severe)
This is being reported multiple times. I am still unable to reproduce the issue on my device.
That being said, I will be adding new controls to skip size checking of its stuck on any device, in the next release. Also, I will add more fine logging to see what is actually happening behind the scenes, which cannot be detected by a logcat.
Probably fixed in v2.0
Pocophone TWRP recovery has issues
(Severity: severe)
I need someone to do the following and then upload the file:/sdcard/test_log.log
- TWRP main menu -> Mount -> Data and System should be mounted
- TWRP main menu -> Advanced -> Terminal
OR
open an adb shell inside TWRP
- Type the following commands:
getprop > /sdcard/test_log.log
echo " " >> /sdcard/test_log.log
df /data >> /sdcard/test_log.log
echo " " >> /sdcard/test_log.log
df -k /data >> /sdcard/test_log.log
echo " " >> /sdcard/test_log.log
df -h /data >> /sdcard/test_log.log
echo " " >> /sdcard/test_log.log
df /system >> /sdcard/test_log.log
The following should work as an alternative:
SayantanRC said:
You have to manually do the following:
1. Open the backup zip file
2. Edit the "package-data.txt" file
3. Put the "data_required_size" as "0"
4. Save the file.
5. Repack the zip file.
Click to expand...
Click to collapse
"Segmentation fault"
(Severity: unknown)
Mainly in Xiaomi devices. I cannot reproduce it. Neither do I know how much this affects the backup. Please restore a backup and tell me if it works.
Useful
Quite promising
So what does the helper app really do? Move the apps and data from /data/balti.migrate to their respective directories? How does that work in a booted up ROM?
candiesdoodle said:
Quite promising
So what does the helper app really do? Move the apps and data from /data/balti.migrate to their respective directories? How does that work in a booted up ROM?
Click to expand...
Click to collapse
The helper app installs the apks using package manager and then unpacks the data of the respective apps in /data/data. Finally it restores all the apps runtime permissions.
I got this issue
Wifi?
ceelos218 said:
I got this issue
Click to expand...
Click to collapse
Please tell how to reproduce the issue.
m0d said:
Wifi?
Click to expand...
Click to collapse
Maybe added in future
bin.sayantan said:
Please tell how to reproduce the issue.
Click to expand...
Click to collapse
I just clicked next.. nothing else I selected all apps to backup then next page ticked boxes to back up.. click ready and I got that error and It didn't back up anything.
bin.sayantan said:
The helper app installs the apks using package manager and then unpacks the data of the respective apps in /data/data. Finally it restores all the apps runtime permissions.
Click to expand...
Click to collapse
Does it handle folder permissions when there are changes in app uid for data restore
when pm installs app, app uid can be different than before, so there might be folder permission discrepencies?
I.E.
Code:
#!/bin/sh
if [ "$1" != "" ];
then
#The folders in /data/data each have a different owner. The next line gets the owner and the strips the whitespace
appusername=$(stat -c "%U" /data/data/$1 | xargs)
#The next line constructs the chown command to repair the permissions for all the files in the target folder
fixperm="chown -R $appusername:$appusername /data/data/$1/*"
#Display the command to the user
echo "$fixperm"
#Uncomment the next line if you would like the script to fix the permission
eval $fixperm
else echo "Missing target folder parameter"
fi
m0d said:
Does it handle folder permissions when there are changes in app uid for data restore
when pm installs app, app uid can be different than before, so there might be folder permission discrepencies?
I.E.
Code:
#!/bin/sh
if [ "$1" != "" ];
then
#The folders in /data/data each have a different owner. The next line gets the owner and the strips the whitespace
appusername=$(stat -c "%U" /data/data/$1 | xargs)
#The next line constructs the chown command to repair the permissions for all the files in the target folder
fixperm="chown -R $appusername:$appusername /data/data/$1/*"
#Display the command to the user
echo "$fixperm"
#Uncomment the next line if you would like the script to fix the permission
eval $fixperm
else echo "Missing target folder parameter"
fi
Click to expand...
Click to collapse
It takes care of the new uid for the app. No problem with that.
ceelos218 said:
I just clicked next.. nothing else I selected all apps to backup then next page ticked boxes to back up.. click ready and I got that error and It didn't back up anything.
Click to expand...
Click to collapse
This is weird. Please open the green circle button on top left in the first screen of the app -> Contact by email and send the issue.
I'm getting this error
Sorry for inconvenience.
ceelos218 said:
I just clicked next.. nothing else I selected all apps to backup then next page ticked boxes to back up.. click ready and I got that error and It didn't back up anything.
Click to expand...
Click to collapse
Same here, nothing happen. But you check >sdcard/migrate and the files are there.
Regards.
Just tried this. Backup speed is super fast backed up 75 apps in 3 minutes. Interface is also very nice.
Please include a pro version or in app purchase to removed ads.
m0d said:
Does it handle folder permissions when there are changes in app uid for data restore
when pm installs app, app uid can be different than before, so there might be folder permission discrepencies?
Click to expand...
Click to collapse
Do you have an idea if Titanium Backup and/or Swift Backup take care of app uid changes during data restore to avoid folder permission discrepancies?
Can i use this to jump between like for example MIUI 10 China Stable(with root) to 9.0 Pie custom roms ? Using OrangeFox TWRP,Redmi Note 4x(mido)

[Magisk Debloat] [OOS A11] Eagle debloater V3.0

Hi all, This is my personal debloating module.
Debloats Oneplus analytics, Google apps, unnecesary apps
Personally i'm using Extreme debloat and disable analytics services
Requirements:
- OOS A11
- Supports All oneplus 7 series (i have tested only on op7p but it supports all)
- Magisk 20+
- Should be flashed only in Magisk
- Those who have india.img must flash Overlay Mount Fix magisk module v2.1 by Zackptg5 (inorder to debloat system/product apps).
If you don't know you have india.img or not, just flash the above overlay fix in magisk. If it flashed successfully no problem.
If it says "No overlay detected", also no problem you can now directly flash debloat zip
Debloating Options :
1- Extreme debloat
DEBLOATED APP LIST CAN BE FOUND HERE
Warning -
- Before flashing extreme debloat, Goto Settings - Security - Emergency rescue - Emergency call trigger - disable
If you don't disable emergency rescue, double tap power button -camera shortcut won't work.
- Oneplus software update app was removed so use oxygen updater from Playstore
- Removed Google apps can be installed from Playstore
Code:
/system/app/OPPush
/system/app/GooglePay
/system/app/EngineeringMode
/system/app/Backup
/system/app/BackupRestoreRemoteService
/system/app/GooglePrintRecommendationService
/system/app/EngSpecialTest
/system/app/LogKitSdService
/system/app/NFCTestMode
/system/app/oem_tcma
/system/app/OPYellowpage
/system/app/PhotosOnline
/system/app/OPBackup
/system/app/OEMLogKit
/system/app/NVBackupUI
/system/app/OPBreathMode
/system/app/OemAutoTestServer
/system/app/OPBugReportLite
/system/app/OPCommonLogTool
/system/app/BasicDreams
/system/app/OPFilemanager
/system/app/BookmarkProvider
/system/app/Traceur
/system/app/Stk
/system/app/Rftoolkit
/system/app/PartnerBookmarksProvider
/system/app/BuiltInPrintService
/system/app/BTtestmode
/system/app/WifiRfTestApk
/system/app/PlayAutoInstallConfig
/system/app/SensorTestTool
/system/app/CarrierDefaultApp
/system/app/OPAppUpgrader
/system/product/app/QtiSettings
/system/priv-app/RcsSDK
/system/app/WAPPushManager
/system/app/SmscPlugger
/system/priv-app/IFAAService
/system/priv-app/DynamicSystemInstallationService
/system/priv-app/ManagedProvisioning
/system/priv-app/OnePlusWizard
/system/priv-app/EmergencyInfo
/system/product/app/LatinImeGoogle
/system/priv-app/GoogleDocumentsUIPrebuilt
/system/product/priv-app/Turbo
/system/priv-app/BackupRestoreConfirmation
/system/priv-app/OPSimContacts
/system/priv-app/SharedStorageBackup
/system/priv-app/subsdm
/system/priv-app/TSDM
/system/priv-app/OPDeviceManager
/system/priv-app/OPCellBroadcastReceiver
/system/priv-app/OPDeviceManagerProvider
/system/product/app/CalendarGoogle
/system/product/app/Chrome
/system/product/app/TmoEngMode
/system/product/app/uimremoteclient
/system/product/app/Drive
/system/product/app/Gmail2
/system/product/app/GooglePay
/system/product/app/Videos
/system/product/app/talkback
/system/product/priv-app/GooglePartnerSetup
/system/product/app/Music2
/system/product/app/GoogleLocationHistory
/system/product/app/YouTube
/system/product/app/Duo
/system/product/priv-app/GooglePartnerSetup
/system/priv-app/HotwordEnrollmentOKGoogleWCD9340
/system/priv-app/HotwordEnrollmentXGoogleWCD9340
/system/product/app/Maps
/system/product/app/Photos
/system/product/app/GoogleTTS
/system/product/priv-app/Velvet
/system/product/priv-app/WallpaperCropper
/system/product/priv-app/SetupWizard
/system/product/priv-app/GoogleFeedback
/system/product/priv-app/GoogleOneTimeInitializer
/system/product/priv-app/GoogleRestore
/system/product/priv-app/AndroidAutoStub
/system/vendor/app/PowerOffAlarm
/system/reserve
/system/product/app/uceShimService
/system/product/app/com.qualcomm.qti.services.secureui
/system/vendor/app/pasrservice
/system/product/app/remotesimlockservice
/system/product/app/remoteSimLockAuthentication
/system/product/app/uimgbaservice
/system/product/app/uimlpaservice
/system/product/app/DeviceInfo
/system/app/Netflix_Activation
/system/app/Netflix_Stub
/system/app/OPGeoIpTime
/system/priv-app/CallLogBackup
/system/app/OPSesAuthentication
/system/app/WallpaperBackup
/system/app/WapiCertManage
/system/product/priv-app/Wellbeing
2 - Debloat Google apps except play service and playstore
Code:
/system/app/BackupRestoreRemoteService
/system/app/BasicDreams
/system/app/BookmarkProvider
/system/app/GooglePrintRecommendationService
/system/app/PartnerBookmarksProvider
/system/app/Traceur
/system/app/WallpaperBackup
/system/product/app/CalendarGoogle
/system/product/app/Chrome
/system/product/app/Drive
/system/product/app/Duo
/system/product/app/Gmail2
/system/product/app/GoogleContactsSyncAdapter
/system/product/app/GoogleLocationHistory
/system/product/app/GooglePay
/system/product/app/GoogleTTS
/system/product/app/Maps
/system/product/app/Music2
/system/product/app/Photos
/system/product/app/talkback
/system/product/app/Videos
/system/product/app/YouTube
/system/app/ARCore_stub
/system/product/priv-app/GoogleRestore
/system/product/priv-app/HotwordEnrollmentOKGoogleWCD9340
/system/product/priv-app/HotwordEnrollmentXGoogleWCD9340
/system/product/priv-app/Turbo
/system/system_ext/priv-app/GoogleFeedback
/system/system_ext/priv-app/GoogleOneTimeInitializer
/system/system_ext/priv-app/TagGoogle
/system/reserve
3- Debloat Oneplus Analytics only
Code:
/system/app/OPMinidumpOptimization
/system/priv-app/OnePlusWizard
/system/priv-app/SharedStorageBackup
/system/priv-app/DynamicSystemInstallationService
/system/priv-app/ManagedProvisioning
/system/priv-app/OPSimContacts
/system/priv-app/CellBroadcastLegacyApp
/system/system_ext/app/AntHalService-Soong
/system/system_ext/app/BTtestmode
/system/system_ext/app/EngineeringMode
/system/system_ext/app/EngSpecialTest
/system/system_ext/app/LogKitSdService
/system/system_ext/app/NFCTestMode
/system/system_ext/app/oem_tcma
/system/system_ext/app/OemAutoTestServer
/system/system_ext/app/OPBackup
/system/system_ext/app/OPBreathMode
/system/system_ext/app/OPBugReportLite
/system/system_ext/app/OPCommonLogTool
/system/system_ext/app/OPEngMode
/system/system_ext/app/OPPush
/system/system_ext/app/PhotosOnline
/system/system_ext/app/remoteSimLockAuthentication
/system/system_ext/app/remotesimlockservice
/system/system_ext/app/Rftoolkit
/system/system_ext/app/uimremoteclient
/system/system_ext/app/uimremoteserver
/system/system_ext/app/uceShimService
/system/system_ext/app/uimgbaservice
/system/system_ext/app/uimlpaservice
/system/system_ext/priv-app/OPDeviceManager
/system/system_ext/priv-app/OPDeviceManagerProvider
/system/vendor/app/SSGTelemetryService
/system/reserve
4- Remove unnecessary services like appmeasurement, gms analytics
Script by By foobar66
List of services disabled
Code:
com.braintreepayments.api.internal.AnalyticsIntentService
com.facebook.ads.internal.ipc.AdsMessengerService
com.facebook.ads.internal.ipc.AdsProcessPriorityService
com.facebook.internal.FacebookInitProvider
com.google.analytics.tracking.android.CampaignTrackingReceiver
com.google.analytics.tracking.android.CampaignTrackingService
com.google.android.gms.ads.MobileAdsInitProvider
com.google.android.gms.analytics.AnalyticsJobService
com.google.android.gms.analytics.AnalyticsReceiver
com.google.android.gms.analytics.AnalyticsService
com.google.android.gms.analytics.AnalyticsTaskService
com.google.android.gms.auth.api.signin.RevocationBoundService
com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver
com.google.android.gms.measurement.AppMeasurementJobService
com.google.android.gms.measurement.AppMeasurementReceiver com.google.android.gms.measurement.AppMeasurementService
com.google.firebase.perf.provider.FirebasePerfProvider
com.google.firebase.provider.FirebasePerfProvider
com.google.android.apps.xcn.libraries.clearcut.persistence.LogCommitService"
Credits
Tomatot for his original mod here
Analytics Script by foobar66 his original thread can be found here
Changelog
-v1 Initial Release
-V1.1 added google tag, qualcomm logging apps to Extreme debloat
Code:
/system/priv-app/TagGoogle
/system/product/app/DynamicDDSService
/system/product/app/uimremoteserver
/system/product/app/Account
/system/app/CtsShimPrebuilt
/system/app/AntHalService
/system/app/SoterService
/system/priv-app/CtsShimPrivPrebuilt
V1.2 Added more qualcomm apps to Extreme debloat
Code:
/system/product/app/uceShimService
/system/product/app/com.qualcomm.qti.services.secureui
/system/vendor/app/pasrservice
/system/product/app/remotesimlockservice
/system/product/app/remoteSimLockAuthentication
/system/product/app/uimgbaservice
/system/product/app/uimlpaservice
/system/product/app/DeviceInfo
V1.3
-Added some more qualcomm useless apps to extreme debloat
- Replaced system/etc/init/traceur.rc with empty file
Code:
/system/product/app/QtiSettings
/system/priv-app/RcsSDK
/system/product/priv-app/dpmserviceapp
/system/app/WAPPushManager
/system/app/SmscPlugger
/system/priv-app/IFAAService
-V1.4
- Reverted back the debloat of dpmserviceapp . As if i deleted this app, android system (onepluscore)having more wakelocks
V1.5
-Added to extreme debloat and google debloat
Code:
/system/product/priv-app/GooglePartnerSetup
-Added to extreme debloat
Code:
/system/app/Netflix_Activation
/system/app/Netflix_Stub
/system/app/OPGeoIpTime
V1.6
-Added following apps to extreme debloat
Code:
/system/app/OPScreenRecord
/system/app/EasterEgg_O2
-Added to both google and extreme debloat
Code:
/system/product/app/LatinImeGoogle
/system/priv-app/GoogleDocumentsUIPrebuilt
/system/product/priv-app/Turbo
V1.7
-Added separate option to debloat gboard
V1.8
-Added to extreme debloat
Code:
/system/priv-app/CallLogBackup
/system/app/OPSesAuthentication
/system/app/WallpaperBackup
/system/app/WapiCertManage
/system/product/priv-app/Wellbeing
- Added to oneplus analytics
Code:
/system/app/OPSesAuthentication
- Added Anysoft keyboard as alternative when gboard is debloated
V1.9
-Added to extreme
Code:
/system/product/priv-app/StorageManager
/system/app/OPIntelliService
Replaced system/etc/init/
bootstat.rc
bluetooth-events.rc
dumpstate.rc
engineermode.rc
recovery-refresh.rc
recovery-persist.rc
Click to expand...
Click to collapse
with empty file
V2.0
Removed
Code:
/system/app/OPIntelliService
/system/priv-app/GoogleDocumentsUIPrebuilt
Added to Extreme Debloat
Code:
/system/product/app/Nearme
/system/product/app/OPMemberShip
/system/product/priv-app/CloudService
/system/product/priv-app/IndiaOPRoamingServiceRelease
/system/product/priv-app/OPWorkLifeBalance
/system/product/app/heytap_mcs_in
/system/product/app/HeytapIdProvider
V3.0
Added support for Android 11 debloat
For Android 10 - Please use debloat v2.0
Download link
Android File host
Nice may can work on OP6T?
Mervingio said:
Nice may can work on OP6T?
Click to expand...
Click to collapse
Afaik, it will work if you're in OOS 10 Stock
You can try . If you got bootloop just flash the module again in twrp (to remove the module)
Does this keep PlayStore as a system app?
krishaun27 said:
Does this keep PlayStore as a system app?
Click to expand...
Click to collapse
yeah . Except playservices and playstore all Google apps removed which can be downloaded from playstore
Flashed this over 10.3.2 and ICE, got some apps back instead of debating and some apps stopped working, getting FCs...
twoxa said:
Flashed this over 10.3.2 and ICE, got some apps back instead of debating and some apps stopped working, getting FCs...
Click to expand...
Click to collapse
Did you flash Overlay mount fix or not
methuntt said:
Did you flash Overlay mount fix or not
Click to expand...
Click to collapse
Missed that, thanks. Supposed to be flashed right after the module?
twoxa said:
Missed that, thanks. Supposed to be flashed right after the module?
Click to expand...
Click to collapse
You can flash both at same time or in any manner first overlay then debloat or vice versa
Do both zips need to be flashed to both slots?
Sent from my GM1917 using Tapatalk
krishaun27 said:
Do both zips need to be flashed to both slots?
Click to expand...
Click to collapse
No . Only the slot your ROM running.
krishaun27 said:
Do both zips need to be flashed to both slots?
Click to expand...
Click to collapse
+1 yeah any chance of some instructions being listed in the first post? I tried flashing the overlay fix module in Magisk but it failed saying "no overlay mounts detected". So do I flash the zip first in Magisk? Or flash that in twrp? Or both in twrp?! Can the script be edited to exclude some apps from being debloated?
Many thanks in advance, looking forward to some debloating!
cd993 said:
+1 yeah any chance of some instructions being listed in the first post? I tried flashing the overlay fix module in Magisk but it failed saying "no overlay mounts detected". So do I flash the zip first in Magisk? Or flash that in twrp? Or both in twrp?! Can the script be edited to exclude some apps from being debloated?
Many thanks in advance, looking forward to some debloating!
Click to expand...
Click to collapse
Don't flash zips in twrp. It should be flashed in magisk only (updated instructions)
Script can be easily edited. just remove the line which contain the app you want from install.sh
Eg- Don't debloat Google app
Remove the line
/system/product/priv-app/velvet
No overlay detected --directly flash the debloater and say the result.
cd993 said:
+1 yeah any chance of some instructions being listed in the first post? I tried flashing the overlay fix module in Magisk but it failed saying "no overlay mounts detected". So do I flash the zip first in Magisk? Or flash that in twrp? Or both in twrp?! Can the script be edited to exclude some apps from being debloated?
Many thanks in advance, looking forward to some debloating!
Click to expand...
Click to collapse
Sorry... me again....
I successfully removed lines for the script and that flashed fine in Magisk. But neither v2.1 or v1.1 of the overlay fix install, even after a reboot after successful install of then debloat script, as again it just says "no overlay mounts detected"?
cd993 said:
Sorry... me again....
I successfully removed lines for the script and that flashed fine in Magisk. But neither v2.1 or v1.1 of the overlay fix install, even after a reboot after successful install of then debloat script, as again it just says "no overlay mounts detected"?
Click to expand...
Click to collapse
Without overlay fix, is apps are debloated successfuly ?
Sent from my 7 Pro using XDA Labs
methuntt said:
Without overlay fix, is apps are debloated successfuly ?
Click to expand...
Click to collapse
Yes, I can confirm the debloat script for me works fine without the overlay fix. I just added a custom line and it successfully removed it!
cd993 said:
Yes, I can confirm the debloat script for me works fine without the overlay fix. I just added a custom line and it successfully removed it!
Click to expand...
Click to collapse
Nice .
But for some people overlay fix needed. Those who have india.img.
Sent from my 7 Pro using XDA Labs
methuntt said:
Nice .
But for some people overlay fix needed. Those who have india.img.
Click to expand...
Click to collapse
Cool, that's good to know. I'm on EU.
Cheers!
New version
-V1.2 Added more qualcomm apps to Extreme debloat
Code:
/system/product/app/uceShimService
/system/product/app/com.qualcomm.qti.services.secureui
/system/vendor/app/pasrservice
/system/product/app/remotesimlockservice
/system/product/app/remoteSimLockAuthentication
/system/product/app/uimgbaservice
/system/product/app/uimlpaservice
/system/product/app/DeviceInfo
methuntt said:
New version
-V1.2 Added more qualcomm apps to Extreme debloat
Click to expand...
Click to collapse
Thanks for the update and listing the new added things that are being debloated, as I just add these to my custom edited version.
Cheers!

Categories

Resources