Hi all...
I present a guide to port the function Autostarts inside your Settings.
This guide as tested on Xperia JB Settings, Xperia ICS Settings line 2012 and Xperia ICS Settings line 2011.
You need:
-Basic knowledge to decompile/ compile apk and edit smali files.
-Apktools or similar tool to decompile apk.
-Notepad++ (is more easy edit on this).
-Patience.
Click to expand...
Click to collapse
¡¡¡¡BEGIN!!!!
1° Decompile your Settings.
2° Download the zip file in the atchments "ResourcesAutostarts" and decompressed.
-The decompressed file is a folder to name: "Settings".
NOTE: If your decompile Settings have a other name, rename to "Settings" for more easy steps to this guide.
3° Copy and Paste the Settings folder decompressed to ResourcesAutostarts in to your folder to decompile the Settings.apk
-Its for add the resources autostarts in your decompile Settings.
4° Now, in your decompile Settings, navigate to next route: Settings/res/values/ and open ids.xml with your note edit and add in the end the next code:
Code:
<item type="id" name="autostarts_settings">false</item>
<item type="id" name="appName">false</item>
{
"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"
}
-Save and close the ids.xml
4° On this route, open the Strings.xml and add the next code in the end of file:
Code:
<string name="autostarts_title">Autostarts</string>
<string name="autostarts_allowed">Has allowed</string>
<string name="autostarts_prohibited">Has Prohibited</string>
<string name="autostarts_allow_progress_msg">Being restored boot, please wait...</string>
<string name="autostarts_prohibit_progress_msg">Prohibit boot, please wait...</string>
<string name="autostarts_empty_msg">No installation boot applications</string>
<string name="autostarts_optimize_empty_msg">No optimize the startup items</string>
<string name="autostarts_optimize_btn_title">Optimize the startup items</string>
<string name="autostarts_all_btn_title">All autostarts items</string>
-Save and close the the String.xml
5° Now, navigate to the next route: Settings/res/xml and open the file settings_headers.xml and add the next code in the end... Guide with the screenshot.
Code:
<header android:icon="@drawable/ic_settings_autostarts" android:id="@id/autostarts_settings" android:title="@string/autostarts_title" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />
NOTE: in this case the access to Autostarts is in the principal menu but is possible add the autostarts in others menus...
-Save and close the file settings_headers.xml
6° NOW, COMPILE YOUR SETTINGS AND AFTER COMPILE, DECOMPILE THE NEW SETTINGS AGAIN.
NOTE 1: In this moment, the next steps is in the new decompile Settings.
NOTE 2: at this time, put attention!!!!!
7° NOW, in the new decompile Settings, navigate to next route System/res/values and only open the file public.xml... this file is your guide for the autostarts fully working.
8° In the new decompile Settings, navigate to next route: System/smali/com/android/settings/autostarts and open with your note edit the file "LewaManageAutostarts$AppAdapter.smali" and:
-Search the line 164 and check this code "0x7f040088"
-In your open file "public.xml" search the next " manage_autostarts_item " and check your respective id...
-Copy the id from "manage_autostarts_item" and replace to the original code in the line 164.
-Save.
-Search the line 174 and check this code "0x7f080028"
-In your open file "public.xml" search the next " icon " and check your respective id...
-Copy the id from "icon" and replace to the original code in the line 174.
-Save.
-Search the line 195 and check this code "0x7f08020a"
-Go to the open file "public.xml" and search the next " appName " and check your respective id...
-Copy the id from "appName" and replace to the original code in the line 195.
-Save.
-Search the line 217 and check this code "0x7f080018"
-Go to the open file "public.xml" and search the next " status " and check your respective id...
-Copy the id from "status" and replace to the original code in the line 195.
-Save.
-Search the next line 236 and check this code "0x7f0800ac"
-Go to the open file "public.xml" and search the next " app_on_sdcard " and check your respective id...
-Copy the id from "app_on_sdcard" and replace to the original code in the line 236.
-Save.
9° NOW, save and close the file "LewaManageAutostarts$AppAdapter.smali".
10° NOW, on this route, open the file "LewaManageAutostarts.smali" and search:
-Search the line 190 and check this code "0x7f0b06b2"
-In your open file "public.xml" search the next "autostarts_allow_progress_msg" and check your respective id...
-Copy the id from "autostarts_allow_progress_msg" and replace to the original code in the line 190.
-Save.
-Search the line 305 and check this code "0x7f0b06af"
-In your open file "public.xml" search the next "autostarts_allowed" and check your respective id...
-Copy the id from "autostarts_allowed" and replace to the original code in the line 305.
-Save.
-Search the line 401 and check this code "0x7f0b06b0"
-In your open file "public.xml" search the next "autostarts_prohibited" and check your respective id...
-Copy the id from "autostarts_prohibited" and replace to the original code in the line 401.
-Save.
-Search the line 584 and check this code "0x7f0b06b6"
-In your open file "public.xml" search the next "autostarts_all_btn_title" and check your respective id...
-Copy the id from "autostarts_all_btn_title" and replace to the original code in the line 584.
-Save.
-Search the line 612 and check this code "0x7f0b06b5"
-In your open file "public.xml" search the next "autostarts_optimize_btn_title" and check your respective id...
-Copy the id from "autostarts_optimize_btn_title" and replace to the original code in the line 612.
-Save.
-Search the line 632 and check this code "0x7f040087"
-In your open file "public.xml" search the next "manage_autostarts" and check your respective id...
-Copy the id from "manage_autostarts" and replace to the original code in the line 632.
-Save.
-Search the line 688 and check this code "0x7f0b06b3"
-In your open file "public.xml" search the next "autostarts_empty_msg" and check your respective id...
-Copy the id from "autostarts_empty_msg" and replace to the original code in the line 688.
-Save.
-Search the line 765 and check this code "0x7f0b06b5"
-In your open file "public.xml" search the next "autostarts_optimize_btn_title" and check your respective id...
-Copy the id from "autostarts_optimize_btn_title" and replace to the original code in the line 765.
-Save.
-Search the line 772 and check this code "0x7f0b06b3"
-In your open file "public.xml" search the next "autostarts_empty_msg" and check your respective id...
-Copy the id from "autostarts_empty_msg" and replace to the original code in the line 772.
-Save.
-Search the line 792 and check this code "0x7f0b06b6"
-In your open file "public.xml" search the next "autostarts_all_btn_title" and check your respective id...
-Copy the id from "autostarts_all_btn_title" and replace to the original code in the line 792.
-Save.
-Search the line 799 and check this code "0x7f0b06b4"
-In your open file "public.xml" search the next "autostarts_optimize_empty_msg" and check your respective id...
-Copy the id from "autostarts_optimize_empty_msg" and replace to the original code in the line 799.
-Save.
-Finally, search the line 831 and check this code "0x7f0b06b1"
-In your open file "public.xml" search the next "autostarts_allow_progress_msg" and check your respective id...
-Copy the id from "autostarts_allow_progress_msg" and replace to the original code in the line 831.
-Save.
11° NOW, save and close the file "LewaManageAutostarts.smali".
12° To finish, compile your Settings app again and Sign the apk with a tool to sign apk...
Check the screentshot from Setting ICS 2012 (Xperia U) and Settings ICS 2011 (Xperia Mini).
CREDITS:
- @Pandemic && @Mtakween for sources code and necessary files for Autostarts...
This guide is very tedious but if you are patient will not have any problem!!
IF you like my work, please PRESS the thanks button and rate my job!!
Nice guide mate @FranciscoGool
Awesome! Thanks for the guide! Was looking for it!
can you also explain how to add the "add account " option like in your settings?
attack11 said:
Awesome! Thanks for the guide! Was looking for it!
can you also explain how to add the "add account " option like in your settings?
Click to expand...
Click to collapse
Hi... Thanks
ammmmm the function to add accounts in my Settings not work like JB... Sorry, the add function not is the great thing
I managed successfully, but I see no difference at startup?
(Kitkat rom Acer)
Thank you :good:
Related
things you'll need
APK MANAGER
7zip
DESCRIPTION :
Q : Basic
A : The icons are stored in the Drawable-mdpi folder in the framework.
these icons are linked to XML's in Drawable folder
if you just add the icons and don't change the xml, you'll get nothing.
Q : Why Cant we just Edit the XML files?
A : The XML files are encrypted. if you try to edit it you will get weird characters.
Q : No XML No Edits, Are we Done?
A : Yes, No XML No Edits. But we've a walkaround. The APK MANAGER
it decompiles the apk and unencrypts the xml file.
BASIC :
Extract the contents of APK MANAGER to any folder
you'll have few folders
place your apk in the place-apk-here-for-modding folder
open Script.bat
and chose option to decompile and minimize
it will create a folder namely PROJECTS
now you can edit the xml files
after your done, maximize the apkmanager window and choose comiple apk
HOW TO ADD MORE PNGS :
if you want to add pngs like the battery percentage you'll need to link the png to the xml file
this can be done by two ways
1. assigning resource_id
&
2. directly putting in the names
the 1st method is easy but complex so forget it
the second method is simpler.
just find the xml file corresponding to the png and than simply add the name.
for eg.
stat_sys_battery.xml is the battery status xml.
<item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="0" />
Click to expand...
Click to collapse
here the
android:drawable is the android code
and
@drawable/stat_sys_battery_* is the file location
check the attachment for better understanding
Click to expand...
Click to collapse
THE PROBLEM & THE SOLUTION :
if you try to edit any modded framework file you'll get error while compiling.
and your phone will hang if you use that file.
SOLUTION
instead of using modded file. use the STOCK framework. Edit your files and compile your apk
now when you compile it, it will give you few options
1. is it a system file [y/n]
choose yes
2. (...blah blah.. do you wish to keep files)
choose yes
now it will extract the stock (unedited) framework in a KEEP folder
minimize the window
open the folder and delete all the files you modified.
if you had modified xml file you'll also need to delete resources.asrc
now maximize the apkmanager window and press any key.
your modded apk will be compiled in the place-apk-here-for-modding folder
PS : IT WOULD BE UNSIGNED
LAST STEP :
open the compiled unsigned apk and extract all the files you edited (including resources.asrc)
simply replace these files in the framework-res.apk you wanted to mod
only part to take care is the resources.asrc file you don't have to replace it directly
do this steps for replacing resources.asrc
1. right click the resources.asrc
2. select add to archive
3. archive format zip
4. compression method Store
5. select the path of your framework-res.apk
I know this all seems way to complex but if you read carefully and do it step by step, its all easy as a PIE
Ok, so we have a couple of threads in the Atrix Forums, that have helped us themers along, and with the custom Roms coming along for the Prime, I have started to see a need for this type of thread here.
The goal of this thread is to have a place for us to discus themeing questions, locations, problems, etc.; that way we are not cluttering up the individual theme or rom threads with questions or problems.
As we are unable to let successively recompile the stock Asus TF201 SystemUI.apk, this thread is primarily intended for custom roms like AOKP, CM9, etc.
If you are looking to theme your stock SyetemUI, you can simply copy the apk to your computer, open the .apk file with a zip program (like Winrar) pull out the following folder: /res/drawable-mdpi
Look through the folder, find .png files that you would like to replace, and then add your new .png files to the .apk (using Winrar or other) in the same location the original one is at. ---> Read the following rules first! <---
- Make sure to select "store" for the compression method, when replacing/adding the .png files.
- The new .png file you are using should roughly be the same dimensions as the original you are replacing.
- Leave .9.png files alone. .9.png files have to be decompiled/recompiled for them to work properly. Since, you can not successfully recompile the stock Asus systemui.apk, you can not replace .9.pngs!!!!
All that being said, lets move on to the Roms we can actually theme...
Below, I have quoted the OP from two Atrix threads that have always helped me.
*Note: These locations are for Gingerbread, however, there is some continuity between Gingerbread & ICS; although it seems a lot of the stuff that was in the framework-res for Gingerbread, it now in the systemui for ICS.
Also, if you change something in a xml file and it doesn't change, you may want to see if the same xml line is in the same file & folder in both the framework-res & systemui, and change both.
Things you should know before you get started:
- If you are replacing a 9.png or editing a xml, you will have to deompile your apk, edit, and then recompile it.
- Recompiling the camera.apk seems to break the camcorder function, and will result in a FC.
Besides the Post Below this one, here is another up-to-date guide on using APK Tools, specifically for ICS:
http://forum.xda-developers.com/showthread.php?t=1511752
Use this web page to get your custom Hex Colors:
http://www.colorpicker.com/
Main XDA General Theme Thread (get more exposure/help for your question):
http://forum.xda-developers.com/showthread.php?t=468254
***If you have any other helpful guides, webpages, etc. that you think will help us, post them, and I'll add them to the OP.***
(This quote is from: http://forum.xda-developers.com/showthread.php?t=1060199 and thanks should go to that OP).
jimbush3 said:
I know that there are a good number of Atrix users who are new to android, new to theming with android, or like me - both. It can take hours to find the right information to make the changes that you want to make, only to find out that those types of changes are phone specific and that guide that you finally found after hours of searching doesn't even apply. I ask that all Atrix themers contribute to this thread with their knowledge, processes, and best practices for theming the Atrix. This way, we can share knowledge amongst each other as well as set up some accurate guide for other Atrix themers just getting started.
Contents:
Post 1 of this thread:
apk Manager Guide
Framework Assistant - tool to push/pull framework-res.apk
Editing OR removing the status bar clock color in services.jar
Post 2 of this thread:
Setting the notification dropdown shade to transparent
I'll start off with a post that I made yesterday in response to someone's question about apk Manager.
1. apk Manager Atrix Guide
The file I am going to discuss here is /system/framework/framework-res.apk. This file contains most of the elements involved in theming your phone. There are many other smaller locations to edit, but this file contains the bulk.
Before we get started on using apk Manager, we should understand a few things about framework-res apk. This file consists of a few important elements:
regular png image files - these are standard png images and can be edited with your image editing program and saved without any problems.
draw-9 png image files - these are special types of png images denoted by a .9.png in the filename. The android system reads these filenames and recognizes the image as a stretchable image. The system knows how to stretch the image based on a 1px wide border that the image has. This border contains black dots/lines along each of the four edges that tell the system how to stretch it - if you mess with this border then the way the image stretches will changes and you may not be able to decompile/recompile the apk. The following link provides info on editing draw-9s, but I found it easiest to extract them with apk Manager, edit in gimp without touching the border, and then recompiling with apk M. More info on draw-9 pngs
xml files - these files are in binary code in the framework-res.apk. The apk needs to be decompiled in order to return these to human readable code. Also, many of your xml files are hidden within the resources.arsc file in the framework-res.apk and cannot be accessed unless you decompile.
In order to make any changes to the xml files or the draw-9 pngs within framework-res.apk you need to decompile it rather than extract it. Extracting the framework-res.apk with a program like winzip simply unzips the file and does not break the code back down to an editable format. Decompiling the framework-res.apk with a program like apk Manager will actually break down the resources.arsc file into the sepereate xmls folders (values, etc.) and also restore the instructions border to draw-9 pngs.
Draw-9 images not edited correctly will not stretch properly in the system and may cause decompilation/recompilation errors. XML files not edited correctly may also cause recompilation errors. It is very important to pay attention to the log.txt file for any errors that may be occurring during your decompilation/recompilation process.
Download apk Manager
Now here is what I've learned about apk Manager:
put framework-res.apk in the place-apk-here-for-modding folder
run the script
enter 22 to select an apk, then 1 to select your apk
press 9 to decompile the apk
go into the projects/framework-res.apk/res/drawable-hdpi folder and edit your pngs or xmls (maintain the border)
go back to the script once your done editing and enter 11 to compile
when asked if it is a system apk enter y
when asked if you want to extract other files too enter y Do not skip this step, apk Manager will seem to produce a working framework-res.apk if you skip this step but when I did it soft bricked my phone
go into the keep folder that was created and delete any pngs that you changed in the projects folder
if you change any xml files, you will also need to delete the resources.arsc file from the keep folder (this is because mane of the xml files are compiled into this resources.arsc, so to tell apk manager to rebuild it with the new xml, we need to delete the original)
go back to the script and press any key to continue
your recompiled framework-res will be in the place-apk-here-for-modding as unsigned-framework-res.apk
extract unsigned-framework-res.apk using winzip, or similar program (this is being it is compressed incorrectly)
go into the folder where you just unzipped the framework and zip it up with the compression mode set to Store - call it framework-res.apk
you are ready to go with a properly editing framework-res.apk, put it on your phone any way you like
Make sure that you have no errors when de-compiling or re-compiling. It might seem like everything is going ok, but you could end up soft bricking your phone if you don't check the log.txt in the apk Manager main folder. Check the log.txt after every decompile and recompile to ensure that you don't have a damaged framework-res.apk.
The output in log.txt should like like this for a proper decompile:
Code:
--------------------------------------------------------------------------
|Sun 05/01/2011 -- 20:11:47.57|
--------------------------------------------------------------------------
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
Could Not Find C:\Users\jbush\Documents\Custom Atrix\Programs\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
And like this for a proper recompile:
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
(skipping index file 'C:\Users\jbush\Documents\Custom Atrix\Programs\apk_manager_4.9\other\..\projects\framework-res.apk\assets\images\Thumbs.db')
(skipping index file 'C:\Users\jbush\Documents\Custom Atrix\Programs\apk_manager_4.9\other\..\projects\framework-res.apk\assets\webkit\Thumbs.db')
The system cannot find the file specified.
If you get any errors about your images or xml then you need to fix them before you can recompile.
#framework-assistant2. Framework-res.apk Assistant
Here is a tool which I use regularly to pull the current framework-res.apk from my phone, as well as to push any updated framework-res.apk to my phone. To use this batch program you need to:
Download the View attachment 584667
Extract the zip to whereever you want the program to reside
To pull your current framework-res.apk - run the Framework-Assistant.bat and tell it to pull
To push an updated framework-res.apk - place the updated framework-res.apk in the bin/push folder, run the Framework-Assistant.bat and tell it to push the updated framework-res.apk
It is always a good idea to tell it to back up the current before pushing a new
As with any and all framework-res.apk pushes, this has the ability to soft brick your phone depending on the framework-res.apk you push, or anything else for that matter. Use at your own risk.
Here are my steps to edit framework-res.apk from start to finish which might help those unfamiliar with the process:
Run Framework-Assistant.bat and answer y to pull the current framework-res.apk from the phone, but n to push the latest version (this will simply retrieve the current framework-res.apk from your phone)
Copy that framework-res.apk from the Framework Assistant/bin/pull fodler into the place-apk-here-for-modding folder of apk Manager
rename framework-res.apk to something distinguishable, I add the current time (ex: framework-res-1016.apk). Trust me, things can get messy if you end up making a few passes with different edits, you need to keep your stuff straight.
Run Script.bat in the apk Manager folder, 22 to select which apk to use, then 9 to decompile
Go into the projects/framework-res-1016.apk folder and make any changes you wish. Most png changes will be in drawable-hdpi, xmls are pimarily located in the values and layout folders.
Once I've finished making updates, run Script.bat again, 22 to select the proper apk, then compile with 11 - follow all compilation steps above all the way through zipping it as store.
Place the new framework-res.apk in the Framework Assistant/bin/push folder and run Framework-Assistant.bat
Choose y to both pull and push the framework-res.apk (I find its always a good idea to pull your latest working framework-res.apk from the phone before dropping a new one in)
If you anticipate more edits, go back to apk Manager and paste the new framework-res.apk in the place-apk-here-for-modding fodler of apk Manager and rename it with the current time attached (ex: framework-res-1023.apk)
Delete the unsignedframework-res-1016.apk and the unsignedframework-res.apk fodler (just to keep things clean)
You now have an edited framework-res.apk on your phone and are set to fix this little issues you missed on this pass, just run the apk Manager Script.bat again, enter 22 to access your latest framework-res.apk (framework-res-1023.apk) and repeat the process.
#framework-assistant3. Editing OR removing the status bar clock in services.jar
You will need:
Some zip program, I use winrar
JDK - Java Development Kit Get the JDK
baksmali to decompile and recompile the classes.dex file - View attachment 587999
Notepad++ free editor for code editing (I recommend this program for any/all code editing, apart from hex)
Here is how to change the status bar clock color:
Install the JDK
Extract baksmali to your computer
Retrieve services.jar from the /system/framework folder
Extract services.jar using your zip program (right click on the file and choose to extract)
One of the extracted files is classes.dex, copy it into the baksmali folder
Run decompile.bat in the baksmali folder - this will decompile classes.dex and place the contents in a new folder called classout
Navigate to classout\com\android\server\status
The next step involves changing clock color:
open StatusBarIcon.smali with Notepadd++ and find this entry
Code:
.line 61
const v6, -0x1
invoke-virtual {v4, v6}, Landroid/widget/TextView;->setTextColor(I)V
const v6, -0x1 identifies the color of the status bar clock. I changed this value to "const v6, -0xff000000 to set my clock to black. Essentially the last 6 digits of this entry will determine the color of the clock. Set the last six to any html color code (google it) to set your clock color. I have only tried black here as it is all I needed, so I can't personally guarantee that anything else will work.
The next step involves removing the clock:
open StatusBarPolicy.smali with Notepadd++ and find this entry
Code:
invoke-direct {p0}, Lcom/android/server/status/StatusBarPolicy;->updateClock()V
It should be under ".line 592", now add this line underneath the line just mentioned:
Code:
invoke-virtual {p2, v3, v6}, Lcom/android/server/status/StatusBarService;->setIconVisibility(Landroid/os/IBinder;Z)V
Once your done editing, save the file
Navigate back to the baksmali folder and run recompile.bat - this will rename the original classes.dex file to orig-classes.dex, and the recompiled file is saved as classes.dex
Zip up the new classes.dex along with the META-INF folder that was extracted from services.jar as, you guessed it, services.jar Leave the compression setting on Normal
Put services.jar back in your system/framework folder
This is all that I know how to do with servies.jar right now, if anyone has some additional good info please post it to this thread and I will add it on.
Can't believe I forgot to thank all those who have contributed both directly and indirectly to my knowledge thus far: Nottach, NyugenHuu, KennethPenn, riral, tonecreationz, gera4eva, HFHimself, and many random threads I found on the wonderful xda forums.
Click to expand...
Click to collapse
(This quote is from: http://forum.xda-developers.com/newreply.php?do=newreply&p=16008460 and thanks should go to that OP).
*Again, these are from Gingerbread, but may be in the same xml/location as ICS (haven't checked them all yet).
Nottach said:
Editing the status bar.
Now that you can see what needs fixing in the status bar we will decompile your original (backup) systemui.apk and edit the xmls. I will assume you have apkmanager and know how to use it. There are other guides for that so I won't go to deep into it. Look here for a video tutorial on apkmanager.
1. Decompile systemui.apk
2. Make edits to XMLs.
These are the edits I make most often.
/res/layout/status_bar.xml -
Code:
<TextView android:textSize="16.0sp" android:textStyle="bold" android:gravity="left|center" android:id="@id/onsText" android:paddingLeft="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="0" /> ///HIDES CARRIER TEXT
/res/layout/status_bar_expanded.xml -
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="?android:textAppearanceLarge" android:textColor="[color="Red"]#ffffffff[/color]" android:layout_gravity="center_vertical" android:id="@id/dateLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" /> [color="red"]///DATE TEXT COLOR[/color]
/res/values/drawable.xml -
Code:
<item type="drawable" name="shade_bgcolor">[color="Red"]#ff162939[/color]</item> [color="red"]///NOTIFICATION TITLE BACKGROUND (eg. Ongoing)[/color]
/res/values/style.xml -
Code:
<style name="TextAppearance.StatusBar.Title" parent="@android:style/TextAppearance.StatusBar">
<item name="android:textAppearance">?android:textAppearanceSmall</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">[color="red"]#ffffffff[/color]</item> [color="red"]///NOTIFICATION TITLE TEXT (eg. No Notifications)[/color]
After making your xml edits recompile, be sure to delete the edited files and resources.arsc from the keep folder during recompiling. If you don't you won't see any changes.
If you compiled with no errors you're good to go. If you have errors then you have a mistake in your code. You can check the apkmanager log for line number errors.
Once recompiled you will have unsignedSystemUI.apk in your place_here_for_modding folder. Open it in winRAR along with your previous version of SystemUI.apk from the first draft and drag the images from the first draft drawable-hdpi folder into the new unsignedSysemUI.apk's corresponding folder, overwriting the images there. Now rename unsignedSystemUI.apk to SystemUI.apk and overwrite your first draft version. This is your second draft SystemUI.apk and we will create a second draft framework-res.apk in the next step using these same steps.
Click to expand...
Click to collapse
Nottach said:
Editing the framework.
We will now decompile your original (backup) framework-res.apk and edit the xmls. Again using apkmanager.
1. Decompile systemui.apk
2. Make edits to XMLs.
These are the edits I make most often.
/res/drawable/progress_horizontal.xml -
Code:
<?xml version="1.0" encoding="UTF-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@id/background">
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff262223" android:endColor="#ff414042" android:angle="270.0" android:centerY="0.13" android:centerColor="#ff262223" />
<stroke android:width="2.0px" android:color="#ff999999" />
</shape>
</item>
<item android:id="@id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#80[color="red"]547f8c[/color]" android:endColor="#a0[color="red"]87cce2[/color]" android:angle="-90.0" android:centerY="0.13" android:centerColor="#80[color="red"]547f8c[/color]" />
<stroke android:width="2.0px" android:color="#ff999999" />
</shape>
</clip>
</item>
<item android:id="@id/progress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff[color="red"]547f8c[/color]" android:endColor="#ff[color="red"]87cce2[/color]" android:angle="-90.0" android:centerY="0.13" android:centerColor="#ff[color="Red"]547f8c[/color]" />
<stroke android:width="2.0px" android:color="#ff999999" />
</shape>
</clip>
</item>
</layer-list>
/res/values/styles.xml - text colors
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">[color="red"]#ff555555[/color]</item> [color="red"]///POP UP MENU TEXT COLOR[/color]
</style>
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="textColor">[color="red"]#ff555555[/color]</item> [color="red"]///SECONDARY MENU TEXT COLOR[/color]
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
[color="red"]///DELETED LINE[/color]
</style>
Code:
<style name="TextAppearance.WindowTitle" parent="@style/TextAppearance">
<item name="textSize">14.0sp</item>
<item name="textStyle">bold</item>
<item name="textColor">[color="Red">#ffffffff[/color]</item> [color="red"]///WINDOW TITLE TEXT (App Title Bar)[/color]
</style>
Code:
<style name="TextAppearance.StatusBar.Title" parent="@style/TextAppearance.StatusBar">
<item name="textStyle">bold</item>
<item name="textColor">[color="red"]#ffffffff[/color]</item> [color="red"]///STATUS BAR TITLE (May be same as SystemUI?)[/color]
</style>
Code:
<style name="TextAppearance.StatusBar.EventContent.Title" parent="@style/TextAppearance.StatusBar.EventContent">
<item name="textSize">16.0sp</item>
<item name="textStyle">bold</item>
<item name="textColor">[color="red"]#ffffffff[/color]</item> [color="red"]///FIRST LINE OF NOTIFICATION[/color]
</style>
Code:
<style name="TextAppearance.StatusBar.EventContent" parent="@style/TextAppearance.StatusBar">
<item name="textColor">[color="red"]#ffffffff[/color]</item> [color="red"]///2ND LINE OF NOTIFICATION[/color]
</style>
Code:
<style name="Widget.Button" parent="@style/Widget">
<item name="textAppearance">?textAppearanceSmallInverse</item>
<item name="textColor">[color="red"]#ffffffff[/color]</item> [color="red"]///BUTTON TEXT COLOR[/color]
<item name="gravity">center</item>
<item name="background">@drawable/btn_default</item>
<item name="focusable">true</item>
<item name="clickable">true</item>
</style>
After making your xml edits recompile, be sure to delete the edited files and resources.arsc from the keep folder during recompiling. If you don't you won't see any changes.
If you compiled with no errors you're good to go. If you have errors then you have a mistake in your code. You can check the apkmanager log for line number errors.
Now following the same steps as we did for SystemUI we will overwrite the images in the new unsignedframework-res.apk with those from the first draft framework-res.apk. By dragging from one winRAR window to the other. Once you've done that rename the new apk and overwrite the first draft version. Create a new update zip, using "store" or "none" and flash it. You should now see the text edits you just made.
Click to expand...
Click to collapse
Nottach said:
Advanced Tips
.9 Images.
--If a .9.png is all (every pixel) one color then the .9 patch does not matter.
Hex editing.
--It is not always necessary to decompile to make text color or slider edits. Instead if know what color you're looking for you can use a hex editor to make the edits.
--For instance, to change text colors without decompiling you would.
Open framework-res.apk in winRAR.
Extract resources.arsc
Open resources.arsc in a hex editor.
Search for the color in this format BB GG RR AA, as opposed to usual aarrggbb. (Red = ffff0000 = 00 00 FF FF)
Replace with desired color following same format.
Save and overwrite original by dragging new version into winRAR.
--To change slider colors without decompiling you would.
Open framework-res.apk in winRAR.
Extract /res/drawable/progress_horizontal.xml
Open progress_horizontal.xml in a hex editor.
Search for 08 00 00 1C.
After each instance examine the next four pairs.
The first few will be grey but eventually youll come to a color.
That's where you start editing. (6 total)
Replace with desired color following same format.
Save and overwrite original by dragging new version into winRAR.
Click to expand...
Click to collapse
Reserved!!
Awesome. Thanks!
Great guides for the noobies Swiftks =) Also i think i might have a work around for the patch9 pngs, Ill msg you on GChat
great stuff, thanks for sharing mate.
Sent from my TF201
Things you will need:
- Java SDK -> Download from HERE
- baksmali-1.3.2.jar and smali-1.3.2.jar-> Download from HERE
- Notepad++-> Download from HERE
Step One:
-> Create a folder named "project" on your desktop and put the "baksmali-1.3.2.jar" and "smali-1.3.2.jar" inside;
{
"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"
}
Step Two:
-> Copy your ROM to "Project" folder and open it and extract the file "services.jar" from "system/framework";
Step Three:
-> Extract "classes.dex" from "services.jar" (using winrar) to "Project" folder;
Step Four:
-> Decompile "classes.dex" using baksmali.jar
- Open cmd with administrator rights
- Go to "Project" folder (cd "C:/Users/[your username account]/Desktop/Project/")
- Decompile the file entering this on cmd-> java -jar baksmali-1.3.2.jar classes.dex
- A folder named "out" should now be created
- Go to "out\com\android\server" and open "NotificationManagerService" with notepad++
- Add a # at the beggining of the following lines:
line 1933
before:
if-nez v4, :cond_18
Click to expand...
Click to collapse
after:
#if-nez v4, :cond_18
Click to expand...
Click to collapse
line 1983
before:
if-nez v4, :cond_3d
Click to expand...
Click to collapse
after:
#if-nez v4, :cond_3d
Click to expand...
Click to collapse
save the file and close notepad++;
Step Five:
-> Re-compile classes.dex
- Open cmd as administrator rights
- Go to "Project" folder (cd "C:/Users/[your username account]/Desktop/Project/")
- Re-compile the file entering this on cmd-> java -jar smali-1.3.2.jar -o "C:/Users/[your username account]/Desktop/Project/classes_edited.dex" "C:/Users/[your username account]/Desktop/Project/out"
- A file named "classes_edited.dex" should now be created on "Project" folder;
Step Six:
- Delete "classes.dex" (the old one) and change the name of the new one from "classes_edited.dex" to "classes.dex" and delete the "out" folder
- Open "services.jar" (with winrar) and put the "classes.dex" file at root (it will overwritte automatically). You can delete the "classes.dex" file from "Project" folder.
- Open your rom and copy the "services.jar" file to "system/framework" (it will overwritte automatically). You can delete the "services.jar" file from "Project" folder.
Now just flash the rom via cwm and enjoy BLN for sms!
Issues:
If you are expecting issues in cmd when entering-> java (bla bla bla) you have to do this:
Open the start menu, right click on Computer, and click properties. On the lefthand bar, the bottom option should say "Advanced System Settings". Click this, then click Environment Variables.
Find the variable in the BOTTOM box, that says Path, or PATH. Click on this, and click edit. Now, find the path of your JDK, and find the folder called "bin", usually something like
C:\Program Files\Java\jdk1.5.0_11\bin
Click to expand...
Click to collapse
Thx to Prawesome for helping me!
Nice work darknight_jao.A few suggestions for the guide You could add this to the guide in case the guy who is decompiling classes.dex wants to change it around a bit.
Rename baksmali-1.3.2.jar to baksmali and smali-1.3.2.jar to smali for ease of typing Also,to define the name of the output folder,the codes should be changed to:
Code:
java -jar baksmali.jar -o <out name>
To define Java heap size to 512M
Code:
java -jar -Xmx512 baksmali.jar -o out
For viewing command list
Code:
java -jar baksmali.jar
The same goes for smali.jar too
thx man!
darknight_joao said:
thx man!
Click to expand...
Click to collapse
Not a problem
Awesome!
darknight_joao said:
Things you will need:
- Java SDK -> Download from HERE
- baksmali-1.3.2.jar and smali-1.3.2.jar-> Download from HERE
- Notepad++-> Download from HERE
Step One:
-> Create a folder named "project" on your desktop and put the "baksmali-1.3.2.jar" and "smali-1.3.2.jar" inside;
Step Two:
-> Copy your ROM to "Project" folder and open it and extract the file "services.jar" from "system/framework";
Step Three:
-> Extract "classes.dex" from "services.jar" (using winrar) to "Project" folder;
Step Four:
-> Decompile "classes.dex" using baksmali.jar
- Open cmd with administrator rights
- Go to "Project" folder (cd "C:/Users/[your username account]/Desktop/Project/")
- Decompile the file entering this on cmd-> java -jar baksmali-1.3.2.jar classes.dex
- A folder named "out" should now be created
- Go to "out\com\android\server" and open "NotificationManagerService" with notepad++
- Add a # at the beggining of the following lines:
line 1933
before:
after:
line 1983
before:
after:
save the file and close notepad++;
Step Five:
-> Re-compile classes.dex
- Open cmd as administrator rights
- Go to "Project" folder (cd "C:/Users/[your username account]/Desktop/Project/")
- Re-compile the file entering this on cmd-> java -jar smali-1.3.2.jar -o "C:/Users/[your username account]/Desktop/Project/classes_edited.dex" "C:/Users/[your username account]/Desktop/Project/out"
- A file named "classes_edited.dex" should now be created on "Project" folder;
Step Six:
- Delete "classes.dex" (the old one) and change the name of the new one from "classes_edited.dex" to "classes.dex" and delete the "out" folder
- Open "services.jar" (with winrar) and put the "classes.dex" file at root (it will overwritte automatically). You can delete the "classes.dex" file from "Project" folder.
- Open your rom and copy the "services.jar" file to "system/framework" (it will overwritte automatically). You can delete the "services.jar" file from "Project" folder.
Now just flash the rom via cwm and enjoy BLN for sms!
Issues:
If you are expecting issues in cmd when entering-> java (bla bla bla) you have to do this:
Thx to Prawesome for helping me!
Click to expand...
Click to collapse
Thankyou brother
no problem
im glad i could help!
after replacing services.jar, we delete dalvik-cache and data/data, services.jar only files old, for regeneration new
1) First of all, you need to download and install APK MANAGER:
http://forum.xda-developers.com/showthread.php?t=695701
2) Extract with WinRAR, from the ROM you want to modify, the file framework-res.apk, that you can find in the directory \System\framework\.
3) Go to the apk manager folder and place the framework-res.apk file in the folder "place-apk-here-for-modding".
4) In the apk manager folder, double click on the file "Script". A cmd window will open.
5) Where it says "Please make your decision", write "22" (Set current project) and enter. Then enter "1" (to choose the first apk) and enter. Then enter "9" (Decompile apk) and enter.
The script will decompile the framework-res.apk.
6) Now go to your apk manager folder, go to projects\framework-res\res\anim\.
In this folder there are the animations of your rom. They consist in some .xml files decompiled.
7) Download this: http://www.mediafire.com/?9pf469gjjtpz9qf
8) Copy the files from the folder "anim" of the zip downloaded into the anim folder and you are asked to replace the files; choose yes.
9) Now go to your apk manager folder, go to projects\framework-res\res\values\. Edit the file integers.xml.
Modify the values in those lines:
Code:
<integer name="config_shortAnimTime">150</integer>
<integer name="config_mediumAnimTime">300</integer>
<integer name="config_longAnimTime">400</integer>
to:
Code:
<integer name="config_shortAnimTime">200</integer>
<integer name="config_mediumAnimTime">400</integer>
<integer name="config_longAnimTime">500</integer>
and add these just below:
Code:
<integer name="config_activityShortDur">150</integer>
<integer name="config_activityDefaultDur">220</integer>
Save.
10) Return to Script. Enter "11" (Compile apk) and enter.
The script will rebuild the framework-res.apk.
11) You are asked if this is a system application. Enter "n" and enter.
12) Go to the folder "place-apk-here-for-modding" delete the file "unsignedframework-res.apk", click with the right mouse button on "framework-res.apk" and select "7zip > Open file", delete the folder "res" and "resource.arsc", go to the folder "projects\framework-res\build\apk\" select the folder "res" and the "resource.arsc", drag to zip and close.
13) Ready, now just replace.
P.S.: If you think that this post can help or interest people of other forums (with other devices), please share this post and also give credit to me!
Video demonstration:
http://www.youtube.com/watch?v=6Jy13o4miME
Nice guide
nice tuts,, will try it soon.
Could someone please upload it for the latest CM nightly? I really want to try it, but I'm not at home. So if someone happens to do it, please upload.
Nice guide
Insert witty sentence here
https://dl.dropbox.com/u/1664131/framework-res.apk for latest CM 7.2 nightly 20120923. Works great, thanks for the guide .
Holy fing sht! This is great! Thank you very much.
Videodemonstration add in OP
Some moderator can move this topic to this area http://forum.xda-developers.com/forumdisplay.php?f=565
I think that is the most appropriate place!
tried on CMX. works great. thanks bud.
Very nice guide....i wl try it today.....
Sent from my GT-S6102 using Tapatalk 2
Is it compatible to a framework with transparency?
I've tried it with Hyperion and nothing happened!
ErvinJohnEstrera said:
Is it compatible to a framework with transparency?
I've tried it with Hyperion and nothing happened!
Click to expand...
Click to collapse
Yes
Send me your framework-res and I can do for you
I tried with a framework tha hve the 14 toggles in status bar and the phone cant boot....
I have the reflash the rom :thumbup:
Sent from my GT-S5830 using Tapatalk 2
DaNiElCoRe said:
I tried with a framework tha hve the 14 toggles in status bar and the phone cant boot....
I have the reflash the rom :thumbup:
Sent from my GT-S5830 using Tapatalk 2
Click to expand...
Click to collapse
I am 15 and toogles in statusbar works perfectly, must have done something wrong.
Dinhodroid said:
I am 15 and toogles in statusbar works perfectly, must have done something wrong.
Click to expand...
Click to collapse
I will try again and comment the results.
Sent from my GT-S5830 using Tapatalk 2
nice..definitely going to try it
nice guide! i'll try it.. thanks!
This mod work in a stock rom because dont work for me in ktm stock.
Sent from my GT-S5830 using Tapatalk 2
Dinhodroid said:
1) First of all, you need to download and install APK MANAGER:
http://forum.xda-developers.com/showthread.php?t=695701
2) Extract with WinRAR, from the ROM you want to modify, the file framework-res.apk, that you can find in the directory \System\framework\.
3) Go to the apk manager folder and place the framework-res.apk file in the folder "place-apk-here-for-modding".
4) In the apk manager folder, double click on the file "Script". A cmd window will open.
5) Where it says "Please make your decision", write "22" (Set current project) and enter. Then enter "1" (to choose the first apk) and enter. Then enter "9" (Decompile apk) and enter.
The script will decompile the framework-res.apk.
6) Now go to your apk manager folder, go to projects\framework-res\res\anim\.
In this folder there are the animations of your rom. They consist in some .xml files decompiled.
7) Download this: http://www.mediafire.com/?3iinoup1n6jxpu2
8) Copy the files from the folder "anim" of the zip downloaded into the anim folder and you are asked to replace the files; choose yes.
9) Now go to your apk manager folder, go to projects\framework-res\res\values\. Edit the file integers.xml.
Modify the values in those lines:
Code:
<integer name="config_shortAnimTime">150</integer>
<integer name="config_mediumAnimTime">300</integer>
<integer name="config_longAnimTime">400</integer>
to:
Code:
<integer name="config_shortAnimTime">200</integer>
<integer name="config_mediumAnimTime">400</integer>
<integer name="config_longAnimTime">500</integer>
and add these just below:
Code:
<integer name="config_activityShortDur">150</integer>
<integer name="config_activityDefaultDur">220</integer>
Save.
10) Return to Script. Enter "11" (Compile apk) and enter.
The script will rebuild the framework-res.apk.
11) You are asked if this is a system application. Enter "n" and enter.
12) Go to the folder "place-apk-here-for-modding" delete the file "unsignedframework-res.apk", click with the right mouse button on "framework-res.apk" and select "7zip > Open file", delete the folder "res" and "resource.arsc", go to the folder "projects\framework-res\build\apk\" select the folder "res" and the "resource.arsc", drag to zip and close.
13) Ready, now just replace.
P.S.: If you think that this post can help or interest people of other forums (with other devices), please share this post and also give credit to me!
Video demonstration:
http://www.youtube.com/watch?v=43_weDoZHtc&feature=youtu.be
Click to expand...
Click to collapse
Can u give your aapt.exe .. I failed to compiled my framework-res.apk .. i feel the problem was the aapt.exe
This is Windows Studios Package Installer/Packager! It has the option to make advanced Certificates tht allow Server/Client Authentication diable early driver enforcement and can be used to bypass intnded security features Windows has made and is still making. CHECK THE CERTIFICATES PURPOSES for option you use and do not Use!
{
"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"
}
https://drive.google.com/open?id=1MMdLcHTlbtQ3D7-OXY5_XpXoI-rzshAoEQ[/IMG
===================================================================================
Step 1 Obtaining access to Appx Folder
===================================================================================
-Put Tools in your Documents folder or it will not run without changing the RUME.bat
-Open Program files folder
-Type WindowsApps
-Click Security on Pop up
-Click General uncheck hidden
-Click Security Advanced
-Change Owner at top from trusted installer to USER account
-Click Advanced Find Now (User account)
-Click Apply
-Wait then Click Ok
-in Program Files Folder Type WindowsApps
-Click the back button
-Right Click Properties General Uncheck Hidden
-Customize Change Icon
==================================================================================
Step 2 Making Certificate and Directories for Certificates made.
==================================================================================
Go to program files make sure Windows Apps is visible (FOLDERDIR used to be C:\Program Files/Windows/Apps/WindowsApps)
Open and Copy all folders to documents Tools Appx ORINGINAL-APPX folder
-Win R notepad
-Copy Appx folder name to Notepad do not save
-open ORIGINAL-APPX folder name you put in notepad
-Copy all
-go to Tools/Appx (root)
-go to x64/NewAppx/Appx
-Paste contents there
-Copy reources.pri
-Paste resources.pri in x64/NewAppx/PRIdump
(these are the resources for verifiying the appx Container during Compiliation of Appx)
-go to root Click RunMe.bat
-Make certificate
-no password (use encrypt option) .der extended Attributes ^READTOP^
-make pvk-pfx no password
-Save as .PFX not .pk8
Check x64 folder for .cer .pvk .pfx SHould be Labeled Windows *(Check bottom Step 5 Certifcate error for Edit bat Certain Appxs need a certificate made with different certificate names simple fix)*
===================================================================================
Step 3 Importing Certificates to Microsoft Management Console MMC
===================================================================================
[IMG]https://drive.google.com/open?id=1HyLtvp5HBUkrIu6f1qpqgqgzk1AbXrAXeQ
-Win R MMC
-Click enter
-Click file new snapin
-Check Certificates, Event viewer, Ip Security Monitor
-Click advanced Allow Parent Snapin Changing (allows snapin to Run configuration without mmc open and changes through Cmd/Powershell(I suggest Setting Firewall dissallowing remote connections to mmc, explorer, regedit, regserver, Dism ect. NTS0Kernel((System) dont forget about object types OTHER is garbage .visx Due to ^Step above^)
-Make one for Local Computer and User
-Do Local first
-Click Certificates Personal Certidficates
-Right click whitespace alltask>import
-go to tools/appx/x64 import .cer
-repeat and import all files .ext Windows.pfx
-Click WhiteSpace refresh Should be a little key and New certificate above certificate.
-Right CLick Certificate Properties Enable only the Following Purposes needed -Windows Store -Signing -Autentication ect
(Make Extended certificates to correlate with Windows Authentication to Windows if needed with Password same as Login Password)
-Right Click on that certificate Copy and paste in Following dirs for LOCALCOMPUTER
-Trusted Root (may Prompt an Overwrite of the Original Windows Certificate) Export current Cert if needed for reimport
-Enterprise
-Trusted Publisher
-Client Authenication
-Trusted Devices
-Windows Live Token *
- Refresh after each paste for PFX to show correlating certificate
-Save
-again with User account
-Save
Now you can sign Appxs with windows signature or Appx Signature
==============================================================================================
Step 4 RUNME.bat and funtionality
==============================================================================================
this tool is not completly finished
allows compilation, unpack, encryption, decryption of any APPX. Allows editing of Contents as well as new resource files for modified Appxs or System apps Under Windows Folder. Some features do not work as they need to be edited.
========================================================================================
=======================================================================================
@ECHO %USERNAME% AppxTools!
:INTRO_SW
echo _______________________________________________________________________________
echo ----------------------------------------------------------------------------
echo Welcome, %USERNAME% AppxTools!
echo ----------------------------------------------------------------------------
echo
echo 1=MakeAppx
echo 2=Makecert
echo 3=pvk2pfx
echo 4=signtool
echo 5=Encrypt
echo 6=Decrypt
echo _____________________________________________________________________________
1 makes extracts appx
--does disable language verification while making Appx
2 Certificates
--Makes Advanced Purposes Certificates (can be used on Androids)
3 Pvk2pfx
--Makes certificate pvk and Pfx for signing
4 Signtool
--Signs Appx with certificate after matching MMC certificate installation/import
5 Encrypt
--Encrypts Package after signing
6 Decrypt
--Decrypts Package
=======================================================================================
Commands for installing/Removing Appxs
=======================================================================================
get-AppxPackage
--List all installed Appxs and Certificates
add-AppxPackage
--Installs Appx Package
remove-AppxPacakge
--Removes/Uninstalls Appx Package
You have to use Powershell or Powershell_Ise to install/remove Appxs
--If its allready installed you need to uninstall it before installing
=======================================================================================
Win R Powershell_Ise enter
needs to be ran as Admin (win x task manager running process right click open file location or open process open file location (Make a shortcut properties Advanced run as Admin)
cd /
cd C:\%USERNAME%\Documents\Tools\Appx\x64 add-AppxPackage NEWPackage.appx
=======================================================================================
Step 5 Checking Appx Certificate and Certificate Editing in RunMe.bat
=======================================================================================
Some packages you sign will recieve and error untill you remake them
-Appx\NewAppx\Appx
-right click AppxAminifest
-click edit
-find PackageDependency Name= VLIBS
-Copy " " Certificate Name
-Appx (root Folder)
-edit RUNME.bat
-scroll down to :MAKEcert
-replace all 256 512 SHA1
-I suggest Labeleing Certs PVKs and PFX Check SHA folder and saving them
-Import to MMC then resign and install
========================================================================================
Fairly quick way of editing Appxs Assests ect I suggest installing Visual Studio
mediafire.com
/file/jjlp81s4ujkp5sy/Appx-Tools-2017.7z