[Problem]Errors with Kitchen!! - Android Q&A, Help & Troubleshooting

Hi at all.. well i'm new in the forum but not a noob in the topic..!! This is my problem..!! I'm trying to install the latest version of the Kitchen posted in this same Categorie/Forum..!! Well all is correct until i run de cygwin.. looks the log..:
Code:
[email protected] ~
$ cd kitchen
[email protected] ~/kitchen
$ ./menu
./menu: line 46: chmod: command not found
scripts/check_install_dir: line 13: grep: command not found
scripts/init_kitchen: line 12: chmod: command not found
scripts/init_kitchen: line 13: chmod: command not found
scripts/init_kitchen: line 14: chmod: command not found
scripts/init_kitchen: line 15: chmod: command not found
scripts/init_kitchen: line 16: chmod: command not found
scripts/init_kitchen: line 17: chmod: command not found
scripts/init_kitchen: line 18: chmod: command not found
scripts/init_kitchen: line 19: rm: command not found
scripts/init_kitchen: line 20: rm: command not found
scripts/init_kitchen: line 21: rm: command not found
scripts/init_kitchen: line 22: rm: command not found
scripts/init_kitchen: line 23: rm: command not found
scripts/check_binaries: line 22: clear: command not found
Welcome to dsixda's Android Kitchen
Please wait .
Error: The application 'clear' is not installed - the kitchen
will not function properly without it. Ensure you did
not miss a step during installation! Refer to the
Android Kitchen FAQ at xda-developers.com for further
assistance.
[email protected] ~/kitchen
$
I'm not sure of what happend.. well at the first time that i run the cygwin it said an error with Java application not found..!! well i fixed it adding to the end of the .bash_profile file this line:
Code:
PATH=/cygdrive/c/Program\ Files/Java/jdk1.6.0_29/bin:\${PATH}
After that modification of the .bash_profile the Java error was solved..!! so now when i run again the ./menu it show that errors mentioned up..!!
So how can i fix it for work with the kitchen as soon as posible..!!??
Well i'm from colombia.. so my native language is spanish.. i'm learning english but it isn't perfect.. is good no more..!! So excuse me for mi wrongs with my words and if in any part the incoherence is too big tell me for re-tell you the correct form for you can understand me..!!
Thanks..!!

please can somebody help i have the same problem

You both didn't set up cygwin right. Go back and reread op of the kitchen. The tools are not in your path.
Sent from my Nexus S 4G using xda premium

i installed it in the right way:
After three attempts it still doesnt work so i deleted java jdk and cygwin and the kitchen. Then i have reinstalled java jdk (version 6.31, i allsow ttried with versions 6.20 and 6.21). After that i unzipped the cygwin package and started the setup exe, then i choosed "Install from local directory" then i choosed the root folder C:\Cygwin\. After that i choosed from where Cygwin should installed (the cygwin_package folder). So then setup choose me which packages should installed and i clicked on the arrow until to All Packages Install All (or something like that). Then it installed and finished. After that i copied the kitchen to C:\Cygwin\home\XXX\kitchen .
And when i start cygwin and type in cd kitchen i get always the error application clear is not installed.
I tried even Install All Default and Reinstall. But it shows always this fu***** error

solution
jojogangsta said:
i installed it in the right way:
After three attempts it still doesnt work so i deleted java jdk and cygwin and the kitchen. Then i have reinstalled java jdk (version 6.31, i allsow ttried with versions 6.20 and 6.21). After that i unzipped the cygwin package and started the setup exe, then i choosed "Install from local directory" then i choosed the root folder C:\Cygwin\. After that i choosed from where Cygwin should installed (the cygwin_package folder). So then setup choose me which packages should installed and i clicked on the arrow until to All Packages Install All (or something like that). Then it installed and finished. After that i copied the kitchen to C:\Cygwin\home\XXX\kitchen .
And when i start cygwin and type in cd kitchen i get always the error application clear is not installed.
I tried even Install All Default and Reinstall. But it shows always this fu***** error
Click to expand...
Click to collapse
hey
when there is a window for selection. Click on the icon next to package,it turn to install icon,do this to all and then try.
i did by this method.

You could always just get Linux too. that is the easiest possible fix!

