[guide][dev] Tutorial on making volumebar like ICS on Gingerbread [easy] - Galaxy Ace S5830i General

hello guys,
today i m gonna tell u how to make ur volumebar like ICS on ur Gingerbread devices.....
its easy & can be made on any gingerbread device...
screenshot :->
{
"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"
}
Q :- what is needed [requirements ]??
1. apk tool or apkmultitools or any similar program for decompiling
2. notepad ++ [ i prefer it for editing xmls ]
3. decompiling & re-compiling knowlege. [refer my thread ]
4. a mind & given resources files....
tutorial :->
Q:- > Which xml deals with the ICS Volume Bar ??
A:-> framework-res.apk -> res -> layout -> volume_adjust.xml.
<------------------------------------- STEPS ------------------------------------->
1. open ur volume_adjust.xml .
2. Replace all ur code with mine given below & save it.
My ics styled volumebar code :-->
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:background="@drawable/ics_panel_background" android:layout_width="300.0dip" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/message" android:layout_width="0.0dip" android:layout_height="0.0dip" />
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/additional_message" android:layout_width="0.0dip" android:layout_height="0.0dip" />
<ImageView android:id="@id/other_stream_icon" android:padding="16.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" />
<ImageView android:id="@id/ringer_stream_icon" android:padding="16.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" />
<LinearLayout android:gravity="left|center" android:orientation="horizontal" android:layout_width="300.0dip" android:layout_height="60.0dip" android:layout_marginTop="8.0dip" android:layout_marginBottom="8.0dip">
<ImageView android:background="@drawable/ics_volume_ac" android:padding="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ProgressBar android:id="@id/level" android:layout_width="230.0dip" android:layout_height="32.0dip" android:layout_marginRight="16.0dip" android:progressDrawable="@drawable/ics_progress_horizontal_holo" style="?android:attr/progressBarStyleHorizontal" />
</LinearLayout>
</LinearLayout>
3. Now extarct this given View attachment Sources.zip in drawable folder.
note:- u can also modify .9.png according to ur need..
4. Recompile ur framework-res.apk & push into system/app.
regards,
abhi922.
dont ask for permissions --> just give credits & thanks [nothing else ]

Nice one abhi

Nice Tut ....:thumbup:
Sent from my GT-S5830i using xda app-developers app

RESERVE.

Don't work?
It doesnt work for me.

sake1001 said:
It doesnt work for me.
Click to expand...
Click to collapse
Maybe you are from Planet ZOG ....(read the OP with your eyes wide )

Nice.
Hmm...
- ICS volumebar
- ICS taskswitcher
- ICS setting switches
- ICS toggles
- ICS statusbar
- ICS-Themed Framework
It looks like we need only ICS framework base and anything else to make on our phones false ICS/JB
Nice volumebar. I've added it to my phone .

not working for me nothing is displayed when i press volume up or down key any idea..??

shlnarang said:
not working for me nothing is displayed when i press volume up or down key any idea..??
Click to expand...
Click to collapse
i think u have wrongly edited the xml file ...
try again... it should work..

abhi922 said:
i think u have wrongly edited the xml file ...
try again... it should work..
Click to expand...
Click to collapse
no bro i edited the same as given in ur guide checked 4-5 times..

shlnarang said:
no bro i edited the same as given in ur guide checked 4-5 times..
Click to expand...
Click to collapse
i cant say exactly what is the root cause....

abhi922 said:
i cant say exactly what is the root cause....
Click to expand...
Click to collapse
I'm having the same problem, once you try to adjust the volume, the device reboots,I have tried this mod several times but I'm getting the same result again.

Related

[THEME][8.8.09] MobileMatt FEWidgetsUltimate Theme v1.0.0 VGA

