Batch APK install script (Via USB or ADBWIRELESS) - Android Apps and Games

Extract to any folder and use
Read included README before use (For ADBWireless install method especially)
This is a bat file, can check to see if there is any virus etc.
Features-
INSTALL APK (Batch) USING USB
INSTALL APK (Batch) USING ADBWIRELESS (WIFI METHOD) *Root only*
Basic usage: Move all APKs to this folder, APK clearer also included after you use this bat to allow to reuse w/o manually deleting APKS or reinstall everything
Minor update: Edited a small error in bat file.

Hi, I test it, work well by usb! thx

jason2005 said:
Hi, I test it, work well by usb! thx
Click to expand...
Click to collapse
No problem mate, glad it's usable.
Sent from my ARHD powered, HTC Desire HD

lzhikai1994 said:
No problem mate, glad it's usable.
Click to expand...
Click to collapse
Works great, but one major problem: It doesn't work when there are spaces in the filenames.
I had to use bulk Rename Utility to remove spaces from the names of my apks and then it ran perfectly.
I you have to add quotation marks "" around the apk filenames in the batch script. Also, the adb in the zip is outdated.
EDIT: I fixed it, see attached file.
All credits to @lzhikai1994

Related

[Tool] Modified Batch File For Perm-Temp-Root

Hi,
I take no credit for this work at all. See thread below for credits:-
Perma-Temp Root with *R/W* & Stable! By Eugene373
http://forum.xda-developers.com/showthread.php?t=1161283
I dont use Terminal Emulator and so have modified the batch file so as it does not install it. (See attached file). To use this modded batch file, simply replace the batch file from the download in the above thread and run as instructed.
Also, I have superuser elite and wanted to use the latest beta version. The lates beta version can be downloaded after finding it with a gogle search (if you have superuser elite and are entitled to it) and the SU file and superuser.apk files can also be replaced.
These will be updated when the Batch file is run again. If terminal emulator is already installed, it can be deleted and wont be installed again.
Cheers
I don't really see the point in this. You deleted one line from a script. This is just clutter. Honestly if other people don't know how to delete one line from a text file, they shouldn't be doing anything root-related in the first place.
Sent from my HTC Sensation 4G using XDA App
Thanks very much
tinker2000 said:
Hi,
I take no credit for this work at all. See thread below for credits:-
Perma-Temp Root with *R/W* & Stable! By Eugene373
http://forum.xda-developers.com/showthread.php?t=1161283
I dont use Terminal Emulator and so have modified the batch file so as it does not install it. (See attached file). To use this modded batch file, simply replace the batch file from the download in the above thread and run as instructed.
Also, I have superuser elite and wanted to use the latest beta version. The lates beta version can be downloaded after finding it with a gogle search (if you have superuser elite and are entitled to it) and the SU file and superuser.apk files can also be replaced.
These will be updated when the Batch file is run again. If terminal emulator is already installed, it can be deleted and wont be installed again.
Cheers
Click to expand...
Click to collapse
I agree that it is only a single line, but not everyone is as competent as you and I provided additional information about super user. I did this because I thought it may be of help to some people. If its clutter, I apologise...but it helped one person and so I'm happy
tinker2000 said:
I agree that it is only a single line, but not everyone is as competent as you and I provided additional information about super user. I did this because I thought it may be of help to some people. If its clutter, I apologise...but it helped one person and so I'm happy
Click to expand...
Click to collapse
Good for you then! That's the spirit, though perhaps not understood by some.
Well then how about a bat file howto guide? That would be pretty cool.
Sent from my HTC Sensation 4G using XDA App
A HOW TO guide would be outstanding, but would require more than you think. You have to consider WHERE people have stored files such as adb.exe.
Editing the BAT is simple enough...Just download it, right click, then choose edit. Remove what you need and then run. This assumes that you got the thing to work as it originally had been intended to though.
Matt

How to install Google Currents (and other apps requiring the maps framework)