solved this problem
initially i faced the same problem. Then while a window of cygwin asks what to install on top of the option bar there is a option with default. click on it until install appears. if still problem persists mail me and i will send you the link.

Gioyik said:
Hi at all.. well i'm new in the forum but not a noob in the topic..!! This is my problem..!! I'm trying to install the latest version of the Kitchen posted in this same Categorie/Forum..!! Well all is correct until i run de cygwin.. looks the log..:
Code:
[email protected] ~
$ cd kitchen
[email protected] ~/kitchen
$ ./menu
./menu: line 46: chmod: command not found
scripts/check_install_dir: line 13: grep: command not found
scripts/init_kitchen: line 12: chmod: command not found
scripts/init_kitchen: line 13: chmod: command not found
scripts/init_kitchen: line 14: chmod: command not found
scripts/init_kitchen: line 15: chmod: command not found
scripts/init_kitchen: line 16: chmod: command not found
scripts/init_kitchen: line 17: chmod: command not found
scripts/init_kitchen: line 18: chmod: command not found
scripts/init_kitchen: line 19: rm: command not found
scripts/init_kitchen: line 20: rm: command not found
scripts/init_kitchen: line 21: rm: command not found
scripts/init_kitchen: line 22: rm: command not found
scripts/init_kitchen: line 23: rm: command not found
scripts/check_binaries: line 22: clear: command not found
Welcome to dsixda's Android Kitchen
Please wait .
Error: The application 'clear' is not installed - the kitchen
will not function properly without it. Ensure you did
not miss a step during installation! Refer to the
Android Kitchen FAQ at xda-developers.com for further
assistance.
[email protected] ~/kitchen
$
I'm not sure of what happend.. well at the first time that i run the cygwin it said an error with Java application not found..!! well i fixed it adding to the end of the .bash_profile file this line:
Code:
PATH=/cygdrive/c/Program\ Files/Java/jdk1.6.0_29/bin:\${PATH}
After that modification of the .bash_profile the Java error was solved..!! so now when i run again the ./menu it show that errors mentioned up..!!
So how can i fix it for work with the kitchen as soon as posible..!!??
Well i'm from colombia.. so my native language is spanish.. i'm learning english but it isn't perfect.. is good no more..!! So excuse me for mi wrongs with my words and if in any part the incoherence is too big tell me for re-tell you the correct form for you can understand me..!!
Thanks..!!
Click to expand...
Click to collapse
Hey found a solution to ur problem jus follow the given steps
go to your jdk folder n open the bin folder (C:\Program Files\Java\jdk1.7.0_25\bin)
and find the java.exe application n put it in C:\cygwin\bin
dont edit the .bash_profile file
All the best :fingers-crossed::good:
hit like if i helped :good:

it caused by Java 7 versions, maybe cygwin cannot find their path.
revert the changes that you did it for bash_profiles.
then just copy java.exe into cygwin/bin folder.
how to test if works or not?
just run cygwin and type:
Code:
java -version
the result must be like this:
Code:
$ java -version
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
to check if other commands are working:
type:
Code:
chmod +x -R *
if works, then your package is ready to use.
Best regards.

how to fix
scripts/check_binaries: line 22: clear: command not found
Welcome to dsixda's Android Kitchen
Please wait .
Error: The application 'clear' is not installed - the kitchen
will not function properly without it. Ensure you did
not miss a step during installation! Refer to the
Android Kitchen FAQ at xda-developers.com for further
assistance.
** PLEASE READ THE FAQ BEFORE ASKING QUESTIONS!! **
YES, THIS ERROR IS ALREADY COVERED IN THE FAQ. DO NOT
WASTE YOUR TIME MESSAGING ME. JUST READ IT, PLEASE.
on this message the application of "clear" is not found

thanks
Thanks worked for me ...

yanyanruhyana said:
scripts/check_binaries: line 22: clear: command not found
Welcome to dsixda's Android Kitchen
Please wait .
Error: The application 'clear' is not installed - the kitchen
will not function properly without it. Ensure you did
not miss a step during installation! Refer to the
Android Kitchen FAQ at xda-developers.com for further
assistance.
** PLEASE READ THE FAQ BEFORE ASKING QUESTIONS!! **
YES, THIS ERROR IS ALREADY COVERED IN THE FAQ. DO NOT
WASTE YOUR TIME MESSAGING ME. JUST READ IT, PLEASE.
on this message the application of "clear" is not found
Click to expand...
Click to collapse
I have same problem, I don't understand what to do