MobileMatt FEWidgets Ultimate Theme v1.0.0​
{
"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"
}
​
Credits:
* Thanks to nicodega for creating this wonderful UI and all credit goes to him for his hard work putting this together. Please be sure to thank him for his efforts. (Donating beer is always nice..)
* Thanks to everyone else for their support
Install:
* Download and install the FEWidgets Ultimate CAB file here: http://forum.xda-developers.com/showthread.php?t=544874
* Download the MobileMatt FEWUltimate Theme and extract contents to your device (Main or Storage Card)
* Install CAB file to the Main Directory
* Re-Enable FEWidgets Ultimate and enjoy...
I have only tested these out using NRGZ28's ROM's on the AT&T Fuze (VGA) but may work with other devices.
** reserved **
** reserved 2 **
Thanks for the nice theme. Looks great on my tp
jrodizzkool01 said:
Thanks for the nice theme. Looks great on my tp
Click to expand...
Click to collapse
Thanks, I'm working on finishing the rest of the icons to match.
Couple more pics....
nice Matt
have you tried to change Phone signal size ? (from 100 pixels to 50)
brunoisa10 said:
nice Matt
have you tried to change Phone signal size ? (from 100 pixels to 50)
Click to expand...
Click to collapse
I haven't but thats a good idea.....
I've tried but not working now , I'll ask it to nicodega
resizing Signal
: resize png
and change signal.vga.xml in objects directory
<?xml version="1.0" encoding="utf-8" ?>
- <Root>
<Image Id="Icon" Image="images/icons/SignalIco.vga.png" />
- <Group Id="Widget" ZIndex="0" Size="73;51" Clip="true">
<Image Id="icon" Image="images/batsignal/SignalLeft.vga.png" DragTarget="root" Z="0" />
<Animation Id="signal" Z="1" Image="images/batsignal/signal.vga.png" X="23" Frames="6" FPS="2" FrameSize="50;50" Columns="6" DragTarget="root" CurrentFrame="0" />
<Script Source="scripts/signal.vga.js" />
</Group>
</Root>
seems I had to soft reset to work
brunoisa10 said:
resizing Signal
: resize png
and change signal.vga.xml in objects directory
<?xml version="1.0" encoding="utf-8" ?>
- <Root>
<Image Id="Icon" Image="images/icons/SignalIco.vga.png" />
- <Group Id="Widget" ZIndex="0" Size="73;51" Clip="true">
<Image Id="icon" Image="images/batsignal/SignalLeft.vga.png" DragTarget="root" Z="0" />
<Animation Id="signal" Z="1" Image="images/batsignal/signal.vga.png" X="23" Frames="6" FPS="2" FrameSize="50;50" Columns="6" DragTarget="root" CurrentFrame="0" />
<Script Source="scripts/signal.vga.js" />
</Group>
</Root>
seems I had to soft reset to work
Click to expand...
Click to collapse
YES... post a pic!
before resizing
after
same for battery
with battery.vga.xml (same values)
A little bit of Bond....
Didn't worked on my samsung Omnia
italodance said:
Didn't worked on my samsung Omnia
Click to expand...
Click to collapse
Did you install to your main memory or storage card?
mchapman007 said:
Did you install to your main memory or storage card?
Click to expand...
Click to collapse
main memory (the place that i installed the prime FEWidgetsUltimate)
then renable even reboot my device but no chance
Nice theme indeed. Will you issue a QVGA version, as well?
QVGA Version will be really helpfull.....nice skin..!
thanks, nice piece of work.
T_

[Morph] Text-Warning on Lockscreen

