Hello guys!
Today morning i downloaded Cygwin,Android Kitchen and installed them correctly. Then i opened Cygwin and typed: cd Kitchen.
Then ./menu and i got this error: android kitchen line 22: command clear not found.
Any solutions?
Hi,
I suggest asking for help in the Android Kitchen main thread...
http://forum.xda-developers.com/showthread.php?t=633246
Good luck!
Related
Ok heres the back story. I have been reading a lot on Android development and wanted to try.
I read the post by CM that said start with simple apps first. So thats what I did, I happened to find a source code for a camera application. Now that I have that I tried to run a make command and get the following errors
roid.mk: line 1: call: command not found
./Android.mk: line 1: LOCAL_PATH:=: command not found
./Android.mk: line 2: CLEAR_VARS: command not found
./Android.mk: line 2: include: command not found
./Android.mk: line 4: LOCAL_MODULE_TAGS: command not found
./Android.mk: line 6: call: command not found
./Android.mk: line 6: LOCAL_SRC_FILES: command not found
./Android.mk: line 8: LOCAL_PACKAGE_NAME: command not found
./Android.mk: line 9: LOCAL_SDK_VERSION: command not found
./Android.mk: line 11: LOCAL_PATH: command not found
./Android.mk: line 11: LOCAL_PROGUARD_FLAGS: command not found
./Android.mk: line 13: BUILD_PACKAGE: command not found
./Android.mk: line 13: include: command not found
./Android.mk: line 16: LOCAL_PATH: command not found
./Android.mk: line 16: call: command not found
./Android.mk: line 16: include: command not found
I'm a little confused at this point.
I am pretty familial with Linux ; thats all I run, and never ran into this problem; matter of fact I'm in school for linu/unix scripting and programming I'm also going to take C++ too.
so the point of trying this out was to get familial with developing, if anyone can give some insight that would be great. I'm not asking for someone to hold my hand ,but just to help maybe point me in the right direction with some clearer directions then the android open source provides.
Thank you and sorry if this is a dumb question
Hello everybody! How in the CM9 source code, compile MTK6575 recovery,
========================================
Error message:
[email protected]:~/android/system$ ./build/tools/device/mkvendor.sh lenovo a360 ~/android/recovery.img
Arguments: lenovo a360 /home/winm/android/recovery.img
Output will be in /home/winm/android/system/device/lenovo/a360
gzip: ../recovery.img-ramdisk.gz: not in gzip format
cpio: Archiving abnormal termination
Done!
Use the following command to set up your build environment:
lunch full_a360-eng
And use the follwowing command to build a recovery:
. build/tools/device/makerecoveries.sh full_a360-eng
=========================================
unpack-mt65xx.pl
Please help
Thank you
Please whosoever reads this post and has got a solution to this please reply as i need a solution desperatly.This is my third post of the same help and till now i have not got any help.Is this is what xda all about????
Click to expand...
Click to collapse
hello,
I am using a virtual box with Ubuntu 16.04 as guest and Windows 10 as host
I have downloaded the binaries such as simg2img img2simg,etc...But whenever i am using the command
Code:
sudo ./simg2img system.img sys.raw
i am getting the error
Code:
[email protected]:/media/htc_desire$ sudo ./simg2img system.img sys.raw
sudo: unable to execute ./simg2img: No such file or directory
I have also tried the command
Code:
sudo chmod +x simg2img
but still i am getting the same error.
Is there any other way to make the binaries executable and is there any other way to extract a raw image of out a spare image and then mount the raw image inorder to obtain the system folder so that i can access files and folders such as apks and jars.
Can anyone please help me how to use the binaries such as simg2img,img2simg,make_ext4fs,etc... relations to extracting a rom in Ubuntu 16.04. I have been trying to get the system folder out of the sparse image since a week but i a unable to do so.And i have a system.img file in the rom folder but i do not know weather its a sparse image or a raw image.So can anyone please tell me how to differentiate between a Sparse image and a Raw image so that i can extract it accordingly.
Are the files in the same directory as your terminal is? If not you can use the CD command to change folders or you can use a file explorer and right click open terminal here, and then try running the above commands. Also right click on the files your executing and go to permissions tab and tick the box that says something along the lines of "allow execution of file" (sorry can't remeber of the top of my head).
Also another you can try is using the mount command to mount the system .img to a directory of your choosing and then modify the files. A general example can be
Code:
mkdir /temp-sys
mount -o loop auto system.img /temp-sys/
Note: don't use that exact code but do some research as that was also off the top of my head. Good luck.
Hi guys,
i made a backup using ADB and TWRP, no i have a backup.ab that i cant do anything with. I've been searching for a while and i cant unpack, split, or extract the backup. I tried using windows 10, ubuntu bash (on winows10), and virtual linux.
so far, windows and virtual linuxmint 18 give me about the same error.
I used :
Code:
java -jar abe.jar unpack backup1.ab nexus745544.tar
To unpack it, but i get the following error (both windows and linux):
Code:
Invlaid Magic: TWRPtwstreamheaderöâS·TWRPtwfilenameÌøÔñ£â/data/media/0/TWRP/BACKUPS/0117111846320501/2017-12-17--02-02-18_NRD90MN920PVPS3DQK1/system.ext4.winTWRPtwdatablockDÝíº/app/00407550000000000000000000000062132154162340010533xustar rootroot50 RHT.security.selinux=u:object_r:system_file:s0
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Invalid Magic TWRPtwstreamheaderöâS·TWRPtwfilenameÌøÔñ£â/data/media/0/TWRP/BACKUPS/0117111846320501/2017-12-17--02-02-18_NRD90MN920PVPS3DQK1/system.ext4.winTWRPtwdatablockDÝíº/app/00407550000000000000000000000062132154162340010533xustar rootroot50 RHT.security.selinux=u:object_r:system_file:s0
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:502)
at org.nick.abe.Main.main(Main.java:128)
... 5 more
Caused by: java.lang.IllegalArgumentException: Invalid Magic TWRPtwstreamheaderöâS·TWRPtwfilenameÌøÔñ£â/data/media/0/TWRP/BACKUPS/0117111846320501/2017-12-17--02-02-18_NRD90MN920PVPS3DQK1/system.ext4.winTWRPtwdatablockDÝíº/app/00407550000000000000000000000062132154162340010533xustar rootroot50 RHT.security.selinux=u:object_r:system_file:s0
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:332)
... 6 more
other commands i tried:
Code:
dd if=backup1.ab bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" > backup11.tar
This command creates a backup11.tar (with 0 bytes) but the terminal just hangs.
Code:
dd if=backup1.ab bs=24 skip=1|openssl zlib -d > mybackup7668.tar
This command also creates the .tar file with 0 bytes but the terminal throws error:
Code:
openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
which i'm still trying to fix this error, maybe it fixes it.
if you have any more questions, let me know.
Any help is appreciated. Thanks.
Same problem here,
I think TWRP backups are in some way different from others .ab files.
Just wanted to also say I have the exact same problem as the other two people in the thread.
Only, I also have my efs partitions in there and now when I need them my phone is essentially a tablet.
Same problem here. It is hard to believe that the answer to this question is so hard to find. After all, one only needs to be able to read the source code to find the answer (unfortunately, that's not what I am qualified to do)
For anyone else in trouble, more information can be found here:
github.com/TeamWin/Team-Win-Recovery-Project/issues/898
I'm trying to create rsync to my andorid / TWRP So i can backup android folder
My code for compile:
Code:
Downloaded from (https://github.com/WayneD/rsync/releases)
./configure --host=arm-linux-gnueabi CFLAGS="-static" --disable-xxhash --disable-zstd
make
make prefix=/home/fredy/Desktop/rsync install
i copy the file ("rsync", "rsync-ssl") into /sbin
But i got this error here and testet with command "rsync":
Code:
/sbin/rsync: line 1: syntax error: unexpected "("
Can you help me out?
Thanks for your time