[Q] Lenovo a1: Install custom rom gone bad - Thinkpad Tablet General

Hey guys...
i have tryed to make an upgrade of my software on my Lenovo a1
with this guide:
gleescape.com / ?p=554
and i made an human error and the instalation got interupted, the upgradelog file gives me this error:
Starting recovery on Mon Oct 22 03:26:29 2012
framebuffer: fd 4 (600 x 1024)
Recovery System version is
"RECOVERY_V1.0(Nov 8 2011-17:12:42)"
battery capacity:94
W:..........Unknown Magic Point key code:48
len = 8
root_path = SDCARD1:upgrade_log
c = :upgrade_log
find the log file,delete it
delete log file.
len = 8
root_path = SDCARD1:
c = :
save log file...
len = 8
root_path = SDCARD1:upgrade_log
c = :upgrade_log
len = 8
root_path = SDCARD1:upgrade_log
c = :upgrade_log
i have no CWM what so ever and my original backup won't flash either..
it is like there is a fraction of my update.zip on the internal sdcart and it will not chose the external for same reason..
are there some way to fix it ?

UWDuus said:
Hey guys...
i have tryed to make an upgrade of my software on my Lenovo a1
with this guide:
gleescape.com / ?p=554
and i made an human error and the instalation got interupted, the upgradelog file gives me this error:
Starting recovery on Mon Oct 22 03:26:29 2012
framebuffer: fd 4 (600 x 1024)
Recovery System version is
"RECOVERY_V1.0(Nov 8 2011-17:12:42)"
battery capacity:94
W:..........Unknown Magic Point key code:48
len = 8
root_path = SDCARD1:upgrade_log
c = :upgrade_log
find the log file,delete it
delete log file.
len = 8
root_path = SDCARD1:
c = :
save log file...
len = 8
root_path = SDCARD1:upgrade_log
c = :upgrade_log
len = 8
root_path = SDCARD1:upgrade_log
c = :upgrade_log
i have no CWM what so ever and my original backup won't flash either..
it is like there is a fraction of my update.zip on the internal sdcart and it will not chose the external for same reason..
are there some way to fix it ?
Click to expand...
Click to collapse
-----------------------------------------------------------------------------------------------------------------------------------
I'w solved my problem
android-hilfe.de /3397771-post187.html
i followed the guide and when i booted up in CWM i swaped sd card with one with update.zip on and installed it

Related

set the bearermode V110 for a GSM ISDN data connection

Hi,
how can I set the bearermode for a GSM to ISDN dataconnection?
If I connect with my tornado (SDA) smartephone (TAPI) to ISDN, the bearermode will be 3,1 KHz and not "unrestricted digital, V110".
How can I change this?
my code:
Code:
LPLINECALLPARAMS lpCallParams;
lpCallParams = (LPLINECALLPARAMS)malloc(sizeof(LINECALLPARAMS) + 1024); //Speicher reservieren
memset(lpCallParams,0,sizeof(LINECALLPARAMS) + 1024); //0en
lpCallParams->dwTotalSize = sizeof(LINECALLPARAMS) + 1024;
lpCallParams->dwMediaMode = mediaMode;
lpCallParams->dwBearerMode = LINEBEARERMODE_VOICE; //LINEBEARERMODE_VOICE;//LINEBEARERMODE_PASSTHROUGH; //LINEBEARERMODE_VOICE;
lpCallParams->dwCallParamFlags = LINECALLPARAMFLAGS_IDLE;
lpCallParams->dwAddressMode = LINEADDRESSMODE_ADDRESSID;
lpCallParams->dwAddressID = 0;
lpCallParams->dwDisplayableAddressOffset = sizeof(LINECALLPARAMS);
lpCallParams->dwDisplayableAddressSize = number.GetLength();
strcpy((LPSTR)lpCallParams + sizeof(LINECALLPARAMS), (const char*)num);
ret = lineMakeCall(line, &hCall, num, 0, lpCallParams);
Thanks
Thomas
tq said:
Hi,
how can I set the bearermode for a GSM to ISDN dataconnection?
If I connect with my tornado (SDA) smartephone (TAPI) to ISDN, the bearermode will be 3,1 KHz and not "unrestricted digital, V110".
How can I change this?
my code:
Code:
LPLINECALLPARAMS lpCallParams;
lpCallParams = (LPLINECALLPARAMS)malloc(sizeof(LINECALLPARAMS) + 1024); //Speicher reservieren
memset(lpCallParams,0,sizeof(LINECALLPARAMS) + 1024); //0en
lpCallParams->dwTotalSize = sizeof(LINECALLPARAMS) + 1024;
lpCallParams->dwMediaMode = mediaMode;
lpCallParams->dwBearerMode = LINEBEARERMODE_VOICE; //LINEBEARERMODE_VOICE;//LINEBEARERMODE_PASSTHROUGH; //LINEBEARERMODE_VOICE;
lpCallParams->dwCallParamFlags = LINECALLPARAMFLAGS_IDLE;
lpCallParams->dwAddressMode = LINEADDRESSMODE_ADDRESSID;
lpCallParams->dwAddressID = 0;
lpCallParams->dwDisplayableAddressOffset = sizeof(LINECALLPARAMS);
lpCallParams->dwDisplayableAddressSize = number.GetLength();
strcpy((LPSTR)lpCallParams + sizeof(LINECALLPARAMS), (const char*)num);
ret = lineMakeCall(line, &hCall, num, 0, lpCallParams);
Click to expand...
Click to collapse
I would think using LINEBEARERMODE_DATA would help, but the mediamode is also important, it could be LINEMEDIAMODE_DIGITALDATA or LINEMEDIAMODE_DATAMODEM.
bigmac
LINEBEARERMODE_DATA, LINEMEDIAMODE_DIGITALDATA
Hi,
if I set LINEBEARERMODE_DATA the result is the same (3,1 kHz audio). LINEMEDIAMODE_DIGITALDATA don't work with LINEBEARERMODE_DATA or LINEBEARERMODE_VOICE.
Today, I test it on an O2 XDA mini and I get 3,1KHz audio, too.
I found the function lineSetCallBarringState. But what is "lpszPassword ". What is the default setting?
Is the functioned helpful?
thx Thomas