Try "sudo apt-get install clear" from a command line.
remember, remember.......

vawa.id said:
I have same problem, I don't understand what to do
Click to expand...
Click to collapse
djmatt604 said:
Try "sudo apt-get install clear" from a command line.
remember, remember.......
Click to expand...
Click to collapse
no?no!no! them error only for Windows

thanks it help me
:good:
CLINTZ9 said:
Hey found a solution to ur problem jus follow the given steps
go to your jdk folder n open the bin folder (C:\Program Files\Java\jdk1.7.0_25\bin)
and find the java.exe application n put it in C:\cygwin\bin
dont edit the .bash_profile file
All the best :fingers-crossed::good:
hit like if i helped :good:
Click to expand...
Click to collapse
:good:

I'm sorry but I did not get everything done as it is written, and all the same error.
I can not use the kitchen. When I enter in cygwin (. /menu) Is an error
Welcome to dsixda's Android Kitchen
Please wait .
Error: The application 'clear' is not installed - the kitchen
will not function properly without it. Ensure you did
not miss a step during installation! Refer to the
Android Kitchen FAQ at xda-developers.com for further
assistance.
I do not understand what to do = (

CLINTZ9 said:
Hey found a solution to ur problem jus follow the given steps
go to your jdk folder n open the bin folder (C:\Program Files\Java\jdk1.7.0_25\bin)
and find the java.exe application n put it in C:\cygwin\bin
dont edit the .bash_profile file
All the best :fingers-crossed::good:
hit like if i helped :good:
Click to expand...
Click to collapse
:good:

Still same
Hi,
Tried all steps provided like your suggested post still the same error
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
:
scripts/check_binaries: line 22: clear: command not found
 
 
 
Welcome to dsixda's Android Kitchen
Please wait .
Error: The application 'clear' is not installed - the kitchen
will not function properly without it.
Please Help Thanks again

SATHYA0403 said:
Hi,
Tried all steps provided like your suggested post still the same error
:
scripts/check_binaries: line 22: clear: command not found
 
 
 
Welcome to dsixda's Android Kitchen
Please wait .
Error: The application 'clear' is not installed - the kitchen
will not function properly without it.
Please Help Thanks again
Click to expand...
Click to collapse
Not sure if you still need help with this. I resolved my issue by confirming that I had 32 bit Java installed on a 64 bit system. The answer was to install 64 bit Java and then update the path variable in Windows. Then there are also several modules in the CYGWIN setup called NCURSES. Launch the setup and when presented with the file listing to be installed search for NCURSES and then install all relating modules.
Hope this helps!

Awesome sauce
Worked for me!!:good:

Related

[Q] Change Lock Screen Timeout

I have CM7 installed... I know there are settings for screen timeout under display, and CM7 settings allow you to specify the delay for the screen to actually lock. But what about when the screen is locked, you turn it on to check the time and it shuts off after 5 secs. Can this be changed?
Edit: Here's a list of important posts so people don't have to read the entire thread...
Background Info
Step-by-step guide for windows
Allow .jar files to be seen in APK Manager
How-to deODEX android.policy.jar for ODEXed ROMs
How-to for linux/mac(will make a better guide once I finish porting the APK Manager tool from Windows)
Old Stuff:There's not a setting to change the lock screen timeout but I got to looking around and think I found where it can be changed. The stuff I found pointed to android.policy.jar which is located in /system/framework so I adb pulled it and then decoded it using apktool. Some smali files contain hex values of 0x1388 equals 5000 in decimal where 5000ms = 5s. So one of those should be what we want to change. I'm going to try figuring out which one to change, set it to 10s = 10000ms = 0x2710. If it works for me, I can describe how to do it yourself in better detail and/or post a modified android.policy.jar with the timeout you would like.
Edit: I started a thread about this in the Eris dev forum and removed the attached files from here. PM me or post in one of these two threads if you have questions or would like me to modify and send you a custom android.policy.jar
http://forum.xda-developers.com/showthread.php?t=1079844
I successfully increased the default 5s timeout when you wake the phone but don't unlock. If you want to test it out, download one of the attached zip files corresponding to the timeout you would like to have(10s or 30s). Extract android.policy.jar from the zip file and follow either the ADB or Root Explorer or Terminal Emulator instructions below.
If using ADB:
Code:
adb remount
adb shell
cd /system/framework
mv android.policy.jar android.policy.jar.bak
exit
adb push android.policy.jar /system/framework
adb shell
cd /system/framework
chown 0:0 android.policy.jar
chmod 644 android.policy.jar
#reboot to recovery#
#wipe both cache and dalvik-cache#
#reboot#
If using Root Explorer on phone:
mount system as r/w
rename original android.policy.jar in /system/framework to android.policy.jar.bak
move modified android.policy.jar to /system/framework
change owner: owner = 0 - root & group = 0 - root
change permissions: rw-r--r--
#reboot to recovery#
#wipe both cache and dalvik-cache#
#reboot#
Click to expand...
Click to collapse
If using Terminal Emulator on phone:
Code:
mount -o remount,rw /dev/block/mtdblock3 /system
mv /system/framework/android.policy.jar /system/framework/android.policy.jar.bak
mv /PATH/TO/NEW/android.policy.jar /system/framework
cd /system/framework
chown 0:0 android.policy.jar
chmod 644 android.policy.jar
#reboot to recovery#
#wipe both cache and dalvik-cache#
#reboot#
Later tonight or tomorrow I will post a how-to so anyone can make the necessary modifications themselves. That should allow for other devices/ROMs to modify theirs as well since it will be customized to their phone.
I've only tested this on my Eris running GSB v3.1 - Gingerbread 2.3.4 - CM 7.1.0 RC0. Be sure to make a NAND backup and a backup of android.policy.jar as I can't guarantee this will work for you. If you have problems or just want to switch back to the original 5s timeout, replace the modified android.policy.jar with the android.policy.jar backup, wipe cache & dalvik-cache, and reboot or restore from the NAND backup you created.
I'm really surprised no one has brought this idea up before..well glad I had a chance to give you something to dig into and explore some more. I haven't done any editing to system files like this before so I might be posting back with some questions. Thanks for the info..I'll let you know how it goes!
When I plug my phone in it doesnt seem to be going into debugging mode. I have that option checked for it to enable when USB is plugged in but the only icon showing is the USB icon.
I say this because when I run adb devices its not listing my device..also running adb shell it says error: device not found
I havent tried running the adb shell since I flashed to CM7..is there something I need to do differently with this ROM?
thetornado said:
When I plug my phone in it doesnt seem to be going into debugging mode. I have that option checked for it to enable when USB is plugged in but the only icon showing is the USB icon.
I say this because when I run adb devices its not listing my device..also running adb shell it says error: device not found
I havent tried running the adb shell since I flashed to CM7..is there something I need to do differently with this ROM?
Click to expand...
Click to collapse
The debugging notification will only show up if the option for "USB debugging notify" is also checked in Settings->Applications->Development. Not sure why it wouldn't be able to find your phone especially since it sounds like you had it working fine before. What version of adb do you have? I'm using v1.0.26 and never had any problem. You can check the version with the command "adb version". You could also try using adbWireless which would allow you to not have it hooked to your computer with the USB cable.
Scratch that last post..I got it working in ADB Shell
I downloaded the APK tool and moved the files to C:\Windows
Ran this successful: adb pull /system/framework/android.policy.jar
Problem with: apktool d android.policy.jar out - error saying it couldn't find apktool. I went to restart my phone to see if that was an issue and now its hung on the white android screen and wont boot up
Thoughts?
You didn't actually modify anything on the phone right? And didn't push anything to it either? If not, nothing would have changed and it shouldn't be having a problem booting. Try "adb reboot recovery", wipe cache & dalvik-cache then reboot. If you can't run adb commands...pull the battery, put it back in, power it on and hold volume up + power to get into recovery. If something was modified, use adb to revert the modded files back to the originals or restore with a NAND backup if you made one.
Edit: As for apktool not being found, it sounds like apktool is not in your PATH. The Windows folder should be part of your PATH by default. You could check your PATH variable by following these instructions and modify it if needed or you try moving the unpacked apktool files to the same location as the adb command which is most likely /PATH/TO/ANDROID_SDK/platform-tools OR /PATH/TO/ANDROID_SDK/tools
Sorry for the delay..got back to trying this mod. I got an error..
C:\Users\ME\apktool d android.policy.jar out
Unable to access jarfile C:\Windows\\apktool.jar
Did I put these 3 files in the wrong location?
I just saw your comment about putting these files into where adb.exe is located. I moved these files there..also checked my path and its set up for:
Variable: path
Value: C:\android-sdk\platform-tools
The error I got now is: Unable to access jarfile C:\android-sdk\platform-tools\\apktool.jar
I'm not all that familiar with how Windows handles things but something it should be able to find apktool.jar if it's the same directory as apktool.bat. What is the contents of apktool.bat? A workaround would be manually doing the .bat file's job and run "apktool" using this command instead:
Code:
"java -jar /LOCATION/OF/apktool.jar"
Typing that in a cmd window should give you the usage output for apktool. If that works, you could then use that format to decode and build apk/jar files.
I have everything in the folder: C:\android-sdk\platform-tools
Contents of 'apktool.bat':
@echo off
java -jar "%~dp0\apktool.jar" %1 %2 %3 %4 %5 %6 %7 %8 %9
I am getting this error:
C:\Users\ME>java -jar C:\android-sdk\platform-tools\apktool.jar
Unable to access jarfile C:\android-sdk\platform-tools\apktool.jar
Ok...two more things to try.
Add the location of the java commands to the PATH variable. Probably somewhere like C:\jdk1.6.0_##\bin OR C:\Program Files\Java\jdk1.6.0_##\bin. The PATH variable as a whole would now be something like this: C:\LOCATION\OF\jdk1.6.0_##\bin;C:\WINDOWS\system32;C:\WINDOWS
If that doesn't help: change directory(cd) to C:\android-sdk\platform-tools in the cmd prompt, then run "java -jar apktool.jar"
Sorry it's being such a PITA to just get apktool to run.
1. The location of my Java program is: C:\Program Files\Java - There are 3 folders in there: jdk1.6.0_25, jre1.6.0_22, jre6 - I currently have a user variable 'path' with the value 'C:\android-sdk\platform-tools' - should it be added after this? ..if so, could you explain from what I gave about java what I need to add?
2. Tried cd - same thing..Unable to access jarfile
What does the following command give as output?
Code:
echo %PATH%
I'd set your system environment variable PATH like so:
right-click my computer -> properties -> advanced system settings -> Environment Variables...
under system variables, select Path, and Edit...
add the following(without the quotes) to the end of what's already there: ";C:\Program Files\Java\jdk1.6.0_25\bin;C:\android-sdk\platform-tools;C:\android-sdk\tools"
Also, since you are running Windows...it might make things easier on you to use APK Manager. Here's the thread for it: http://forum.xda-developers.com/showthread.php?t=695701
Here is what I have from the echo %PATH%
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I installed the APK manager..I have it up and running. So I pulled the 'android.policy.jar' - Now what do I do to edit this file?
With all the storms, a power outage, and being busy I'm just now able to get back to you. I'm going to try going through the process using APK Manager on a Windows desktop I have access to. Step-by-step instructions will be in the post below.
Step-by-Step for Windows
You will need the java jdk installed and ADB set up for this to work.
download APK Manager and extract it to you preferred location
this guide will use C:\apk_manager_4.9
run C:\apk_manager_4.9\Script.bat
select option 0 to adb pull
where = /system/framework/android.policy.jar
stored name = android.policy.jar
current project = y
select option 9 to decompile
minimize Script.bat window
use Notepad++(or your preferred editor) to open:
Code:
C:\apk_manager_4.9\projects\android.policy.jar\smali\com\android\internal\policy\KeyguardViewMediator.smali
find ".method public pokeWakelock()V" NOT ".method public pokeWakelock(I)V"
inside the method, find the two lines starting with "const/16 v#" followed by a hex value(0x####)
the second(0x1388=5000ms=5s) is the default timeout unless a hardware keyboard is open, in which case the first(0x2710=10000ms=10s) is used
the values are 16-bit signed integers so the highest either can be set is 0x7FFF=32767ms=32.767s (Your screen will not wake up if set higher)
use this dec->hex convertor to determine the hex equivalent of your desired ms timeout
modify the hex values to your liking, save the file, and close Notepad++
return to the Script.bat window
select option 11 to compile
system apk = y
additional files = n
select option 8 to adb push
where&name = /system/framework/android.policy.jar
select option 24 to quit
open a command prompt to run these commands:
Code:
adb shell chmod 644 /system/framework/android.policy.jar
adb reboot recovery
in recovery,wipe dalvik-cache & cache, then reboot
Done!
All GOOD! Thanks for your hard work on figuring all this out for windows..it really wasn't hard at all once I had the right set of instructions haha
The only thing I've noticed is that the "screen off animation" does not work now - I have checked and unchecked it and its still not working..its really no biggie but just thought I'd say in case you want to play around with this mod more.
thetornado said:
All GOOD! Thanks for your hard work on figuring all this out for windows..it really wasn't hard at all once I had the right set of instructions haha
The only thing I've noticed is that the "screen off animation" does not work now - I have checked and unchecked it and its still not working..its really no biggie but just thought I'd say in case you want to play around with this mod more.
Click to expand...
Click to collapse
I'm glad we finally got it figured out for you. I have the screen animation turned off on my Eris so I didn't notice this broke it. I'll look into it and see if I can figure anything out. The first thing that comes to mind is that the screen off animation could somehow be dependent on the AWAKE_INTERVAL_DEFAULT_MS variable. As I found when first looking at this mod, changing the variable won't actually affect the value wherever it is used since the package is already compiled. So if the animation does use that variable in some way, we'll need to find where that happens and change the value there.

Fix for trouble installing DSXIDA'a kitchen [Windows]

This is a problem i encountered while installing android kitchen, i searched a lot and found many people had this same issue where the kitchen would say Java not found, but when done editing the bash_profile (fix by dsixda for java not found error) cygwin would come up with an error with a bunch of chmod command not found bla bla and that application clear not found.
So heres a simple fix, follow these steps;
1)go to my computer>system properties from the top menu>advanced system settings from sidepanel>open advanced tab
2)at the bottom click on environment variables> the add a new USER variable, and enter the following inside:
Variable name : path
Variable value : C:\Program Files\Java\jdk1.7.0_03\bin;
replace the bold part with your version of JDK (check from program files), and make sure ur directory is same, if its not then change it.
Now run cygwin, then try to open the menu and VOILA!
zeeshanhassan nice post. is it you zeeshu007 ????
this is wrong section to post this.
mor_1228 said:
zeeshanhassan nice post. is it you zeeshu007 ????
this is wrong section to post this.
Click to expand...
Click to collapse
nope this my first account, and i thought the kitchen is related to rom making so i put it in development section
not worked

