real.apk = what I want to install
front.apk = just a "front"
Is it possible for front.apk to simply have a link to the real.apk within its resources, to install real.apk?
For example, I install front.apk, and it just has instructions, and a clickable box that says "Install 1: <asdf>"-
*It runs real.apk in the resources, and starts the installation process (asks the user for permission, etc.)
I'm wondering because I want to make a "compilation" of .apks, and one "master" .apk file. If this is not possible, is there any other way to do this?
I tried one method, and it didn't work at all:
*Using PhoneGap, put the real.apk inside the www directory (with the index.html), and create a code within the index.html that references to the real.apk (Install 1: <asdf>), and it didn't work at all...
dam you way smarter than me on that
By "resources", I mean the real.apk is within the front.apk, and I physically don't have to download anything more than just front.apk (as real.apk is included inside front.apk).
So I can just have one "master" 'front.apk' file (that's several tens of megs probably) all with click-to-install .apks.
Note: I don't care if it has to pop up permissions for every "apk" installation. I just want to have ONE master .apk file. Would this be, at all, possible? If not with simple .APKs, would it be possible to decompile APK -> .JAR -> .JAVA and somehow put all this inside one "master" file using eclipse?
Related
I can add a jar file into the apk package, however if multiple apps are using the same jar, ideally it should placed under /system.
The jar file is not really activities (so using intents/providers is not applicable here) but may contain some commonly utils by my apps.
This is somewhat similar to OSGI, but more modest.
Any pointers ..
-Dan
I am using a Samsung Focus S, I have tried the Advanced Config, Registry Editor and everything and it won't save my settings. I am interlop and chevron unlocked
Welcome to the wonderful world of AT&T! Why would you ever want to do that? <eye-rolling goes here>
That said, while AT&T does appear to cap the recipients themselves, you can certainly try increasing that limit on the phone. To do that, you'll need to edit the registry, as you appear to have figured out.
The apps you mention (in fact, pretty much any interop-requiring app) won't work on a Focus S (or any other second-gen phone) right now - Samsung changed the drivers used for high-privilege access to apps, and the apps written for first-gen phones can't use them.
Instead, you'll need to use provxml, deployed using ZIP path traversal and processed using the Diagnostics app (basically, what you did for WindowBreak, but with your own file). First, you'll need to build the provxml file. If you look at the Windowbreak zip file (I suggest you use 7-Zip, as it will keep the .. folders correctly) you'll see that it has an xml file buried in it, which contains registry "provisioning" commands (the format is called "provxml"). Alternatively, you can look up the format for registry provisioning directly from MS: http://msdn.microsoft.com/en-us/embedded/gg155017
OK, so you've created your provxml file (or edited an existing one) to update the correct registry value with the data you want to use. Next, get that file onto the phone. You can either put it in a ZIP file that you email to yourself, or put it in a XAP file (which is just a renamed ZIP, again 7-Zip is your friend here as it will automatically recognize the archive format) and install that file to the phone. In both cases, it'll need to be in a folder called something like "..\..\..\..\..\provxml\" (if you look at the Windowbreak zip file, you'll see this).
Then, just follow the same instructions you used for WindowBreak but select your own file instead. The registry should be changed!
GoodDayToDie said:
Welcome to the wonderful world of AT&T! Why would you ever want to do that? <eye-rolling goes here>
That said, while AT&T does appear to cap the recipients themselves, you can certainly try increasing that limit on the phone. To do that, you'll need to edit the registry, as you appear to have figured out.
The apps you mention (in fact, pretty much any interop-requiring app) won't work on a Focus S (or any other second-gen phone) right now - Samsung changed the drivers used for high-privilege access to apps, and the apps written for first-gen phones can't use them.
Instead, you'll need to use provxml, deployed using ZIP path traversal and processed using the Diagnostics app (basically, what you did for WindowBreak, but with your own file). First, you'll need to build the provxml file. If you look at the Windowbreak zip file (I suggest you use 7-Zip, as it will keep the .. folders correctly) you'll see that it has an xml file buried in it, which contains registry "provisioning" commands (the format is called "provxml"). Alternatively, you can look up the format for registry provisioning directly from MS: http://msdn.microsoft.com/en-us/embedded/gg155017
OK, so you've created your provxml file (or edited an existing one) to update the correct registry value with the data you want to use. Next, get that file onto the phone. You can either put it in a ZIP file that you email to yourself, or put it in a XAP file (which is just a renamed ZIP, again 7-Zip is your friend here as it will automatically recognize the archive format) and install that file to the phone. In both cases, it'll need to be in a folder called something like "..\..\..\..\..\provxml\" (if you look at the Windowbreak zip file, you'll see this).
Then, just follow the same instructions you used for WindowBreak but select your own file instead. The registry should be changed!
Click to expand...
Click to collapse
You just got a thanks and I will learn that stuff one day...
Hi all! Have been having a play with UpdatezipCreator for windows. Put all of the .apk files into a folder called:
“System”
As suggested in the UpdatezipCreator wiki. However, when I run the gapps file in clockwork Mod, it completely ignores what I have done. Also, for some reason, it places all files into a directory, one level down and the directory is called whatever I have named the .zip. is this normal or, am I missing some vital step. Would like to get this working as I would like to add missing accessibility components to the gapps file that I am using in order to get ICS talking out of the box with my Sony Xperia Pro. Am also interested in getting this going so that I can assist other visually impaired users with this. Finally, am open to creating gapps files with other methods in Windows. Thanks in advance for all help with this. It’s really appreciated!
I am newbie in Windows Phone 7 development.
I am trying to unzip a file that was downloaded to isolatedstorage in WP7.
I have tried with ShapZipLib but with no success. Does anyone have an example on how to do this in WP7?
Thanks a lot !
seems like there is no way to unzip a file in isolated storage ,but you can browse a zip file via IE........ if that zip file is on the internet
坏天使 said:
I have tried with ShapZipLib but with no success. Does anyone have an example on how to do this in WP7?
Click to expand...
Click to collapse
Use DotNetZip library, it has a SL implementation (works fine on WP7 but requires some minor tweaking).
By the way, if you have problems with SharpZipLib (also works fine on WP7 but also requires some tweaking/reassembling), I'll recommend you to learn more about WP7/Silverlight programming first. Sorry I have no time to teach you how to write programs on WP7...
WP7 actually has a Silverlight API to extract specific files from a ZIP archive directly. This is technically an undocumented use of this API, but it does work:
Uri filename, zipname;
filename = new Uri("<FILE_TO_UNZIP_FROM_ARCHIVE>", UriKind.Relative);
zipname = new Uri(@"\Applications\Data\<APP_GUID_HERE>\Data\IsolatedStore\<ZIP_ARCHIVE_NAME.ZIP>", UriKind.Relative);
Stream filestream = Application.GetResourceStream(Application.GetResourceStream(zipname), filename).Stream;
Then, you can use standard Stream functions to read the file from within the ZIP, including write it to an IsolatedStore file.
The only undocumented part of this is that you actually can pass fully-qualified paths to the Uri constructor and then open them using GetResourceStream... just so long as the Uri is constructed as Relative (even though it's not) and the file is one that the app has permissions to read (which typically means its Install directory, its data directory, and the Windows directory). The use of nested Application.GetResourceStream to read inside a ZIP file is actually documented.
I was looking for a similar topic but I did not find one. Refers to problems with running applications added to "system.img".
I bought UMIDIG S for my father-in-law. It is based on a mediatec chipset. Unfortunately, soft is tragic, and there is no full translation, so I decided to bury it a bit in "system.img".
I can easily install the file in Linux and make changes in it. I can delete applications, I can make changes in configuration files and "buikd.prop".
Unfortunately, all APK files were uploaded to "system.img" even though I set permissions 755 for directories, and 644 for directories. Although the files are root: root, after uploading such "system.img" none of these applications works for the phone. The system sees them and tries to load. Unfortunately, applications hang because of errors. The system informs that the application hangs, and does not load its window. The icons of these applications and the names do not appear either (applications have green robocik as icon, and domain name, e.g. com.android.clock ....)
I am asking for advice. How to add APK files to the unzipped "system.img" so that after packing and uploading to the phone there were no errors ???
Do you have found how add app in system.img?
It's all around, but you can replace apps with others. In the linux system, unpack the img, and mount them. Then you can freely rename files as well as move files within the .img mount point
I chose the applications or other files I did not need, and moved them to the directories (which I named my applications). If the application needed libraries, you also had to get files in a similar way, and place them in arm or arm64 directories.
Then prepared files "stuffed" with data, using the command DD. That is, dd if = (source file) of = (the recipient file at the system.img mount point).
Thanks for reply, so this only on Linux? For Windows there is something?
Markosv76 said:
Thanks for reply, so this only on Linux? For Windows there is something?
Click to expand...
Click to collapse
I do not know, I do not use Windows. Certainly you can in a similar way from BSD systems, probably from Android and MacOS. I read something that Microsoft can somehow support linux shell, but I do not know the details. You can always use some distribution that works with a pendrive.
Thanks, I will try again
Markosv76 said:
Thanks, I will try again
Click to expand...
Click to collapse
You can use Virtual Box to run a Linux distro inside Windows or you can try using Cygwin.
Sent from my LGL84VL using Tapatalk
jaroslawstrauchmann said:
I was looking for a similar topic but I did not find one. Refers to problems with running applications added to "system.img".
I bought UMIDIG S for my father-in-law. It is based on a mediatec chipset. Unfortunately, soft is tragic, and there is no full translation, so I decided to bury it a bit in "system.img".
I can easily install the file in Linux and make changes in it. I can delete applications, I can make changes in configuration files and "buikd.prop".
Unfortunately, all APK files were uploaded to "system.img" even though I set permissions 755 for directories, and 644 for directories. Although the files are root: root, after uploading such "system.img" none of these applications works for the phone. The system sees them and tries to load. Unfortunately, applications hang because of errors. The system informs that the application hangs, and does not load its window. The icons of these applications and the names do not appear either (applications have green robocik as icon, and domain name, e.g. com.android.clock ....)
I am asking for advice. How to add APK files to the unzipped "system.img" so that after packing and uploading to the phone there were no errors ???
Click to expand...
Click to collapse
did you find a solution to this? please reply if yes, I am having the same problem