Hey guys...heres the APK manager v4.9 by daneshm90.....its an easy way to edit apks......
So i have written a simple script to ease the process of editing apks. Got a lot of downloads so thought its in demand
Whether you're doing basic image editing or editing the smali or xml files, on average u have to use (Brut.all or JF's smali/baksmali) awesome tool to extract the apk, edit it, then sign the apk and then adb push/install it. This process is quite tiresome if you are testing a method that needs fine tweaking.
This script should make the process a LOT smoother.
Theres an option of compiling/signing/installing all in one step
Thanks:
Goes to Brut.all for his awesome tool.
Goes to JF for ofcourse, smali/baksmali
Goes to farmatito for porting this script to linux
Features:
- Extract, Zip apk's.
- Optimize pngs (ignores .9.pngs)
- Zipalign apks
- Sign apks
- Push to specific location on phone
- Incorporates brut.all's apktool
- Pull apk from phone into modding environment.
- Batch optimize apk (Zipalign,optipng,or both)
- Quick sign an apk (Batch mode supported)
- Batch Ogg optimization
- Compression level selector (monitor status above menu)
- Batch install apk from script (option 16)
- Logging on/off has been removed. Instead a log.txt is created which logs the activities of the script organized using time/date headers
- User can change the max java heap size (only use if certain large apks get stuck when decompiling/compiling apks) (Option 19)
- Improved syntax of questions/answers
- Error detection. Checks if error occured anytime u perform a task, and reports it
- Read log (Option 20)
- U can now set this script as ur default application for apks. When u do, if u double click any apk it will install it for u.
- Supports batch installation, so if u drag multiple apks into the script (not while its running) it will install them all for u. U can ofcourse drag a single apk as well
- Added framework dependent decompiling (For non propietary rom apks). (Option 10). Checks whether the dependee apk u selected is correct.
- Allows multiple projects to be modified, switch to and from.
- Allows to modify system apk's using apktool but ensures maximum compatibility in terms of signature / manifest.xml
- Stuff i forgot i guess
Instructions (Windows):
- Place apk in appropriate folder (Any filename will work, if running for first time folders will not be there, you must run and then the folders will be created)
- Run script
- Minimize the script
- Edit files inside the project folder
- Maximize the script
Instructions (Linux):
- Place apk in appropriate folder (Any filename will work, if running for first time folders will not be there, you must run and then the folders will be created)
- Open terminal and change-directory to apkmanager (Easiest way is to type "cd ")
- Chmod 755 Script.sh
- Chmod 755 all files apps inside other folder (thanks for the tip bkmo )
- Run script by typing ./Script.sh
- Minimize the script
- Edit files inside the out folder
- Maximize the script
Requirements:
Java
Adb
Future Improvements:
- Manage multiple simultaneous apk edits (choose which apk to extract/build)
- Option to optimize the apks
- Option to adb push to user defined location
- Other stuff i dont know yet.
Windows (v4.9): Download Here
Linux (v4.3): Download Here
Here's the video!!
Got problems ?
1. Make sure your path has no spaces
2. Your filename has no wierd characters
3. Java/adb are in your path
4. It's not a proprietary rom's apk (aka Sense,Motorola,Samsung) (If u are, then use option 11 and drag the required framework, eg com.htc.resources, twframework-res...etc)
5. It's not a themed apk (if it is, expect .9 png errors, use as close to stock as possible)
6. Look at the log to know whats happening
7. If all else fails, post as much info as possible and we will try to assist you.
If U like my post, press the Thumbs Up button, i.e, Thank Me!
Bad download link. Please fix?
Please download to mediafire or multiupload
thanks
actually its not death214 link or project..and all thread he started was project by others and he just copy and paste..i remember u've been scolded by owain becoz of this,right death?=)
please upload files to other site.i cant download from rapidshare.
change link
Please click here:
http://lmgtfy.com/?q=apk+manager+xda
Nice. Rapidshare link working flawless.
For those that are experiencing battery drain because Maps app keeps opening in the background no matter how many times you force close it, I made a very simple script to completely freeze it (and defrost it if it's already frozen) with one click(technically two lol).
Attached Files:
freeze-maps -- it auto detects if Maps is already enabled or disabled, and does the opposite.
maps-disable -- it simply runs the disable Maps command, won't hurt even if the maps is already disabled
maps-enable -- it enables Maps, won't do any harm if Maps is already enabled
Instruction:
1. Download and Install Script Manager in the market (there's a free version)
2. Download the attached freeze-maps.sh.txt and put it in your SD card, say under Documents
3. Open Script Manager, locate the file (freeze-maps.sh.txt) you just downloaded, open it by long press and open as... Script/Executable
Check "run as root", check "Configure as favorite", Click Save and click Exit
4. You can now quit the Script Manager app
5. On your preferred launcher, create a new widget, choose script manager, and then the freeze-maps.sh.txt script (it should be there, since you bookmarked it at step 3).
6. Now you can enable/disable Maps with just using the widget on your Launcher!
************************************************
For those getting an error with freeze-maps.sh.txt, it means your "pm" command doesn't support filter and it won't function as intended. You can either use maps-disable/maps-enable as two separate widgets
or you can do the following(at your own risk):
I attached a copy of my own "pm" executable file that was found in my device, you just gotta replace yours with it.
How-to:
1. Download the attached file - pm.zip
2. Use root explorer and go to /system/bin
3. mount it as writable by pressing the little button says "Mount R/W", it will change to "Mount R/O"
4. rename your pm to pm.bak (for backup) and replace it with the file pm found in pm.zip
5. Long click on the pm file you just extracted here and choose permissions:
Owner = Read/Write/Execute
Group = Read/Execute
Others = Read/Execute
Click Ok
5. Mount your system back to read only by pressing "Mount R/O" and you should be set
******************************************
PS: please let me know if there's any error since this is the very first Android script I wrote, Thanks for Looking ;-)
*Disclaimer: As usual, I am not responsible for any damage to your device, it's do it at your own risk. I will try my best to help though.
PPS: The geeky stuff - you can of course edit the script or run the command "pm" in a terminal and use it to enable/disable any annoying process, but you need to know what you are doing!!!! I personally froze the market updater and twitter app and some other bloatwares that came with the streak.
Shows
# Error: unknown option: -d
+
(loads a stuff)
+
Maps is now disabled
Maps disappears off my Apps list - I re-run the script, same message, and still no maps. How do I get Maps back ?
I am running this fine on streadriod 2.3 by fards, let me check and get back to you
But the new additional attached files at the first post should solve your problem for now.
it wont detect if you have maps enabled or disabled, but it will do what it's file name implied respectively.
Just use Script Manager to Run it, you can also make two Widgets for enabling/disabling.
haynesteve said:
Shows
# Error: unknown option: -d
+
(loads a stuff)
+
Maps is now disabled
Maps disappears off my Apps list - I re-run the script, same message, and still no maps. How do I get Maps back ?
Click to expand...
Click to collapse
if you have a terminal installed, try to run this > ( === enter means hit enter)
su === enter
pm list packages -d === enter
and let me know the result.
Thank you
enable script has 1st line as
pm enable com.google.android.apps.maps\
which doesn't work - however after removing the slash, works perfectly. Thank you
haynesteve said:
Thank you
enable script has 1st line as
pm enable com.google.android.apps.maps\
which doesn't work - however after removing the slash, works perfectly. Thank you
Click to expand...
Click to collapse
yup made a typo in the script, corrected in the OP, thanks =)
asianftw said:
if you have a terminal installed, try to run this > ( === enter means hit enter)
su === enter
pm list packages -d === enter
and let me know the result.
Click to expand...
Click to collapse
Again shows Error: unknown option: -d
(list usage perameters)
Using Streakin v1.1
haynesteve said:
Again shows Error: unknown option: -d
(list usage perameters)
Using Streakin v1.1
Click to expand...
Click to collapse
Oh that's probably why.. Because Streakin is mostly based on stock rom and I guess -d is some kind of option that only available in the custom roms like on DJ steve's or fard's
If it's not too much trouble, it would be great if you can message me the output of the command so I will see if i can write a working script for the stock rom accordingly
just type(in terminal):
su
pm
and in your terminal software, there's an option "email to". just copy and paste the contents in to a private message via xda.
Thanks so much
Sent you a PM (not easy as Emulator kept FC - lol)
haynesteve said:
Sent you a PM (not easy as Emulator kept FC - lol)
Click to expand...
Click to collapse
Thanks for your help !! I see your version of the pm command is missing the filter option, hence rendering the detection error.
I updated my OP
Thanks for this script, it works brilliantly.
I am trying to modify this script to check of com.facebook.katana is running and do the same for Facebook, but I am not sure how to check if that service is running.
hshah said:
Thanks for this script, it works brilliantly.
I am trying to modify this script to check of com.facebook.katana is running and do the same for Facebook, but I am not sure how to check if that service is running.
Click to expand...
Click to collapse
i did it for some of those apps that have the tendency to stay in the background even you force close it.
you can check if it's running by going to Setting -> application -> running service
you can also check what apps are occupying your resource with an app called "Betterbatterystat"
asianftw said:
i did it for some of those apps that have the tendency to stay in the background even you force close it.
you can check if it's running by going to Setting -> application -> running service
you can also check what apps are occupying your resource with an app called "Betterbatterystat"
Click to expand...
Click to collapse
Sorry, I meant via a script to replace "pm list packages -d".
hshah said:
Sorry, I meant via a script to replace "pm list packages -d".
Click to expand...
Click to collapse
you can look into using pid or look here for some similar info
i can get back to you when I have more time in hand.
But what i can ensure you is: if you have facebook installed, it IS running in the background, period. 100% of the time. It's not using much of my battery though, so I just leave it as that.
Done it
It really works!
Thanks Sir.
Fully Working on Karbonn_A9+.
@asianftw & @hshah,
These are great! Thank you. Will try them soon.
Can you add more apps for this.
And can you make it into auto-mode? Meaning any apps will be freeze when not in use, but will be turned ON when user click those app OR triggered by incoming update (like FB) or at least, set to a fix frequencies to check for update (say every 30 minutes / hourly / "x" hours). If it is possible, this will be a must have app.
Dell Streak | InnerSD 8GB | ExternalSD 32GB | LXdroid 0.2
Hi,
I am trying to use android SingnatureOrSystem , for some permission I didn't get access to it.
I have created one system application where I have defined Android shared user id in manifest : android:sharedUserId="android.uid.system"
Requested permission at runtime.
I have put that apk in system/priv-app.
Also I have signed it with device key .
As per my consideration if application is in system/priv-app , then it will grant for all permission , but didn't seems like that.
Please guide me where I am doing wrong.:
Hello,
Well I know what is screen overlay, and why Android prevents granting permissions using it, and I know the page where I can disable those permissions. However, when I go to "Draw over other apps", select "Apps with permission", enable "Show system" - all of those have permission set to No! And I still get the message! When I go to all app list, there are more having the permission, but those are system apps and I cannot change the permission for them!
So how do I fix this? How can I figure out which app actually has screen overlay active?
Do you use Xposed Framework with some modules with overlay, maybe CustomPie or Gravitybox? If yes try the NoOverlayWarning-Module.
Hello Everyone, My name is Kaliswaran, I am a Image customizing Developer, actually I was trying to update Win 11 21H2 version with recent February patch update and sysprep the machine, but when I try to boot the machine again in Audit mode, I am unable to see some of default applications like calculator, paint, snipping tool etc. But if I try to create any local user profile, there I can able to get all applications without issues. So anyone please kindly help on this. (so as I mentioned, Once I am done with Patch update, then only I am facing with this issue, earlier without patch update I can able to see all applications fine in Audit mode). Can anybody help.
It sounds like you are experiencing an issue with the default applications not appearing in Audit mode after patching and sysprepping the machine. Here are a few suggestions to help troubleshoot the issue:
Check the Sysprep configuration file: The Sysprep configuration file can be found at C:\Windows\System32\Sysprep\sysprep.xml. Make sure that the following lines are set to "true" in the file:
<CopyProfile>true</CopyProfile> <DoNotCleanUpNonPresentDevices>true</DoNotCleanUpNonPresentDevices>
Check the Group Policy settings: The Group Policy settings may be preventing the default applications from appearing in Audit mode. Check the Group Policy settings to ensure that the following policy settings are not configured:
Computer Configuration\Administrative Templates\System\Audit Mode\Remove all Apps from the Start menu Computer Configuration\Administrative Templates\System\Audit Mode\Do not show Windows Store apps on the taskbar User Configuration\Administrative Templates\Start Menu and Taskbar\Remove All Programs list from the Start menu
Reset the Start menu: Try resetting the Start menu to see if it brings back the default applications. To do this, open PowerShell as an administrator and run the following command:
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
After running this command, restart the computer and see if the default applications appear in Audit mode.
I hope this helps! Let me know if you have any further questions or concerns.