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?
Related
I'm trying to get some custom code compiled for android, but when I try to make the file, it requires a function called errx in libc -> err.h.
When I use the one I have on my system and try to recompile libc.so, I get the following compilation error:
Code:
In file included from bionic/libc/unistd/getopt_long.c:59:
bionic/libc/include/err.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
In file included from bionic/libc/unistd/getopt_long.c:60:
bionic/libc/include/errno.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
If I try to delete the contents or err.h, I get no errors.
Note that I'm not modifying errno.h in any way.
Is there a workaround for this?
I'd really like a workaround to this.
Hey, looking for a little bit of input here...
(Made the ROM from this tutorial)
Code:
http://forum.xda-developers.com/showthread.php?t=566235
Everytime I try to flash it, it throws an error.
Code:
E:Can't symlink /system/bin/bugreport
E:Failure at line 7: symlink dumpstate SYSTEM:bin/bugreport
Installation Aborted
Any help would be appreciated.
Also, I've compiled unyaffs so that it wouldn't create duplicate symbolic links, and its still throwing the error.
DarkOne951 said:
Hey, looking for a little bit of input here...
(Made the ROM from this tutorial)
Code:
http://forum.xda-developers.com/showthread.php?t=566235
Everytime I try to flash it, it throws an error.
Code:
E:Can't symlink /system/bin/bugreport
E:Failure at line 7: symlink dumpstate SYSTEM:bin/bugreport
Installation Aborted
Any help would be appreciated.
Also, I've compiled unyaffs so that it wouldn't create duplicate symbolic links, and its still throwing the error.
Click to expand...
Click to collapse
Does the image contain "dumpstate"? If you're just trying to make it go away, modify META-INF/com/google/android/update-script to remove the offending script line, or make sure that the thing it's trying to symlink is in your image.
Removing the conflicting lines did enable it to flash properly, I'm just wondering what exactly was lost in the process of removing those steps. I'll see if I cant figure more of it out. Thanks though
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?
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
So I just started developing a recovery for a phone that has no support from any other developers, and basically I need to do all the stuff from 0. I follow some guides, I read some forums on the internet and hope I can make it (it's my first time developing something for Android). But for now I have this problem and I can't find it anywhere along with the proper solution (maybe I haven't searched enough). Every time I type make recoveryimage in the terminal, it is working for like 30 seconds, and then a error like this appears:
Code:
target SharedLib: libc (/home/cosinus/Workspace/X3_Soul-CM12.1/out/target/product/X3_Soul/obj/SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so)
[COLOR="Red"]/home/cosinus/Workspace/X3_Soul-CM12.1/out/target/product/X3_Soul/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a([COLOR="DarkRed"][B]gethnamaddr.o[/B][/COLOR]): error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make: *** [/home/cosinus/Workspace/X3_Soul-CM12.1/out/target/product/X3_Soul/obj/SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so] Error 1
#### make failed to build some targets (01:02 (mm:ss)) ####[/COLOR]
(In my noobness) I tried to delete all the files that generates the error, in this case, gethnamaddr.o, but there are too much files, and I don't even know why I need to delete every single file that ends with *.o extension and if it's a good solution. I saw that everytime I delete a file that returns an error, the file is generated again, but after it's generated, it won't return any error. So I tought that maybe the *.o files are corrupt, and "make" generates them correctly.
Now that I told you the story, I'm asking:
Is it normal that I have so many errors because of *.o files?
How can I solve it?
The phone: Allview X3 Soul (I heard it's a clone of Gionee S6)
Chipset: MT6753
Android version: 5.1