[Ruby] SMS Converter (from Pim Backup -> HTML)

I wanted to share a small script I wrote for those who know how to use it. It converts non-binary pim-backup message files to html files.
Usage: ruby <file> <message_file>
Code:
#-sms2html----------------------------------------------------------------#
# ChaosR (<[email protected]>) wrote this file. As long as #
# you do not touch this note and keep this note here you can do whatever #
# you want with this stuff. Also, the author(s) are not responsible for #
# whatever happens using this. #
#-------------------------------------------------------------------------#
require 'jcode' if RUBY_VERSION[0..2] == "1.8"
class SMSConverter
attr_accessor :messages, :raw, :by_folder, :by_name, :by_number
SPEC = [
:msg_id,
:sender_name,
:sender_address,
:sender_address_type,
:prefix,
:subject,
:body,
:body_type,
:folder,
:account,
:msg_class,
:content_length,
:msg_size,
:msg_flags,
:msg_status,
:modify_time,
:delivery_time,
:recipient_nbr,
:recipients,
:attachment_nbr,
:attachments
]
RECIP_SPEC = [
:id,
:name,
:phone,
:var1,
:var2,
:type
]
FOLDERS = {
"\\%MDF1" => "INBOX",
"\\%MDF2" => "OUTBOX",
"\\%MDF3" => "SENT",
"\\%MDF4" => "TRASH",
"\\%MDF5" => "DRAFTS"
}
def initialize(file)
f = File.open(file)
@raw = f.read
f.close
raw2array
clean_messages
sort_messages
end
def raw2array
messages = []
state = { :arg => 0, :escaped => false, :in_string => false }
sms = {}
@raw.each_char do |byte|
arg = SPEC[state[:arg]]
sms[arg] = "" unless sms[arg]
if byte == "\0" or byte == "\r"
next
elsif state[:escaped]
sms[arg] << byte
state[:escaped] = false
elsif state[:in_string]
if byte == "\""
state[:in_string] = false
elsif byte == "\\"
state[:escaped] = true
else
sms[arg] << byte
end
elsif byte == "\\"
state[:escaped] = true
elsif byte == "\""
state[:in_string] = true
elsif byte == ";"
state[:arg] += 1
elsif byte == "\n"
raise "Faulty conversion or corrupt file" if state[:escaped] or state[:in_string] or state[:arg] != 20
messages << sms
sms = {}
state[:arg] = 0
else
sms[arg] << byte
end
end
@messages = messages
end
def clean_messages
@messages.map! do |sms|
sms[:modify_time] = Time.local( *sms[:modify_time].split(",") )
unless sms[:delivery_time] == ""
sms[:delivery_time] = Time.local( *sms[:delivery_time].split(",") )
else
sms[:delivery_time] = sms[:modify_time]
end
sms[:recipient_nbr] = sms[:recipient_nbr].to_i
sms[:body_type] = sms[:body_type].to_i
sms[:msg_flags] = sms[:msg_flags].to_i
sms[:msg_status] = sms[:msg_status].to_i
sms[:attachment_nbr] = sms[:attachment_nbr].to_i
sms[:content_length] = sms[:content_length].to_i
sms[:msg_size] = sms[:msg_size].to_i
sms[:folder] = FOLDERS[sms[:folder]]
if sms[:recipient_nbr] > 0
recipients = {}
sms[:recipients].split(";").each_with_index { |var, index| recipients[RECIP_SPEC[index]] = var }
recipients[:id] = recipients[:id].to_i
recipients[:var1] = recipients[:var1].to_i
recipients[:var2] = recipients[:var2].to_i
sms[:recipients] = recipients
end
sms
end
end
def sort_messages
@messages = @messages.sort { |a, b| a[:delivery_time] <=> b[:delivery_time] }
@by_folder = {}
@messages.each do |sms|
@by_folder[sms[:folder]] = [] unless @by_folder[sms[:folder]]
@by_folder[sms[:folder]] << sms
end
@by_name = {}
@messages.each do |sms|
if sms[:recipient_nbr] > 0
if sms[:recipients][:name] != ""
name = sms[:recipients][:name]
else
name = sms[:recipients][:phone]
end
else
if sms[:sender_name] != ""
name = sms[:sender_name]
else
name = get_number_from_address(sms[:sender_address])
end
end
@by_name[name] = [] unless @by_name[name]
@by_name[name] << sms
end
@by_number = {}
@messages.each do |sms|
if sms[:recipient_nbr] > 0
name = sms[:recipients][:phone]
else
name = get_number_from_address(sms[:sender_address])
end
@by_number[name] = [] unless @by_number[name]
@by_number[name] << sms
end
end
def get_number_from_address(address)
if address =~ /^(\+?\d+)$/
return address
elsif address =~ /\<(\+?\d+)\>/
return $1
else
return false
end
end
end
if $0 == __FILE__
require 'fileutils'
dir = "./messages"
my_name = "yourname"
sms = SMSConverter.new(ARGV[0])
FileUtils.mkdir_p(dir)
sms.by_name.each { |name, messages|
filename = File.join(dir, "#{name}.html")
f = File.open(filename, "w")
f << "<html><body>"
messages.each { |sms|
sent = sms[:recipient_nbr] > 0
message = sms[:subject]
f << "<b>--- #{sent ? my_name : name} (#{sms[:delivery_time].strftime("%H:%M:%S, %a %d-%b-%Y")}) ---</b><br/>"
f << "<pre>#{message.strip}</pre><br/><br/>"
}
f << "</body></html>"
f.close
}
end
I'm a little new to this, but am really interested.
I installed Ruby and then created your ruby script. I then run from command prompt:
convertsms.rb pim.vol convertedsms.htm
but I get the following error. What have I done wrong?
C:\Users\mjt\Desktop>convertsms.rb pim.vol convertedsms.htm
C:/Users/mjt/Desktop/convertsms.rb:67:in `raw2array': undefined method `each_cha
r' for #<String:0x24ee9d4> (NoMethodError)
from C:/Users/mjt/Desktop/convertsms.rb:57:in `initialize'
from C:/Users/mjt/Desktop/convertsms.rb:199:in `new'
from C:/Users/mjt/Desktop/convertsms.rb:199
I'm just supposed to run it on a copy of my pim.vol correct?
Thanks!
You have to install pimbackup on your phone, make a non-binary backup. Download the backup to your computer, unzip it, and run this script on the msgs_<date>.csm file. This script will then create a folder called messages and store all the messages per user in it.
ChaosR said:
You have to install pimbackup on your phone, make a non-binary backup. Download the backup to your computer, unzip it, and run this script on the msgs_<date>.csm file. This script will then create a folder called messages and store all the messages per user in it.
Click to expand...
Click to collapse
Ok, I installed pim backup backed up the messages, copied the file to my computer, extracted the csm file and the following happened when I tried to run it.
C:\Users\mjt\Desktop>ruby convertsms.rb msgs.csm
convertsms.rb:67:in `raw2array': undefined method `each_char' for #<String:0x33e
94c> (NoMethodError)
from convertsms.rb:57:in `initialize'
from convertsms.rb:199:in `new'
from convertsms.rb:199
Thanks!
Heh, it seems on Windows you need to include jcode for each_char to work. Put the new code in. Cheers.
how to convert the binary backup to a non binary backup? other than restoring and backing up.
Relaying SMS
Would it be possible to relay the SMS to another phone when backing up, perhaps as a transfer operation, or by sending SMS via a webservice?

