trying to repair android database...
trying to decrypt android database...
Traceback (most recent call last):
File "C:\whatsapp\whatsapp_xtract.py", line 2062, in <module>
main(sys.argv[1:])
File "C:\whatsapp\whatsapp_xtract.py", line 995, in main
decoded = cipher.decrypt(open(options.infile,"rb").read())
File "C:\Users\Hafiz Haider\AppData\Roaming\Python\Python27\site-packages\Cryp
to\Cipher\blockalgo.py", line 295, in decrypt
return self._cipher.decrypt(ciphertext)
ValueError: Input strings must be a multiple of 16 in length
Press any key to continue . . .
dear sir how to remove this error ???ans me
hafizimran4 said:
trying to repair android database...
trying to decrypt android database...
Traceback (most recent call last):
File "C:\whatsapp\whatsapp_xtract.py", line 2062, in <module>
main(sys.argv[1:])
File "C:\whatsapp\whatsapp_xtract.py", line 995, in main
decoded = cipher.decrypt(open(options.infile,"rb").read())
File "C:\Users\Hafiz Haider\AppData\Roaming\Python\Python27\site-packages\Cryp
to\Cipher\blockalgo.py", line 295, in decrypt
return self._cipher.decrypt(ciphertext)
ValueError: Input strings must be a multiple of 16 in length
Press any key to continue . . .
dear sir how to remove this error ???ans me
Click to expand...
Click to collapse
What android databases? From what app/file? What are you using to decrypt it?
The error is from a Python script/program. The problem is that you entered some kind of wrong number and that number MUST be a multiple of 16. Please post more info and try using a diffrent tool for this because this one seems not to work.
EDIT:
I see. You are trying to decrypt a WhatsApp database. Try using this website: http://whatcrypt.com
Related
Hello everybody,
I'm trying to build the AOSP source code for the HTC Desire (Bravo). The Android version is Gingerbread. Here comes the problem:
In order to compile for the HTC Desire I need the folder at device/htc/bravo, with all the specific makefiles for this device.
The problem is that I got one from someone that was compiling froyo, and I corrected the errors I was being given. Then, it compiles good but then, at the construction of the OTA package, it throws this:
Code:
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 784, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 760, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./build/tools/releasetools/ota_from_target_files", line 398, in WriteFullOTAPackage
script.WriteRawImage("/boot", "boot.img")
File "/home/zlowram/android/aosp/system/build/tools/releasetools/edify_generator.py", line 241, in WriteRawImage
% {'partition': partition, 'fn': fn})
NameError: global name 'partition' is not defined
make: *** [out/target/product/bravo/htc_bravo-ota-eng.zlowram.zip] Error 1
I can't figure out why is this happening, so I ask your help if anyone have found himself in this situation before. If this question is a bit difficult, I'd be more than happy to be provided with good information on how to compile android for the HTC Desire, with android gingerbread, that leads to a successful and bootable build.
Thank you.
Zlowram
Bump.
No one knows what this error could come from, and how to fix it?
I have an HTC Status (U.S. AT&T version of Chacha) and, like some other users on this forum, have had some issues with the keyboard mappings changing after rooting the phone. After spending a lot of time browsing/searching these (and other) forums as well as Google, I've concluded a few things about this:
1) The files responsible for the keyboard mappings are chacha-keypad.kcm.bin and chacha-keypad.kl.
2) Changing chacha-keypad.kl will help with the main keys but can't be used to fix mappings of alt+
3) The completely correct chacha-keypad.kcm.bin doesn't seem to be posted anywhere (for U.S. English keyboard). I got one that is almost right, but mappings for alt+V, alt+B, alt+N, alt+M, alt+?, alt+camera, and alt+.com are still off.
Therefore, I will need to edit the chacha-keypad.kcm.bin file myself. I have no problem doing this, as the format of the kcm files seems pretty straight-forward, but I can't figure out how to open the bin file, which cannot be opened directly since it is binary.
I need to convert the kcm.bin to kcm, make the changes that are needed, and then recompile to bin. I found info on doing this here:
http://forum.xda-developers.com/showthread.php?t=837002&page=4
The above link includes a zip that has a Python script to decompile the bin and then an exe to compile kcm to bin. I'm stuck at the decompiling part. I tried running the unkcm Python script included in the kcm_utils.zip (from the post above), however I get an error message:
Code:
C:\Users\Maya\Downloads\HTC\kcm_utils>python unkcm.py chacha-keypad.kcm.bin chacha-keypad.kcm
Traceback (most recent call last):
File "unkcm.py", line 179, in <module>
decompileKCM(f, output)
File "unkcm.py", line 162, in decompileKCM
Out.write(kr.printKR()+"\n")
File "unkcm.py", line 143, in printKR
fmt = (rkeycodes[self.keycode],)
KeyError: 116
I'm attaching the kcm.py and chacha-keypad.kcm.bin files for reference. Can someone please help? Or does anyone know of another way of converting the .kcm.bin files to .kcm files? Or can someone that knows how to do it please provide me with the .kcm version of the attached .kcm.bin file?
Thank you so much in advance!
Hi,
You must add keycodes 116, 117 and 124 (QUECHAR) in unkcm, and also in the .h file used by kcm.
SuperOSR and my latest CM7 build don't use these keycodes but instead are based on the same keycodes as the vision/latte boards.
Code:
"USER1": 97, "USER2": 98, "USER3": 99, "FUNC_1": 116,
"HTC_SHARE": 117, "FUNC_2": 118, "QUECHAR": 124}
You may also need: http://forum.xda-developers.com/attachment.php?attachmentid=441092&d=1289759467
xdbg said:
Hi,
You must add keycodes 116, 117 and 124 (QUECHAR) in unkcm, and also in the .h file used by kcm.
SuperOSR and my latest CM7 build don't use these keycodes but instead are based on the same keycodes as the vision/latte boards.
Code:
"USER1": 97, "USER2": 98, "USER3": 99, "FUNC_1": 116,
"HTC_SHARE": 117, "FUNC_2": 118, "QUECHAR": 124}
You may also need: http://forum.xda-developers.com/attachment.php?attachmentid=441092&d=1289759467
Click to expand...
Click to collapse
Thank you so much for your help! Once I added those codes to the unkcm.py file, I was able to decompile the kcm.bin file and made the changes I needed (sure enough, as I'd expected, the ALT and ALT+SHIFT column had some incorrect values for some of the keys).
I also added the key codes that you mentioned to the kcm source code (KeycodeLabels.h file in the src folder of kcm_utils), and re-compiled the kcm.exe without errors. However, when I tried to run it, I got an error:
Code:
C:\Users\Maya\Downloads\HTC\kcm_utils>kcm chacha-keypad.kcm chacha-keypad.kcm.bin
chacha-keypad.kcm:60: not enough on this line: '?' 0x0 '?' '?'
'#' '#'
Line 60 is the last line in my chacha-keypad.kcm file and is exactly the same format as the other lines, so I'm not sure why I'm getting the above error. Looking at kcm.cpp, I see that the "not enough on this line: ..." message only appears when there is a '\0' (end of line) before it's expected, but I don't understand why that is happening, since the format is the same for all the lines and it only seems to have a problem with the last line.
I'm attaching my chacha-keypad.kcm file, as well as my modified kcm.exe along with the modified source of this kcm app (where I just added the key codes you mentioned in your post to the .h file). Any idea what could be wrong? Thanks again!
thanks
I am just looking for tools to change the "pound" into "~"...because i never use "pound"
Try this util:
http://wiki.androidteam.ru/tools
http://dl.dropbox.com/u/1134234/AndroidTeam/utils/kcmdecoder.jar
How to use:
java -jar kcmdecoder.jar chacha-keypad.kcm.bin chacha-keypad.kcm
vovkab said:
How to use:
java -jar kcmdecoder.jar chacha-keypad.kcm.bin chacha-keypad.kcm
Click to expand...
Click to collapse
Ermm please i am new to Htc and and Android (beginner). i have the same problem with my Htc (status) where alt keys don't work correctly. can u please give me a detailed instruction on how to install the java program.
anyway i ddnt find any java emulator for Htc (status)/chacha. thanks in advance
hello,
can we use this for the FB button?
I am currently trying to compile AOSP Gingerbread, and am getting a weird persistent error. I got it to fully build, with small errors relating to me using the CyanogenMod Device files, but when trying to build the otapackage, i get this weird error. Here is the error:
Code:
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 785, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 760, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./build/tools/releasetools/ota_from_target_files", line 376, in WriteFullOTAPackage
script.FormatPartition("/system")
File "/home/daygen/GB/build/tools/releasetools/edify_generator.py", line 166, in FormatPartition
p = fstab[partition]
KeyError: '/system'
make: *** [out/target/product/p999/lge_p999-ota-eng.daygen.zip] Error 1
I tried taking out the one line that formatted system, but it just gave me an error relating to the next line of the file of mounting system. I believe this file creates the script that installs the ROM, but when it errors out about /system, it leaves me to believe that /system isnt a valid mount point, since /data is in the line above in the file without any errors. Any ideas?
anyone know??
dhalham said:
anyone know??
Click to expand...
Click to collapse
I still haven't been able to figure this out, even though its probably just one line of code that i'd need to edit.........Does anyone else have this error or is it just me?
im getting the same error now... did u ever figure it out?
I am syncing cm13 source code form last 21 hrs, but now i am facing this error:
Syncing work tree: 30% (159/529) fatal: This operation must be run in a work tree
Traceback (most recent call last):
File "/home/jj/android/system/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/home/jj/android/system/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/home/jj/android/system/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/home/jj/android/system/.repo/repo/subcmds/sync.py", line 769, in Execute
project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
File "/home/jj/android/system/.repo/repo/project.py", line 1325, in Sync_LocalHalf
self._InitWorkTree(force_sync=force_sync)
File "/home/jj/android/system/.repo/repo/project.py", line 2482, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree
I googled it but found nothing usefull, any help is appreciated...:crying::crying::crying:
Also i am using VMWARE on ubuntu 16,alocated 5gigs of ram
Greetings
Xda assist is for new users to come and be pointed to the right forum to ask their question. You are a senior member and should know where to ask this question, please don't ask in assist again.
Thanks for understanding
Sawdoctor
hi
just wanted to know if there is any way to extract the contents of payload.bin?
there is. using python script. but i myself cant get this to work in linux for some reason. i dunno why. some help anyone can offer??
here u go
payload dumper
Bradl79 said:
here u go
payload dumper
Click to expand...
Click to collapse
gets stuck on system.img?
edit just needed patience
i owe you beers kind sir
you are a legend and a scholar!
For information the link to the Gist containing the source code is in the README file of the zip file.
Hello friend, you have to make this file run win86 thanks
Fabio shura said:
Hello friend, you have to make this file run win86 thanks
Click to expand...
Click to collapse
Does someone know if there is a similar utility for linux?
EDIT: found a python script ... https://www.themefoxx.com/2018/11/how-to-extract-payload-bin-android-update-file.html
Just use SuperR's Kitchen to extract the image.
I have installed Python 3.9.5 and copied the payload.bin in the same folder.
I started through a CMD the python "payload_dumper.py payload.bin" operation, but it stopped with this error:
Code:
Traceback (most recent call last):
File "C:\Users\jungl\AppData\Local\Programs\Python\Python39\payload_dumper.py", line 12, in <module>
import update_metadata_pb2 as um
File "C:\Users\jungl\AppData\Local\Programs\Python\Python39\update_metadata_pb2.py", line 6, in <module>
from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google'
Any ideas?
RASTAVIPER said:
I have installed Python 3.9.5 and copied the payload.bin in the same folder.
I started through a CMD the python "payload_dumper.py payload.bin" operation, but it stopped with this error:
Code:
Traceback (most recent call last):
File "C:\Users\jungl\AppData\Local\Programs\Python\Python39\payload_dumper.py", line 12, in <module>
import update_metadata_pb2 as um
File "C:\Users\jungl\AppData\Local\Programs\Python\Python39\update_metadata_pb2.py", line 6, in <module>
from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google'
Any ideas?
Click to expand...
Click to collapse
You might need to install google-api-python-client
pip install --upgrade google-api-python-client