to create terminal command shortcut you will need these apps
1.script manager
2.sm widget
3.es file explorer
now creating shortcut:-
1. open es file explorer
2. create a folder naming "scripts"
3. open scripts folder
4. create a simple .txt file and write only one command in it like 'reboot' without writing su after that rename the extension of the file to .sh (for e.g reboot.sh)
5. open script manager app
6. go to scripts folder
7. tap on .sh file a dialog box will appear
8. tap on fav and su icon and press save button(if dont have root dont press su icon)
9. go to the home screen and just create a widget or shortcut there
now pressing the reboot shortcut or widget it will reboot the device
have fun and don't forget to press thanks button it helps me alot
change widget icon
Is it possible to change the icon for the created widget?
Launchpad McQuack said:
Is it possible to change the icon for the created widget?
Click to expand...
Click to collapse
it is possible to Change the icon of the shortcut or widget if you use a launcher like adw launcher, go launcher etc.
don't know to use it
Related
Metamorph theme that includes these four fonts:
Darkstar
Zune
Comfortaa
Stock
To use with MetaMorph:
Download MetaMorph from the market (FREE version, this will not work with MetaMorph PRO)
Place attached .zip on sdcard in a folder called AndroidThemes
Open MetaMorph, run the checks, "Pick Theme", select Fonts
Select the font you want to use
MetaMorph will ask you to reboot, click Yes. If you click YES and nothing happens (the popup asking you to reboot keeps coming up), just click NO and reboot manually.
If for some reason you are adamantly against MetaMorph, you can still use these:
Open the attached .zip
Extract the folder with the name of the fonts you want to use
Put said folder in your tools directory
Open your command prompt and navigate to your tools folder and type:
Code:
adb remount
adb push [B]<name of font folder you're using>[/B] /system/fonts/
adb reboot
INTRO:
Hello. This tutorial will be on how to replace the framework-res.apk the easyway without a computer,for jandycane, and probably CM10 and hashcode's jellybean rom.
What you can do when you change to framework is change the background for settings, root explorer, and uninstalling apps, ect. YOu can also change the lock circle and icons. and a whole lot more stuff too!
WHAT YOU NEED:
1. root explorer
2. terminal emulator
3. a little brains
INSTRUCTIONS:
You can do all of this on your kindle with out having to use a computer.
1. Download my reframe.sh.zip and extract it, and put the script on the root of your sdcard
1. extract your framework-res.apk from system/framework
2. make any modifications you want to it. Example: you want to change the settings background, you would navigate to framework-res/res/drawable-nodpi/background_holo_dark.png. Chagne the picture to anything. and put it back
3. If using root explorer. hold the extracted framework-res and press ZIP THIS FOLDER
4 go to the zipped folder and rename from framework-res.zip to framework-res.apk
5. move the framework-res.apk to the root of your sdcard.
6 go into terminal emulator and type
Code:
su
cd sdcard
sh reframe.sh
7. enjoy!
Can you please tell me how do I change status bar running apps background?
So! After a couple of evenings of tests and fails I finally figured out how to change icons in status bar like battery, signal, alarm etc.
You will need:
Rooted(!) device
ADB (SDK)
Root Explorer or similar (like that for example http://forum.xda-developers.com/showthread.php?t=1386362)
Busybox (Stephen's one from PlayStore)
7-zip
Phone USB Drivers
USB Debugging on
Windows PC
>>>MAKE YOUR SYSTEM BACKUP<<<, believe me, it will make your life easier if something goes wrong!!!!
1) Connect your phone and make sure you already installed all drivers (I took them from rooting steps http://forum.xda-developers.com/showthread.php?t=1928509)
2) In your SDK folder find "platform-tools" folder, right-click on it with "Shift" button pressed.
3) From a drop-down menu click "Command promt"
4) In cmd type: adb devices <--If everything goes as intended, you will see "List of devices attached +
Code:
device"
5) Type: adb pull /system/app/SystemUI.apk (and leave cmd window opened for a while)
6) Open "platform-tools" folder and you will see SystemUI.apk (BACK IT UP on, say, Desktop)
7) Right-click on it----7-zip----Open Archive
8) Double-click on "res" folder and there same with "drawable-hdpi". You will see lots of .png files and it is good idea to copy them to a new folder "PNG" on the Desktop
Here are images which make up the status bar and its icons. Their names tell you little, but preview option will do the rest =) Most of them are .png images with 27*27 resolution, however Plane Mode icon for instance is 48*48 (maximum height of the satus bar!). All you need now is image redactor and imagination. If you lack it or are lazy like me, you can use someone's else icons - like icons in attachment here http://forum.xda-developers.com/showthread.php?t=1218876
After choosing the icon, say Peter Griffins will be my alarm clock icon, find respective file name in our "PNG" folder. In our case it is "stat_sys_alarm.png", so just copy that name from the original file, give it to chosen .png file and drag it back directly to opened 7-Zip window and press OK.
After you are done with icons of your taste, choice or whatever, simply close 7-Zip window - all the changes we wanted are alreadymade to SystemUI.apk file. Now is the most challenging part - we need to puch SystemUI.apk back to the system folders.
9) On your phone start Root Explorer and mount root(/) directory and /system r/w. Go to /system/app, find SystemUI.apk, long press and tick all permissions.
10) Get back to your cmd.exe window. Type there:
adb shell (press Enter after each row)
pkill -TERM -f com.android.systemui - [I]we are terminating system process[/I]
exit
adb push SystemUI.apk /system/app/ - [I]we pushing the file back[/I]
adb shell
pkill -TERM -f com.android.systemui - don't ask why but tests revealed the second termination is a must =))
am startservice -n com.android.systemui/.SystemUIService - [I]we restarting system process [/I]
>>>At that stage you can see the status bar may disappear as well as on-screen navigation buttons<<< Do not start worrying yet =)))
imput the last commands:
su
reboot recovery
Your phone will reboot into recovery mode (CWM by turl1 in my case) and there you go to Advanced---Fix Permissions. Final reboot - here we go! =)))
Possible errors.
The worst you can experience is disappearance of status bar and on-screen navigation buttons. Where none-existance of status bar is more or lessmanagable, Back button is vital and the only way yo get it back is re-flashing or restoring to back-up.
While on cmd-exe you can get something like:
"not permitted" - refer to permissions of /system, /app or SystemUI.apk itself
"cannot find" - Busybox issue
"segmentation failed" - probably you went to low on level (root instead of shell)
Great guide!
Waiting for a % battery!
Tapatalk 2-vel küldve az én XT890-ről
me too. and i want add langue . vietnamese. can u help me?
thanks
landor said:
Great guide!
Waiting for a % battery!
Tapatalk 2-vel küldve az én XT890-ről
Click to expand...
Click to collapse
if u need a %battery search my rhreads something like nexus-softkeys with battery mod you should find. its fully functional battery mod where you can set ur %battery by touching 3x fast your battery logo.
have fun
Hi, I tried installing busybox from the two apps available in the market but none work, would you mind showing me how?
Sent from my XT890 using Tapatalk 2
[Noob friendly tutorial]
A typical problem when decreasing the DPI of your device is sometimes the lock screen will offset to the right(usually).
This tutorial might help fix this problem.
Requirements:
1. Rooted device
2. File manager for viewing and managing the root directory (e.g. Root Explorer)
3. Software for decompiling and recompiling .apk files
4. Text editor, I recommend Notepad++
Prerequisite:
Backup your current ROM so that I will not be held responsible for problems the may occur on your device
Instructions:
1. Open Play Store and download "ZipSigner" by Ken Ellindwood
2. Go to the root directory which is designated as "/".
3. Open "system" folder
4. Open "framework" folder
5. Look for "framework-res.apk"
6. Copy "framework-res.apk"
7. Navigate back to your SD card directory and paste it to where you want it.
8. Connect your device to your PC.
9. Expand your phone's the notification bar, press "Charging" and change it to "USB mass storage" and press "OK". Your PC will access your phone's storage directories (SD Card and Phone Storage)
10. On your PC, go to your SD Card's directory and navigate to where you put framework-res.apk and move it to your PC's desktop (you can put it to anywhere you like, just make sure you have it in your PC's storage directory).
11. On your PC, transfer framework-res.apk in the directory of your decompiling/recompiling tool with respect to what "tool" you are using.
Main Part:
12. Decompile framework-res.apk
13. Go to its "decompiled" directory
14. Navigate to /res/layout
15. Look for "keyguard_screen_tab_unlock.xml"
16. Open it with a text editor
17. Look for this line:
Code:
<com.android.internal.widget.multiwaveview.GlowPadView
18. Rigt next to this line, look for the lines, "android:gravity" and "android:layout_height".
19. Change their values to "left|top" and "wrap_content" respectively
So "android:gravity" and "android:layout_height" should look like this:
Code:
android:gravity="left|top"
and
Code:
android:layout_height="wrap_content"
20. Recompile framework-res.apk
21. Sign the new, edited framework-res.apk
22. Place it back to your SD Card
23. Disconnect your device from your PC.
24. Go to your SD Card and navigate to where you have put the modified framework-res.apk
25. Using the ZipSigner app, press "Choose In/Out..." and navigate to where you put the edited framework-res.apk
26. Press "Sign The File" and ZipSigner will begin to produce a signed version of the selected apk.
27. Navigate back to where you have created the edited-and-signed framework-res.apk and it will have a "-signed" in it's name.
28. Remove the "-signed" and MAKE SURE the newly-edited-and-signed framework-res.apk is named AS IS, "framework-res.apk".
*If there are others' named "framework-res.apk" in the same directory, rename them into something different before renaming the "newly-edited-and-signed framework-res.apk" so it won't conflict with step 28.
29. After you have successfully renamed the "newly-edited-and-signed framework-res.apk", copy it.
30. Go to the root directory which is designated as "/".
31. Open "system" folder
32. Open "open "framework" folder
33. And paste-and-overwrite/override the "newly-edited-and-signed framework-res.apk" to this "framework" directory.
Note: If in some case you were prevented to paste in the "framework" directory, check to see if your root file manager is mounting the root, if not check for an option to mount the root directory
34. If you have successfully overwritten/overridden the original framework-res.apk, your device should begin to Soft-Reboot automatically. If not then, manually force your device to reboot.
And your lock screen should now be at the center.
35. Done
durancharles27 said:
[Noob friendly tutorial]
A typical problem when decreasing the DPI of your device is sometimes the lock screen will offset to the right(usually).
This tutorial might help fix this problem.
Requirements:
1. Rooted device
2. File manager for viewing and managing the root directory (e.g. Root Explorer)
3. Software for decompiling and recompiling .apk files
4. Text editor, I recommend Notepad++
Prerequisite:
Backup your current ROM so that I will not be held responsible for problems the may occur on your device
Instructions:
1. Open Play Store and download "ZipSigner" by Ken Ellindwood
2. Go to the root directory which is designated as "/".
3. Open "system" folder
4. Open "framework" folder
5. Look for "framework-res.apk"
6. Copy "framework-res.apk"
7. Navigate back to your SD card directory and paste it to where you want it.
8. Connect your device to your PC.
9. Expand your phone's the notification bar, press "Charging" and change it to "USB mass storage" and press "OK". Your PC will access your phone's storage directories (SD Card and Phone Storage)
10. On your PC, go to your SD Card's directory and navigate to where you put framework-res.apk and move it to your PC's desktop (you can put it to anywhere you like, just make sure you have it in your PC's storage directory).
11. On your PC, transfer framework-res.apk in the directory of your decompiling/recompiling tool with respect to what "tool" you are using.
Main Part:
12. Decompile framework-res.apk
13. Go to its "decompiled" directory
14. Navigate to /res/layout
15. Look for "keyguard_screen_tab_unlock.xml"
16. Open it with a text editor
17. Look for this line:
Code:
<com.android.internal.widget.multiwaveview.GlowPadView
18. Rigt next to this line, look for the lines, "android:gravity" and "android:layout_height".
19. Change their values to "left|top" and "wrap_content" respectively
So "android:gravity" and "android:layout_height" should look like this:
Code:
android:gravity="left|top"
and
Code:
android:layout_height="wrap_content"
20. Recompile framework-res.apk
21. Sign the new, edited framework-res.apk
22. Place it back to your SD Card
23. Disconnect your device from your PC.
24. Go to your SD Card and navigate to where you have put the modified framework-res.apk
25. Using the ZipSigner app, press "Choose In/Out..." and navigate to where you put the edited framework-res.apk
26. Press "Sign The File" and ZipSigner will begin to produce a signed version of the selected apk.
27. Navigate back to where you have created the edited-and-signed framework-res.apk and it will have a "-signed" in it's name.
28. Remove the "-signed" and MAKE SURE the newly-edited-and-signed framework-res.apk is named AS IS, "framework-res.apk".
*If there are others' named "framework-res.apk" in the same directory, rename them into something different before renaming the "newly-edited-and-signed framework-res.apk" so it won't conflict with step 28.
29. After you have successfully renamed the "newly-edited-and-signed framework-res.apk", copy it.
30. Go to the root directory which is designated as "/".
31. Open "system" folder
32. Open "open "framework" folder
33. And paste-and-overwrite/override the "newly-edited-and-signed framework-res.apk" to this "framework" directory.
Note: If in some case you were prevented to paste in the "framework" directory, check to see if your root file manager is mounting the root, if not check for an option to mount the root directory
34. If you have successfully overwritten/overridden the original framework-res.apk, your device should begin to Soft-Reboot automatically. If not then, manually force your device to reboot.
And your lock screen should now be at the center.
35. Done
Click to expand...
Click to collapse
This is Q and A thread tutorial should not be here .... Plz post this thread in right place.....
samith.shetty3 said:
This is Q and A thread tutorial should not be here .... Plz post this thread in right place.....
Click to expand...
Click to collapse
Well, can I move this thread in "General"?
durancharles27 said:
Well, can I move this thread in "General"?
Click to expand...
Click to collapse
yup..
samith.shetty3 said:
yup..
Click to expand...
Click to collapse
well I can't I would have to pray that an Admin/Moderator would see this and move it.
FULL GUIDE TO CHANGE ACCENT COLORS
Hello everybody, This is my first post on xda. This guide is for those who want to change accent colors of non-system apps manually using substratum.
PREREQUISITIES
1.Rooted Android Phone
2.substratum theme engine(download from playstore)
3.Android Studio
4.Git installed on PC
5.APK tool (You can find easily on google)
6.Notepad++
STEPS
1.First of all, clone Substratum Theme Project from git into your Android Studio project
https:github.com/substratum/template (Add //)
2. Then change Theme Name,Email that is used for queries and other details in theme_configurations.xml
3.Then connect your device with the PC. Make sure ADB is installed in your computer and your phone has USB Debugging enabled.( Device Drivers should be installed too)
4.Go to the folder where ADB is installed(where adb.exe is located) and open a cmd window there(shift+right click)
5. Confirm that your device is connected properly by typing "adb devices"(without double quotes)
6.Once your device has been connected properly,you will see your device in List Of Devices
8. Then open root browser on your mobile and navigate to data/app/
9.Locate the android app folder you want to theme.(App must be installed on your phone)
Then type adb pull /data/app/com.android.yourapp/base.apk (Here change the app folder and app name accordingly.Copy the base.apk to apktool folder
7.Then open an another cmd window in to folder where apktool(jar) is located.
10.Then go to the cmd you opened in apktool folder,Type apktool_2.3.0.jar d base.apk
11.Then a folder will be created in that directory.
12.Then open the app in your phone with the device connected to pc and leave the phone with screen open(idle)
13.Go to tools->Android->Android Device Monitor->Dump View Hierarchy for UI Automator
14.Then a screenshot will get opened.
15.Moving the mouse will create a certain red boundary
16.Point it to any element you want to theme and check its resource-id
17.Then go to the folder which you created while decompiling the apk using apktool
18. Copy the path to that directory
19.Open Notepad++ and press Ctrl+Shift+F
20. Enter the resource-id you saw in "Find what" and directory in "Directory"
21.Notepad++ will search for this name in all the files of all the folders.
22. Then you will get some search results
23.Open the search result wherever you see background color code
24. Copy the line you want to change
(YOU CAN ALSO CHANGE THE COLORS USING COLORS.XML PRESENT IN res/values/colors.xml)
25.Then open Android studio and delete all the folders INSIDE the OVERLAYS FOLDER
26.In overlays folder,create a folder named com.android.(yourapp) and inside that folder create the whole directory of the file you edited) For example-> If you edited colors.xml,then create res folder and inside it create values then create a xml file named colors.xml
27. Inside that XML file inside the resources tag, paste the line you copied (The one you want to edit).
28. Compile and run the project on your phone(You will see the substratum theme installed on your phone with your app as a option)
29. Apply it and see the difference
(TIP: If you want to interchange white and black colors of the app, edit colors.xml and change all the white colors to black.After doing this,check whether all the colors are as desired. If not,change the color of a specific element manually as in this tutorial)
30. VOILA.!! You just made your first Substratum Theme. Good luck Themer...!!
(This method works on most apps)
Do ask if u have any query
Dosen't work
rohan_asthana said:
FULL GUIDE TO CHANGE ACCENT COLORS
Hello everybody, This is my first post on xda. This guide is for those who want to change accent colors of non-system apps manually using substratum.
PREREQUISITIES
1.Rooted Android Phone
2.substratum theme engine(download from playstore)
3.Android Studio
4.Git installed on PC
5.APK tool (You can find easily on google)
6.Notepad++
STEPS
1.First of all, clone Substratum Theme Project from git into your Android Studio project
https:github.com/substratum/template (Add //)
2. Then change Theme Name,Email that is used for queries and other details in theme_configurations.xml
3.Then connect your device with the PC. Make sure ADB is installed in your computer and your phone has USB Debugging enabled.( Device Drivers should be installed too)
4.Go to the folder where ADB is installed(where adb.exe is located) and open a cmd window there(shift+right click)
5. Confirm that your device is connected properly by typing "adb devices"(without double quotes)
6.Once your device has been connected properly,you will see your device in List Of Devices
8. Then open root browser on your mobile and navigate to data/app/
9.Locate the android app folder you want to theme.(App must be installed on your phone)
Then type adb pull /data/app/com.android.yourapp/base.apk (Here change the app folder and app name accordingly.Copy the base.apk to apktool folder
7.Then open an another cmd window in to folder where apktool(jar) is located.
10.Then go to the cmd you opened in apktool folder,Type apktool_2.3.0.jar d base.apk
11.Then a folder will be created in that directory.
12.Then open the app in your phone with the device connected to pc and leave the phone with screen open(idle)
13.Go to tools->Android->Android Device Monitor->Dump View Hierarchy for UI Automator
14.Then a screenshot will get opened.
15.Moving the mouse will create a certain red boundary
16.Point it to any element you want to theme and check its resource-id
17.Then go to the folder which you created while decompiling the apk using apktool
18. Copy the path to that directory
19.Open Notepad++ and press Ctrl+Shift+F
20. Enter the resource-id you saw in "Find what" and directory in "Directory"
21.Notepad++ will search for this name in all the files of all the folders.
22. Then you will get some search results
23.Open the search result wherever you see background color code
24. Copy the line you want to change
(YOU CAN ALSO CHANGE THE COLORS USING COLORS.XML PRESENT IN res/values/colors.xml)
25.Then open Android studio and delete all the folders INSIDE the OVERLAYS FOLDER
26.In overlays folder,create a folder named com.android.(yourapp) and inside that folder create the whole directory of the file you edited) For example-> If you edited colors.xml,then create res folder and inside it create values then create a xml file named colors.xml
27. Inside that XML file inside the resources tag, paste the line you copied (The one you want to edit).
28. Compile and run the project on your phone(You will see the substratum theme installed on your phone with your app as a option)
29. Apply it and see the difference
(TIP: If you want to interchange white and black colors of the app, edit colors.xml and change all the white colors to black.After doing this,check whether all the colors are as desired. If not,change the color of a specific element manually as in this tutorial)
30. VOILA.!! You just made your first Substratum Theme. Good luck Themer...!!
(This method works on most apps)
Do ask if u have any query
Click to expand...
Click to collapse
It doesn't work on xposed installer .
substratum isn't showing xposed installer in it's overlays.
Thanks for the post.