[Q] Rar on android. - General Questions and Answers

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.

Related

Building and deploying from cupcake source code to my device - using Mac

Hi all,
I am trying to setup my Mac OSX (Mac Mini) to build and deploy the Cupcake source code and deploy the built images on my ADP1 device.
I must admit - I am no Linux guy, so a bit slow on understanding the various instructions.
My problem - I was somehow able to get the sources down to my Mac, and even run a successful MAKE.
But - got stuck there (could not figure out how to run the built images on the emulator).
So I decided to be brave and compile & install on my ADP1 device.
This is where I am stuck:
In the explanation at the Google site, they claim there should be a ".Repo" directory holding a file called "manifest.xml" in it, and that I should download and add to that directory a file called "local_manifest.xml".
I can not find such a ".Repo" directory, and hence - dont know where to put that file.
Any help would be highly appreciated !
Shimon Shnitzer
TAKEphONE said:
Hi all,
I am trying to setup my Mac OSX (Mac Mini) to build and deploy the Cupcake source code and deploy the built images on my ADP1 device.
I must admit - I am no Linux guy, so a bit slow on understanding the various instructions.
My problem - I was somehow able to get the sources down to my Mac, and even run a successful MAKE.
But - got stuck there (could not figure out how to run the built images on the emulator).
So I decided to be brave and compile & install on my ADP1 device.
This is where I am stuck:
In the explanation at the Google site, they claim there should be a ".Repo" directory holding a file called "manifest.xml" in it, and that I should download and add to that directory a file called "local_manifest.xml".
I can not find such a ".Repo" directory, and hence - dont know where to put that file.
Any help would be highly appreciated !
Shimon Shnitzer
Click to expand...
Click to collapse
".Repo" is a hidden folder any folder with a "." in front of it will be hidden, enable the viewing of hidden folders and you'll find it.
Thanks !
I knew I was probably missing something simple...

Project: apk2

