yashsingh1/xdaforums huggingface dataset:
[Galaxy Note GT-N7000 Android Development] majdinj:
No this method works partially when Wifi is on and rarely when Wifi is off..

so until I find a new method to share I will keep it like this.. of course I will add this notification in OP

Thanks..
[Galaxy Note GT-N7000 Android Development] nokiamodeln91:
Hmm.. dont know what but not matter what i do .. CRT wont work. Wifi On /Off.. anyways i will leave it for now. but when changing the framework, does the google account get wiped,. ?

and is there any particular reason why the framework get reduced in size by 4MB even when the file i am replacing is larger than the original file?
[Galaxy Note GT-N7000 Android Development] REVERSiN:
AFAIK no it doesnt get wiped, and as for the size yeah it gets either compressed with a higher level when compiled or PNGs are optimised depends on options you use in apk manager...
[Galaxy Note GT-N7000 Android Development] majdinj:
For CRT TV off effect, I will add new method that uses service.jar file... please stay tuned!!
[Galaxy Note GT-N7000 Android Development] nokiamodeln91:
Oh cool
[Galaxy Note GT-N7000 Android Development] majdinj:
New CRT TV effect method is added to OP (Only works when wifi is on!! So until I can fix this bug you can at least enjoy CRT TV effect when wifi is on)
[Galaxy Note GT-N7000 Android Development] btemtd:
bro you are a LEGEND FOR THIS...

Just one more thing and this thread will be 100% one other main mod used is the Volume UP to skip songs mod which is in the android.policy.jar... I could not find one single guide on how to do this.. PLease If anyone could show me how I would be much appreciated..

thanks alot

PS: CRT off works 100% with stock Kenerl this is a well known issue with Cutome kernel and wifi On... Siyah kernel has a fix for this. But some custom kernel like Perseus do not have the fix and the crt effect will only work with wifi on...

This is not a problem with the OPS mod.. It is a well known issue.
[Galaxy Note GT-N7000 Android Development] deaddrg:
Is there any way to install smart alert and smart glance i liked these features in 4.1.1 but they are now missing in 4.1.2
[Galaxy Note GT-N7000 Android Development] nokiamodeln91:
The services.jar mod works. I now have CRT effect but very intermittently even with the wifi ON. and the lockscreen also messed up.when i hit the power button, it goes off for a minute and then comes back on again. but it has worked.
[Galaxy Note GT-N7000 Android Development] ahhl:
any tuturial to make when enable sms receive notification, similar to CM/paranadroid

edit

change notification to toast notification
[Galaxy Note GT-N7000 Android Development] _SVA_:
Nice job

Just today I see this topic.

This is a very good and necessary work.

Thank you very much for this!
[Galaxy Note GT-N7000 Android Development] btemtd:
Please Add your Mod On the android.Policy.Jar on how to use Volume up/down keys to skip track songs while screen is off.

You are a Legend :)
[Galaxy Note GT-N7000 Android Development] majdinj:
Vol to skip track mod still in beta version, once completed, I will bring "how to" tut in this thread :good:

Another thing, I am just a noob who likes learning "i.e, learning freak!!!" (not a legend, and doesn't deserve to be even).. but normal noob xda member who doesn't hesitate to share his what so called experiences with the others!!

So please stop calling me like that ;)
[Galaxy Note GT-N7000 Android Development] Goldie:
Tw scrubber and progress images in frame res
[Galaxy Note GT-N7000 Android Development] Javho:
Hi its me...again. Anyone could help me with this editing ?

What's the name of these pngs ? The mark in red

And...

And how can I add the dividers for this windows...

If anyone can I helped I really appreciate. Thanks in advance

Enviado desde mi GT-I9070 mediante Tapatalk
[Galaxy Note GT-N7000 Android Development] BOOTMGR:
Double Tap Statusbar to Sleep

CM11's feature Double Tap statusbar to sleep device backported to JB 4.1.2