The perfect anti-theft app - GPS tracking-warning on your lockscreen ONLY
1.) for free
2.) does not drain your battery
- Exchanges only 1 xml.file (it´s not a png, I inserted only text)
- tested on cm7 nighly passion, but should work on any cm, even cm 6x
- apply with Metamorph
{
"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"
}
Wow, pretty cool. Might cause the opposite of wat you want though, I can imagine a thief would throw your phone away or turn off GPS because of this. And then you will never find it back... But i guess it could also prevent your phone from getting stolen in the first place. Cool idea anyway
I-Heine-I said:
Wow, pretty cool. Might cause the opposite of wat you want though, I can imagine a thief would throw your phone away or turn off GPS because of this. And then you will never find it back... But i guess it could also prevent your phone from getting stolen in the first place. Cool idea anyway
Click to expand...
Click to collapse
yeah, there´s no guarantee...
Other text lines can be suggested, till I close the prog...
NICE!!!!!!!
It bootlooped me. I'm running CM 6.1.1, but I've got a ton of mods already going. First time for me to try a morph. Didn't work out. Oh well. Thanx anyway.
DigitalJedi said:
It bootlooped me. I'm running CM 6.1.1, but I've got a ton of mods already going. First time for me to try a morph. Didn't work out. Oh well. Thanx anyway.
Click to expand...
Click to collapse
uff..sorry
I did not test it on cm6..just assumed it should work..
No prob man. Made sure to run a NAND beforehand so 5 minutes and I was back to normal.
EDIT: The weird thing was it never hit the bootloader when it rebooted. It went straight to the bootanimation and just played it over and over. Never seen that before.
Does this only work on AOSP lockscreen?
this makes my phone bootloop on newest nightly I really wanna try it
Sent from my G2
bsktballstar3131 said:
this makes my phone bootloop on newest nightly I really wanna try it
Sent from my G2
Click to expand...
Click to collapse
yes,of course...new nighlies got some new stuff (music) for lockscreen..if people want, I will update OP for current nighlies
rori~ said:
yes,of course...new nighlies got some new stuff (music) for lockscreen..if people want, I will update OP for current nighlies
Click to expand...
Click to collapse
I would definitely appreciate it, I know you're really busy tho
Sent from my G2
bsktballstar3131 said:
I would definitely appreciate it, I know you're really busy tho
Sent from my G2
Click to expand...
Click to collapse
ok, 1 or 2 days..if not, please remind me
Very nice. Works on Milestone too if i update the keyguard_screen_tab_unlock.xml for CM7 RC1 by nadlabak
bandit79 said:
Very nice. Works on Milestone too if i update the keyguard_screen_tab_unlock.xml for CM7 RC1 by nadlabak
Click to expand...
Click to collapse
I added the line:
<TextView android:textSize="13.0sp" android:textStyle="bold" android:textColor="#ffffffff" android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="1.0dip" android:text="Vietnamese language by KEUNHUVAC tinhte.vn." android:shadowColor="#ff000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="4.0" android:layout_alignParentBottom="true" />
to the keyguard_screen_tab_unlock.xml, then built, then replaced old keyguard_screen_tab_unlock.xml with new keyguard_screen_tab_unlock.xml file, apply update and bootloop (im using CM7 RC1 for MS)!
keunhuvac said:
I added the line:
<TextView android:textSize="13.0sp" android:textStyle="bold" android:textColor="#ffffffff" android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="1.0dip" android:text="Vietnamese language by KEUNHUVAC tinhte.vn." android:shadowColor="#ff000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="4.0" android:layout_alignParentBottom="true" />
to the keyguard_screen_tab_unlock.xml, then built, then replaced old keyguard_screen_tab_unlock.xml with new keyguard_screen_tab_unlock.xml file, apply update and bootloop (im using CM7 RC1 for MS)!
Click to expand...
Click to collapse
did you check how and where I added the line and just did the same with your text?
nobody rly thinks that someone who finds this fon will be scared by a text? if i would find a desire i would just wipe all and do my own thing.
cool idea anyway....
actionjackson4k said:
nobody rly thinks that someone who finds this fon will be scared by a text? if i would find a desire i would just wipe all and do my own thing.
cool idea anyway....
Click to expand...
Click to collapse
of course it´s just fun...but I would say 80% of all android users do not root, have no clue about that...and the one who finds the phone probably has a nokia, siemens, whatever and now clue about touchscr.phones at all....
so fun and perhaps one is lucky
but: it´s for free
sure better to have it than not. chance of getting it back is higher than without this mod
rori~ said:
did you check how and where I added the line and just did the same with your text?
Click to expand...
Click to collapse
Yes! I replace the xml file in framework-res/res/layout with your xml file, then decompile the framework, then i can see your new line!
keunhuvac said:
Yes! I replace the xml file in framework-res/res/layout with your xml file, then decompile the framework, then i can see your new line!
Click to expand...
Click to collapse
When I find time,i have a look...you send me you unthemed apk then.
Sent from my Nexus One

