V35真好玩之批处理删除系统应用
lgv35吧
全部回复
仅看楼主
level 6
苍苍云雨 楼主
这手机刷了好多次,有空就各种修改,挺好玩的
这次是折腾精简系统,
想了想快速删除的办法,
2019年08月17日 03点08分 1
level 6
苍苍云雨 楼主
没有极限精简,比如谷歌框架和play服务我就没删,主要是原版短信和chrome还挺好用的
play服务看起来很耗电的原因也只是因为手机默认是把全家桶们的电量消耗算在play头上的,
我曾经试过服务用华为提取的GMSCORE,也就是华为的play服务替代,发现电力消耗是分开算的,以前以为不怎么耗电的短信一天也要消耗百分之一二的电.
先是adb shell mount
看看system文件夹的目录
然后就是adb shell
su 使shell取得root权限(magisk会提示要给shell超级用户)
然后
mount -o remount,rw /dev/block/sda22/system
重新装载取得了写入权限
adb shell pm list packages 能取得app的信息,加上-f还能得到目录结构
adb shell pm list packages -3
得到的就是第三方app
我刚刷的系统只有弎个,magisk和facebook\Instagram,一般直接adb uninstall删了
进shell 取得root权限后,分别cd进system下的app\priv-app. system/product/目录下的 app 和 priv-app
进入时分别ls得到了包名
1.system/app
googleextshared看起来很高大上,能删吗?(我其实是删掉了的)
2.system/priv-app
LG的我都没怎么动,不熟,onetime那个谷歌的要留着,不然重置会卡住,
extservices同上,其实我是删了的,packageInstaller没有下手,
3.system/product/app
这里面真没动多少,一动就卡死,
或许drmService可以动?像是dram数字那啥的服务
4.system/product/priv-app
老样子,LG的还没来得及碰,
打红点的就是我删掉的,黄的是确认可以删的,
然后直接通过
rm -f /system/priv-app/名字/名字.apk 删掉
但是太多了,一个一个删还是太累,不如写个批处理
2019年08月17日 04点08分 2
Googleext 果然不能删 删了就卡开机 保险起见service也不删了
2019年08月17日 07点08分
对了 卡死也不算啥,partition dl单独升级system_a就行,开机出了预装回来了,什么都没变[OK]
2019年08月17日 07点08分
10楼主体
2019年08月18日 11点08分
level 6
苍苍云雨 楼主
adb shell “su -c ‘你的命令’ “ 这个避免进shell批处理就停了
例子:
adb shell "su -c 'mount-o remount,rw /dev/block/sda22 /system'" ::装载分区
adb shell "su -c 'adbshell "su -c 'rm -f/system/app/BookmarkProvider/BookmarkProvider.apk'" ::删掉
adb shell "su -c 'rm -f/system/app/CalculatorGoogle/CalculatorGoogle.apk'" ::删掉
大概就是这样 要删的全部来一遍
最后放到platform-tools文件夹运行就OK
adb shell "su -c 'mount -o remount,rw /dev/block/sda22 /system'"
adb shell "su -c 'adb shell "su -c 'rm -f /system/app/BookmarkProvider/BookmarkProvider.apk'"
adb shell "su -c 'rm -f /system/app/CalculatorGoogle/CalculatorGoogle.apk'"
adb shell "su -c 'rm -f /system/app/CalendarGoogle/CalendarGoogle.apk'"
adb shell "su -c 'rm -f /system/app/CloudPrint/CloudPrint.apk'"
adb shell "su -c 'rm -f /system/app/Drive/Drive.apk'"
adb shell "su -c 'rm -f /system/app/Duo/Duo.apk'"
adb shell "su -c 'rm -f /system/app/EasterEgg/EasterEgg.apk'"
adb shell "su -c 'rm -f /system/app/EditorsDocs/EditorsDocs.apk'"
adb shell "su -c 'rm -f /system/app/EditorsSheets/EditorsSheets.apk'"
adb shell "su -c 'rm -f /system/app/EditorsSlides/EditorsSlides.apk'"
adb shell "su -c 'rm -f /system/app/Gmail2/Gmail2.apk'"
adb shell "su -c 'rm -f /system/app/GoogleCalendarSyncAdapter/GoogleCalendarSyncAdapter.apk'"
adb shell "su -c 'rm -f /system/app/GoogleContacts/GoogleContacts.apk'"
adb shell "su -c 'rm -f /system/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk'"
adb shell "su -c 'rm -f /system/app/GooglePay/GooglePay.apk'"
adb shell "su -c 'rm -f /system/app/GooglePrintRecommendationService/GooglePrintRecommendationService.apk'"
adb shell "su -c 'rm -f /system/app/GoogleTTS/GoogleTTS.apk'"
adb shell "su -c 'rm -f /system/app/GoogleVrCore/GoogleVrCore.apk'"
adb shell "su -c 'rm -f /system/app/LensStub/LensStub.apk'"
adb shell "su -c 'rm -f /system/app/Maps/Maps.apk'"
adb shell "su -c 'rm -f /system/app/Music2/Music2.apk'"
adb shell "su -c 'rm -f /system/app/Photos/Photos.apk'"
adb shell "su -c 'rm -f /system/app/Videos/Videos.apk'"
adb shell "su -c 'rm -f /system/app/YouTube/YouTube.apk'"
adb shell "su -c 'rm -f /system/priv-app/CarrierServices/CarrierServices.apk'"
adb shell "su -c 'rm -f /system/priv-app/GCS/GCS.apk'"
adb shell "su -c 'rm -f /system/priv-app/GoogleBackupTransport/GoogleBackupTransport.apk'"
adb shell "su -c 'rm -f /system/priv-app/GoogleDialer/GoogleDialer.apk'"
adb shell "su -c 'rm -f /system/priv-app/GoogleFeedback/GoogleFeedback.apk'"
adb shell "su -c 'rm -f /system/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk'"
adb shell "su -c 'rm -f /system/priv-app/GoogleRestore/GoogleRestore.apk'"
adb shell "su -c 'rm -f /system/priv-app/Phonesky/Phonesky.apk'"
adb shell "su -c 'rm -f /system/priv-app/SmartSetting/SmartSetting.apk'"
adb shell "su -c 'rm -f /system/priv-app/SprintDM/SprintDM.apk'"
adb shell "su -c 'rm -f /system/priv-app/Velvet/Velvet.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/Facebook_Installer/Facebook_Installer.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/HotwordEnrollmentOKGoogleHEXAGON/HotwordEnrollmentOKGoogleHEXAGON.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/HotwordEnrollmentXGoogleHEXAGON/HotwordEnrollmentXGoogleHEXAGON.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/LGBackup/LGBackup.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/LGBackupLauncher/LGBackupLauncher.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/LGSnapPage/LGSnapPage.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/LGQHelpService/LGQHelpService.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/CloudHub/CloudHub.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/LGQHelpService/LGQHelpService.apk'"
adb shell "su -c 'rm -f /system/product/app/Facebook_AppManager/Facebook_AppManager.apk'"
50来个吧,
我打算对LG的动手 一条一条添加,删了死机就删掉这条换下一个,
2019年08月17日 04点08分 3
adb shell "su -c 'rm -f /system/app/BookmarkProvider/BookmarkProvider.apk'" 有误 更正
2019年08月17日 10点08分
这些全部都可以删吗
2019年08月30日 08点08分
level 6
苍苍云雨 楼主
2019年08月17日 04点08分 4
level 6
苍苍云雨 楼主
装了一大堆app 占用提高.但是内存降下来了
2019年08月17日 07点08分 5
哇真大佬
2019年08月23日 11点08分
大佬微信多少
2020年03月16日 15点03分
level 6
苍苍云雨 楼主
LGPAY LGFMradio
这些是没启动的包吗[阴险]
分享下
adb shell "su -c 'mount -o remount,rw /dev/block/sda22 /system'"
adb shell "su -c 'rm -f /system/app/BookmarkProvider/BookmarkProvider.apk'"
adb shell "su -c 'rm -f /system/app/CalculatorGoogle/CalculatorGoogle.apk'"
adb shell "su -c 'rm -f /system/app/CalendarGoogle/CalendarGoogle.apk'"
adb shell "su -c 'rm -f /system/app/CloudPrint/CloudPrint.apk'"
adb shell "su -c 'rm -f /system/app/Drive/Drive.apk'"
adb shell "su -c 'rm -f /system/app/Duo/Duo.apk'"
adb shell "su -c 'rm -f /system/app/EasterEgg/EasterEgg.apk'"
adb shell "su -c 'rm -f /system/app/EditorsDocs/EditorsDocs.apk'"
adb shell "su -c 'rm -f /system/app/EditorsSheets/EditorsSheets.apk'"
adb shell "su -c 'rm -f /system/app/EditorsSlides/EditorsSlides.apk'"
adb shell "su -c 'rm -f /system/app/Gmail2/Gmail2.apk'"
adb shell "su -c 'rm -f /system/app/GoogleCalendarSyncAdapter/GoogleCalendarSyncAdapter.apk'"
adb shell "su -c 'rm -f /system/app/GoogleContacts/GoogleContacts.apk'"
adb shell "su -c 'rm -f /system/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk'"
adb shell "su -c 'rm -f /system/app/GooglePay/GooglePay.apk'"
::删了就卡死adb shell "su -c 'rm -f /system/app/GoogleExtShared/GoogleExtShared.apk'"
adb shell "su -c 'rm -f /system/app/GooglePrintRecommendationService/GooglePrintRecommendationService.apk'"
adb shell "su -c 'rm -f /system/app/GoogleTTS/GoogleTTS.apk'"
adb shell "su -c 'rm -f /system/app/GoogleVrCore/GoogleVrCore.apk'"
adb shell "su -c 'rm -f /system/app/LatinImeGoogle/LatinImeGoogle.apk'"
adb shell "su -c 'rm -f /system/app/LensStub/LensStub.apk'"
adb shell "su -c 'rm -f /system/app/Maps/Maps.apk'"
adb shell "su -c 'rm -f /system/app/Music2/Music2.apk'"
adb shell "su -c 'rm -f /system/app/Photos/Photos.apk'"
adb shell "su -c 'rm -f /system/app/Videos/Videos.apk'"
adb shell "su -c 'rm -f /system/app/YouTube/YouTube.apk'"
adb shell "su -c 'rm -f /system/priv-app/CarrierServices/CarrierServices.apk'"
adb shell "su -c 'rm -f /system/priv-app/GCS/GCS.apk'"
adb shell "su -c 'rm -f /system/priv-app/GoogleBackupTransport/GoogleBackupTransport.apk'"
adb shell "su -c 'rm -f /system/priv-app/GoogleDialer/GoogleDialer.apk'"
::删了就卡死adb shell "su -c 'rm -f /system/priv-app/GoogleExtServices/GoogleExtServices.apk'"
adb shell "su -c 'rm -f /system/priv-app/GoogleFeedback/GoogleFeedback.apk'"
adb shell "su -c 'rm -f /system/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk'"
adb shell "su -c 'rm -f /system/priv-app/GoogleRestore/GoogleRestore.apk'"
adb shell "su -c 'rm -f /system/priv-app/LGFloatingBar/LGFloatingBar.apk'"
adb shell "su -c 'rm -f /system/priv-app/LG360VideoWallpaper/LG360VideoWallpaper.apk'"
adb shell "su -c 'rm -f /system/priv-app/Phonesky/Phonesky.apk'"
adb shell "su -c 'rm -f /system/priv-app/SmartSetting/SmartSetting.apk'"
adb shell "su -c 'rm -f /system/priv-app/SprintDM/SprintDM.apk'"
adb shell "su -c 'rm -f /system/priv-app/Velvet/Velvet.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/Facebook_Installer/Facebook_Installer.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/HotwordEnrollmentOKGoogleHEXAGON/HotwordEnrollmentOKGoogleHEXAGON.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/HotwordEnrollmentXGoogleHEXAGON/HotwordEnrollmentXGoogleHEXAGON.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/LGBackup/LGBackup.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/LGBackupLauncher/LGBackupLauncher.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/LGSnapPage/LGSnapPage.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/LGQHelpService/LGQHelpService.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/CloudHub/CloudHub.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/LGQHelpService/LGQHelpService.apk'"
adb shell "su -c 'rm -f /system/product/app/Facebook_AppManager/Facebook_AppManager.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/LGSmartSuggestion/LGSmartSuggestion.apk'"
adb shell "su -c 'rm -f /system/product/priv-app/LGDailyBriefing/LGDailyBriefing.apk'"
2019年08月17日 07点08分 6
楼主的手机是不是已经ROOT了。我的美版还没有ROOT
2019年09月02日 02点09分
level 6
大神,弄个一键卸载的包吧,我也一直想弄,不敢删
2019年08月18日 01点08分 8
很简单的,思路在楼下
2019年08月18日 10点08分
level 6
苍苍云雨 楼主
现在开始技术总结:
原理用一句话概括就是:利用rm 命令删除对应路径下的文件,
但是,系统文件是不能写入修改的,我们首先要重新挂载对应目录,使我们有权限更改,
有了权限删掉了目录里的APK就行了,直接删掉文件夹桌面会有残留的图标的样子.
具体操作:
1.开启USB调试.
2.给shell超级用户权限,
adb shell
su ::输完这个magisk会提示你给权限.
3.获取目录
adb shell mount先是获取了system和OEM的目录,
你我都是V35,应该都一样,其他机型自己去看看.
/dev/block/sda22 /system
/dev/block/sda18 /oem
4.然利用mount -o remount,rw命令挂载
例子:mount -o remount,rw /dev/block/sda22/system
5.cd命令到对应目录.ls -a命令获取文件名
6.rm -f 删除
进阶:如果要批量处理,单纯的adb shell +su+命令另存改后缀为.bat是行不通的,
实际上一旦进了shell,就会停止,利用
adb shell “su -c ‘你的命令’ “
这样的格式来写,就能自动执行下去了
我会上传个给你们看看,共同学习.
[OK]
2019年08月18日 10点08分 9
level 6
苍苍云雨 楼主
当然 我还弄了个自动装APP的,不过你们应该用不到[滑稽]
2019年08月18日 13点08分 11
level 10
厉害了!
2019年08月18日 23点08分 12
level 4
膜拜大佬,后悔没学计算机系列
2019年08月20日 17点08分 13
level 6
大神,干掉谷歌3件套,然后,只安装microg的核心文件,再钛备份把它禁了,短信和chrome.正常,就是有极个别软件依赖webview会卡,chrome不能登陆了,但是,电量直线上升了
2019年08月21日 07点08分 14
chrome只是看上可以禁止JavaScript,完全可以用yandex替代,还能直接用插件,比如油猴.短信也多的是替代的,,其实都可以删光光,只是习惯了. 服务直接从国产系统里提取出来替换,一丁点电都不消耗[OK] 其实待机已经很强了 看小说这种使用随便两天 但是.....QQ 微信这些耗电就突出了[滑稽]
2019年08月21日 12点08分
@苍苍云雨 谢谢回复,如果能做个一键卸载就方便了
2019年08月28日 23点08分
@liugfyni 十楼被百度屏蔽了吗
2019年08月29日 13点08分
level 6
10楼真被干掉了
2019年08月30日 06点08分 15
哦等会儿我再发一遍,百度现在真的不行啊,他吞你的楼还不告诉你,而是偷偷的给你隐藏了。要不是你们提醒,我都不知道被删掉了。唉,还说写些东西分享一下,百度真是烂泥扶不上墙。不知道每天有多少人帖子被吞了。
2019年08月30日 07点08分
@苍苍云雨 我现在发不出短信,能收到,改中心也不行,好几年前解决过,忘了方法了
2019年08月30日 10点08分
level 6
苍苍云雨 楼主
s/15YfXUDK_B53Prpjevjb30w 3vjf
直接连带platform-tools
里面的:批量删除APP.bat 就是主体,右键编辑就能看内容
如果你没有给shell授权,第一次运行会让你给权限,注意,需要注意这一点,如果没有提示的话,去面具里面继续授权。
警告:请运行在ULM20D系统上,其他没进行测试(其实应该没什么问题。)
2019年08月30日 07点08分 16
你这个网址没贴全,另外是真卸载还是假卸载
2019年09月01日 08点09分
大佬,你这网址好像不对呢,搜出来就是贴吧你发的这个贴?还有请问att版能用吗?
2019年09月14日 17点09分
level 6
苍苍云雨 楼主
百度吞楼吞的厉害,如果你发现有某一层楼层不见了,你可以告诉我,我看看是不是百度给我隐藏了。我还看得到,而你看不到了。
2019年08月30日 07点08分 17
1 2 尾页