[GUIDE][MIUI] Move App to SD - Android Software/Hacking General [Developers Only]

Many people asks for how to move apps to SD. I tested it on my ICS MIUI ROM. so thought to share here.....
Its too simple, just need to change one word to enable it
Requirement :-
1. Apktool
2. Settings.apk
Click to expand...
Click to collapse
Steps:-
1. Decompile settings.apk
2. Go to res>values>bools.xml
Search for below line :
Code:
<bool name="disable_move_to_sd">true</bool>
Change it to :
Code:
<bool name="disable_move_to_sd">false</bool>
3. Now compile settings.apk
Click to expand...
Click to collapse

Related

[How to] noobs guide to decompile/recompile android application

Guide to decompile android application
REQUIREMENT
Apktool [ http://www.mediafire.com/?ooaflvs6nvo5xvq ][Thanks to brut.all for this apktool]
Java JDK/JRE 32 bit [please google it guy's]
Little knowledge on cmd
__________________________________________________ __________________________________________________ _____________________
Preparation before WORKING
Process :-
1)now install the java in your pc/lappy
then copy the apktool.zip & goto directory C:/
make a folder name apktool (u can name it by watever u like)
now goto that folder & paste the zip
extract that zip there...
2) now copy the .apk or jar file which u wnt to decompile
& paste it on apktool folder.....
also copy the framework-res.apk of that rom &
paste it on that folder..
Decompiling application
3) now open cmd
Your cmd will probly look like this..
C:\users\yourname>
so type in
cd.. (yes include the '..' and press enter after you type each command)
this will get you to back directory so now you will see
C:\users>
so type again
cd..
you should now see this:
C:\>
now type
cd apktool (and you are in the apktool directory)
4)Installing Framework
Now that you are in directory we need to install the device's framework to your system for it to compile correctly so type this:
apktool if framework-res.apk
this will install the devices framework to your system (need to do this)
5)now to decompile the apk you want to edit.. type this:
apktool d music.apk mod
music.apk is the apk your decompiling
mod is the folder you're creating for the decompiled apk
do whatever you want to do with your apk...
NOW RECOMPILING
6)now to recompile your new apk type this:
apktool b mod music-new.apk
mod is the folder with your edited files
music-new.apk is your new apk file
Now we are NOT done... we cannot use the new apk's...
now make two separate folder a & b
copy-paste the original music.apk in 'a'
& music-new.apk in 'b'
use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "new-edited" apk and copy them into Original apk
now add to archive ...the origanl apk in zip format
& at the end of the file name .apk ( i mean give the file format name as .apk insted of .zip)
Now you are almost done..... :good: :good:
IF it is a system app then don't sign it....otherwise u have to sign that app....
That's all
don't forget to hit thanks or comment.... :good: :good:
Quick info: It doesn't work for chineese roms
lozohcum said:
Quick info: It doesn't work for chineese roms
Click to expand...
Click to collapse
is sony roms r chinese?!
Sent from my GT-S5360 using xda app-developers app
No but you can't use it for MIUI/Lewa porting, just saying
lozohcum said:
No but you can't use it for MIUI/Lewa porting, just saying
Click to expand...
Click to collapse
hmm its for gb,ics and jb based roms.. and its very simle guide :good:
ASK
Sorry Bro.. I am trying this method to decompile and recompile *.apk in system, but it say needed "twframework-res.apk" / 2.apk .. where i can get this file..? because there is nothing twframework-res.apk file in my phone...
thanks..
Java_Indo said:
twframework-res.apk
Click to expand...
Click to collapse
It is in system/framework
But be very careful
Because it may cause your handy not to boot
Regards
Naney said:
It is in system/framework
But be very careful
Because it may cause your handy not to boot
Regards
Click to expand...
Click to collapse
sorry , twframework-res.apk cannot found in framework folder,
btw do you have twframework-res.apk for tipo?
if ya, would u like to share with me...
thanks for your explanation.
Java_Indo said:
do you have twframework-res.apk for tipo?
Click to expand...
Click to collapse
Which ROM are you using?
Naney said:
Which ROM are you using?
Click to expand...
Click to collapse
sorry .. usually iam using JB ROM Cyanogen, but for now iam using MIUI v5 . ..
Java_Indo said:
do you have twframework-res.apk for tipo?
Click to expand...
Click to collapse
Here you are...