I wrote it on SGSA forum, Checkout this thread
[Galaxy Note GT-N7000 Android Development] Dr. Narinder:
FC (not working)
[Galaxy Note GT-N7000 Android Development] BOOTMGR:
Checkout i updated guide....

Now there won't be any FC...
[Galaxy Note GT-N7000 Android Development] Dr. Narinder:
Perfect
[Galaxy Note GT-N7000 Android Development] LeoDeos:
losckscreen shortcuts DBT rom

Hi :)

First of all, thanks for the many guides...

They work very well but I have a problem with lockscreeen shortcuts on DBT rom.

I'm on i9305 4.3 and I hope someone can help me.

I followed the guide and I changed "German" with "none"

In the Settings appear sortcuts menu. I enable them but as soon as I turn off the screen, they are disabled and do not appear in the lockscreen.

Why?

What else should I change?
[Galaxy Note GT-N7000 Android Development] ayoubadri:
verry useful thank you I just have a question pls i've been searching all over but i find nothing i just wanna add icons to the 4 way reboot menu ! how can i do that ??
[Galaxy Note GT-N7000 Android Development] tkari4:
There should be Germany two times, so rename both to none.

It might help.
[Galaxy Note GT-N7000 Android Development] LeoDeos:
in LockscreenMenuSettings.smali there is only one "German"
[Galaxy Note GT-N7000 Android Development] tkari4:
Sorry, didn't see that you are on 4.3...

