How to create .obb file for my android project? - android

i am creating a app and my app size 80 mb and i want to make .obb file for publishing app on play store. i tried google and also try This but not getting please give me proper way for how to create .obb file.

You Just Write the similar code like this in command prompt and get the .obb file in tools folder>>
C:\>C:\Development\Android\adt-bundle-windows-x86-20140321\sdk\tools\jobb -d C:\
Myworkspace\ImageTargets\assets\ -o Imagetargets.obb -k globe -pn com.ib.globeap
p.activity -pv 200 -v

Related

Where is Android SDK download cache folder?

The goal here is to copy and paste downloaded Android SDK packages to multiple computer and run ./sdkmanager 'xxx' to install them locally (with no access to dl.google.com).
I tried ~/Library/Android/sdk/temp and ~/.android/tmp with no luck.
On linux it is in /tmp/PackageOperationX where X is a number.
MacOS
commandline sdkmanager
the temporary files will be downloaded to /private/var/folders/ when regular professional users couldn't comprehend how this decision can be made by developers of this commandline tool and MacOS, and still not informing their users in documentation
For example, to find out the file while sdkmanager is downloading the package system-images;android-29;google_apis;x86_64, with zip file named "x86_64-29_r11.zip":
lsof | grep x86_64-29_r11.zip
## output
java 5422 username 35w REG 1,7 408368096 19062984 /private/var/folders/t7/z9lknwrd31q55t9m7s4qhm140000gp/T/PackageOperation02/x86_64-29_r11.zip
Using find also can work, but if you are searching for / it will take longer, so you can try on /private directly
sudo find / -name "*x86_64-29_r11.zip*" 2> >(grep -v 'Operation not permitted' >&2)
sudo find /private -name "*x86_64-29_r11.zip*" 2> >(grep -v 'Operation not permitted' >&2)
Source for coming up with the solutions:
See what process is using a file in Mac OS X
How can I exclude all "permission denied" messages from "find"?
Android Studio SDK Manager
the location for temporary storage of packages downloaded is $HOME/Library/Android/sdk/.downloadIntermediates and will be moved to $HOME/Library/Android/sdk/.temp/PackageOperation0X for extracting operation where X is a number. These packages will be deleted once they are extracted to their respective directories.

How to get apk expansion files after installed application?

I use livecode for developed. My project larger than 50MB. It's can't publish to google play store. So I build standalone application without resource files. And I create obb file with jobb.
Step by Step
My project package name is com.tester.guru Version name is 3.0 and Version code is 3
I set signing to "Sign for development only" (for simple install application to my device.)
I set install location to "Allow External Storage"
I create obb file with jobb. Command below:
jobb -d resources directory -o main.3.com.tester.guru.obb -k guruasean -pn com.tester.guru -pv 3
Now I have 2 files:APK file and main.3.com.tester.guru.obb file
Copy the installation file (.apk) to the SD Card and Install it.
Copy the obb file to /Android/obb/
After I do 7 steps and run application. It not show image because image wrong path.
How do I do for solve this problem.

How to unzip, edit and zip an android apk

I have an android apk and I deleted my source code and dont have the project again, I want to change the version code of the old apk. my question is how do I unzip and repack the apk so I can use the. am using a mac system. I saw so many things for windows but i couldnt find for mac.I need help please
unzip apk files
The simplest method is executing unzip command:
unzip xxx.apk -d xxx
A directory xxx will be generated to store unzipped files.
Actually, .apk files are same as .zip files. Execute command file XXX.apk to see that.
get readable text files from apk
If you want readable text files such as the manifest file, I would suggest you to use the apktool. We could install the apktool easily with Homebrew:
brew install apktool
then get the readable text files:
apktool d xxx.apk
after the previous command, a xxx directory contains readable text files and others would be there.
edit zip files
If you want to edit a zip file in place, the Keka might be a good option.
To give a complete answer for unpacking, editing and packing on Mac:
Unpacking / Unzipping
As Liu Tao stated, the easiest way to unpack a *.apk file on mac is to use the following command:
unzip xxx.apk -d xxx
This is because an *.apk file is nothing else than a zip file. Again, as Liu Tao stated, this can be found out with the file command.
file xxx.apk
Which will show an output that looks something like this:
xxx.apk: Zip archive data, at least v2.0 to extract
Editing
I think this is self-explanatory. Go into the folder to which you exported the *.apk contents and edit them as you would usually do.
Packing / Zipping
On Mac, this is also quite straight-forward.
You can use the zip command to pack all the files back into an *.apk file.
zip -r xxx.apk xxx/
You want to use APKTool. It will handle the unzip and rebuild for you: http://ibotpeaches.github.io/Apktool/

