def device(self):
    fin = open(BuildProp)
    for line in fin:
        if line.startswith("ro.product.device="):
            l = line[18:-1].rstrip('\r\n')
    processing_change=False
    for line in fileinput.input(Aroma, inplace=1):
        if line.startswith(r'ini_set("rom_device",           "'):
            processing_change = True
        else:
            if processing_change:
                print r'ini_set("rom_device",           "' + l + '");'
                processing_change = False
            print line,