[Q] ubuntu 12.10 flashtool

I installed ubuntu 12.10 as my only OS now my question is can I use Flashtools? following various guides I found a wild where he said that Flashtools of ubuntu did not work for flashing the kernel, and if so do I have to install windows?
I downloaded Flashtools for ubuntu I extracted the folder but I can not start the program can anyone tell me how to do?
when i try to open flashtools answer me thisView attachment 1504335
I do run but nothing happens
Flashtool works just fine with any linux distro, so does fastboot which u can use to flash kernel.
I'm using debian unstable and both working great.
Anyway u should atleast explain what does the error in screenshot mean, in english.
ubuntu asks me how to open the file asks me if I run it in terminal or run normally, but nothing happens in any of the ways
try run it directly in terminal. by the screenshot it should be
Code:
cd ~/FlashTool
./FlashTool
I think the problem is java....View attachment 1504353
you need to take it from oracle.com and install it for your distro.
it should set your java_home by default and if not put it into ~./bashrc
exactly. its java. flashtool needs java installed, either oracle jdk or openjdk.
with regard to the recognition of the device in fastboot I need the drivers? for ubuntu I do not know where to get the driver for my xperia active
no. u dont need driver whatsoever for linux. just need adb and fastboot to set up correctly.
u should install android sdk, it'll pull adb and fastboot too.
then just add path to adb and fastboot into your bashrc, add semc usb device id in udev rules, reboot once and u good to go.
still nothing I'm doing something wrong but I do not understand what
[email protected]:~$ cd ~/FlashTool
[email protected]:~/FlashTool$ ./FlashTool
Not running as root but Sony/SonyEriccson Vendor ID found on your udev rules
if Flashing didn't work well, run flashtool as root
No Java in specified path in JAVA_HOME=/usr/lib/jvm/java
Set the variable to a valid Java installation
[email protected]:~/FlashTool$
did u install java?
try installing openjdk. its in official ubuntu repo. oracle java is unsupported anymore.
btw u should logout and relogin back after installing openjk for its path in bashrc to be effective.
jfox22 said:
still nothing I'm doing something wrong but I do not understand what
[email protected]:~$ cd ~/FlashTool
[email protected]:~/FlashTool$ ./FlashTool
Not running as root but Sony/SonyEriccson Vendor ID found on your udev rules
if Flashing didn't work well, run flashtool as root
No Java in specified path in JAVA_HOME=/usr/lib/jvm/java
Set the variable to a valid Java installation
[email protected]:~/FlashTool$
Click to expand...
Click to collapse
Is java installed in "/usr/lib/jvm" ? If yes, then add the path variable /usr/lib/jvm/bin to your bash profile.
flashtool is searching for binary program named "java" in your operating system's path (ubuntu in your case) so you have to edit the path variable in your bash profile or what ever command line interpreter you use to direct it to the "java" binary . Normally java binary and it's associated binaries are present in the bin directory inside your java installation directory so you have to add the path variable which directs the interpreter to look for binaries inside the java's bin directory where java's binaries are present.
Sent from my ST15i using xda app-developers app
I installed openjdk View attachment 1504457
but I have always this View attachment 1504458
Open your home directory and press ctrl+h to see hidden files . Can you see files called .profile and/or .bash_login or files which start with" .bash" ? Tell me what files are present.
Sent from my ST15i using xda app-developers app
what is wrong with the error is that it cant find any java installed in your path.
openjdk should be added to your path automatically if u installed it via apt-get, aptitude or synaptic. and again, after installing openjdk u need to logout and relogin for java path in bashrc to be effective. if still doesn't work even after relogin then try rebooting.
my bet is u doesn't even do the logout and relogin, that why flashtool whines about cannot find java path.
gouthamthemostwanted said:
Open your home directory and press ctrl+h to see hidden files . Can you see files called .profile and/or .bash_login or files which start with" .bash" ? Tell me what files are present.
Sent from my ST15i using xda app-developers app
Click to expand...
Click to collapse
View attachment 1504473
an0nym0us_ said:
what is wrong with the error is that it cant find any java installed in your path.
openjdk should be added to your path automatically if u installed it via apt-get, aptitude or synaptic. and again, after installing openjdk u need to logout and relogin for java path in bashrc to be effective. if still doesn't work even after relogin then try rebooting.
my bet is u doesn't even do the logout and relogin, that why flashtool whines about cannot find java path.
Click to expand...
Click to collapse
I also tried to reboot but nothing.
an0nym0us_ said:
my bet is u doesn't even do the logout and relogin, that why flashtool whines about cannot find java path.
Click to expand...
Click to collapse
That might be the problem but I've edited the path side by side and accessed binaries from terminal (which were not accessible before editing the path) without reboot or relogin.
Sent from my ST15i using xda app-developers app
---------- Post added at 03:21 PM ---------- Previous post was at 03:18 PM ----------
jfox22 said:
View attachment 1504473
Click to expand...
Click to collapse
Open .profile and read the first few lines. Does it say anything about "this profile will not be effective if .bash_login or .bashrc is present" or something like that?
Sent from my ST15i using xda app-developers app
run these in terminal and paste the output here
Code:
sudo update-alternatives --config java
Code:
sudo update-alternatives --config javac
Code:
sudo update-alternatives --config javaw
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"

