yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] remuntada78:
Do you're referring to me? i don't know if the above code is the same of your, it was just an attempt without looking in other sources
[Galaxy S II Android Development] ROBERT CM:
Great Work

Thanks for this guide :D
[Galaxy S II Android Development] josephpatrick:
query

hi, would anyone have any ideas/inputs on the following post?

http://xdaforums.com/showpost.php?p=64814653&postcount=4703
[Galaxy S II Android Development] Pirrotto:
hello I'm your follower, I wanted to ask if you could explain how you created onclicklistener to change from Celsius to Fahrenheit because I wanted to adapt it to a clock change from analog to digital. I hope you can help me. I await your answer thanks sorry for my english but I'm Italian ... you can also write on telegram [MENTION=7138057]Pirrotto[/MENTION]. happy to follow you
[Galaxy S II Android Development] kmdangi:
hello [MENTION=3065070]Goldie[/MENTION]

In the attached smali file, I want to change values for image blur / blur scale. I am newbie to smali. Can you please help ?

Thanks a lot in advance ! (I have added .doc extension to smali for uploading purpose)
[Galaxy S II Android Development] tdunham:
http://xdaforums.com/showpost.php?p=64816915&postcount=63

This post shows the edit location and values to edit.
[Galaxy S II Android Development] Ticklefish:
Hiya, folks. I need some help.

Smali still baffles me, although I understand it more now than I used to, so I'm hoping somebody here can help me out.

I'm trying to remove two [MENTION=1331068]ids[/MENTION]'s from my navigation_bar.xml. If I just delete the lines, I get an FC so I need to remove them from the smali as well. That's where I get stuck.

They're mentioned twice in a particular smali file. The first time is inside an array, which I think can be safely ignored:

:array_0
.array-data 4
0x7f100137
0x7f100143
.end array-data

The second time is inside a method:

