[tool] AIPPackager and Installer - create installers for your RT Desktop apps [14/01] - Windows RT Development and Hacking

This version/thread retired
new version - with source - can be found here: http://forum.xda-developers.com/showthread.php?p=36854150
This release composes of two parts:
The RTDPackager which creates an AIP file, and AIPInstaller which is the installer for these AIP files.
V1.1 of RTPackager release - now fully functional.
AIPInstaller Usage
Place the exe file and associated DLL in a folder somewhere sensible. I have not tested in ProgramFiles yet but the app elevates UAC so should be ok.
Double click on any AIP file (I include one as an example) and windows willl show this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
select 'more options' which will show this:
check the check box at the top and then click 'Look for another app on this pc'
A browse dialog will open - find and select AIPInstaller and you are done. You only need to do this the first time. I intend to add an auto install to this, so in future you can just double click the installer and it'll set itself up, but till then...
From now on, you can double click an AIP file and the installer will pop up. Usually just hitting 'install' will be all you need to do (there are some advanced functions like disabling the install batch if it exists, and changing the install path which isnt really recommended)
RTDPackager Usage
This utility is designed for creating AIP files. Its worth paying note that the AIP format is designed for repos more than it is the installer - so there are a lot of details here which the repo can use to make you app more visible.
V1.1 now has full open and save support.
Save will save a template XML, which can be loaded later with the Open button. Open will also open an existing AIP file and fill in the details.
Create Package no longer saves in the same place as the files being packaged - it opens a save dialog.
The browse button will now work and populate the run EXE field and the folder field.
some details:
AppName is the display name - and the install folder - so avoid \'s and such. If you change this in an update, it will get installed to a new folder.
Updates are detected based on the App GUID. Change this, it will appear as a new app - use the same GUID on more than one app and you will have conflicts. The generate button for GUID *DOES* work - you should only use it on the first release of your app - and for the time being, keep it safe for any updates.
Run EXE is the exe that will be launched by the store when the user asks to run it - and if a shortcut name exists, will be placed in the start menu.
Install/uninstall batch files are option batch files for installing/uninstalling registry settings and the like. There is currently no uninstaller, but the store app should have this built in - the uninstall batch is NOT for deleting files - the store will handle that.
App version number is a REAL number. ie. 1.03 is ok. 1.0.3 is not.
App category is for placing your app in a 'folder' - it is free form, with | splitting. Anyone can create a new category this way and its not up to the repo manager to manage this. Obviously it will work better if we have sensible categories such as 'Apps|Browsing' or 'Emulators|GameBoy' - while its totally possible to do 'djboo|prerelease|funthing' - i hope we dont do that.
DOWNLOADS
First Release of AIP installer: http://forum.xda-developers.com/attachment.php?attachmentid=1644222&stc=1&d=1358172785
V1.1 Release of RTD Packager: http://forum.xda-developers.com/attachment.php?attachmentid=1644631&stc=1&d=1358184708
Example AIP file (is in a zip as XDA wont allow the AIP extension): http://forum.xda-developers.com/attachment.php?attachmentid=1644224&stc=1&d=1358172785

reserved

Note: Once the RTD Packager is complete, code will be shared for both - that should be tonight.

Nice work so far, haven't tested all elements of it yet but it looks pretty good! Keep up the good dev work!

Related

[TOOL][GUIDE] Release key maker and auto-signer / how to add java to your path

Release key signer
This is a tool I made for myself and figured I'd share it with everyone
what it does :
1 makes you your own set of release keys
2signs an apk with those keys
3zipaligns your apk
4signs zip files with your release keys
You need to have java in your system path if you don't know how then follow the guide in the second post.
What are release keys? release keys are what google and other corps. use to sign apks and update zips. It's also required to sign an apk with release keys to put them on the market.
How to use:
1ownload release key maker from here
2: unzip anywhere then put your apk (you must remove the meta-inf folder from the apk) into the unzipped folder
3: Double click the batch file and follow the steps
Part Two
This other upload is just an updated version it doesn't let you make the release keys it already has them and the keystore password in the batch file. It also signs zips with a test key because signing a zip with a release key seems to mess some things up.
Download part two here
simple right?
thanks go to:
Papa smurf (for spreading the info)
Darchstar ( I just like your roms)
Regawmod
JAguirre1234
Daneshm90
Tkirkton
To do:
hopefully add the ability to not have to enter your password when you sign an apk
other stuff
HOW TO PUT JAVA IN YOUR SYSTEM PATH
First thing first go to here and download the java runtime (JRE) and then
the java development kit. Now install them both.
Now open up your start menu and right click COMPUTER and select properties
A window will open up that looks like this
select "advanced system settings"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[/IMG]
a new window will open up that looks like this
select "environment variables"
a little window will open like this in environment variables scroll down to path select it and click edit
another window will open like this
at the very end of it type this
Code:
;C:\Program Files\Java\jre6\bin;C:\Program Files\Java\jdk1.6.0_21\bin
click all the "ok" then I believe a reboot is necessary
now enjoy
updated post with new stuff
Had an issue with the path for the jdk, but went and looked and saw that the file name for the version I have is 1.6.0_23 instead of _21. Once I got that minor issue lined out it works great. Thank you for this.
ok... so it helps to have the right Javas installed... weak lol