Modified and re-signed app doesn't retrieve file names

I have "updated" an old Mac to Mac OS X 10.7.5. I have installed JDK 1.7.0_72 on this Mac. I'm trying use a LiveCode standalone application on my old Android tablet with Android version 2.3.3.
The unmodified standalone, built with the option "sign for development only" runs fine on my tablet, but video won't display.
First, I built the app for Android, using LiveCode 6.6.2 for Windows. Then I copied it over to my Mac. I used
$ java -jar apktool.jar decode /Volumes/Macintosh\ HD/Users/User/Desktop/apk\ tool/MyApp.apk app
to decompile the apk file. It appeared in a folder with the name "app" in my Home directory, with subdirectories:
app
AndroidManifest.xml
apktool.yml
assets/
doc/
links.txt
pic/
vid/
Demos/
Examples/
Other/
Simple Animation.mp4
Vimeo Pro Example.html
Tutorials/
SQL.html
build/
lib/
res/
smali/
The contents of the assets folder is included by LiveCode's standalone builder. I created all of these files and folders during project development. The folders in the vid folder contain several HTML files and one mp4 file. I have listed only a few of the html files in the file tree.
I changed the file AndroidManifest.xml by replacing the line
<application android:label="MyApp" android:debuggable="false">
with
<application android:label="MyApp" android:debuggable="false" android:hardwareAccelerated="true">
After this, I rebuilt the app, using apktool again. I used sudo, because here it said I had to use sudo:
$ sudo java -jar /Volumes/Macintosh\ HD/Users/User/Desktop/apk\ tool/apktool_1.5.2.jar b -a /Volumes/Macintosh\ HD/Developer/android-s-d-k-mac_x86/platform-tools/aapt
It appears that if you use sudo once, you have to use sudo all the time. So, now I had to sign it using
$ sudo jarsigner -verbose -sigalg SHAwithRSA -digestalg SHA1 -keystore /Volumes/Macintosh\ HD/Users/User/app/dist/MyApp.apk myalias
I verified that it was signed and changed the name of the file then aligned the file
/Volumes/Macintosh HD/Users/User/app/dist/MyApp.apk
to
/Volumes/Macintosh HD/Users/User/app/dist/MyApp_unaligned.apk
I aligned the file using
$ zipalign -v 4 /Volumes/Macintosh\ HD/Users/User/app/dist/MyApp_unaligned.apk /Volumes/Macintosh\ HD/Users/user/app/dist/MyApp.apk
This file should work on my Android tablet. I'm able to start and run the file, but my app doesn't see any of the files in the sub folders of folder vid/, except for Simple Animation.mp4. However, it does notice that there are files. A repeat loop that checks all folders in folder vid/ for files creates a list, but the lines in the list are empty, one line for each file, meaning that it can't figure out what the names of the files are. Needless to say, I checked that all files are included in the new apk file.
What may cause this?
If you wonder about the file paths: I started my Mac from an external disk and used the files on the internal disk. So, /Volumes/Macintosh HD isn't the system disk here.

Continuos Test Flight upload .apk Android apps

I'm wondering if there is some kind of solution like this one for iOS for Android, in order to upload .apk to Test Flight:
Is there any automatic Testflight upload script on application archiving?
So we need to upload .apk files to test Flight repository using some kind of script from command line.
Many thanks
Check out the Upload API from TestFlight.
You can create some sort of batch script you can execute at certain times.
For example:
curl http://testflightapp.com/api/builds.json
-F file=#testflightapp.apk
-F api_token='your_api_token'
-F team_token='your_team_token'
-F notes='This build was uploaded via the upload API'
-F notify=True
-F distribution_lists='Internal, QA'

Categories

Resources