彻底删除BabylonToolbar http://isearch.claro-search.com

本文将指导您如何使用金山卫士等工具在不同浏览器中删除烦人的插件,如Babylon和claro-search,特别是针对Chrome浏览器的删除步骤。
这个插件很是烦人,在各个浏览器都存在,真心想删除。金山卫士可以删除IE的,不过chrome还是不行。

win+r 输入;regedit

ctrl+F 查找:Babylon 和 claro-search

然后找到删除,继续搜索按:F3


HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{0ECDF796-C2DC-4d79-A620-CCE0C0A66CC9}

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\BabylonToolbar"



REG DELETE KeyName [/v ValueName | /ve | /va] [/f]

KeyName [\\Machine\]FullKey
Machine 远程机器名 - 忽略当前机器的默认值
远程机器上只有 HKLM 和 HKU
FullKey ROOTKEY\SubKey
ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]
SubKey 所选 ROOTKEY 下的注册表项的全名
ValueName 所选项下的要删除的值的名称
省略时,该项下的所有子项和值都会被删除
/ve 删除空白值名称<no name>的值
/va 删除该项下的所有值
/f 不用提示就强行删除

例如:

REG DELETE HKLM\Software\MyCo\MyApp\Timeout
删除注册表项 Timeout 及其所有子项和值

REG DELETE \\ZODIAC\HKLM\Software\MyCo /v MTU
删除 ZODIAC 上 MyCo 下的注册表项 MTU