[TIP] How to verify ROM downloads using Total Commander Android app (MD5 sum)

Many of you might be fans of the simple looking file manager packed with customizability and features, Total Commander for Android. And this app also happens to be totally free.
If you haven't heard about it and would like to check it out, go to its homepage or get it from Google Play.
Apart from the app being awesome in itself, its dev Christian Ghisler is a cool guy too. He is very quick in responding to questions, suggestions and bug reports.
(As of now) Total Commander does not have a 1-click solution to calculate MD5 sum of a file. I am used to calculating and verifying the MD5 sum of every ROM zip I download and so having that feature is very important to me. Of course there are other apps like Android File Verifier that do that + more. But I needed just a simple MD5 calculator without having to install any extra app for that.
After spending some time playing with various options in the Total Commander app and a tip from the dev, I was able to put together a neat way to calculate MD5 using TC Android.
SETUP STEPS (Need to do this just once):
1. Click on the "Add button" icon. ( If you don't see that icon, you probably have the secondary row of icons hidden; unhide that secondary row by clicking the rightmost icon on the bottom row of icons ).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Configure the button as follows:
- Function type: Send shell command
- Command: sh
- Parameters: *md5sum %N ( The * makes the result of the command show up in a popup window. )
- You can change the icon if you want
HOW TO CALCULATE MD5 NOW:
1. Click on the icon of any file for which you want the MD5 sum so that a green tick appears on that icon.
2. And then hit on your newly created MD5 sum calculation button. It will takes few seconds for the MD5 sum calculation to finish if you are doing it for a large file like a ROM zip shown in the example in my screenshots.
Neet!
TCM is ultimate badass
Using U8110, V9. CM7 trough tapatalk
Another one:
Display usage and free space in current partition
(same scheme of pictures as in post#1)
2. Configure the button as follows:
- Function type: Send shell command
- Command: sh
- Parameters: *df -h . | cut -b 23-32,35-50
- You can change the icon if you want
I'm not sure, but I think the Parameters depend on the version of busybox in your device... maybe you have to fiddle around a little
@jazzboyrules: thanks for this thread! Could you change the title to "[TIP] Total Commander Android app: useful tips" or something like that? For sure there are much more ideas for this ingenious app.
jazzboyrules said:
2. Configure the button as follows:
- Function type: Send shell command
- Command: sh
- Parameters: *md5sum %N ( The * makes the result of the command show up in a popup window. )
- You can change the icon if you want
Click to expand...
Click to collapse
Thanks.
Just a minor glitch: use *md5sum "%N"
The quotes will ensure that it works even with file names that contain spaces.
Hmm... For larger files ~200MB (?), I get "Function aborted!" error.
tip for users without root
jazzboyrules said:
Many of you might be fans of the simple looking file manager packed with customizability and features, Total Commander for Android.
Click to expand...
Click to collapse
It should be noted that the method described by the OP, applies to devices with root.
If there is no root, first you need to:
1. install BusyBox Install (No Root) by @Jaredsburrows
2. through the application "BusyBox Install" to install busybox
3. in the application "BusyBox Install" copy environment variable and use the location of the file busybox to define the command sh for Total Commander
Code:
/data/data/burrows.apps.busybox/app_busybox/md5sum %N > %N.md5
In this case, the check sum sent to the file.
.
Thank you so much for this perfect solution!
As more and more often larger checksums are used, one can change the code a bit to calculate the sha-256 checksum of a file.
Just use:
*sha256sum "%N"
Sent from my Fairphone FP2 using XDA Labs

[TOOL][WINDOWS] HAT- Hybrid APK Tool - Bringing New Era of Modding!

INTRODUCTION
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What is HAT?​Well, HAT is short-form of Hybrid APK Tool. HAT makes decompiling/recompiling of all apk files easy as 1 2 3, HAT supports both apk's and jar files and is very easy to work with. HAT provides all features necessary for any modder/user.
Why use HAT?​Honestly, that's up to you. There are many tools out there but mostly fail at critical times but HAT can be a good bet.
FEATURES​
● Fast and light (Only 11 mb).
● High success rate while decompiling/recompiling.
● Special method of decompiling/recompiling jar files! Never seen before this method will never fail and you can easily edit any jar file (deodexed jar). HAT uses special method for the process.
● Avoid bootloops while editing framework-res.apk especially for SONY devices. HAT uses special method that avoids bootloops.
● Real time logging. Generate logs for every action.
● Choose your own version of apktool. Currently HAT comes with two versions of apktool (the folder is hidden due so to avoid any unwanted deletion of the folder, kindly enable the show hidden files option). To use your own version of apktool keep your apktool in "tools/apktool" folder
● Normal method of decompiling and recompiling of jar also present giving two methods to simultaneously work at jar files/
● Clear the junk files if too populated
HOW TO USE​
Simple just download the file and extract it in core C: drive. It should be C:HAT or it won't work
DOWNLOAD​
Here is the download link for the tool - DOWNLOAD HERE
FAQ
Q) I open HAT.exe and it shows a black screen and closes. Why?
Ans) Two possible reasons a) You have not extracted it in C: drive
b) You have space in your username eg Tech N You instead of TechNYou
Solution
a) Extract it in C and execute
b) Make a new account with no space in between
Q) I see errors related to java, what are they?
A) To work with apk's and jar's you must have JAVA installed on your machine. Install JAVA then proceed also if you have java installed make sure it has been defined in system path
Q) I have java still I face errors, why?
A) Reason is java not defined in system. Open cmd and type "java" and "javac" (without quotes) and press enter if you get error(s) like :"java" or "javac" is not an external or internal command define java in your PC. Search google on how to.
If you get some response on trying both commands it's an issue with tool. Please report here.
Q) Do I need anything else than java?
A) No you don't need anything else than java. Recommended latest version java
CREDITS​
@iBotPeaches for apktool
@JesusFreke for smali/baksmali
@Ticklefish for his awesome Tickle my android! Best tool so far!
@BDFreak for his AdvancedAPKTool
Me for creating this tool
XDA:DevDB Information
HAT - Hybrid APK Tool for Windows, Tool/Utility for all devices (see above for details)
Contributors
Tech N You, Tech N You
Version Information
Status: Stable
Current Stable Version: v1
Stable Release Date: 2015-03-31
Created 2015-03-30
Last Updated 2015-03-30
CHANGELOG​● v1 Initial Release​
Reserved.
Mirror needed for this awesome tool also.
Download link for H.A.T not working! Please post working one. Thanks
babydouggie said:
Download link for H.A.T not working! Please post working one. Thanks
Click to expand...
Click to collapse
babydouggie is correct and the Link is still not working anyone got a working link please ?
download link not working !!!