Fast fix is changing the csc.
[Galaxy Note GT-N7000 Android Development] Ikhsan_novindri:
hellppp , ink effect just clickable. Its dont show any option like a color, enable it etc :(

i've attach my screenshot
[Galaxy Note GT-N7000 Android Development] cbucz24:
For future reference, don't quote a whole section like that.

For help, you need to include what you did.

Btw, what's up guys I took a break an now it's time to wander back :D
[Galaxy Note GT-N7000 Android Development] inamie:
On new 4.3 & 4.4 samsung device, touchwiz launcher menu has disable option to "Hide application" & Show Hidden Apps".

Anybody know which smali files to edit to enable it.

Edit: Nevermind.. GOT IT..??
[Galaxy Note GT-N7000 Android Development] cbucz24:
Hey guys hows it been?

I have a question that im hoping someone can answer. [MENTION=369057]majdinj[/MENTION] has it listed to edit enable the launcher rotation. not smart rotation. but force rotation by editing the integers.xml on the SecLauncher.

Its editing the line

<integer name="config_screenOrientation">1</integer>

Is this something that is inherent to touchwiz? is there smali code that its attached too? What im asking is what makes this reference line work?

I know im on my fancypants note 3 but i cant find anything that relates to it and ive looked through all of my note 2 files where this worked.

My note 3 has seclauncher4 and it doesnt have that line. i tried adding it but that didnt change it either?
[Galaxy Note GT-N7000 Android Development] Goldie:
Upload the apk. Will take a look
[Galaxy Note GT-N7000 Android Development] cbucz24:
thanks goldie you rock. but i believe i figured it out. i compared the one i made for the note2. seclauncher2.apk vs my note3 seclauncher4.apk

i was missing one line that was in values/integers.xml like majdinj says...

but it didnt do anything so i started looking into it.

turns out that in diffing out the androidmanifest.xml in the old vs new. my new one had the screenOrientation value set different. so im editing it now and im going to sign an flash it.

i would never have thought that it was controlled there but hey. I appreciate your quick response though. you have always helped me. :highfive:
[Galaxy Note GT-N7000 Android Development] inamie:
Values-sw359dp-land-xxhdpi not exist on note3.. no values for landscape mode. Adding this from mega 5.8 (6×4) app drawer and mod 4x6 portrait... using compatible mega 5.8 accuweather force auto rotate works with minor bug.. test on note2 with note3 pack.. now using it on g7102.. G7102 already have sw359dp-land but need to force also coz no rotation config.

Random from SM-N9005 + SM-G7102 + G34R
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
Help / Request

Can anyone please help me change the way my phone shows the current Date in the Notification bar?

PS: I think its in SystemUI.apk.. Maybe some smali files needs to be edited... like DateView.smali or R$string.smali ot some other smali file perhaps :confused: I did do some "editing" here and there but that didn't help me either.. And here's a picture to make this look more clear:

(I know that this is not the proper place to post my request and I'm sorry for that)​
[Galaxy Note GT-N7000 Android Development] Spannaa:
On my S3/NeatROM/4.3 this is set in:

SystemUI.apk\res\values\strings.xml

The line to edit depends on what date format you have set on your phone.

It ought to be either

<string name="status_bar_date_format_day_month">"
EEE, d MMMM"</string>

or

<string name="status_bar_date_format_month_day">"
EEE, MMMM d"</string>

Not sure if you'll get a blank first line like this though - if you don't, try adding \n (new line) on the top line instead of the single space.

The style is set in SystemUI.apk\res\values\styles.xml

<style name="TextAppearance.StatusBar.Expanded.Date"...

Of course, it may be completely different on your device and setup...
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
Thanks for your reply mate.. I did a little more editing and this is what I got:

Now all I have to do is get rid of the "day of the week" on the first line... And sorry, I didn't understand what you wrote towards the end:
[Galaxy Note GT-N7000 Android Development] Spannaa:
Do you have

<string name="status_bar_date_format_day_month">"EEEE
EEE, d MMMM"</string>

If so, change it to

<string name="status_bar_date_format_day_month">"
EEE, d MMMM"</string>

and the \n thing was for if this didn't put the date on the bottom line of the two

<string name="status_bar_date_format_day_month">"\n
EEE, d MMMM"</string>
[Galaxy Note GT-N7000 Android Development] cbucz24:
On 4.3 my note3 has the sw359dp. Now on 4.4 they changed it to sw360dp.

I would assume I can't just add the old value folder and it work.

In the sw360dp integers I added the config line needed. Then added the line also I'm the androidmanifest.xml and signed it. But it still didn't rotate. I'm a bit lost as where else to look. I've diffed the files out an the lines needed are there
[Galaxy Note GT-N7000 Android Development] inamie:
I'm still using note3 with 4.3 MJ7. Note sure on kitkatt. Does it has Folder "Values-sw360dp-land"?

ref to my G7102: HERE

Random from SM-N9005 + SM-G7102 + G34R
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
That's the problem, I don't have it... These are the only ones I've got in my String.xml file:

<string name="quickpanel_month_day_year">E, MMM d</string>
<string name="quickpanel_day_month_year">E, d MMM</string>
<string name="quickpanel_year_month_day">yyyy MMMM d</string>

It sure is different in different versions of Android / TouchWiz UI
[Galaxy Note GT-N7000 Android Development] cbucz24:
In systemUI.

Status_bar_expanded_header.xml it could start with tw

I'm not at my pc right now to tell you the line exactly.

It's set up in fairly the way it's displayed on your phone. There will be lines there that display and control what content is where. I've moved stuff around a lot.

Sometimes you can simply remove lines. Doing it this way can at times break the ui, so make a flashable backup.

you can set it to ("invisible").

Find its name and in dimens.xml set height to 0.0px

Or in styles make it transparent using the hex code.
[Galaxy Note GT-N7000 Android Development] ocoot:
go to tw_status_bar_expanded_header, now search this

com.android.systemui.statusbar.policy.DateView

then, add this android:singleLine="true" before />
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
I did that (last night) but this removes the second line.. not the first one..

Sent from my GT-I9070
[Galaxy Note GT-N7000 Android Development] ocoot:
edit

open strings.xml, find this

<string name="status_bar_date_formatter">%1$s

%2$s</string>

or similiar like that, and now jus make it like this

<string name="status_bar_date_formatter">%2$s</string>
[Galaxy Note GT-N7000 Android Development] ocoot:
Check this out guys, for JB 4.1.2 TW rom ;)

[GUIDE][JB 4.1.2][TW ROM] How to get AOSP theme without modifying any png or layout

http://xdaforums.com/showthread.php?t=2685748

[GUIDE][JB 4.1.2][TW ROM] How to make power dialog look a like CM/AOSP

http://xdaforums.com/showthread.php?t=2688305
[Galaxy Note GT-N7000 Android Development] tkari4:
Try this one: http://xdaforums.com/showthread.php?p=51289563#post51289563

;)
[Galaxy Note GT-N7000 Android Development] Javho:
hi all anyone knows how can i disable the popup window when i active the bluettoht in the notification panel ? thanks in advance
[Galaxy Note GT-N7000 Android Development] bullonwheels:
Hi, I was successfully able to port the function to my phone (SG Young S6312; JB 4.1.2).

