OK so I am running Ubuntu 9.04. I have a couple of java files that I would like to be able to run from terminal from anywhere in the system. Is this possible? Basically I don't want to have to move my target file to the folder that contains the .jar file every time I run it. Does that make sense?
Any help would be appreciated. I have been pretty much reliant on Linux for the past 3 months but I haven't figured this one out yet and it is kinda bugging me.
http://www.google.com/search?source...nG=Google-søgning&meta=lr=&aq=0&oq=linux+path
adding their dir to the path could fix that if I understand you correctly
Hello, I own an HTC Evo 4G and recently have purchased an application and downloaded it. When I located it within my Android phone I noticed it was under the extension .ipa which as I have come to find out is for Apple. Can someone inform me as to what is going on. I just wanted to pull the APK off my phone. I know how to do that, but why is it an IPA file? This also makes me question, how am I running a .ipa file?
Also, I used phsorx APK batch location and renaming tool. I copied the whole directory out from under my Android drive and it didn't locate and APK with a file name similar to that of what I was looking for.
Bottomline:
Where is the APK and how can I find it? Any help appreciated. Thanks.
I have never seen an .ipa file on my device. I think you have mistaken, maybe you have downloaded that file earlier or something like that.
RentonT said:
Where is the APK and how can I find it? Any help appreciated. Thanks.
Click to expand...
Click to collapse
Generally system apps are in /system/app/ and user apps in /data/app/. Apps installed to sdcard (using Froyo implementation) are hidden/encrypted and they're mounted to /mnt/asec* or something like that. You could check exact locations by executing "pm list packages -f" command on a device (terminal emulator) or "adb shell pm list packages -f" on a PC with SDK installed.
Awesome. Thanks Brut.All. Great APK tool by the way. I guess you're right. Somehow I must have just placed a .ipa file on my phone. My kudos to you.
So, I've got a lot to say and will try to be as thorough as possible. I will answer questions if needed to know certain issues of mine better. I'm sure I'll probably forget a couple things but will say what's going on to the best of my ability.
I'd like to say I am in a real bind and my folders are a complete mess with WAY too many tools and I don't think I need them all. But these are tools that were suggested to me or in a link containing several more tools. I am no longer going to edit APK files or do anything else till my issues are resolved and I've been given the best suggested tools that are CURRENT (please no outdated stuff). I can provide links to most of the tools or suggestions that were given to me if needed. I've bookmarked every link.
I don't know who is going to see and read this but really do hope someone can work with me on fixing up my issues I'm having with all this. Also, if this thread has responses from whomever, could you also tell me where each folders should go and what needs to have its' own folder?
Here is my current set-up:
2 folders on C:\ directory (contains: android-sdk-windows and Android folders and separate)
In android-sdk-windows\platform-tools folder it contains:
lib (folder)
llvm-rs-cc.exe
source.properties
aapt.eve
adb.exe
AdbWinApi.dll
AdbWinUsbApi.dll
aidl.exe
dexdump.exe
dx.bat
NOTICE.txt
finishedpngs (folder)
framework (folder)
SystemAppsOriginal (folder containing my original /system/app APKs from Droid 2)
projects (folder containing nothing yet but placing specific APK(s) here)
eclipse (folder)
Eclipse Workspace (folder belonging to eclipse program)
SDK (folder containing another SDK just like android-sdk-windows, don't know why I have this now)
NotePad ++ (folder)
Update Modifier (folder)
PNG Gauntlet (folder)
XMLEditing (folder when I get to editing XMLs I'll place it here for work)
xUltimate Draw9Patch (folder)
xUltimate Theme Optimizer x64 (folder)
xUltimate (folder)
xUltimate Color Converter (folder)
APK Manager (folder)
These are all on my laptop on the c:\android-sdk-windows\platform-tools folder. The reason I put them all in there is because some of them are requiring adb.exe and those 2 DLL files to be able to function on but it's not working like that. So, what I did was copy adb.exe, AdbWinApi.dll, and AdbWinUsbApi.dll into the APK Manager and Update Modifier folders so the Script.bat would work. Now I don't know if that was a good idea or not. It worked on making them operate but I'm getting errors in the APK Manager when I need to compile stuff, or adb push back to phone. It's not working correctly.
In Android folder:
PSPad (folder containing the program to read and supposedly edit XMLs)
RSDLite (goes with SBF)
SBF (contains the zip to restore my Droid 2 back to stock)
The rest are misc. stuff that's just screenshots and stuff not associated with my issues
Only success I have been able to do was run Command Prompt and do adb pull and adb push which runs through the adb.exe in the android-sdk-windows\platform-tools folder.
I had to boot into recovery via Clockwork bootstrap, unmount system and then do the adb push on one of my APK when I was finished editing just PNG image files. No .9.png image files. I hear you need APK Manager to take care of issues with that due to boundaries and chunks being lost or messed up.
I have tried several different methods. Only success was finally doing adb pull and adb push through android-sdk-windows tool but that took me ALL weekend. I'm not talking 3 or 4 hours. I'm talking from 9am to noon, lunch break, then till 3am in the morning and then repeat on Sunday morning till 2am. I DO NOT want to go through that again yet I'm still trying to sort through all this mess and eliminate tools and such and get the right things and MAKE them work according to how they are suppose to function.
I don't know if all those extra tools are suppose to be in the platform-tools or not. I don't know what else to do here. Like I said, I went through several methods but most are applied to what the dev has like for G1's and other phones. My phone is the Motorola Droid 2 A955 build.
I was able to successfully push Music.apk back to the phone and see the changes I made. I was happy. All I did was just change the colors in the PNG image files. I really want to do more than this. Even to .9.png image files, XMLs, smali and baksmali and all that and eventually get onto creating my own theme.
Also, I do have the latest version of Java. I have entered my environment variables. Check here to see what I did:
Under System variables:
Variable Name: adb
Variable Value: c:\android-sdk-windows\platform-tools
Variable Name: Path
Variable Value: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\QuickTime\QTSystem\;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jre6\bin;
My laptop build: Dell Inspiron 1525 with Windows Vista 32 bit x86
I have 3 threads at the DroidForums site but I had to edit this thread because I can't post outside links till I've posted more than 8 times. I've been a member here for a couple months, just haven't really posted much. I do more reading and researching here on the XDA forum rather than posting, which is what I've been doing for the last 3 days. If you need links to see my more thorough issues then I can provide links by PMing you with them.
Bottom line: All I'm asking is someone who knows my issues to work with me getting this mess sorted out and placing the folders in right places, getting adb to work with multiple scripts that rely on the adb.exe and those 2 dll's, and pointing me to the right direction so I can get out of the woods finally.
Sorry this is long but people understand more when things are laid out more thoroughly, which lacks in a lot of these threads explaining instructions and resolving issues.
Please close this thread. I will be working on my own since I have solved most of these issues on my own and there is no response to this thread in helping.
Hi:
I've recently started to develop my own comic reader. The problem I've come up with is cbr files, which are esentially rar files. Now I know there are comic readers out there (all of them, I think) that support cbr files. So there is a way of doing this, I just can't find how.
In the rarlabs official page (search google rar addons and it's the first page) there are several options. I would like to know if I download the commandline arm unrar how I could install it on Android (I have a motorola Xoom, it would be for Honeycomb), assuming that is correct.
If this is not an option is there a command line unrar application that I could call from my own? and How would the code be (to call an external application, that is)?
If the above is not possible, what is the way to get to unrar something in android?
The only real option I've seen would be to use junrar (hosted on github)
But it seems complicated and I'm not sure it works very well as I've seen a lot of conflicting reports.
Thanks for any help!
Try http://www.all-freeware.com/results/rar/for/android to unpack rar on Android.
Success,
Senax
Hi:
I'm not exactly sure what you wanted me to try. There is nothing in that page that would allow me to uncompress a rar file on android. Only a bunch of unrar utitilities and some android things but they are not related, that is, there is nothing that says unrar that also works on android.
thanks anyway.
Unrar
great app available here: androidzoom (dot) com/android_applications/tools/unrar_dhpu.html
Cheers,
Romuloxiii
Hi:
It's seems that I didn't make myself clear.
I want to develop an android application that needs to unrar files. Is there a way to call the unrar application from my own code?
If so, can you tell me how?
Otherwise, I appreciate the effort, but I can't use that.
Thank you very much!
You can bring the unrar binary along in the /asset of your app,
on first launch copy it to your apps /file directory, chmod +x it, and use exec("sh") to unrar the files from shell.
oh, I see. I think I get the the idea but I don't understand all the instructions.
What did you mean by importing thebinary on my asset?
If I do the step above why do I need to copy the binary on first launch?
Don't I need root privileges too chmod it? And how do I do it from my source code?
And finally where can I find the command line use of the application? Or is it the same as the Linux version?
I know there are a lot of questions, but please keep in mind that I'm very new at doing this.
Thanks for all the help!
You need to put it as asset to bring it along.
You need to copy it because asset files are not directly accessable.
You don't need root to chmod the file in your own directory.
You do it by using a shell from your code i.e. Process.exec("sh")
And finally you want to program the app not me,
so don't be lazy and invest some time.
Google google google google...
If there are still questions left after that, you may ask again .
Ok, I'll try it and get back to you!
Thanks!
Sorry for my lazyness, but I've been Googling for a good half hour without finding a simple 'unrar' binary executable compiled to run from terminal on rooted ARMx32 device. I don't want bloated GUI APK's or libraries for development implementation, but just the plain command line interface executable. Anyone, please? It's a pity they haven't baked it into Busybox as an applet, IMO.
Hello all,
I have a Galaxy S10 and i'm browsing the file system a bit and i've come across a couple file paths which all contain the same information. The file paths are the following:
/data/data
/data_mirror/data_ce/null/0/
/data/user/0
From what I can tell these all share the same files and I dont understand why the data needs to be duplicated that many times. Surely it would make sense to just have the /data/data aspect only unless these files are more like placeholders?
If i'm wrong can someone explain the difference between them and why Android OS acts like this?
Thanks