[MOD] UnBloatMi - Xiaomi MIUI Bloatware Remover

UnBloatMi - Xiaomi MIUI Bloatware Remover
I have been searching for a script to remove Bloatware from my Xiaomi Redni Pro, and found a couple of different ones that do part of the job.
None were exactly what I was looking for, so I wrote a script of my own.
Although I tested the script on Redmi pro and MI5s only, it should be very usable for any Xiaomi device running MIUI 7 or 8.
In UnBloatMi I have combined multiple lists of MIUI 7 and 8 apps that should be safe to remove.
It also contains a couple that are less safe to remove, but the script will ask for confirmation before removing those.
Which is a big difference from other scripts; you get to choose what to remove and what to restore!
Backup location:
If you edit the script, you can change the backup location to use (by default "/sdcard/UnBloatMi")
You can of course also add more apps to remove to the list in the script. (instructions are in the comments)
It's not needed to remove files from the list, as it will not process files that are not on your device, and you can choose not to remove any app.
To Customize the Script:
Unzip the zip and edit the file under: META-INF\com\google\android\update-binary
This script is written in shell language (sh), so editing is somewhat different from "normal" EDIFY scripts that use the "updater-script" file.
I used part of the excellent template by osm0sis to create UnBloatMi
Install Custom Apps/Files:
You can also have the script install Custom files to /system folder. (So you can add another HomeLauncher, for example)
To have the script install Custom files, just add them to the Zip in "/system/app/" folder:
/system/app/YourCustomApp1/YourCustomApp1.apk
/system/app/YourCustomApp2/YourCustomApp2.apk
The script will automatically install them for you.
To use the Script:
You need to have TWRP Recovery installed.
BACKUP YOUR DEVICE BEFORE RUNNING THIS SCRIPT!!! (I recommend using TWRP Backup)
(even though the script allows you to restore your changes, something can always go wrong - press wrong button for example)
- Move the ZIP file to your SDCard, and install using TWRP Recovery
Basically, you can just follow the instructions on the screen, by pressing Volume buttons.
- The first run, you'll be asked what apps to remove. Backups are automatically made.
You can confirm each app, or choose to only confirm the more risky apps.
- If you run the script again (after testing your installation), it will detect the backups from the previous run.
You can then choose to restore the backup files, or delete them from your device.
- You can now also create a default UnBloat list, that can be used to UnBloat after flashing a (new) ROM.
It is created by checking for installed apps. If an app is not found on the device, it's added to the list
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Feel free to edit and change the script.
If you make any improvements, please let me know so I can add them to the script.
This includes reporting what apps caused problems when removed, or comments about apps.
You can find the script in: /META-INF/com/google/android/update-binary (or on GitHub by clicking the "Source Code" link below)
Instructions can be found in the comments of that file.
--UPDATE--
Added Step by Step Restore: You can now choose which apps to restore, so it is easier to troubleshoot your installation.
--UPDATE v0.2--
Added warning to SecurityCenter App (so it has to be confirmed). It caused bootloop on my device when removed.
--UPDATE v0.3--
Bugfixes, Added Apps, changed and added some app comments. Changed download link (GitHub download creates a folder too many)
--UPDATE v0.4--
Changed/Added menu's - Allows you to do more actions at once
Added apps and comments.
Added ability to save a default UnBloat list. This can be used to UnBloat after flashing a ROM.
Download
Source Code
Developer