[HOW TO]Sign Your Apk For Google Play

Hey Guys,
I found it very hard to find this method on the net. I looked for around 12 hours (over a period of 2 days). But here it is!
This method is very helpful if you need to increase the length of your signature on your apk. As Google Play has a minimum length of validity for signatures.
This tutorial contains some knowledge from other websites and some from my own self. Please feel free to use my hard work below. But try to reference me if you can. Thanks!
First of all,
jarsigner and keytool are .exe files that help create your "signed" application for release to the market to prevent fraud.
1.
Make a folder somewhere called "keytools" and make a folder in that called "key"
2. Now move your apk file to the folder keytools.
(Not inside any other folders)
3. Check
"C:\Program Files\Java\jdk1.7.0_11\bin" for jarsigner and keytools..
... or whatever jdk version you have
If you DONT have it install the following: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
4. open cmd.exe,
5. cd your way to where you have your keytools folder...
I had to do.. cd desktop, and to keytools to get to C:\Users\Matt\Desktop\keytools\
In this directory is you apk file which we will manipulate.
Now add the directory C:\"Program Files"\Java\jdk1.7.0_11\bin\ or something like that to PATH in Environment Variables.
Directions on how to do this can be found here: http://www.computerhope.com/issues/ch000549.htm
type the following now (or something similar to my example)
keytool -genkey -alias xda.keystore -keyalg RSA -validity 20000 -keystore keys/xda.keystore
Then you will have be presented with:
Enter keystore password: (type in a password you will use)
Re-enter new password: (type in same password here)
What is your first and last name? Matt <LAST NAME HERE>
What is the name of your Organization unit? (You dont NEED to type anything)
What is the name of your city or locality? <What it says>
What is the name of your state or providence? <What it says>
what is the two-letter country code for this unit? AU
is CN=Matt C=AU.....etc. correct?
[no]: yes (type yes there)
Enter key password for <xda.keystore>
<RETURN if same as keystore password>: (push enter)
6.
To add the directory of jarsigner to the PATH variable just do the steps from here: http://www.computerhope.com/issues/ch000549.htm but with the path of jarsigner. Which should be something like this: echo "PATH=/cygdrive/c/Program\ Files/Java/jdk1.7.0.11/bin:\${PATH}" >> .bash_profile
Now, type the following now (or something similar to my example) NOTE: This is all in cmd.
jarsigner -verbose -keystore key/donate.keystore -signedjar Donate_signed.apk xda.apk xda.keystore
Enter Passphase for keystore: (your password you made earlier)
DO NOT TYPE --> adding: META-INF/MINFEST.MF ....
.......
.....
...Signing: classes.dex <--DO NOT TYPE
and you're all set! you signed your apk file or whatever you wanted to create!
Congratulations.
NOW STOP BEING FRUSTRATED LIKE I WAS FOR HOURS!
Or, if your using Eclipse just right-click your project and choose Android Tools > Export Signed Application Package.. and follow the export wizard.
@M4ttz
Thanks a lot mate!!!!!!!!!
mytheme_signed.apk is created! Let's go to Google Play
EDIT
Google told me that I need to zipalign my apk file.... If I zipalign Google says that my file isn't signed!!!!