But I want to use the back key, instead of menu key.

I did try [MENTION=3153524]Mirko ddd[/MENTION] 's port(both methods), but both times it resulted in bootloop (http://xdaforums.com/galaxy-s2/deve...-to-kill-tw-roms-updated-25-nov-2012-t1969499).

Could you please guide me how i can switch the function to back key? (My phone does not support multiwindow, but the codes are present)

Thanks.
[Galaxy Note GT-N7000 Android Development] shevchovski:
.[/QUOTE]

can i try this tutorial for JB 4.2 MTK device sir ?? :confused:
[Galaxy Note GT-N7000 Android Development] cbucz24:
can i try this tutorial for JB 4.2 MTK device sir ?? :confused:[/QUOTE]

Of course you can try. I will say no matter what version of touchwiz your on, unless it's the exact version in here its going to be different.

Just takes time an practice. Make backups!
[Galaxy Note GT-N7000 Android Development] shevchovski:
Of course you can try. I will say no matter what version of touchwiz your on, unless it's the exact version in here its going to be different.

Just takes time an practice. Make backups!

Thanks broo :fingers-crossed: always backing up :good:
[Galaxy Note GT-N7000 Android Development] spotter-ssol:
Hi! First, sorry my english and my very limited skills at coding!

I'm on Neatrom 4.8 lite (4.1.2) and I wanna reduce the original number of options at reboot menu from (reboot, hot boot, download, recovery) to just (reboot, recovery).

I've decompiled & edited GlobalActions$SinglePressAction.smali inside android.policy.jar from:

# direct methods
.method static constructor <clinit>()V
.locals 3

const/4 v0, 0x4