hi folks!
i'm not a developer but sometimes i do some scripting.Now i'm working on a project that called "APK2",and i think that could be useful!
Some months ago, I thought "why don't create a package manager and a package system to install real linux packages, and not just apps? I may want to install some command-line tools to run with terminal emulator" then I wrote this script, named apk2.sh, that installs some particular packages (I wrote another script to easily create this type of packages): he simply does the apt-like un-tar in /, but it installs a config directory too, to remove the installed packages.
It supports the preinst, postinst, prerm, postrm scripts too.
Tell me if it could be interesting, and I'll put it here.
If so, I need testers
If not, simply tell me, and I give up.
so could you be able to run like air crack through debian with this or?
olvap377 said:
so could you be able to run like air crack through debian with this or?
Click to expand...
Click to collapse
I could be able to run it on Android if someone can port all the libs to armv5e
I know, you have to do the porting in order to run it, but for example if there is the package for debian armv5 I think it should work if you take all the deps from the repo (may need some repacking, just to remove the CONTROL folder, and maybe to add the file needed to uninstall and various preinst, postinst etc. ).
And you don't need to run a debian or an ubuntu on Android, that's not really fast.
What do you think?
i think that this sounds really good and if it worked fully it would be a major addition to android development im hoping youll continue with this
olvap377 said:
i think that this sounds really good and if it worked fully it would be a major addition to android development im hoping youll continue with this
Click to expand...
Click to collapse
Thank you!
Any tester? I attach the scripts to now how apk2 works, just run it without any parameter, and it will show you
The other script it's simple to use, you just have to run it once to create in your home the basilar directory tree, you have to complete it and put the files in it, then you just have to put your preinst-postinst-prerm-postrm scripts in the ~/yourpackage/system/etc/apk2 directory, if you have some.
Then run the script again, insert the same package name, and here we are! The package is build! It's in the packagename directory in your home, in .apk2 and in .tar.gz, if you have to edit something do it on the tar.gz, and then change the extension in .apk2
PS: rename the files *.sh.txt into *.sh, because this forum doesn't allow .sh attachments...
xela92 said:
Thank you!
Any tester? I attach the scripts to now how apk2 works, just run it without any parameter, and it will show you
The other script it's simple to use, you just have to run it once to create in your home the basilar directory tree, you have to complete it and put the files in it, then you just have to put your preinst-postinst-prerm-postrm scripts in the ~/yourpackage/system/etc/apk2 directory, if you have some.
Then run the script again, insert the same package name, and here we are! The package is build! It's in the packagename directory in your home, in .apk2 and in .tar.gz, if you have to edit something do it on the tar.gz, and then change the extension in .apk2
PS: rename the files *.sh.txt into *.sh, because this forum doesn't allow .sh attachments...
Click to expand...
Click to collapse
in non-linux speak (layman's terms), what could i do with this...my interest is peaked
what are some "real linux packages" that one might want
tnpapadakos said:
in non-linux speak (layman's terms), what could i do with this...my interest is peaked
what are some "real linux packages" that one might want
Click to expand...
Click to collapse
i.e., the one olvap377 mentioned: air crack (I think it's possible).
or, we can run every app that does not need X server.
I created some demo packages (containing 2 scripts), one is SwapTools, and lets you enable/disable swap with 2 simple cmds (swap-enable and swap-disable); at the first run it collects some info, like the swappiness and the swap partition, then it saves the conf in a file (using swap-disable with --remove-conf will remove the conf file).
Another one I created is remount: you can remount your /system partition rw or ro just by typing on a terminal emulator
Code:
remount rw
or
Code:
remount ro
But you can try to use other appz compiled for armv5 processors, like all the debian apps, except for the one with GUI (we run on framebuffer, no X server :/ )
PS: I attach the pkgs, I added the .zip extension, just rename it in pkgname.apk2
Honest question: Why reinvent the wheel? Other embedded Linux projects have used ipkg to good effect, or its close relative opkg (refs from same link) which is used by Openmoko. A port of this to Android systems which have uClibc should be nearly trivial.
xela92 said:
i.e., the one olvap377 mentioned: air crack (I think it's possible).
or, we can run every app that does not need X server.
I created some demo packages (containing 2 scripts), one is SwapTools, and lets you enable/disable swap with 2 simple cmds (swap-enable and swap-disable); at the first run it collects some info, like the swappiness and the swap partition, then it saves the conf in a file (using swap-disable with --remove-conf will remove the conf file).
Another one I created is remount: you can remount your /system partition rw or ro just by typing on a terminal emulator
Code:
remount rw
or
Code:
remount ro
But you can try to use other appz compiled for armv5 processors, like all the debian apps, except for the one with GUI (we run on framebuffer, no X server :/ )
PS: I attach the pkgs, I added the .zip extension, just rename it in pkgname.apk2
Click to expand...
Click to collapse
thanks dude
olearyp said:
Honest question: Why reinvent the wheel? Other embedded Linux projects have used ipkg to good effect, or its close relative opkg (refs from same link) which is used by Openmoko. A port of this to Android systems which have uClibc should be nearly trivial.
Click to expand...
Click to collapse
I have also an Openmoko phone
I know very well ipkg/opkg, it could be interesting a porting, but I thought it was better to create a little lighter script to do it, because 1. a script that uses sh is usable in every system, you can either to install armv5e pkgs, or any armv* pkg, you have just to change some little things; 2. I don't know how to port, and I'm not able to do programming.
If you are interested and know how to do a porting, it could be very useful, because opkg has really lots of functions...
I just did what I could
xela92 said:
I have also an Openmoko phone
I know very well ipkg/opkg, it could be interesting a porting, but I thought it was better to create a little lighter script to do it, because 1. a script that uses sh is usable in every system, you can either to install armv5e pkgs, or any armv* pkg, you have just to change some little things; 2. I don't know how to port, and I'm not able to do programming.
If you are interested and know how to do a porting, it could be very useful, because opkg has really lots of functions...
I just did what I could
Click to expand...
Click to collapse
Ahh, okay, I see what you mean. Fair enough; I haven't seen your work so far, I was just concerned you were doing unneeded work. 'Course sometimes it's good to do that for the learning experience.
I don't have a full build setup for Android, so I can't recompile (I do have a full build setup for building Optware packages, but that's not quite the same), but I believe most custom ROMs ship uClibc. I'm not familiar enough with uClibc to know if you need to build against an exact version, though you could copy opkg from your Openmoko phone for the heck of it and see if it runs
olearyp said:
Ahh, okay, I see what you mean. Fair enough; I haven't seen your work so far, I was just concerned you were doing unneeded work. 'Course sometimes it's good to do that for the learning experience.
I don't have a full build setup for Android, so I can't recompile (I do have a full build setup for building Optware packages, but that's not quite the same), but I believe most custom ROMs ship uClibc. I'm not familiar enough with uClibc to know if you need to build against an exact version, though you could copy opkg from your Openmoko phone for the heck of it and see if it runs
Click to expand...
Click to collapse
Ya mean, copy the binary??? If so, it won't work of course, because the architecture of the openmoko processor is armv4t, it wouldn't see my binary
Nethertheless, if someone is interested
PS: please, could someone test my scripts? Thank you dudes
xela92 said:
Ya mean, copy the binary??? If so, it won't work of course, because the architecture of the openmoko processor is armv4t, it wouldn't see my binary
Nethertheless, if someone is interested
PS: please, could someone test my scripts? Thank you dudes
Click to expand...
Click to collapse
Heh, oh, older ARM core. Not paying attention. I will now stop hijacking your thread
olearyp said:
Heh, oh, older ARM core. Not paying attention. I will now stop hijacking your thread
Click to expand...
Click to collapse
No problem, man
No testers?
Please give me a feedback. If u want, I can make some apk2 by debs for armv5... Then I accept hints like "howto manage dependencies", 'cause I've no ideas...
"Tester"
xela92 said:
Please give me a feedback. If u want, I can make some apk2 by debs for armv5... Then I accept hints like "howto manage dependencies", 'cause I've no ideas...
Click to expand...
Click to collapse
Hi I have and HTC Hero from Sprint, I'm not a linux power user but I spent lots of time in my computer running Ubuntu just for 2 big reasons 1 freeware and 2 it has the best an simplest packet manager... I love deb files that installs like any .exe win programs I love that! I'm son not a coder and have little to no skills under Linux shell I use my sudo nautilus commands and so because I need it but I hate to untar or tar gz crap... for me that it old and useless some linux power user may get offended by that comment but hi times changes we love GUI... if you manage to post prints screens or a word open office or PDF documentation dummy proof I'm very up to be a Happy tester... the other thing I'm a Digital Graphic Designer if you need some design for a GUI and can try to help you in making and eye candy app...
Here it the way I will love to see grow this project... finding a way to installed it as an apk file like others in the android market so users can install the app easy then...in top of that a simple GUI to browse to the SD card in order to get the apk2 file... you where talking about not being able to run programs that has GUI that it is sad but still interesting but a lot of work to do without a good community because that means that all GUI may need to be re-design to the different resolution on the phones and be touch friendly...
I'm not sure if I'm helping at all but I love the big picture behind your project...
I'm porting opkg on Android, but i'm can't tell that's a trivial task )))
i also wrote simple howto "building and porting linux apps for android from scratch", but on russian. If needed i can do some translating and put here too.
Also may be we can open project for buildroot-like framework for android and opkg's repository. In my how-to i'm use crosstool-ng + gcc + uClibc.
XVilka said:
I'm porting opkg on Android, but i'm can't tell that's a trivial task )))
i also wrote simple howto "building and porting linux apps for android from scratch", but on russian. If needed i can do some translating and put here too.
Also may be we can open project for buildroot-like framework for android and opkg's repository. In my how-to i'm use crosstool-ng + gcc + uClibc.
Click to expand...
Click to collapse
Wow! Please do some translating!
But, when you finish the porting, how will you manage to port the packages?
Will you use the debian pkgs changing the extension? Would it work?
Thanks a lot!
No, we want to create only android repository of packages, based on opkg (ipkg)
for arm, mips and others platfofms.