[GUIDE][ICS] Status BAR/General [18/6/13]

Change Background Of Recent Apps.​
NOTE:
-This Works only with Sense4.0a,ICS,CM-9 [Trust me I've tested it myself]
-I'll take the Black Color Code to Change the Background.
-Read before posting Queries.
-Changing Background-- Increases Smoothness
Click to expand...
Click to collapse
TUTORIAL :
Click to expand...
Click to collapse
Pull SystemUI.apk from your Phone.
Decompile the APK Using Any APK Decompiler.
Navigate to res/values/drawables.xml
Search "<item type="drawable" name="status_bar_recents_background_solid">#b3000000</item>" inside "drawables.xml"
Change The Color Code That is "#b3000000" To "#ff000000" to make it black.
You can Change to any color you want, Just change the color code.
Save the xml.
Recompile APK
Sign the APK
Push it in /system/app
You're free to Enjoy .
Open this Thread and Hit Thanks. Least You can do.
Thank's. Try it and let me know.
Click to expand...
Click to collapse
Enabling Lock Screen Rotation
Instructions:​
Decompile framework-res.apk
Navigate to /res/values/bools.xml
Open bools.xml via notepad++
Change "confix_enableLockscreenRotation" To "True" From "False"
Recompile framework-res.apk
Sign the APK And test it
​
Disabling Capacitive Button's Backlight​
Over review:​
Decompile framework-res.apk
Edit bool.xml
Recompile APK
Sign APK
Procedure:
Decompile framework-res.apk
Go to framework/res/value/bools.xml
Find these Two lines:
<bool name="config_automatic_brightness_available">true</bool>
Click to expand...
Click to collapse
AND
<bool name="config_autoBrightnessButtonKeyboard">true</bool>
Click to expand...
Click to collapse
Make Sure that the value in these two lines must be >true<
That's All :angel:
I'll add more when I'll get time For now try these ​
The capacitive buttons backlight procedure, is the solution for some ROMs that had them dissable?
If yes, I cant find the bools.xml into framework-res.apk
Regards!

[GUIDE][MOD] How to change settings background image on Jellybean 4.2.x

This is how you can change all the system backgrounds plain colors (settings, contacts, etc) to an actual image instead of a color
The how to:
1. Decompile the framework-res.apk using Android Multitool
2. navigate to the res>styles>styles.xml and with notepad++ locate <style name="Theme"> and edit these lines:
change:
Code:
<item name="colorBackground">@color/background_dark</item>
to this
Code:
<item name="colorBackground">@color/transparent</item>
then change:
Code:
<item name="windowBackground">@drawable/screen_background_dark</item>
to this one to use a png for the background:
Code:
<item name="windowBackground">@drawable/backgroundftw</item>
3. Locate <style name="Theme.Black" parent="@style/Theme">
and change this line:
Code:
<item name="colorBackground">@color/black</item>
to this:
Code:
<item name="colorBackground">@color/transparent</item>
then change:
Code:
<item name="windowBackground">@color/black</item>
to this for the png image:
Code:
<item name="windowBackground">@drawable/backgroundftw</item>
4. Use a 512x512 png , name it "backgroundftw" and place it in drawable-nodpi folder
5. Recompile the framework-res.apk and replace it with the old framework-res.apk in system/framework
6. Enjoy
Things required for this tutorial:
1. Android Miltitool to decompile and replace image
2. notepad++ for the coding
3. Your brain
4. You have to know where to obtain the framework-res.apk from on your phone. Just go to system/framework using root explorer
5. Make a backup of ur ROM or a flashable of your old framework-res.apk just incase if you make a mistake while coding. So that you dont encounter a bootloop
6. Find a video on youtube to learn how to compile and decompile your framework-res.apk
Difficulty for this tutorial: medium
For images CLICK HERE
good but wrong way bro......
ur steps are correct but method is wrong....
u cannot obtain styles.xml or find value folder with 7 zip....
u need apktool for that....
n just adding images or edited styles.xml ...to framework-res.apk
bootloops n fcs.....
i
Avenger4droid said:
good but wrong way bro......
ur steps are correct but method is wrong....
u cannot obtain styles.xml or find value folder with 7 zip....
u need apktool for that....
n just adding images or edited styles.xml ...to framework-res.apk
bootloops n fcs.....
i
Click to expand...
Click to collapse
Will update the thread tomorrow
nathanjp said:
will update the thread tomorrow
Click to expand...
Click to collapse
update the thread then i will try for sure don't want bootloop
upload video bro
awesome workk bro but if u upload a video step by step then its very useful to every one or if not possible then plzz upload a image bro
Thread updated try it now
gaurav247star said:
update the thread then i will try for sure don't want bootloop
Click to expand...
Click to collapse
Bro i updated the thread a couple days ago. Try it now
great work and helpful guide
nathanjp said:
This is how you can change all the system backgrounds plain colors (settings, contacts, etc) to an actual image instead of a color
The how to:
1. Decompile the framework-res.apk using Android Multitool
2. navigate to the res>lstyles>styles.xml and with notepad++ locate <style name="Theme"> and edit these lines:
change:
Code:
<item name="colorBackground">@color/background_dark</item>
to this
Code:
<item name="colorBackground">@color/transparent</item>
then change:
Code:
<item name="windowBackground">@drawable/screen_background_dark</item>
to this one to use a png for the background:
Code:
<item name="windowBackground">@drawable/backgroundftw</item>
3. Locate <style name="Theme.Black" parent="@style/Theme">
and change this line:
Code:
<item name="colorBackground">@color/black</item>
to this:
Code:
<item name="colorBackground">@color/transparent</item>
then change:
Code:
<item name="windowBackground">@color/black</item>
to this for the png image:
Code:
<item name="windowBackground">@drawable/backgroundftw</item>
4. Use a 512x512 png , name it "backgroundftw" and place it in drawable-nodpi folder
5. Recompile the framework-res.apk and replace it with the old framework-res.apk in system/framework
6. Enjoy
Things required for this tutorial:
1. Android Miltitool to decompile and replace image
2. notepad++ for the coding
3. Your brain
4. You have to know where to obtain the framework-res.apk from on your phone. Just go to system/framework using root explorer
5. Make a backup of ur ROM or a flashable of your old framework-res.apk just incase if you make a mistake while coding. So that you dont encounter a bootloop
6. Find a video on youtube to learn how to compile and decompile your framework-res.apk
Difficulty for this tutorial: medium
Click to expand...
Click to collapse
Good work keep it up
djrkb24 said:
Good work keep it up
Click to expand...
Click to collapse
Have u tried the tutorial??
Guys do post your screenshots if you have tried out the tutorial
Will post a newer and simpler tutorial to make it easy for u guys. All you have to do is replace the image in this. Flash able zip will so be available
Hit the thanks button if you guys would like that
nathanjp said:
Will post a newer and simpler tutorial to make it easy for u guys. All you have to do is replace the image in this. Flash able zip will so be available
Hit the thanks button if you guys would like that
Click to expand...
Click to collapse
Isn't the settings background located in /res/drawable/background_holo_dark.xml?
DonDizzurp said:
Isn't the settings background located in /res/drawable/background_holo_dark.xml?
Click to expand...
Click to collapse
Nope you dont wanna edit that
nathanjp said:
Nope you dont wanna edit that
Click to expand...
Click to collapse
That's what I edited in order to remove the gradient and get an all black background. I did the styles.xml mod to get the wallpaper working though.
Its A Brilliant Guide Brother..Thanks..!
Thunder_Droid said:
Its A Brilliant Guide Brother..Thanks..!
Click to expand...
Click to collapse
Thanks bro.
work..thank you bro
could any1 let me know that how to make background transpearent
Copied Post GARBAGE

[GUIDE][GB]How to Make A Transparent Status Bar

Hello Guys
This is a Guide on How to make your status bar transparent
This Thread is mostly on GB Devices
Moderators.. Please MOVE This Thread if post in wrong section... Sorry
Click to expand...
Click to collapse
You can try it on other device....
Like on ICS,JB,KK
Tested on GB Device... (GT-S5302 Samsung Galaxy Pocket Duos Lite)
I will tell you the Requirements and Or anything you need..... Just continue reading
Requirements:
SystemUI.apk
Knowledge of Editing XML
Apktool Installed
Java JRE Installed (To make everything fine at all)
Nandroid Backup or Backup of Existing Status Bar Before Editing
Click to expand...
Click to collapse
Additional:
Download This...
Name:Transparent Codes.TXT*NEEDED*
Link:http://d-h.st/gsI
MD5:95f9cca41d0f6ff6f067b675d0a5af33
Click to expand...
Click to collapse
This what will you do...
1.) Decompile SystemUI.apk
2.) Navigate to SystemUI/res/layout/status_bar.xml
3.) Then Find this line
<com.android.systemui.statusbar.StatusBarView androidrientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
4.) You will edit in this line is this....
Code:
android:background="#ff000000"
Now.... Go open the transparent codes.txt and copy the code that list there..(there are 20% 50% 75% and 100 % transparent codes..)
and it will be like this...
Code:
android:background="#3F000000" (75% transparent code though)
5.) Now Save and recompile and Sign it...
6.) Flash it or Push it
Click to expand...
Click to collapse
No PC?? Then In Mobile.... this is how..
Apktool For Android Devices
Link:https://code.google.com/p/apktool/
920 Text Editor
Link:Not Available.... Search it on Play Store
Or Any Editor That has XML Supported!
Decompile it but first install framework first!
Then Open the status_bar.xml with 920 Text editor or any editor xml supported
After Editing Recompile and Sign
Push it
Click to expand...
Click to collapse
There are two methods that ables you to apply it to your system
1.)Flashing The ZIP
2.)Pushing through System
Flashing Method...
Link:http://d-h.st/Bm9
MD5:8e4d16ffaf810025df1dc3b2f427f563
AND Requires a..
And have an knowledge of adding files through the ZIPs
Must Extract it and edit the updater-script through Notepad ++
And Make it into ZIP in Compression Format to Store
Click to expand...
Click to collapse
DONE!
For Pushing...
You Need... Root Explorer....
Cannot add link.. Why.. Its Paided..
This is how...
1.)Go to Root Explorer
2.)Get The SystemUI.apk that has modified....
3.)Navigate to System/app
4.)Mount R/W
5.)Delete the Exist SystemUI.apk
6.)Paste it quickly the copied SystemUI.apk
7.)Set Permission... to rw-r--r--
Click to expand...
Click to collapse
or just this...
Owner:Check Check Uncheck
Group:Check Uncheck Uncheck
Others:Check Uncheck Uncheck
Click to expand...
Click to collapse
Credits:
Narinda iBay
Galaxy Pocket FB Community Group
Me
You who reading
Click to expand...
Click to collapse