new-array v0, v0, [Ljava/lang/String;

const/4 v1, 0x0

const-string v2, "Reboot"

aput-object v2, v0, v1

const/4 v1, 0x1

const-string v2, "Hot Boot"

aput-object v2, v0, v1

const/4 v1, 0x2

const-string v2, "Download"

aput-object v2, v0, v1

const/4 v1, 0x3

const-string v2, "Recovery"

aput-object v2, v0, v1

sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;

return-void
.end method

and did this:

.method static constructor <clinit>()V
.locals 3

const/4 v0, 0x[COLOR="Red"][B]2[/B][/COLOR]

new-array v0, v0, [Ljava/lang/String;

const/4 v1, 0x0

const-string v2, "Reboot"

aput-object v2, v0, v1

[STRIKE]const/4 v1, 0x1[/STRIKE]

[STRIKE]const-string v2, "Hot Boot"[/STRIKE]

[STRIKE]aput-object v2, v0, v1[/STRIKE]

[STRIKE]const/4 v1, 0x2[/STRIKE]

[STRIKE]const-string v2, "Download"[/STRIKE]

[STRIKE]aput-object v2, v0, v1[/STRIKE]

const/4 v1, 0x[COLOR="red"][B]1[/B][/COLOR]

const-string v2, "Recovery"

aput-object v2, v0, v1

sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;

return-void
.end method

I've got the menu with only those two options, but when I select "Recovery" it performs a "hot boot" instead.

Which is the proper way for doing this?
[Galaxy Note GT-N7000 Android Development] Goldie:
You posted this in another thread but ignored the reply. You should get a log. Whenever you ask questions you should accompany with a log. Then people can explain what its telling you and next time you may be able to fix it yourself
[Galaxy Note GT-N7000 Android Development] spotter-ssol:
I'm sorry, but the way you answered I thought that I would have to analize the log all by myself (have no knowledge to do this).

I'll get those logs and post. Thanks.
[Galaxy Note GT-N7000 Android Development] Spannaa:
Sorry, I pointed him there because I though it was the best place to ask.

Maybe a quick link on how to provide a log?

It'd be a shame to lose someone who's trying to learn and just needs a little help ;)

Sent from my GT-I9300...
[Galaxy Note GT-N7000 Android Development] Goldie:
Ok....for crashes that reboot post dumpstate_sys_error.txt.gz from /data/log
[Galaxy Note GT-N7000 Android Development] spotter-ssol:
I have litlle/limited experiente on coding and made those modifications by try. They don't produce any crash in system. I just can't get the expected behavior (boot into recovery). A log is still needed in this case?
[Galaxy Note GT-N7000 Android Development] Goldie:
The hotboot is most likely a system crash. Post the file i said
[Galaxy Note GT-N7000 Android Development] spotter-ssol:
Here we go...
[Galaxy Note GT-N7000 Android Development] Goldie:
You have logging turned off so that is no use im afraid. Enable logging in stweaks then make it do the hotboot again then post the file
[Galaxy Note GT-N7000 Android Development] ThaiDai:
The logs aren't necessary here (and I wonder what they would show in this case).

I just added the patch to my android.policy.jar again (didn't do this for some time).

First the "original" 4-way-button. So I could be sure it works like it should do.

Then I modified in the same way like you did and after a reboot I only had the two options (reboot, recovery).

But your modifications aren't complete because you'll still see 4 radio buttons (nr. 3 and 4 empty). And booting into recovery won't work (because it still is mapped to the fourth radio button). So with your changes we only modified the labels for the 4 options. But not the functions.

I'll try a little bit more and will search for the necessary changes now or tomorrow (not have to work). It's fun to do this again after some time.

--------------

Next one:

We have to change the size of the array from 4 to 2 (seems logical). After that the dialog is shown with only two radio buttons and the correct labels (reboot, recovery).

.registers 3

const/4 v0, 0x[B][COLOR=Red]2[/COLOR][/B]

new-array v0, v0, [Ljava/lang/String;

But after that the then second option doesn't reboot into recovery but into nirvana.

Guessing there are more changes to do in one of the three "99"-smalis. Wait for more
[Galaxy Note GT-N7000 Android Development] Goldie:
Logs are useful for people to learn what they are saying in order to solve their own issues in future rather than have someone just say "here is the code....paste this". By learning to log and read the logs when modding people learn how to debug themselves...fixing issues until they have a working mod rather than being given on a plate. Thats my opinion anyway :)
[Galaxy Note GT-N7000 Android Development] spotter-ssol:
I've got only 2 checkboxes (without empty spaces). I suspect that the file $99$1 may have those reboot methods:

# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
.registers 7
.parameter "dialog"
.parameter "whichButton"

.prologue
const/4 v2, 0x1

const/4 v3, 0x0

.line 282
sget v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootMode:I

const/4 v1, -0x1

if-le v0, v1, :cond_20

.line 291
sget v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootMode:I

const/4 v1, 0x4

if-eq v0, v1, :cond_4d

.line 283
sget v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootMode:I

if-eq v0, v2, :cond_2c
[Galaxy Note GT-N7000 Android Development] ThaiDai:
Generally true. But not here.

You didn't answer the question: what do you want to see in the logs here? It is already clear that he missed an array definition. You'll never find this in a log. You'll only find it by analyzing the sources.

And I didn't paste only but started to explain in detail what the changes mean (because I have to understand it by myself right now when trying to "read" the sources).

Reading logs and mapping this to errors in source is another chapter of experience. Try to find the (one and only) error in a log with thousands of entries stated as error.

---------- Post added at 06:33 PM ---------- Previous post was at 06:30 PM ----------

Yep. That's what I guessed and tried to change. First try with the usual result: boot loop

I'll try again (time limit ticking: my daughter starts to wake up - and she is top priority for me).
[Galaxy Note GT-N7000 Android Development] spotter-ssol:
There's no rush here, my curiosity can wait. ;)
[Galaxy Note GT-N7000 Android Development] Goldie:
Search "fatal" in the dumpstate from a reboot will give you the exact problem. No need to "try" and find anything. Why you would not do this instead of this trial and error approach is beyond me but I guess you guys like doing it this way :rolleyes:
[Galaxy Note GT-N7000 Android Development] ThaiDai:
Sorry, but I think you do not understand what is happening here. This is not try and error but understanding the source right now.

"You guys" is your way to show some kind of arrogance, right?

Until now you didn't add anything helpful apart from the "standard" requirement for a log file. (Update: especially when knowing you wrote tutorials about smali etc.)

I'm not interested in these kind of exchange. And so I stop replying to "you guys", ok?
[Galaxy Note GT-N7000 Android Development] Goldie:
Not arrogance. There is two of you. Assuming you are both male...plural of guy is guys...hence "you guys". Jeez...i was trying to help the guy to know where he can see the exact issue without trawling thousands of lines. Sorry if this offended you in some way.
[Galaxy Note GT-N7000 Android Development] spotter-ssol:
Goldie, I've deleted the old log from /data/log, enabled logging with stweaks and did the hot boot. It produced no log with that name.

---

About the code, I discovered a weird thing: reduced the options to only 3 (reboot, download, recovery) by removing only "hot boot".

const/4 v0, 0x[COLOR="Red"][B]3[/B][/COLOR]

new-array v0, v0, [Ljava/lang/String;

const/4 v1, 0x0

const-string v2, "Reboot"

aput-object v2, v0, v1

[STRIKE]const/4 v1, 0x1[/STRIKE]

[STRIKE]const-string v2, "Hot Boot"[/STRIKE]

[STRIKE]aput-object v2, v0, v1[/STRIKE]

const/4 v1, 0x[B][COLOR="red"]1[/COLOR][/B]

const-string v2, "Download"

aput-object v2, v0, v1

const/4 v1, 0x[B][COLOR="red"]2[/COLOR][/B]

const-string v2, "Recovery"

aput-object v2, v0, v1

So, selecting "download" I've got a "hot boot" as expected.

Folowing this logic, selecting "recovery" would get me to download mode. But it goes properly to recovery! :confused:

--

Edit: I'm giving up. Thank "you guys" for your help. :D
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
2 Questions

1. I replaced (deleted) the stock Messaging app with a another one, so now attempting to open it from AOSP lock screen fails and hot reboots my phone. Is there any smali or xml changes required to fix this issue?

2. Since I've removed the stock messaging app, I no longer get that "sms notification" in a circle thingy on Samsung's default (circle) lock screen.. is there any smali or xml changes required to fix this issue too?

Sent from my GT-I9070
[Galaxy Note GT-N7000 Android Development] lacoursiere18:
Yea pretty sure you have to change the call in android.policy.. on the phone now once I get to my computer I'll explain.. but someone might chime in sooner..

2nd ? I am not sure about.. I am sure you can edit some how but it would take some digging..not sure if that has been discovered yet and 4.1.2 is on the out soo.. yea;)
[Galaxy Note GT-N7000 Android Development] Kishan14:
Need help

Heyy [MENTION=369057]majdinj[/MENTION]

i was following your tutorial on 4-way Reboot Menu..

i did all steps provided by you... after pushing android.policy.jar my fone started properly..

but when i press and hold the power key and tapped 'Reboot'.. the device freezes and it didn't got any reboot menu and the device automatically soft rebooted... Thanks