[Tool][Drag&Drop apk installer][All devices][Windows+Linux+Mac][Java]

I added a DONATE button... my HTC Magic device was stolen.. i need a new one for testing...
Once i have enough for it i will remove the donate button :0)
Now with Mac support :0)
The idea is basic... start the application and drag & drop all your .apk files and they will get installed on your device.
It will accept multiple files, multiple folders or a combination... the app. will automatically pick up any file with the extension .apk or .APK... so just simply drag&drop.
Or you can just double click on any .apk file and the app. will install it for you without the graphical part starting up.
You can follow the progress on the app. and/or find a log.txt inside the folder "Logs". Just make sure to extract the application to a folder where you have write permission or there will be no log files!!!!
A log will be made regardless of the graphical part starting up or not.
Do not forget to give it time to install or the log will be incomplete.
If you want the "-r" flag set then check the comboBox named doReInstall.
The flag "-r" will basically install the app even if it is already installed, but will not disturb the app's settings.
See the adb doc for more info.
DO NOT TOUCH THE "Tools" AND "Logs" FOLDERS....
NOR SHOULD YOU MOVE/TOUCH THE ".bat" OR ".sh" FILES (unless you KNOW what you are doing).
Windows:
Double click on the "AppInstaller.jar" file or on the "WindowsRunMe.bat" to start the graphical app.
If you want the .apk double-click feature do the following:
1)Right-click on any .apk file and choose "properties".
2)Under "Opens with" row choose "change".
3)Navigate to where the "WindowsRunMe.bat" is located and select it.
4)Choose "ok" then "Apply".
5)Enjoy :0)
Remember that the log files will still be under the "Logs" folder.
You want the reInstall-feature when you use the double clicks? Then right-click on the .bat file and choose "edit".
Change "DOREINSTALL=false" to "DOREINSTALL=true". Save!
That's it :0)
Linux(Ubuntu running gnome desktop/nautilus) :
DO NOT START THE APP WITH DOUBLE CLICK...IT WILL NOT LOAD CORRECTLY.
ALWAYS USE "LinuxRunMe.sh" SCRIPT.
REMEMBER TO GIVE THE SCRIPT EXECUTE PERMISSION :0)
If you want the .apk double-click feature do the following:
1)Right-click on any .apk file and choose "properties".
2)Under the "Open with" tab choose "add".
3)Choose "use custom command" and navigate to where the "LinuxRunMe.sh" file is located and select it.
4)Make sure that the .sh file is highlighted under the "Open with" tab.
5)Enjoy :0)
Remember that the log files will still be under the "Logs" folder.
You want the reInstall-feature when you use the double clicks? Then double-click on the .sh file and choose "Display".
Change "DOREINSTALL=false" to "DOREINSTALL=true". Save!
That's it :0)
MAC:
I have no idea, but i bet that the linux way should work :0)
Can somebody confirm?
Hope that you will like the work.
Don't forget to say thanks :0)
Also check my signature for more tools
Mac users!
I have no mac... so i can not test the app...
Please feel free to confirm it's working :0)
The app is in java, so it should run on all platforms :0)
ALL FEEDBACK ARE WELCOMED...
If you get/find any bugs, post the log file here or send it to me in a PM.
Then i can debug it :0)
I tested it on both linux and windows(xp + 7). It was working fine.
The adb binary are inside the Tools folder... So there is no need to set the system-path thingy..
Just to make it easier for people :0)
Again.. DO NOT TOUCH THEM NOR THE SCRIPTS.
There are much better Solutions for Windows like DroidExplorer and AndroidCommander. Dont know if they are aviable for Linux/Max.
Anyway thanks for your work =)
wow, thank you mumi.. I am truly and deeply touched..
thank you, for all your devotion and hard work. and for putting up with me and my requests.
xtcislove said:
There are much better Solutions for Windows like DroidExplorer and AndroidCommander. Dont know if they are aviable for Linux/Max.
Anyway thanks for your work =)
Click to expand...
Click to collapse
Did not know about them..
But this is a single purpose solution... INSTALL OF APK(s).
The other tools are way to cluttered and advanced...
This is simple and fast....
I like it :0)
But thx for the info... i can surly use them for more advance stuff :0)
eyegor said:
wow, thank you mumi.. I am truly and deeply touched..
thank you, for all your devotion and hard work. and for putting up with me and my requests.
Click to expand...
Click to collapse
eyegor > 650 posts
mumilover < 20 posts...
Who are doing the real work here :0)
Always show respect for people working and helping others for free :0)
Your requests are always welcomed!
Wicked stuff. Good job!
I can now integrate mac-support in next version because i found a test person...
The question is, is there anybody interested in mac-support?
nice work mumilover
will try later
yaaah.... 100 downloads :0)
Glad that people make use of it :0)
nice one mumilover! i had an error with the adb binary that came with your archive. replaced it with the current adb binary for OS X and the apk installed properly. great job!
Yes sorry... totally forgot that mac used a different adb then linux...
You can pm me your email if you want to me my mac tester :0)
excellent and thank you !
All you need is this batch file: (should work with all windows pc even 64-bit)
http://www.mediafire.com/?kce3i3249sbdtf1
it can also work with ADB over wifi with addition of:
Code:
adb connect [B]ip[/B]:[B]port[/B]
at the beginning the file.
sorry but I didn't feel like making a whole new thread just for 6 lines of post.
Well thanks for your effort...
The app does much than you batch file does.
It takes multiple files + multiple folders and the mix.
It will automatically pick up any apk file and install it.
Just read the first page again :0)
mumilover said:
Well thanks for your effort...
The app does much than you batch file does.
It takes multiple files + multiple folders and the mix.
It will automatically pick up any apk file and install it.
Just read the first page again :0)
Click to expand...
Click to collapse
Yeah I know what your app does but I didn't feel like making a whole new thread just for double-clicking APKs, I know your app does it in your own way.
Perhaps you could also incorporate it in your app so that people can also install by double-click in addition to batch installation with your app
Well... read the first page again..
I already have double click option.... even with the -r option!
Read carefully please :0)
mumilover said:
Well... read the first page again..
I already have double click option.... even with the -r option!
Read carefully please :0)
Click to expand...
Click to collapse
now i see it!
sorry
wow, that was refreshing. Anything new developing with this Tool? Before unleash the beast?
Well it did not make sense to work with it any more...
I found out that you can install apk using htc sync...
Plus i only have > 120 downloads... not worth spending more time on it...
But still no one reported any bugs :0)