.method public onFinishInflate()V
.locals 6
const/4 v5, 0x1
const/4 v4, 0x0
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mRotatedViews:[Landroid/view/View;
iget-object v1, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mRotatedViews:[Landroid/view/View;
const/4 v2, 0x2
[COLOR=red] const v3, 0x7f100137[/COLOR]
invoke-virtual {p0, v3}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->findViewById(I)Landroid/view/View;
move-result-object v3
aput-object v3, v1, v2
aput-object v3, v0, v4
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mRotatedViews:[Landroid/view/View;
[COLOR=red] const v1, 0x7f100143[/COLOR]
invoke-virtual {p0, v1}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->findViewById(I)Landroid/view/View;
move-result-object v1
aput-object v1, v0, v5
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mRotatedViews:[Landroid/view/View;
const/4 v1, 0x3
iget-object v2, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mRotatedViews:[Landroid/view/View;
aget-object v2, v2, v5
aput-object v2, v0, v1
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mRotatedViews:[Landroid/view/View;
aget-object v0, v0, v4
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mCurrentView:Landroid/view/View;
invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->getImeSwitchButton()Landroid/view/View;
move-result-object v0
iget-object v1, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mImeSwitcherClickListener:Landroid/view/View$OnClickListener;
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct {p0}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->updateRTLOrder()V
return-void
.end method

What I want to do is remove those references, and everything that relates to them, so that I can delete them from the XML. One is a reference for a Layout to be displayed when the phone's in portrait, the other is for a Layout when the phone's in landscape.

Can anybody help? This is beyond my skill level...:crying:
[Galaxy S II Android Development] renzetti.s:
Have you tried to jump? I use your amazing tool and I'm complete ready to help you.

BTW in smali if you put # at the begin of row it will be ignored.
[Galaxy S II Android Development] tdunham:
Try finding the invoke for the method onfinishinflate and remove it.

---------- Post added at 04:55 PM ---------- Previous post was at 04:42 PM ----------

Try finding the invoke for the method onfinishinflate and remove it.
[Galaxy S II Android Development] Ticklefish:
I wondered about using the equivalent of a GOTO command to just bypass the relevant lines, but I'm not sure which lines to jump past. :confused:

(Always good to see a TMA fan, by the way!)

I'll see if I can track down and remove the method invoke. My concern are the references to the IME switch and the RTL check. They make me suspect this method does more than just display a Layout suited to the phone's orientation.

But I'll give it a try and see what happens. Watch this space!
[Galaxy S II Android Development] renzetti.s:
Haven't suggest this because seems that there is more.

if I helped push thanks

---------- Post added at 06:28 PM ---------- Previous post was at 06:13 PM ----------

Try this

if I helped push thanks
[Galaxy S II Android Development] renzetti.s:
Jump entire method? Goto: goto_0 at the begin and :goto_0 row before return void...

if I helped push thanks
[Galaxy S II Android Development] Ticklefish:
I'll give it a try when I'm back at a computer tomorrow, thanks. Presumably I could just put a return void line at the top of the method?
[Galaxy S II Android Development] renzetti.s:
Yes, it's the same.

if I helped push thanks
[Galaxy S II Android Development] tdunham:
[MENTION=4315551]Ticklefish[/MENTION]

Ok, finally got to a pc to take a look at xml and smali for this. Exactly what are you trying to do with nav bar? Maybe the edit you are looking to do is not the best way to get there. ;)

Edit: And when I look, the way we are suggesting isn't going to work I think because it is putting values into an array that gets used elsewhere if you skip that section in smali.
[Galaxy S II Android Development] renzetti.s:
I'm following the question make from him and suggest how to do. I agree that must check what array really do. If you can check thickle some post before write what want to do and how

if I helped push thanks
[Galaxy S II Android Development] tdunham:
Yes I understand. I think it is going to be difficult to rewrite smali to not use the array to split layouts into two separate layouts. The navigation bar layout is actually called from phonestatusbar.smali. If there were a way to give it a condition for rotation, then he could use two different layouts. I will keep looking.

But the way it is written now, navigation_bar.xml layout already has a way to hide view depending on rotation that is built into smali just curious why he wants to change it.
[Galaxy S II Android Development] Ticklefish:
Essentially I'm trying to put a HorizontalScrollView into the portrait navbar. I can fill that up with additional softkeys (music player controls, camera shortcuts, etc) to give the navbar a bit more functionality.

The softkey part I'm okay with, it's getting the View in that's causing the trouble. After a lot of experimenting, it looks like every time I try to put a HorizontalScrollView anywhere inside those id's, I get a FC.

So I wondered about getting rid of the id's completely and just having two XML files in layout-land and layout-port. That way I could put a HorizontalScrollView in one and a ScrollView in the other and the mod would be complete.

But it's proving to be a lot more complicated than I would have liked..
[Galaxy S II Android Development] maskerwsk:
If i understand what your trying take alook at my old rom here:

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

I did something the similar. Feel free to take a look at the code i used.

If i remember correctly i think i but frame layouts for the icons and then wrapoed them in a horizontal scrollbar
[Galaxy S II Android Development] Ticklefish:
Intriguing..

I'm downloading your rom now and I'll take a look.

Where is this scrollbar? I'm guessing, being a TW rom, there's no navbar..
[Galaxy S II Android Development] maskerwsk:
Its in the expanded status bar layout....or header lol its been a long time lol.
[Galaxy S II Android Development] Ticklefish:
Thanks, I'll take a look in a few minutes once the kettle's boiled.

I've used a ViewFlipper in the expanded screen before now to great success. But I've never had any luck getting it into the navbar. Hmm..
[Galaxy S II Android Development] tdunham:
That's a lot of extra ID's in the new code. Did you add them to yours as well?

As for the existing ID's you want to remove. What about creating a couple of empty framelayouts with them inside just so smali wont freak out if they're missing for now?

Just add this to the top or bottom of navigation_bar.xml

<FrameLayout android:id="@id/rot0" android:layout_width="fill_parent" android:layout_height="fill_parent">
</FrameLayout>
<FrameLayout android:id="@id/rot90" android:layout_width="fill_parent" android:layout_height="fill_parent">
</FrameLayout>

A logcat might help with force closes too. ;)

---------- Post added at 05:25 PM ---------- Previous post was at 05:18 PM ----------

@ticklefish

A logcat would help to point out any missing dimens, ID's or anything else you may have missed adding in your new code too.
[Galaxy S II Android Development] Ticklefish:
Logcats are causing me trouble right now. I do most of my modding at work and IT have made it impossible to install adb drivers.. :crying:

But I'll see what I can do!
[Galaxy S II Android Development] Wuby986:
theoretically speaking you could set up an init.d script to logcat for you once init are run
[Galaxy S II Android Development] maskerwsk:
I might be wrong but im sure the horizontal scroll was inside a linear layout aswell. Like said above. There is alot of ids, strings, images and the smali.file that goes with the xml layout. Youd need to get all that sorted aswell. Maybe remove all the frame layouts except one and go from there
[Galaxy S II Android Development] Ticklefish:
I've tried a few things but no luck. This code is mostly stock, I haven't really changed anything this time around (when it was ICS, my XML was rewritten almost completely).

I think I'm definitely going to have to get a logcat going. Which means asking somebody with a PC for a favour. Hmm..

Thanks for all your help, guys! I'll come back once I've got some more info on what's going on! :highfive:
[Galaxy S II Android Development] kingdj:
You can check saved logcat on your phone w/o app or pc, just go to data/system/dropbox folder and grab a file named system app crash,grab it according date&time the last time you got fc, there,s a lot file named like that in there so sort it.the last system app crash txt is your last logcat

Hope this help you
[Galaxy S II Android Development] Goldie:
Why are you not doing it in java?!
[Galaxy S II Android Development] renzetti.s:
I make it in smali and bring to other phone too Samsung lg...

Inviato dal mio LG-D802 utilizzando Tapatalk

---------- Post added at 05:53 PM ---------- Previous post was at 05:53 PM ----------

read above

Inviato dal mio LG-D802 utilizzando Tapatalk
[Galaxy S II Android Development] Goldie:
That smali file for blur was brought from another device wasn't it and just added as a new view? Not written from scratch in smali?

In any case....what did you change in NotificationPanelView?
[Galaxy S II Android Development] kingdj:
[MENTION=3065070]Goldie[/MENTION] thanks for response

Here is the situation

That smali i attach is my original smali, off course it was modified by me with new method.field instance, actualy my friend is java expert and he build it from serajr code repo and he build it directly to his ui,it has blur recent&expanded with option to on off blur and option to manage the blur radius and bitmap he put that option on edit tile on qs ,but unfortunately he not good at smali,and i.m not good at java, so the only option i have is port it to my device via smali, my req is can you help me ti solve my error ? I know its verify error but i.m stuck to solve it on my own, need help from an expert like you, thank you

---------- Post added at 07:05 PM ---------- Previous post was at 06:59 PM ----------

Do you have any idea how to solve my error mate?
[Galaxy S II Android Development] renzetti.s:
I already made this, now I have in real time when pull down notification a blur background. with some knowledge follow my guide you can do it.

Inviato dal mio LG-D802 utilizzando Tapatalk

---------- Post added 02-04-2016 at 12:01 AM ---------- Previous post was 01-04-2016 at 11:58 PM ----------

is your question for me?

right the blur engine I select an already made but I let that this work in real time on notification expanded (screenshot and blur)

Inviato dal mio LG-D802 utilizzando Tapatalk
[Galaxy S II Android Development] dinu32184:
Pls someone give me a guide for,

How I add a feature that I want to add a hidden screen on button In the left corner of the status bar ....pls
[Galaxy S II Android Development] kingdj:
Finaly its done. New style of blur
[Galaxy S II Android Development] renzetti.s:
Seems too dark. Do you have dim too?

Have you used my guide?

Inviato dal mio LG-D802 utilizzando Tapatalk
[Galaxy S II Android Development] kingdj:
No dim. And this blur is build using serajr repo code from L, i just make it darker as it can be adjust how much radius and scala of blur we like, your blur has no chance to work on cm13 cos its not iniliaze the height on my smali
[Galaxy S II Android Development] renzetti.s:
Is it real time? When pulldown blur what you have in the screen?

Inviato dal mio LG-D802 utilizzando Tapatalk
[Galaxy S II Android Development] kingdj:
My blurred bg off course, its not static blur, whenever i pull down my expanded its blurred the bg it self so the blur is always change
[Galaxy S II Android Development] renzetti.s:
So good job. Congrats. Have you in lock pulldown too?

Inviato dal mio LG-D802 utilizzando Tapatalk
[Galaxy S II Android Development] kingdj:
Atm my concern is to make ls blurred or atleast not blank black..waiting serajr for his source or help to figure out what make it blank, cm13 code is make headache
[Galaxy S II Android Development] newbreedsoftware:
I'm trying to modify some smali code and I'm not exactly sure I'm doing it correctly. I am trying to bypass root detection on a game I want to play on my tablet. I found where the root detection process happens. My question is do I need to just change the const-string lines to if-nez v0, :cond_0 or do I need to edit the other files as well? Any ideas would be much appreciated, thank you. I have attached screen shots of the smali and java source code as well
[Galaxy S II Android Development] vishnuR001:
Hello

This is a smali code which returns a Title and a Link from 'weblink' inside a database file. I want to return a static value (example 'This is the link www.google.com ' ) instead of Title and Link from database file. How can I do that? What code should I change? Can somebody help me? Thanks in advance.

.method private a()Landroid/content/Intent;

.locals 5

.prologue

.line 297

:try_start_0

iget-object v0, p0, Lcom/myapp/c/f;->b:Lcom/myapp/context/ApplicationContext;

iget-object v0, v0, Lcom/myapp/context/ApplicationContext;->o:Lcom/myapp/context/b;

iget-object v0, v0, Lcom/myapp/context/b;->b:Ljava/util/List;

iget v1, p0, Lcom/myapp/c/f;->c:I

.line 298

invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

move-result-object v0

check-cast v0, Lcom/myapp/data/weblink;

.line 299

new-instance v1, Landroid/content/Intent;

const-string v2, "android.intent.action.SEND"

invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

.line 300

const-string v2, "text/plain"

invoke-virtual {v1, v2}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

.line 301

const-string v2, "android.intent.extra.SUBJECT"

.line 302

invoke-virtual {v0}, Lcom/myapp/data/weblink;->getTitle()Ljava/lang/String;

move-result-object v3

.line 301

invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

.line 303

const-string v2, "android.intent.extra.TEXT"

new-instance v3, Ljava/lang/StringBuilder;

invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

.line 304

invoke-virtual {v0}, Lcom/myapp/data/weblink;->getTitle()Ljava/lang/String;

move-result-object v4

invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v3

const-string v4, " "

invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v3

invoke-virtual {v0}, Lcom/myapp/data/weblink;->getLink()Ljava/lang/String;

move-result-object v0

invoke-virtual {v0}, Ljava/lang/String;->toString()Ljava/lang/String;

move-result-object v0

invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v0

invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v0

.line 303

invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

:try_end_0

.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

move-object v0, v1

.line 309

:goto_0

return-object v0

.line 307

:catch_0

move-exception v0

invoke-static {v0}, Lcom/myapp/d/e;->a(Ljava/lang/Exception;)V

.line 309

const/4 v0, 0x0

goto :goto_0

.end method

.method static synthetic a(Lcom/myapp/c/f;)Lcom/myapp/context/ApplicationContext;

.locals 1

.prologue

.line 51

iget-object v0, p0, Lcom/myapp/c/f;->b:Lcom/myapp/context/ApplicationContext;

return-object v0

.end method
[Galaxy S II Android Development] xpirt:
after "qs_show_brightness_slider" you pass v1 as contentresolver, it should be v4.

also why you added more locals? 7 is enough.
[Galaxy S II Android Development] renzetti.s:
Right.

Inviato dal mio LG-D802 utilizzando Tapatalk
[Galaxy S II Android Development] renzetti.s:
No

Inviato dal mio LG-D802 utilizzando Tapatalk
[Galaxy S II Android Development] ReadReadz:
It's hard for me :p:(
[Galaxy S II Android Development] renzetti.s:
.line 750

Invoke-static {v4,........... Instead v1

Inviato dal mio LG-D802 utilizzando Tapatalk
[Galaxy S II Android Development] xpirt:
also the v4 and v1 are used wrong in next lines too.
[Galaxy S II Android Development] renzetti.s:
The original move result v1 for me seems OK

Inviato dal mio LG-D802 utilizzando Tapatalk
[Galaxy S II Android Development] xpirt:
yes but in set0() the v4 is still contentresolver and should be changed to QSPanel's this.
[Galaxy S II Android Development] luk01928:
How have you done it. What have you modified?
[Galaxy S II Android Development] kingdj:
Phonestatusbar smali.notifpanelview smali.qs.setting smali, lot change from iget to be sget on mkeyguardshowing, thanks to [MENTION=3989065]serajr[/MENTION] for tips and source help me a lot
[Galaxy S II Android Development] serajr:
Great job!!

I'll publish Blurred System UI (MM) sources soon (still static blur, but the last one).

I'm working on a new blur technique, the Live Blur. It is already working pretty well in the stand-alone app I've compiled for its testings, but inside System UI.

The Live Blur does perform the blur in 15,30 (default) or 60 frames per second. It is capable to blur everything below its layer (pictures, views, movies, games...), but I still need to improve its bowels to make it public (no ETA).

I'd like also to congratulate you all here... keep up the good work!
[Galaxy S II Android Development] renzetti.s:
What do you mean with static?

You are very good. Wich phone you have? Have you seen widget blur on lg g5? Amazing.

Inviato dal mio LG-D802 utilizzando Tapatalk
[Galaxy S II Android Development] serajr:
Thank you buddy!

ZL, Z1, Z2Tablet, Z3Compact and Z3.

No I haven't! Could you please show it me, or a link to it?

I meant screenshot blurred bitmap.
[Galaxy S II Android Development] Martillero:
Wow! real time blur, so no more blurred static bitmap...that's perfect and simply amazing serajr, your are an awesome dev mate, i love your work, keep it up :good:
[Galaxy S II Android Development] kingdj:
I.m speechless mate, you my fav dev

I made a screen record for that blur maybe you would intresting to watch it mate

https://youtu.be/t0QnosnXjJk

Guide for blur with option

http://xdaforums.com/galaxy-s3/deve...rt-blur-option-cm13-6-0-t3369411#post66619131

Gracias
[Galaxy S II Android Development] renzetti.s:
Yes, like my mod...

Have to do it because you can pull down notification on every screen (dynamic and real time)

Inviato dal mio LG-D802 utilizzando Tapatalk
[Galaxy S II Android Development] #Henkate:
Hi there.

It is allowed to edit the CustomSettings apk? For example, adding icons to Preference Screens or changing toggle appearance and then publish a rom using it ( of course i give credits) ?

https://i.imgur.com/5zn3LiI.png

https://i.imgur.com/GpNf5Qh.png

Ive seen these screenshots in some posts of the famous touchwiz unified thread if im not wrong.

Im waiting for a reply.

Thank you!
[Galaxy S II Android Development] flatpedals:
smali | root check bypass

hey, I need a little help on this smali code editing so I can bypass the root check of an internet banking app.

thread here: http://xdaforums.com/android/help/e...smali-code-t3420443/post67786461#post67786461

thanks.
[Galaxy S II Android Development] tdunham:
I'm pretty sure one smali edit isn't going to bypass their security. The software developers are pretty good at what they do. The big question is can a secure banking application be decompiled and recompiled and still run. If it cannot, then there is no point in looking any further if you can't cross that basic hurdle.
[Galaxy S II Android Development] flatpedals:
I have decompiled and recompiled it with no smali change and it works, I mean it starts fine and gets to the "you're rooted, get out" message.

After recompiling I used apksigner to sign it.

I've tried some smali changes but it force closes after starting - probably because I didn't really know what I was changing.

I tend to believe that the devs are prety good, I couldn't find any "if" statement handling the value of v. I don't know....
[Galaxy S II Android Development] renzetti.s:
Use logcat to check what stop runtime...

Inviato dal mio LG-D802 utilizzando Tapatalk
[Galaxy S II Android Development] badboy_6120:
Smali code

Hello

I need your help with some smali modifications

The Media Volume controller slider coler in Note 3 Rom is controlled by a file named AbsSeekBar.smali in framework.jar package and its color is defined by Hex Color code like this :

const-string v3, "#009d59"

What I want to do is to change this hex color to an color ID public code that could be changed in framework-res.apk like the rest of the Volume sliders color

Something like this :

const v3, 0x106000b

*The Id code for white in framework-res.apk

Can I do something like this? and If I do, can you please help me accomplish this? because whatever step I took end up nowhere

Thank you in advanced dear

I also upload you the file above that need to be modified

https://drive.google.com/file/d/0BzbyYHJHXED1SWN0eDNiemYtWnc/view
[Galaxy S II Android Development] xpirt:
change:

to:
[Galaxy S II Android Development] badboy_6120:
Thank you for your help

But I'm still getting FC from SystemUI and Volume keys don't work:(

I replaced these lines :

with these :

By the way the Public Id's in Public.xml at framework-res.apk have a zero in each one

like:

0x0106000b

but I didn't use that zero as I've noticed all smali files contains Id code without the zero at first
[Galaxy S II Android Development] xpirt:
post the log of the FC..