I was able to install Google Currents by manually adding the framework from the gapps zip normally used by CM7 and other roms.
I've included a View attachment maps-framework-kfire.zip modified zip (maps-framework-kfire) file with only the files you need. The files are in the folders necessary inside the zip. As we can't flash zips from recovery like other devices yet (that I know of) you'll have to put the files in manually. As this uses google services you probably need to have View attachment GoogleServicesFramework.apk installed already in your /system/apps directory (to do this if you haven't either install the market which will include this step or transfer the GoogleServicesFramework.apk there and chmod to 644 like the others below [do this before you reboot as it will be required])
1. Extract the zip file on your computer
2. Copy the extracted files to your device
3. Copy com.google.android.maps.jar into /system/framework via ADB or Root Explorer
4. Chmod (long hold select file in Root Explorer and select permissions) to 644 (owner read/write, group read, others read)
5. Copy com.google.android.maps.xml to /system/etc/permissions the same way
6. Chmod that file to the same permissions
7. Restart your Fire to allow it to recognize the new framework
8. Install this APK View attachment Google_Currents_1.0.apk
9. Open the app and select your Google account to continue
This should also allow any other apps to install that require this framework.
Works like a charm, thx a lot.
Good write up. Thanks.
works very well. Good instructions.
thanks
Worked perfectly, you rock rooobbbbb, thanks a million!!
Excellent find and easy to follow instructions. Thank you!
excellent, and now OpenTable installs too! thank you!
Glasairmell said:
Excellent find and easy to follow instructions. Thank you!
Click to expand...
Click to collapse
Ditto from me!
Happy I could help guys and gals.
Sent from my Kindle Fire using xda premium
You rock dude!
done, thanks very much!!
did not work for me :-(
Followed the instructions the files are in the correct locations and the permissions are 644
When I try and install it just says not installed. Rebooted a couple times. The instructions did not seem to mention anything about the features.xml so I also tried adding that to /system/etc/ as well with 644 still no go :-( anyone else not get this to work or run into this then figure out the solution?
kernelsandirs said:
Followed the instructions the files are in the correct locations and the permissions are 644
When I try and install it just says not installed. Rebooted a couple times. The instructions did not seem to mention anything about the features.xml so I also tried adding that to /system/etc/ as well with 644 still no go :-( anyone else not get this to work or run into this then figure out the solution?
Click to expand...
Click to collapse
I accidentally included that file, I didn't need to use it myself. You could try connecting your Fire to your computer and run logcat to live view the console of the device. That's how I saw that this was needed in the first place.
Sorry, got it working, when I read the path /system/etc/permissions it wrapped in my browser and I only put the xml in system/etc so I had placed the file a level lower. So it was my bad. thanks for the info. So far I really like the app, had been using news360 but this seems a bit nicer even though its still early.
kernelsandirs said:
Sorry, got it working, when I read the path /system/etc/permissions it wrapped in my browser and I only put the xml in system/etc so I had placed the file a level lower. So it was my bad. thanks for the info. So far I really like the app, had been using news360 but this seems a bit nicer even though its still early.
Click to expand...
Click to collapse
I did this exact same thing. Thanks for posting so that I realized my error.
BONUS: Tweetdeck now installs and works!! (A couple of other apps now working via sideload: Redbox & Speedtest.net)
Great directions. Thank you for the great work!
Sent from my Kindle Fire using Tapatalk
Thank you so much!
works for me!!
xdalaw said:
I did this exact same thing. Thanks for posting so that I realized my error.
BONUS: Tweetdeck now installs and works!! (A couple of other apps now working via sideload: Redbox & Speedtest.net)
Click to expand...
Click to collapse
Oh, this is perfect. I was going to ask about this app, explicitly.
//Tapatalk.EVO3D//
thanks
it makes KF worthwhile now ...

[MOD] Email.apk With NO Security

Use this thread http://forum.xda-developers.com/showthread.php?t=1117452
and follow ftc_osiris's directions (thank him in post 5):
Run it the .bat file and type the following at the prompt when it says it can't find the email application:
SecEmail_J.apk
If necessary, the following is the name of the exchange apk (this shouldn't be required though)
SecExachange.apk
There is a thread on xda with the email policy patcher. That works for the s4
Sent from my SPH-L720 using xda premium
eclipxe said:
There is a thread on xda with the email policy patcher. That works for the s4
Sent from my SPH-L720 using xda premium
Click to expand...
Click to collapse
This?
http://forum.xda-developers.com/showthread.php?t=1117452
Are you looking for the aosp email.apk?
Sent from my SPH-L720 using xda premium
vrundmc said:
This?
http://forum.xda-developers.com/showthread.php?t=1117452
Click to expand...
Click to collapse
This one worked for me on the Touchwiz Email ON A DEODEXed Stock ROM. (I did not create the script, I just use it )
It did not work before the deodexed rom came out but that could have been a fluke (ie not sure).
Run it the .bat file and type the following at the prompt when it says it can't find the email application:
SecEmail_J.apk
If necessary, the following is the name of the exchange apk (this shouldn't be required though)
SecExchange.apk
Hope that helps you.
_______
Another note:
After you have performed this once successfully, copy the SecEmail_J.apk and SecExchange.apk from the /system/app folder on the phone to somewhere on your computer for future use.
When you go to flash a new rom, open the .zip file and drop the .apks into the /system/app folder inside the ROM that you want to install. You won't need to run the hack script or do anything special in recovery.
As long as Touchwiz is not updated, those .apk files will be usable in place of the script. (unless you get an uneditable ROM .zip).
If Touchwiz is updated in the future, the answer would be to repeat the hack process above and then get the new versions of the .apk files for future use.
As always, I hope this helps.
Let me know if anyone has difficulty.
ftc_osiris said:
This one worked for me on the Touchwiz Email ON A DEODEXed Stock ROM.
It did not work before the deodexed rom came out but that could have been a fluke (ie not sure).
Run it the .bat file and type the following at the prompt when it says it can't find the email application:
SecEmail_J.apk
If necessary, the following is the name of the exchange apk (this shouldn't be required though)
SecExachange.apk
Hope that helps you.
Click to expand...
Click to collapse
Nevermind...it worked! Thanks!!
vrundmc said:
Nevermind...it worked! Thanks!!
Click to expand...
Click to collapse
Glad it worked! I was going to post the actual files from my phone but they are over 8 MB and XDA has an 8MB limit.
Alright, I ADDED THE FILES FOR THE ORIGINAL STOCK ROM!!!!
I had to use 7zip to split the files.
Remove the .zip and the parenthetical at the beginning of the filenames, then highlight both and hit extract. (name them "Exchange_Bypass.7z.001" and "Exchange_Bypass.7z.002" )
ACTUALLY,
(remove_this_and_the_.zip)Exchange_Bypass.7z.001
and
(remove_this_and_the_.zip)Exchange_Bypass.7z.002
work just fine. In other words, leaving the leading parenthetical does not cause a problem.
A pain, I know. But all you have to do is take the extracted files and put them in the "/system/app" folder of the ROM you wish to flash.
Alternatively, if you want to install on your phone (not flash with a ROM), use a root file manager, overwrite the files already in /system/app on your phone, then set the permissions to "rw-r--r--" (I haven't tried this one to be honest, it might be better to use the hack to accomplish this.)
ftc_osiris said:
Glad it worked! I was going to post the actual files from my phone but they are over 8 MB and XDA has an 8MB limit.
Click to expand...
Click to collapse
Here is the second file
ftc_osiris said:
Here is the second file
Click to expand...
Click to collapse
I am unable to unzip the files when removing the two pieces you advise to delete. Would you mind putting the apk on Dropbox? Thank you!
I was able to re-root on MDL and install via the batch file.
Sent from my SPH-L720 using xda premium
BrandoKC said:
I am unable to unzip the files when removing the two pieces you advise to delete. Would you mind putting the apk on Dropbox? Thank you!
Click to expand...
Click to collapse
I just tested them. They worked for me so I am not sure what to do?
I updated the post above to give the exact names to use.
Exchange_Bypass.7z.001
Exchange_Bypass.7z.002
Actually, all you need to do is remove the .zip portion.
I used the zip on MDL today and had no problems.

[Q] how to fix parsing error when trying to install modified app ?

here's what I did.
I don't have a computer. I changed apk to zip and unzipped it. Then I used Axel xml/editor viewer to change things. Then saved it and compressed file to zip then changed to apk. I tried using Zip Signer from app store. I still get the same parsing error when I click app to install.
What do I do to fix it ? apk editor pro works and installs the modded app but won't load the modded app to change things again so I don't want to use that.
Anyone have an answer ?
Try this process, instead. It works famously for me.
First, copy the .apk to a safe place just in case!
1. Extract your .apk to a folder.
2. Edit what you want.
3. Open up your original .apk in an archive manager (7zip, WinRAR).
4. Navigate to the directory where your edited files will go while in the archive manager.
5. Drag-and-drop your edited files into the archiver window which has the .apk open. Click "OK" if it asks if you're sure.
6. Close that window, ADB push it to /[wherever], and install.
Done! :good:
thenookieforlife3 said:
Try this process, instead. It works famously for me.
First, copy the .apk to a safe place just in case!
1. Extract your .apk to a folder.
2. Edit what you want.
3. Open up your original .apk in an archive manager (7zip, WinRAR).
4. Navigate to the directory where your edited files will go while in the archive manager.
5. Drag-and-drop your edited files into the archiver window which has the .apk open. Click "OK" if it asks if you're sure.
6. Close that window, ADB push it to /[wherever], and install.
Done! :good:
Click to expand...
Click to collapse
I said I don't have a computer. I can't do that.
I read the problem is the apk is lot aligned. Can I run commands in a Terminal Emulator on my phone ?
1. Compress back to zip. 2 sign zip. 3 change to apk. 4 zipalign apk.
How do I zipalign ? I tried spme things I read for commands but don't know if I'm doing it right.
ryan012 said:
I said I don't have a computer. I can't do that.
I read the problem is the apk is lot aligned. Can I run commands in a Terminal Emulator on my phone ?
1. Compress back to zip. 2 sign zip. 3 change to apk. 4 zipalign apk.
How do I zipalign ? I tried spme things I read for commands but don't know if I'm doing it right.
Click to expand...
Click to collapse
Oops. Missed that part.
I have no experience with the commands you are referring to, therefore I cannot help you.
Sorry.
thenookieforlife3 said:
Oops. Missed that part.
I have no experience with the commands you are referring to, therefore I cannot help you.
Sorry.
Click to expand...
Click to collapse
It's like this, http://stackoverflow.com/questions/...apk-with-7zip-cause-error-during-installation
I don't know how to do the commands or which ones. I tried the ones shown but didn't do anything. I don't know if I did it right.
Stealthy App
Hi there i want to modify an app( Want add stealth Option in menu) please tell my how i can modify app with some easy editor softwares not complicated. Share some links.
Thanks in advance. hoping you will help me!
Scarface47 said:
Hi there i want to modify an app( Want add stealth Option in menu) please tell my how i can modify app with some easy editor softwares not complicated. Share some links.
Thanks in advance. hoping you will help me!
Click to expand...
Click to collapse
For reading all the xml files I use Axel (XML Editor / Viewer)
https://play.google.com/store/apps/...aystore&pcampaignid=APPU_pzkdVL_aBcmONsKggsgE
You have to click open as on xml and choose axel then click Save As... save it somewhere with the same name as the file name as it is.
then copy the saved file into the folder of where you got it from and overwrite it. Make sure name is same. Now open the saved xml again in Axel ans now you can modify it, then click Save before exiting it.
For changing other things like button images I haven't done that.
I changed what app says inside and what some buttons says. The Strings.XML file is where buttons are or some other things
there's one called APK Editor Pro but it only lets you change app one time. It won't load modified one.
Here, https://play.google.com/store/apps/...aystore&pcampaignid=APPU_pzkdVL_aBcmONsKggsgE
is anyone able to tell me how to fix it ? How to get the apk aligned not using a computer ?

[Q] "google play services" requirement without gapps

Hi,
I run OmniRom without gapps (with NOGAPPS actually) and there's an app that refuses to start with the error "google play services is not installed, contact the device manufacturer".
Is there anything I can do to "fool" the app in thinking GSF is installed? I don't care about the push notifications the app is using.
Thank you.
wkwkwk said:
Hi,
I run OmniRom without gapps (with NOGAPPS actually) and there's an app that refuses to start with the error "google play services is not installed, contact the device manufacturer".
Is there anything I can do to "fool" the app in thinking GSF is installed? I don't care about the push notifications the app is using.
Thank you.
Click to expand...
Click to collapse
What is this problematic app?
thenookieforlife3 said:
What is this problematic app?
Click to expand...
Click to collapse
Hello. Thanks for your reply. It's:
https://play.google.com/store/apps/details?id=nz.co.asb.asbmobile
I tried using apktool to decompress it, remove the dependencies from AndroidManifest.xml but I couldn't compile it back.
Thoughts?
Thank you
wkwkwk said:
Hello. Thanks for your reply. It's:
https://play.google.com/store/apps/details?id=nz.co.asb.asbmobile
I tried using apktool to decompress it, remove the dependencies from AndroidManifest.xml but I couldn't compile it back.
Thoughts?
Thank you
Click to expand...
Click to collapse
The hard thing about decompressing, editing, and recompiling apps is that when you recompile it you also have to resign it. See, when you take apart an app the signature is stripped, and the signature is what allows the app to install properly.
Fortunately, there are several utilities out there that will help you do this.
thenookieforlife3 said:
The hard thing about decompressing, editing, and recompiling apps is that when you recompile it you also have to resign it. See, when you take apart an app the signature is stripped, and the signature is what allows the app to install properly.
Fortunately, there are several utilities out there that will help you do this.
Click to expand...
Click to collapse
The problem wasn't the signing part, I wasn't reaching that step since the apk wasn't building anymore afterwards, it was giving out errors about not finding some files (I don't recall exactly as I haven't tried lately).
Would you recommend a particular app (ideally to run under linux but can manage with Windows if need be) to decompile and compile an apk?
Thank you
wkwkwk said:
The problem wasn't the signing part, I wasn't reaching that step since the apk wasn't building anymore afterwards, it was giving out errors about not finding some files (I don't recall exactly as I haven't tried lately).
Would you recommend a particular app (ideally to run under linux but can manage with Windows if need be) to decompile and compile an apk?
Thank you
Click to expand...
Click to collapse
What I meant to say was, don't actually decompile the app and then try to recompile it! It will give you errors, as you've seen.
Instead, try the following steps:
1. Copy the .apk file to a safe, secure place as a backup.
2. Download and/or open up an archive management program, i.e. 7zip or WinRAR.
3. Navigate to the directory where the .apk you want to mod is located. Not the backup one, of course!
4. Extract the .apk to a folder of your choice. Folder name example - "[name_of_app] modding" (without quotes).
5. Open up your regular file manager and navigate to that folder you just extracted to. Modify the files you want to modify.
6. Now, pay close attention to this part - In your archive manager, go into the acual .apk file you want to modify. It will just open right up as if it was a .zip.
7. Navigate to the directory in the .apk where the files you modded belong.
8. Now, back to your file explorer, click-and-drag the file(s) you modified from the file explorer window to the archive manager window. Drop the file in the archive manager window. It will ask you if you're sure that you want to overwrite, hit "Yes".
9. Once the file's in place, close the archive manager to finalize the change.
10. Now, all you have to do is put the modified app back on your device, use a tool like ZipSigner (find on Google Play) to resign it, and install!
Please do give me a few post thanks if the above instructions helped you. :good:
thenookieforlife3 said:
What I meant to say was, don't actually decompile the app and then try to recompile it! It will give you errors, as you've seen.
Click to expand...
Click to collapse
Thanks for the detailed instructions, however, to modify AndroidManifest.xml (where the GSF requirement is put) you need to decompile the apk using apktool or similar.
Simply unzipping the APK will not allow you to change AndroidManifest.xml.
I wish it were that simple
wkwkwk said:
Thanks for the detailed instructions, however, to modify AndroidManifest.xml (where the GSF requirement is put) you need to decompile the apk using apktool or similar.
Simply unzipping the APK will not allow you to change AndroidManifest.xml.
I wish it were that simple
Click to expand...
Click to collapse
That's odd, because that method is what has consistently worked for me!

Categories

Resources