[Q] Apktool problem

I want to decompile some system apps and I can't even get apktool to work. I installed java jre and jdk both and I get the following error in cmd:
Java is not recognized as an internal or external command
So I set my environmental system variables for Java on my windows xp computer as shown below:
View attachment 2825945
But I still get the same error as before! I need someone to please help me figure this out before I get even more frustrated!
Make sure you have installed apktool correctly
Windows:
Download The Following From Here
apktool1.5.2.tar.bz2
apktool-install-windows-r05-ibot.tar.bz2
Unzip both files with winrar and put the contents (there should be 3 files) in C:\Windows
if you have java jdk installed you should be able to type apktool and hit enter at the command prompt and if installed it will give you all the options for apkool
Linux:
Download apktool-install-linux-* file
Download apktool-* file
Unpack both to /usr/local/bin directory (you must have root permissions)
Mac OS X:
Download apktool-install-macos-* file
Download apktool-* file
Unpack both to /usr/local/bin directory (you must have root permissions)
did everything still not working
I Followed this guide here which is very similiar: http://androidforums.com/esteem-all-things-root/520917-guide-how-properly-decompile-recompile-apks-apktool.html
I stopped at installing framework because CMD would not let me be able to do so!
Any other advice?
I really need to get this working!
Thanks for your help!
JT1510365 said:
I Followed this guide here which is very similiar: http://androidforums.com/esteem-all-things-root/520917-guide-how-properly-decompile-recompile-apks-apktool.html
I stopped at installing framework because CMD would not let me be able to do so!
Any other advice?
I really need to get this working!
Thanks for your help!
Click to expand...
Click to collapse
what version of apktool are you using? maybe the apktool doesn't support it.. download de jar and the appt http://forum.xda-developers.com/showthread.php?t=1755243 , open the cmd window holding shift+ right button where the apktool is placed

Categories

Resources