REG QUERY /?
REG ADD /?
REG DELETE /?
REG COPY /?
REG SAVE /?
REG RESTORE /?
REG LOAD /?
REG UNLOAD /?
REG COMPARE /?
REG EXPORT /?
REG IMPORT /?
#!/usr/bin/env python #encoding: utf-8 import sys import os import string import shutil import xml.etree.ElementTree import getopt import subprocess import commands import xlwt import xlrd import sys reload(sys) sys.setdefaultencoding('utf8') SCRIPT_VERSION = "v4.0" #riox只有外销,暂时不支持区分内外销 NX_EXP_VERSION="外销" #python xxxxx.py argv[1]<代码根目录> argv[2]<ProductName> #CODE_DIR = sys.argv[1] CODE_DIR = "../../../../../" #PRODUCT_NAME = '_'.join(sys.argv[2].split('_')[0:-1]) PRODUCT_NAME = "ums9230_hulk" #product out目录 TARGET_OUT = CODE_DIR+"/out/target/product/"+PRODUCT_NAME #presoftware目录 #presoftware_dir = TARGET_OUT+"/presoftware" presoftware_dir = "./" #aapt工具目录 AAPT_TOOLS = CODE_DIR+"/prebuilts/sdk/tools/linux/bin" #app_config.xml app_config = CODE_DIR+"/vendor/huaqin/Android/copy_modules/system/etc/app_config.xml" #出货地区文件region_config.txt vendor\huaqin\release\script region_config = "./region_config.txt" #region_config = CODE_DIR+"/vendor/huaqin/release/script/region_config.txt" class Country: def __init__(self, region, nv_id, regionmark, operator): self.appinfo_list = [] #地区的名称 self.region = region #地区的国家码 self.regionmark = regionmark #对应运营商 self.operator = operator #nv_id self.nv_id = nv_id self.init_apkinfo() def init_apkinfo(self): try: with open(app_config) as xml_in: registry = xml.etree.ElementTree.fromstring(xml_in.read()) for registry_package in registry.iter('package'): # get region set if ('country' in registry_package.attrib and 'path' in registry_package.attrib and 'operator' in registry_package.attrib): country_xml_value = registry_package.attrib['country'] country_xml_list = country_xml_value.strip().split(',') operator_xml_value = registry_package.attrib['operator'] operator_xml_list = operator_xml_value.strip().split(',') path_xml_value = registry_package.attrib['path'] #if path_xml_value.startswith("/mnt/my_preload"): # path_xml_value = path_xml_value[4:] #print("country_xml_list = ", country_xml_list) #print("operator_xml_list = ", operator_xml_list) #print("path_xml_value = ", path_xml_value) is_region = False is_operator = False #地区校验 if ((self.regionmark in country_xml_list) or ("common" in country_xml_list)): is_region = True if (country_xml_list[0].startswith("-") and "-"+self.regionmark not in country_xml_list): is_region = True #运营商校验 if ((self.operator in operator_xml_list) or ("common" in operator_xml_list)): is_operator = True if (operator_xml_list[0].startswith("-") and "-"+self.operator not in operator_xml_list): is_operator = True if is_region and is_operator: apk_file = TARGET_OUT + path_xml_value if os.path.exists(apk_file): print("apk_file=", apk_file) info = ApkInfo(apk_file) self.appinfo_list.append(info) except xml.etree.ElementTree.ParseError, e: print("parse app_config xml error") sys.exit(1) myPreloadPath = TARGET_OUT + "/my_preload" + self.nv_id + "/preloadapp" myPreloadList = os.listdir(myPreloadPath) for i in range(0, len(myPreloadList)): path = os.path.join(myPreloadPath, myPreloadList[i]) apk_file = path + "/" + myPreloadList[i] + ".apk" if os.path.exists(apk_file): print("apk_file=", apk_file) info = ApkInfo(apk_file) self.appinfo_list.append(info) class ApkInfo: def __init__(self, apk_file): self.apk_lable = cmd_run(AAPT_TOOLS + "/aapt d badging " + apk_file + " | grep 'application-label:' | sed 's/^.*application-label:'\\''//g' | sed 's/'\\''.*//g'", 'get app lable', back = True) self.apk_package = cmd_run(AAPT_TOOLS + "/aapt d badging " + apk_file + " | grep 'package: name' | sed 's/^.*package: name='\\''//g' | sed 's/'\\''.*//g'", 'get app name', back = True) self.apk_version = cmd_run(AAPT_TOOLS + "/aapt d badging " + apk_file + " | grep 'versionName=' | sed 's/^.*versionName='\\''//g' | sed 's/'\\''.*//g'", 'get app verion', back = True) def cmd_run(cmd, flag, errorCheck = True, back = False): status = None output = None try: (status, output) = commands.getstatusoutput(cmd) if status == 0: #print flag + ' ok!!' pass else: if errorCheck: print 'Error: ' + flag + ' failed!!!' raise SystemError finally: if errorCheck: #print output pass #print '*' * 100 if back: return output def read_file_to_set(file): readin = set() if os.path.exists(file): for line in open(file): readin.add(line) else: print(file+" not exist!") exit() return readin def init_software_version(): version = [] for prop_file in prop_file_list: if os.path.exists(prop_file): for line in open(prop_file): if "ro.build.version.ota" in line: value_array = line.strip().split('=') if len(value_array) == 2: version.append(value_array[1]) break return version def init_country_list(): c_list=[] read_set = read_file_to_set(region_config) print('region count =',read_set.__len__()) if read_set.__len__() != 0: for item in read_set: value_array = item.strip().split('#') if len(value_array) == 4: country = Country(value_array[0], value_array[1], value_array[2], value_array[3]) c_list.append(country) return c_list def init_excel_file(): global excel_line excel_line = 0 if not os.path.exists(presoftware_dir): os.makedirs(presoftware_dir) presoftware_excel = xlwt.Workbook() presoftware_sheet = presoftware_excel.add_sheet('presoftware') presoftware_sheet.write(excel_line, 0, unicode("机型")) presoftware_sheet.write(excel_line, 1, unicode("国家")) presoftware_sheet.write(excel_line, 2, unicode("软件版本")) presoftware_sheet.write(excel_line, 3, unicode("应用名称")) presoftware_sheet.write(excel_line, 4, unicode("应用包名")) presoftware_sheet.write(excel_line, 5, unicode("应用版本")) presoftware_sheet.write(excel_line, 6, unicode("内外销标识")) presoftware_sheet.write(excel_line, 7, unicode("脚本版本")) presoftware_sheet.write(excel_line, 8, unicode("NV_ID")) presoftware_sheet.write(excel_line, 9, unicode("应用位置")) presoftware_sheet.write(excel_line, 10, unicode("region_key")) presoftware_sheet.write(excel_line, 11, unicode("carrier_key")) presoftware_sheet.write(excel_line, 12, unicode("应用渠道文件名")) presoftware_sheet.col(0).width = 256*15 presoftware_sheet.col(1).width = 256*15 presoftware_sheet.col(2).width = 256*30 presoftware_sheet.col(3).width = 256*30 presoftware_sheet.col(4).width = 256*30 presoftware_sheet.col(5).width = 256*30 presoftware_sheet.col(6).width = 256*15 presoftware_sheet.col(7).width = 256*15 presoftware_sheet.col(8).width = 256*15 presoftware_sheet.col(9).width = 256*15 presoftware_sheet.col(10).width = 256*15 presoftware_sheet.col(11).width = 256*15 presoftware_sheet.col(12).width = 256*30 return presoftware_excel,presoftware_sheet def convert_file(presoftware_excel, presoftware_sheet, country_list, product_name, software_version): global excel_line for country_item in country_list: for info_item in country_item.appinfo_list: excel_line = excel_line +1 presoftware_sheet.write(excel_line, 0, unicode(product_name)) presoftware_sheet.write(excel_line, 1, unicode(country_item.region)) presoftware_sheet.write(excel_line, 2, unicode(software_version)) presoftware_sheet.write(excel_line, 3, unicode(info_item.apk_lable)) presoftware_sheet.write(excel_line, 4, unicode(info_item.apk_package)) presoftware_sheet.write(excel_line, 5, unicode(info_item.apk_version)) presoftware_sheet.write(excel_line, 6, unicode(NX_EXP_VERSION)) presoftware_sheet.write(excel_line, 7, unicode(SCRIPT_VERSION)) presoftware_sheet.write(excel_line, 8, unicode(country_item.nv_id)) #close excel presoftware_excel.save(unicode(presoftware_dir + "/presoftware_list.xls")) return def create_911_file(country_list): if os.path.exists("./productinfo"): shutil.rmtree("./productinfo") print("rm dir = ./productinfo") os.mkdir("./productinfo") for country_item in country_list: file_path = "./productinfo/prebuildapplist_" + country_item.nv_id f = open(file_path, "w") for info_item in country_item.appinfo_list: if is_disable_app(info_item.apk_package): continue f.write(info_item.apk_package + "\n") f.close() print("create_911_file done!") #ifdef ODM_HQ_EDIT #zhouguifei@ODM_HQ, 2023/08/25 #判断传入的包名是否为开机之后会被disable的应用,这些应用需要在真关机名单中去除 def is_disable_app(apk_package): #开机之后被disable掉的应用包名数组,如后续有其他应用开机之后被禁,需要在此添加包名 disabled_app_list=["com.bijoy.androidkeyboard","com.bijoyapp.androidkeyboard","com.payjoy.access","com.oplus.payjoy", "com.miclaro.app","com.clarocolombia.miclaro","com.claro.pe.miclaro","com.instagram.android","com.ayoba.ayoba","com.momosa","com.mtnsar3"] if apk_package in disabled_app_list: return True else: return False #endif ODM_HQ_EDIT excel_line = 0 if __name__ == '__main__': #print(sys.argv[1],sys.argv[2]) #software_version_list = init_software_version() #print("software version count:",len(software_version_list)) country_list = init_country_list() #excel,sheet = init_excel_file() #convert_file(excel, sheet, country_list, PRODUCT_NAME, "null") create_911_file(country_list) file_path = "./productinfo/prebuildapplist_" + country_item.nv_id 这个文件在哪获取的
07-11
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值