sysctl.conf tweaks already tested - 7" Kindle Fire HD General

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

Related

.CAB can not write registry at WM2005

yesterday,my C500 upgrade to WM2005,i make a Chinese Fonts pakage,only packs .ttf file can be writer in ram,but add registry value Latter,install cab file show:Installation was unsuccessful.Theprogram or setting cannot be installed because it does not have sufficient system permissions.
cab inf file:
Code:
[Version]
Signature = "$Windows NT$"
Provider = "Microsoft"
CESignature = "$Windows CE$"
[CEStrings]
CompanyName="Cloud-Castle Studio."
AppName="WM2005 Chs Fonts Installer"
InstallDir=%CE2%\Fonts
[DefaultInstall]
AddReg = RegSettings.All
CopyFiles = CopyToInstallDir.All
[SourceDisksNames]
1 = ,"ttf",,D:\smartphone\fonts
[SourceDisksFiles]
nina.ttf = 1
ninab.ttf = 1
MSSONG.TTF = 1
[DestinationDirs]
CopyToInstallDir.All=0,%InstallDir%
[CopyToInstallDir.All]
nina.ttf,,,0
ninab.ttf,,,0
MSSONG.TTF,,,0
[RegSettings.All]
HKLM,Software\Microsoft\FontLink\SystemLink,nina,0x00000000,"\Windows\Fonts\mssong.ttf,SC_Song"
HKLM,Software\Microsoft\FontPath,FontPath,0x00000000,"\Windows\Fonts"
help me,thanks![/b]
in HKLM\Security\Policies\Policies add DWORD key,"0000101b"=1
all ok!

[WinXP Script] Extend Search Companion

Annoyed by the fact that Search Companion doesn't return the text string you specified even though you indicated All Files & Folders?
This handy script allows you to extend the PersistenHandlers to include other extension. In my case, I added: provxml and rgu. Copy and paste the following code into notepad and save as a .VB script (ex: xp_persisthandler.vbs). Execute the script and specifiy the file extension you wish to include in Search Companion.
Code:
'Add files to Search for files containing text
'© Doug Knox - 11/04/2001
'This code may be freely distributed/modified
Option Explicit
On Error Resume Next
Dim WshShell, N, P, P1, P2, ItemType, MyBox, FileType, Title, Prompt, RegKey, X
Set WSHShell = WScript.CreateObject("WScript.Shell")
P = "HKEY_CLASSES_ROOT\."
P1 = "\PersistentHandler\"
N = "{5e941d80-bf96-11cd-b579-08002b30bfeb}"
Prompt = "Enter the file extension for the file you wish to add." & vbCR
Prompt = Prompt & "Examples: txt, adm, inf"
Title = "Enter File Type"
FileType = InputBox(Prompt, Title, "")
If FileType = "" Then
MyBox = MsgBox("You left the box blank.",4096,"Error.")
Set WshShell = Nothing
WScript.Quit
Else
'Check to see if there is already a PersistentHandler default value
RegKey = P & FileType & P1
X = WshShell.RegRead(RegKey)
End If
'MyBox = MsgBox("The PersistentHandler value for ." & FileType & " is: " & X,4096,"Results")
'Set WshShell = Nothing
If X = N Then
MyBox = MsgBox("This value already exists, and is correct." & vbCR & "No Changes were made.", 4096, "No Changes")
Set WshShell = Nothing
WScript.Quit
End If
If X <> N AND X <> "" Then
MyBox = MsgBox("The Persistent Handler value already exists and is different." & vbCR & "No changes were made.", 4096, "No Changes")
Set WshShell = Nothing
WScript.Quit
End If
If Err.Number <> 0 Then
WshShell.RegWrite RegKey, N
MyBox = MsgBox("The Registry has been updated." & vbCR & "Restart your computer.", 4096, "Done")
Set WshShell = Nothing
End If

[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?

[Q] Someone explain numbers in su permisions [SOLVED]

Yes, I used search but I didn't find any thread concerning those numbers in su permissions. Can somebody explain how to understand those? I usually see e.g. 777, 775, 666 without knowing what they mean
It's easy, you have 3 numbers every number correspond to an user
You have in this order owner, group, all.
Exemple:
if the permission is 765:
Owner = 7
7 in dec = 111 in binary
rwx
111
the file is readable, writable and executable by the owner
Group = 6
6 in dec = 110 in binary
rwx
110
the file is readable, writable and not executable by the group (owning the file)
all = 5
5 in dec = 101 in binary
rwx
101
the file is readable, not writable and executable by all
bensabin said:
It's easy, you have 3 numbers every number correspond to an user
You have in this order owner, group, all.
Exemple:
if the permission is 765:
Owner = 7
7 in dec = 111 in binary
rwx
111
the file is readable, writable and executable by the owner
Group = 6
6 in dec = 110 in binary
rwx
110
the file is readable, writable and not executable by the group (owning the file)
all = 5
5 in dec = 101 in binary
rwx
101
the file is readable, not writable and executable by all
Click to expand...
Click to collapse
binary??? How do I turn dec to binary and vice versa?
bensabin said:
It's easy, you have 3 numbers every number correspond to an user
You have in this order owner, group, all.
Exemple:
if the permission is 765:
Owner = 7
7 in dec = 111 in binary
rwx
111
the file is readable, writable and executable by the owner
Group = 6
6 in dec = 110 in binary
rwx
110
the file is readable, writable and not executable by the group (owning the file)
all = 5
5 in dec = 101 in binary
rwx
101
the file is readable, not writable and executable by all
Click to expand...
Click to collapse
Oh I got it
Thnx
Well in fact, to be precise it's Octal and not decimal, but the explanation is the same.

[Q] Lenovo a1: Install custom rom gone bad

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

Categories

Resources