Can't creat partitions on HD2

Hi guys,
My HD2 was the official HTC for repair because my USB broke
They exchanged the board, now I can not flashing to the CWR for android, even WM7
I did the following:
- HD2 came om SPL 3.3 (I think)
- I put in version 2.08 and did a HSPL task29
- Installed the radio 2.15.50.14
- And installed MAGLDR 1:13
So far so good
Now go to "usb flash" and run the DAF.exe but after me the following error:
"An error has ocurred
Read below for more information
Error Description: Partition data send failed:
Info: \ RSPL \ RSPL.cpp (815)
Error Description: Flash Write Failed.
Info: \ RSPL \ RSPL.cpp (599) "
And at mobile phone shows me
"Layout ... PC = 6, ASI = 5, 5 = OASI
Erease ...
0: Total = 8, extra = 2
k = 21 -> 21 221 241, 1000
1: part = 33, part2 = 33
k = 28 -> 28 242 269, 1000
2: part1 = 40, part2 = 40
3: total = 1600, Extra = 80
4: total = 40, extra = 2
[ASIZE] START: 8D2 END: F40 SIZE: 66E
PARITITON NEW LAYOUT
0: 0219 0221 50 01
1: 0221 0242 62 0D
2: 0242 026A 61 09
3: 026A 08AA 50 01
4: 08AA 08D2 50 01
5: 08D2 0F40 50 51
Erease ...
D S: 0 E: 219
D S: 1 E: 221
D S: 2 E: 242
D S: 3 E: 26A
D S: 4 E: 8AA
D S: 5 E: 8D2
Save EMBR
Default OS is Ad NAND...
Empty 0 Partition ... OK
Flashing 1 Partition...1 [221-242] M0 "
And stops with the white bar below + / - 10%
what's happens with my phone??
inside the file 'flash.cfg' (can open with notepad) what does it say?
Ok i found the solution and calls Windows Mobile Center... after install that i can do all stuf...