Locating an APK instead of IPA.

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.

Need help modifying an APK

Hello! Sorry if this is the wrong place to post this I just registered to the forum!
To keep it short I am a frequent player of the game 'Idle Heroes' and I got the idea to take the APK, modify it (for private use of course) and give me resources in the game so I can try out different heroes etc etc.
So I read up on the APKtool and all that but I am having some trouble, I can't find the framework I need.. I am just getting errors when trying to decompile and I can't find any framwork in my phone or online to download..
Any help is appreciated! Thanks!
If it's any help I have a Galaxy S9 (not rooted)
For apk tool you need to write it in the following format in command prompt... (assuming you are using apk tool 2.2.4)
Java –jar apktool_2.2.4.jar d C:\<path to apk file>
But this would give you stuff like the android manifest. If you want the raw source code itself, you would need to use something such as dex2jar. Format is below.
d2j-dex2jar.bat C:\<path to apk file>
mohhaxs said:
For apk tool you need to write it in the following format in command prompt... (assuming you are using apk tool 2.2.4)
Java –jar apktool_2.2.4.jar d C:\<path to apk file>
But this would give you stuff like the android manifest. If you want the raw source code itself, you would need to use something such as dex2jar. Format is below.
d2j-dex2jar.bat C:\<path to apk file>
Click to expand...
Click to collapse
Thanks for your reply! Unfortunately I'm still struggling.. As you said it's the source code I am after. If you haven't played the game I'll try to explain what I am after.
Every day you get daily missions you can do, I'd like to simply change the rewards from let's say 1 summoning scroll to 1000 so that each day I can get 1000 scrolls, and I also want to change the other rewards to give me a couple of thousand gems instead of the 20 I get each day, that will give me enough to get the heroes I am after!
Would you care to help me a little more specifically on how to achieve this? Right now I have put the .apk in "C:\android\apktool" along with the apktool itself (apktool.jar).
But I don't have a .bat file, what kind of .bat file do I want to create? Also I don't have any other folders or such. And yes I have the newest version of Apktool!
No matter what I write in CMD it gives me an error, I don't have any framework files etc and I don't know where to get them.. I did also use the code you gave me (java -jar etc etc) but it also gave me errors .. If you'd like me to try something else and/or post the errors here I'd gladly do so!
Sorry for being such a noob but I have never done anything like this before, I recently started learning C++ but it's mainly simple games (for PC) in UE4 and stuff like that, but nothing for mobile.
Thanks a lot for your time!

Categories

Resources