Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Yeah!
  • Loading branch information
wwwutz committed Dec 7, 2017
1 parent 19f84f9 commit 926cb4d
Showing 1 changed file with 35 additions and 14 deletions.
49 changes: 35 additions & 14 deletions mkdebloat.pl
Expand Up @@ -3,24 +3,44 @@

my $inlist = 0;

my $num = 500;

while(<DATA>) {
chpmp;
chomp;
my $bloat = $_;

/^_START_/ and $inlist = 1;
/^_END_/ and $inlist = 0;
/^_START_/ and $inlist = 1, next;
/^_END_/ and $inlist = 0, next;

if ( $inlist ) {
if (substr($bloat,1,1) eq '#') {
print qq(ui_print(" disable # $bloat");)
print qq(run_program("/sbin/mv", "system/$bloat", "system/.$bloat"););
my $tag = substr($bloat,0,1);
if ($tag eq '/' ) {
next;
}
elsif ($tag eq '#' and $num > 0 ) {
my $app = substr($bloat,1);
print qq(ui_print("# disable $app");\n);

# my $dapp = $app;
# $dapp =~ s{(.*/)(.*)}{$1\.$2};
# print qq(run_program("/sbin/mv", "system/$app", "system/$dapp");\n);

print qq(set_perm(0, 0, 0, "system/$app");\n);
$num--;
}
elsif ($tag eq '+' and $num > 0 ) {
my $app = substr($bloat,1);
print qq(ui_print("# renable $app");\n);

print qq(set_perm(0, 0, 0755, "system/$app");\n);
$num--;
}
else {
print qq(ui_print(" keeping $bloat");)
# print qq(ui_print(" keeping $bloat");\n)
}
}
else {
print $_;
print "$_\n";
}
}

Expand All @@ -37,11 +57,10 @@
unmount("/preload");
ui_print(" ");
ui_print("Android 6.0 & 7.0 Debloat Script by WWWutz");
ui_print("Script version: v1");
ui_print("Android 6.0 & 7.0 Debloat script by WWWutz");
ui_print(" ");
ui_print("Mounting partitions: /system /data /cache");
ui_print("mount/system /data /cache");
run_program("/sbin/mount", "-t", "auto", "/system");
run_program("/sbin/mount", "-t", "auto", "/data");
run_program("/sbin/mount", "-t", "auto", "/cache");
Expand Down Expand Up @@ -93,7 +112,7 @@
app/EpdgService
#app/FBAppManager_NS
#app/Facebook_stub
#app/FactoryCameraFB
app/FactoryCameraFB
#app/FidoUafClient_v16
app/FilterInstaller
app/FilterProvider
Expand Down Expand Up @@ -234,7 +253,7 @@
#priv-app/Fmm
#priv-app/FotaAgent
priv-app/FusedLocation
#priv-app/GalaxyAppsWidget_Phone_Hero
+priv-app/GalaxyAppsWidget_Phone_Hero
#priv-app/GalaxyApps_3xh
#priv-app/GameHome
#priv-app/GameTools
Expand All @@ -243,6 +262,7 @@
priv-app/GoogleExtServices
#priv-app/GoogleFeedback
priv-app/GoogleLoginService
app/WallpaperBack
priv-app/GoogleOneTimeInitializer
priv-app/GooglePackageInstaller
priv-app/GooglePartnerSetup
Expand All @@ -258,7 +278,8 @@
priv-app/KeyguardWallpaperUpdator
priv-app/ManagedProvisioning
priv-app/Messaging_Migration
priv-app/Messaging_SEP81
// koennte "Nachrichten" sein
#priv-app/Messaging_SEP81
priv-app/MmsService
priv-app/ModemServiceMode
priv-app/MsgCommService
Expand Down

0 comments on commit 926cb4d

Please sign in to comment.