sysctl.conf tweaks already tested

filevm.dirty_ratio = 70
vm.oom_kill_allocating_task = 1
vm.min_free_kbytes = 7168
vm.vfs_cache_pressure = 10
vm.dirty_background_ratio = 50
This file is in system/etc
If you dont found it create it and put this tweaks on it
The file is called sysctl.conf
I recommend to install a cache cleaner, this will allow to create more cache so your device will be more faster so install one
http://db.tt/U3FO32lt
You have to copy it in system\etc
Sent From My Rooted Kindle Fire HD

[Q] Reflashing 4.2.2 fails at 81%

I was running KitKat and wanted to downgrade do 4.2.2 using this guide. http://forum.xda-developers.com/showthread.php?t=2625044
At 81% progress, my phone reboots and goes into a bootloop. At this point the flash tool outputs:
16:05:48 : wParam : 13, lParam = 78
16:05:51 : wParam : 13, lParam = 79
16:05:55 : wParam : 6004, lParam = 0
16:05:55 : #################################################
16:05:55 : Indirect Internal / Phone internal upgrade end
16:05:55 : wParam : 13, lParam = 80
16:05:58 : wParam : 13, lParam = 81
16:06:01 : wParam : 13, lParam = 82
I have redownloaded the KDZ and also a different KDZ file, and tried again with both, but I get the same error every time.
Any ideas how to solve this?
Thank you
PentagonVS said:
I was running KitKat and wanted to downgrade do 4.2.2 using this guide. http://forum.xda-developers.com/showthread.php?t=2625044
At 81% progress, my phone reboots and goes into a bootloop. At this point the flash tool outputs:
16:05:48 : wParam : 13, lParam = 78
16:05:51 : wParam : 13, lParam = 79
16:05:55 : wParam : 6004, lParam = 0
16:05:55 : #################################################
16:05:55 : Indirect Internal / Phone internal upgrade end
16:05:55 : wParam : 13, lParam = 80
16:05:58 : wParam : 13, lParam = 81
16:06:01 : wParam : 13, lParam = 82
I have redownloaded the KDZ and also a different KDZ file, and tried again with both, but I get the same error every time.
Any ideas how to solve this?
Thank you
Click to expand...
Click to collapse
For anyone having the same error, doing a factory reset through Power & Volume Down button fixes the boot loop.

Categories

Resources