SideQuest - Sideloading made easy! for Oculus Go and Quest.

SideQuest is designed to simplify sideloading apps onto your standalone android based headset. It should include everything you need to get started. When you first open the app it is best to open the setup screen and follow the instructions on screen to get setup.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It is important to follow the instructions in the setup screen before you start - particularily installing the OpenStore Launcher app to be able to find the apps on your device once they are installed.
SideQuest Features
Automatic download of ADB platform-tools for your platform - win/mac/linux.
Setup instructions for enablding developer mode on your device.
On device launcher app to be able to open the apps once installed.
Drag and drop support for installing arbitrary apps.
Repository seeding via sources.txt file to preload your own repos for distribution.
Add custom fdroid based repositories to get more apps.
Setup
When you first launch SideQuest it will download the repositories and also download the ADB tools. Once this is done you should go to the Setup menu option and follow through the one time setup to get your device ready to install apps.
If you have any problems you can hit the debugger icon to capture any errors - these will really help to find and fix bugs.
Apps
I will be adding more apps to the repos and I will be notifying of repo updates on my discord server - you can then manually update the repos in the repos section to get the new app listings.
Downloads
github.com /the-expanse /SideQuest /releases
shakamone said:
SideQuest is designed to simplify sideloading apps onto your standalone android based headset. It should include everything you need to get started. When you first open the app it is best to open the setup screen and follow the instructions on screen to get setup.
It is important to follow the instructions in the setup screen before you start - particularily installing the OpenStore Launcher app to be able to find the apps on your device once they are installed.
SideQuest Features
Automatic download of ADB platform-tools for your platform - win/mac/linux.
Setup instructions for enablding developer mode on your device.
On device launcher app to be able to open the apps once installed.
Drag and drop support for installing arbitrary apps.
Repository seeding via sources.txt file to preload your own repos for distribution.
Add custom fdroid based repositories to get more apps.
Setup
When you first launch SideQuest it will download the repositories and also download the ADB tools. Once this is done you should go to the Setup menu option and follow through the one time setup to get your device ready to install apps.
If you have any problems you can hit the debugger icon to capture any errors - these will really help to find and fix bugs.
Apps
I will be adding more apps to the repos and I will be notifying of repo updates on my discord server - you can then manually update the repos in the repos section to get the new app listings.
Click to expand...
Click to collapse
Excellent tool worked for me 100% . Thank you for your work.
This tool looks incredible. Just need the money now to get my Oculus Quest? Thank you man!
when I did the update on my side quest the apps to the game stop working can anyone help

Categories

Resources