[PROJECT CLOSED] Translating QQ Desktop Pro (QQ桌面 Pro) FCs

I'm translating QQ Desktop Pro from Chinese to English using the UziTech Android Translator. I have successfully translated the strings.xml, but when it's reinstalled onto the device it force closes with this error:
ActivityThread | E: android.view.InflateException: You must specify a valid layout reference. The layout ID @layout/app_vertical_list is not valid.
(From CatLog)
The app_vertical_list.xml mentioned looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.tencent.launcher.VerticalAppLayout android:id="@id/all_apps_v" android:paddingLeft="0.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="70.0dip" android:layout_weight="1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res/com.tencent.qqlauncher">
<com.tencent.launcher.AllAppsListView android:id="@id/applistview" android:background="#00000000" android:scrollbars="none" android:fadingEdge="vertical" android:fadingEdgeLength="20.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:listSelector="#00000000" android:cacheColorHint="#00000000" android:divider="@drawable/ic_list_dividing_line" />
<com.tencent.launcher.LetterListView android:id="@id/MyLetterListView01" android:background="#00000000" android:layout_width="25.0dip" android:layout_height="fill_parent" android:layout_alignParentTop="true" android:layout_alignParentRight="true" launcher:textColor="#ffffffff" launcher:textSize="12.0sp" launcher:startPadding="10.0dip" launcher:endPadding="10.0dip" launcher:rightPadding="3.0dip" />
<TextView android:textSize="30.0sp" android:gravity="center" android:id="@id/TextView_CenterChar" android:background="@drawable/bg_hitchar" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" style="\@style/app_list_hitchar" />
<com.tencent.launcher.DrawerTextView android:id="@id/drag_cache_view" android:visibility="invisible" android:layout_width="72.0dip" android:layout_height="80.0dip" style="\@style/DrawerIcon.Portrait" />
</com.tencent.launcher.VerticalAppLayout>
(I've also attached the original XML in a zipped xml)
And the r.java decompiled from the classes.dex looks like this (screenshot):
{
"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"
}
I've also attached the zipped source files, as it's too big to post.
Any ideas on why it force closes? I have successfully translated the Tencent Desktop (MIUI / iPhone style launcher with no app drawer) but want to translate this one. I'll post the other one soon.
Bump
Sent from my GT540 using XDA App
ill have a look tomorrow when im at home to see what the problem is
eoghan2t7 said:
ill have a look tomorrow when im at home to see what the problem is
Click to expand...
Click to collapse
off topic
hey eoghan2t7 can you pls pm the way to hard code sdcard???
bs828 said:
off topic
hey eoghan2t7 can you pls pm the way to hard code sdcard???
Click to expand...
Click to collapse
yes i will pm you it when i get home i cant remember the script atm
@Quinny can you post a clean untranslated version of the app mine has broken aswel
eoghan2t7 said:
@Quinny can you post a clean untranslated version of the app mine has broken aswel
Click to expand...
Click to collapse
Here you go:
Download the untouched (should be) version
@Mods, This app is a pro, yet free app. I am not posting warez
This is it, no? Looks the same to me as the Chinese version you posted earlier. Not bad, but lacks some customization options.
nutterbg said:
This is it, no? Looks the same to me as the Chinese version you posted earlier. Not bad, but lacks some customization options.
Click to expand...
Click to collapse
Yeah, they put it in english the other day on the market, so I'm going to call:
PROJECT CLOSED!
Quinny899 said:
Yeah, they put it in english the other day on the market, so I'm going to call:
PROJECT CLOSED!
Click to expand...
Click to collapse
thanks a lot any way
I have a problem with this launcher.
When I choose it (after pressing the Home button) the screen turns off. It was difficult to uninstall it, but i want it so much
Someone tells me: There is no problem in cm7 rc2
s-u-f-f-e-r said:
I have a problem with this launcher.
When I choose it (after pressing the Home button) the screen turns off. It was difficult to uninstall it, but i want it so much
Someone tells me: There is no problem in cm7 rc2
Click to expand...
Click to collapse
The translated apk is dead. Use the market version
Thank you for the fast reply. The .apk what i use before was this:
http://dl.dropbox.com/u/17539072/MIUI/com.tencent.launcher-1.apk
Try it on your own risk. Before that i recommend nandroid backup
s-u-f-f-e-r said:
Thank you for the fast reply. The .apk what i use before was this:
http://dl.dropbox.com/u/17539072/MIUI/com.tencent.launcher-1.apk
Try it on your own risk. Before that i recommend nandroid backup
Click to expand...
Click to collapse
That's not the same launcher. That's just TencentLauncher, not QQ. See my other post for a working version of that
Sent from my D255 using XDA App
I see it. It's alful with this chinese stuff
Thanks again, man

Dolphin browser, download dir on external storage

I have P7-L10 with 32GB sdcard. I tried to set Dolphin's download dir to be on the external sdcard, but Dolphin reports: "Can't write to specified directory: The directory or partition is read_only".
I would like my download dir to be on /mnt/media_rw/sdcard1, but I cannot read media_rw directory.
Permissions are:
drwx------ media_rw media_rw 2014-10-31 15:33 media_rw
I tried to add group gid="media_rw" in /system/etc/permissions/platform.xml but with no success
<permission name="android.permission.READ_EXTERNAL_STORAGE">
<group gid="sdcard_r"/>
<group gid="media_rw"/>
</permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE">
<group gid="sdcard_r"/>
<group gid="sdcard_rw"/>
<group gid="media_rw"/>
</permission>
Does anyone have a clue how to enable external storage for the Dolphin Browser?
It is only Dolphin browser issue ? Did You KitKat SD patch installed ?
I am using Exposed module cooled Kit Kat SD card full access ver.1.2
Edit:
I have just installed Dolphin and it work properly with this patch.
Spoiler
{
"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"
}
Sent from my HUAWEI P7-L10
Ziółek said:
It is only Dolphin browser issue ? Did You KitKat SD patch installed ?
I am using Exposed module cooled Kit Kat SD card full access ver.1.2
Edit:
I have just installed Dolphin and it work properly with this patch.
Spoiler
Sent from my HUAWEI P7-L10
Click to expand...
Click to collapse
If possible, can you share the APK of KitKat SD patch with us?
Or can you give us the download link of KitKat SD patch?
xjeternity said:
If possible, can you share the APK of KitKat SD patch with us?
Or can you give us the download link of KitKat SD patch?
Click to expand...
Click to collapse
I wrote that is Xposed framework module. Can't pull link because it downloaded by Xposed UI. But in Play market there's many similar apps. Of course first You have to root Yours device. [emoji14]
Sent from my HUAWEI P7-L10
Hi
i think you don´t need any patch.
i have changed in the (Android)Settings -Device-Memory- the Standard MemoryLocation from -Internal Memory to Sd-Card.
Then you can go with your downloads to scard1
Well, I would like to keep default storage as internal, but only few applications to have access to the external card.
With setup you have suggested it will not work, but still thanks.
kriticar said:
Well, I would like to keep default storage as internal, but only few applications to have access to the external card.
With setup you have suggested it will not work, but still thanks.
Click to expand...
Click to collapse
Try that metod step by step, for me works great without any other apps
1. Launch your favorite file manager with enabled root access rights.
You can use any app you prefer which can run elevated on your device.
For example, the 'Root Explorer' app or 'Total Commander' or 'File Manager' from CyanogenMod will do.
2. Navigate to the following file:
/system/etc/permissions/platform.xml
3. Find android.permission.WRITE_EXTERNAL_STORAGE and android.permission.WRITE_MEDIA_STORAGE lines. These are XML sections. You need to make them look exactly like the strings below:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Save the platform.xml file. It’s necessary to set the file permissions to 644 (rw-/r–/r–) before mobile restarting. Now reboot your Android device.

[REQUEST] Dual clock on status bar

Hi there.
I was wondering if it is possible to create a module that adds a second clock to the status bar. I live abroad, and I used to use xposed for that (there's a module called XDualStatusClock which worked great) so I could have my home country and tmy residence country's time on the status bar. I have since upgraded to Lineage OS 14.1 (Nougat) and unfortunately xposed is not supported.
I haven't found any app that does this and I wanted to know if it would be possible to have something like that in Magisk. If anybody knows or knows if there is another way to do it, please, let me know.
Thabk you in advance.
Xposed and Magisk do quite different things (code injection vs file injection).
The short answer to your question is: Yes, it's possible but not as easy as you'd like.
The long answer is: If you wan't this with Magisk, you'll need use a Magisk module to mount and replace system files with modded files to get what you're after. Xposed can do this on the fly, Magisk does it by replacing system files with previously prepared files at boot.
pancomido said:
Hi there.
I was wondering if it is possible to create a module that adds a second clock to the status bar. I live abroad, and I used to use xposed for that (there's a module called XDualStatusClock which worked great) so I could have my home country and tmy residence country's time on the status bar. I have since upgraded to Lineage OS 14.1 (Nougat) and unfortunately xposed is not supported.
I haven't found any app that does this and I wanted to know if it would be possible to have something like that in Magisk. If anybody knows or knows if there is another way to do it, please, let me know.
Thabk you in advance.
Click to expand...
Click to collapse
All you need to do is decompile your system.apk and add a textclock to your status_bar.xml and set the time zone. I'm on Central time but I added a los Angeles time zone on an additional text clock. Flashed it systemlessly using djb77's evilthemer magisk module maker flashing just the status_bar.xml
{
"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"
}
Tulsadiver said:
All you need to do is decompile your system.apk and add a textclock to your status_bar.xml and set the time zone. I'm on Central time but I added a los Angeles time zone on an additional text clock. Flashed it systemlessly using djb77's evilthemer magisk module maker flashing just the status_bar.xml
Click to expand...
Click to collapse
Can you please specify, what the line was that you added in statusbar?
winesh said:
Can you please specify, what the line was that you added in statusbar?
Click to expand...
Click to collapse
To put it in the center of statusbar put this code right under xmlns:systemui="http://schemas.android.com/APK/res/com.android.systemui">
<TextClock android:textAppearance.StatusBar.Clock" android:gravity="center" android:I'd="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:single line="true" android:format12Hour="EEE h:mm a" android:timeZone="America/Los_Angeles" />
You can format it how you like and of course substitute the time zone you want. Also insert 24Hour format to the same code if you like.
Tulsadiver said:
To put it in the center of statusbar put this code right under xmlns:systemui="http://schemas.android.com/APK/res/com.android.systemui">
<TextClock android:textAppearance.StatusBar.Clock" android:gravity="center" android:I'd="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:single line="true" android:format12Hour="EEE h:mm a" android:timeZone="America/Los_Angeles" />
You can format it how you like and of course substitute the time zone you want. Also insert 24Hour format to the same code if you like.
Click to expand...
Click to collapse
Thanks bro, will try it as soon as possible.

Categories

Resources