(Touchwiz Samsung) How to Double Status Bar without decompiling Framework-res.apk

Items Required:-
1) SystemUI.apk
2) Apktool
3) Any text Editor such as Notepad ++ Or 920 Text Editor Or Jota Editor
Steps:-
1) First of all decompile SystemUI.apk
2) Now open decompiled UI.
3) Goto res/values folder of your decompile systemUI.
4) Open Dimens.xml By any text editor.
5) Search status_bar_size .
6) You will get something likes this :-
@*android:dimen/status_bar_height .
7) Now delete @*android:dimen/status_bar_height and replace it by 50.0dip .
8) Now Save it.
9) Recompile it. Push Meta Inf and androidmanifest.xml of original ui into the modded one.
10) Push it,,,,, and set permissions to rw--r-r :thumbup:
Tested by me in Samsung Galaxy Star Pro GT-S7262 JB 4.1.2
eboybasit said:
Items Required:-
1) SystemUI.apk
2) Apktool
3) Any text Editor such as Notepad ++ Or 920 Text Editor Or Jota Editor
Steps:-
1) First of all decompile SystemUI.apk
2) Now open decompiled UI.
3) Goto res/values folder of your decompile systemUI.
4) Open Dimens.xml By any text editor.
5) Search status_bar_size .
6) You will get something likes this :-
@*android:dimen/status_bar_height .
7) Now delete @*android:dimen/status_bar_height and replace it by 50.0dip .
8) Now Save it.
9) Recompile it. Push Meta Inf and androidmanifest.xml of original ui into the modded one.
10) Push it,,,,, and set permissions to rw--r-r :thumbup:
Tested by me in Samsung Galaxy Star Pro GT-S7262 JB 4.1.2
Click to expand...
Click to collapse
What do u mean by double status bar??
Doubling status bar size to make flyme OS status bar
kahmad989 said:
What do u mean by double status bar??
Click to expand...
Click to collapse
maybe change size statusbar height :angel:
syaeful said:
maybe change size statusbar height :angel:
Click to expand...
Click to collapse
Right bro ^_^

Categories

Resources