yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] Biftor:
What? Interesting ;)

Your method have more than v4 register??

If you have register more v6 you should change register to 7.

Goldie isn't it?

Goodluck

Armin.
[Galaxy S II Android Development] remuntada78:
i think Goldie was right when he said
[Galaxy S II Android Development] Goldie:
This is exactly why it DIDN'T work. Read back.....
[Galaxy S II Android Development] remuntada78:
Now I have another challenge, set text color with colorpicker in powermenu popup :D
[Galaxy S II Android Development] Goldie:
Good luck :)

I guess I better get on with image color change guide.... :p
[Galaxy S II Android Development] majdinj:
Good to hear that :)

By the way, have anyone figured out how to get content resolver in the smali I posted.
[Galaxy S II Android Development] remuntada78:
yesss I was just about to ask this
[Galaxy S II Android Development] Biftor:
Ahan yes Goldie thats register not local yes,I thought haven't different local and register.

Goodluck

Armin.
[Galaxy S II Android Development] Goldie:
Need to look on pc mate. Will let you know when I get chance :)
[Galaxy S II Android Development] Goldie:
Very good! :)

So what decides if you get registers? I always have only locals. Apktool?
[Galaxy S II Android Development] majdinj:
I have always .registers by default,, I use baksmali by Jesus freak.. may be there is an option to force using either .registers or .locals
[Galaxy S II Android Development] Goldie:
Now you should start looking at log. It will make more sense now I think. I use adbmagic to watch the log as I do stuff. Post if you dont understand the issue :)

P.s.....look for vfy errors as well as fatal :)
[Galaxy S II Android Development] remuntada78:
log View attachment deo.zip in this case i don't see VFY errors
[Galaxy S II Android Development] majdinj:
Now I just figured that out,,, how to force baksmali to use either .locals or .registers

java -jar baksmali.jar [options] classes.dex -o classout

Options:

-b: removes debugging info (.line, .parameter, .prologue, .local)

-p: uses v registers instead of p registers (no parameter registers)

-l: forces using .locals x instead of .registers x

So to force baksmali using .locals x use:

java -jar baksmali.jar -l classes.dex -o classout

By default it uses .registers
[Galaxy S II Android Development] txr33:
Not sure if the same thing as what you want but if you use custom settings then you can use the following to make the shutter sound menu togglable. This is what I did for it but I don't see the point in being able to turn off the menu so am not using it but know it works

Change

invoke-static {}, Lcom/sec/android/app/CscFeature;->getInstance()Lcom/sec/android/app/CscFeature;

move-result-object v4

const-string v5, "CscFeature_Camera_ShutterSoundMenu"

invoke-virtual {v4, v5}, Lcom/sec/android/app/CscFeature;->getEnableStatus(Ljava/lang/String;)Z

To

new-instance v4, Ljava/io/File;

const-string v5, "/sdcard/alliance-tweak/shutter"

invoke-direct {v4, v5}, Ljava/io/File;-><init>(Ljava/lang/String;)V

invoke-virtual {v4}, Ljava/io/File;->exists()Z

You have got to do it to all CscFeature_Camera_ShutterSoundMenu, so there is 9 of them in samsugcamera.apk spread over 6 files
[Galaxy S II Android Development] majdinj:
I want to use the SecSettings.apk to set the toggles,, since I already create my own feature controller smali there..

I already created 12 toggl-able csc features in 4 different apks (tested), but I didn't figure out what went wrong here with this smali..
[Galaxy S II Android Development] remuntada78:
i'm trying to understand what i'm wrong, i changed my code compared to the above,i deleted the first sector with red lines because with those when i pressed on power button device goes on soft bootloop and i thought they are referred at icon image so i deleted.then i chenged the second sector with this

.method public setTitle(Ljava/lang/CharSequence;)V
[COLOR="Red"] .registers 7[/COLOR]
.parameter "title"

.prologue
.line 246
iput-object p1, p0, Lcom/android/internal/app/AlertController;->mTitle:Ljava/lang/CharSequence;

.line 247
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mTitleView:Landroid/widget/TextView;

if-eqz v0, :cond_b

.line 248
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

[COLOR="Red"] iget-object v1, p0, Lcom/android/internal/app/AlertController;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v1}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v1

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v2, "text_color"

const v3, -0x1

invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v1

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V[/COLOR]

.line 250
:cond_b
return-void
.end method

now devices don't goes in soft bootloop but the mod has no effect the text color doesn't change,now i'm not sure if the smali i modded is right,

with monitor tool I found AlertController$RecycleListView ,and i found it only in framework.jar but inside there is no setText(Ljava/lang/CharSequence)V like the guide in OP so i tried with AlertControlle.smali.I was wrong?
[Galaxy S II Android Development] Goldie:
Search for the id of the string you want to change. Take a look at setuptitle method in AlertController and also take a look at the GlobalActions smalis in policy :)

Sorry for not giving you direct answers as to what to do where but I want to help you figure it out rather than just tell you. Hope thats ok? :)
[Galaxy S II Android Development] remuntada78:
Yes it's ok .to learn something it is the right way

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II Android Development] remuntada78:
I looked in GlobalActions smalis in policy but there aren't setText(Ljava/lang/CharSequence)V but always looking in it i see this line

.annotation system Ldalvik/annotation/MemberClasses;

value = {

Lcom/android/internal/policy/impl/GlobalActions$ConfirmDialogReceiver;,

Lcom/android/internal/policy/impl/GlobalActions$SilentModeAction;,

Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;,

Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;,

Lcom/android/internal/policy/impl/GlobalActions$Action;,

Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;

}

.end annotation

so i searched in these files and i found setText(Ljava/lang/CharSequence)V only in GlobalActions$ToggleAction and GlobalActions$SinglePressAction I'm on the right way?
[Galaxy S II Android Development] remuntada78:
i'm not sure if this is correct,i added red lines

iget-object v3, p0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->mMessage:Ljava/lang/CharSequence;"[COLOR="Red"]<--- this is Ljava/lang/CharSequence[/COLOR]"

invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

[COLOR="Red"] iget-object v5, p0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->mMessage:Landroid/widget/TextView;"[COLOR="Red"]<--- this is Landroid/widget/TextView [/COLOR]"

invoke-virtual {v5}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v5

invoke-virtual {v5}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "text_color"

const v7, -0x1

invoke-static {v5, v6, v7}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v5

invoke-virtual {v3, v5}, Landroid/widget/TextView;->setTextColor(I)V[/COLOR]

can i apply this code?
[Galaxy S II Android Development] Goldie:
2 things wrong....

iget-object v5, p0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->mMessage:Landroid/widget/TextView;"<--- this is Landroid/widget/TextView "

invoke-virtual {v5}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

Firstly, As you noticed the mMessage is not a TextView it is a character sequence. The text view is already in v1 as you can see here....

invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

...so you dont need that first line. You can just do....

invoke-virtual {v1}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

...where the v5 you had is now v1. But we want that TextView to stay in v1 so the next lines stay same...

move-result-object v5

invoke-virtual {v5}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

....just the Context is moved and the TextView stays in v1.

Secondly at the end here....

invoke-virtual {v3, v5}, Landroid/widget/TextView;->setTextColor(I)V

You are saying that v3 is TextView when earlier you can see it is the character sequence....

invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText

As you can see here and mentioned earlier the TextView is in v1. So it should be....

invoke-virtual {v1, v5}, Landroid/widget/TextView;->setTextColor(I)V

Make sense?
[Galaxy S II Android Development] remuntada78:
perfect:good:
[Galaxy S II Android Development] remuntada78:
before I was wrong because I said i found setText(Ljava/lang/CharSequence)V in GlobalActions$ToggleAction , instead there is

iget v6, p0, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;->mMessageResId:I

invoke-virtual {v2, v6}, Landroid/widget/TextView;->setText(I)V

I can proceed with the same way?
[Galaxy S II Android Development] Goldie:
Yes but in that the TextView is in v2
[Galaxy S II Android Development] remuntada78:
yes yes i saw but there is a issue in that .method the register are 14 and here http://xdaforums.com/showpost.php?p=7310272&postcount=2 is explained could not possible use register above 15 but i need 3 more v register
[Galaxy S II Android Development] Goldie:
Did you try changing registers to 17? I know you cant do it with .locals but not sure if same applies when using .registers as you have p0-p4 included in that 14.

Edit: I read the link....registers is same. But you can reuse ones that are redefined later in the method.

Post your unmodded method and I will look. :)
[Galaxy S II Android Development] Goldie:
v6, v8 and v3 are redefined further in the code with iget, sget and const respectively so you should be able to use those :)
[Galaxy S II Android Development] remuntada78:
I used v7, v8, v9 and register from 14 to 15 but it work we're almost near:good::laugh:

now i think there is a issue with ids, i saw in GlobalAction.smali and ids are already implemented
[Galaxy S II Android Development] remuntada78:
Now with this mod i saw i have implemented other menu popup like this and i saw too the smali is always AllertController now for change the white text in need to add the code in scroller section?

edit:i added mod code after this lines

iget-object v0, p0, Lcom/android/internal/app/AlertController;->mMessageView:Landroid/widget/TextView;

iget-object v1, p0, Lcom/android/internal/app/AlertController;->mMessage:Ljava/lang/CharSequence;

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

where i thought it was for scrollerview but instead it was for the message popup when click on powermenu popup button so i've add another color text:D

edit2:now I was able to implement button color text in the AlertController.smali mbutton's section:laugh:

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II Android Development] remuntada78:
hi Goldie i can't understand what should I do with ids.don't tell me the code i need to add but only more informations

thanks
[Galaxy S II Android Development] Goldie:
You didn't change any ids. Probably setText in a different file or method. What did you mod for recovery and download etc?
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] steveh_131:
I did a LOT of searching trying to find an answer to this, so please forgive me if I missed it somewhere.

I bought the S4 when it first came out. Rooted it and blocked updates, haven't messed with it since.

Now I've installed TWRP recovery through Goo, and installed the Vision-X Blue Ice rom (with KT kernel included). Wifi won't turn on now.

I recalled in my research some comments about the older basebands causing wifi problems, so I looked and sure enough, I have I337UCUAMDB.

Is there a way to upgrade my baseband so that I can use the newer kernels and roms without losing root and my custom recovery? I can't find any info on it yet.

Thank you in advance for any help!
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] xBeerdroiDx:
i answered your question in the other thread.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] steveh_131:
Ahh yes, just saw that. Thank you. Here it is for future reference of anyone else coming across this thread:

I see in the other thread, the OP only had access to download mode...but can I flash it through TWRP? Or do I need to be in download mode and do it with odin as well?

Thank you for your help.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] steveh_131:
For the reference of anyone else with this problem:

Use this thread http://xdaforums.com/showthread.php?t=2324667

Find the appropriate radio for your device.

Flash in TWRP, wipe cache and dalvik, reboot.

Flash kernel again, wipe cache and dalvik, reboot.

Now have the newer baseband and wifi/bluetooth work again.
[One (M7) Q&A, Help & Troubleshooting] cripssu84:
Hello first of all thank you has Deubs

Problem here is when I makes " fastboot getvar mainver " here is the BONE 1.00.000.0 version that to make because I do not know how to change him(it).

I had to find the manipulation on XDA but impossible to reverse(backtrack): (

I need help PLEASE.
[One (M7) Q&A, Help & Troubleshooting] cripssu84:
Up

Up please help me
[Xperia Z1 Q&A, Help & Troubleshooting] reignzy:
Hey guys,

Does anyone know how to obtain or procure the country codes for the Z1???

When i first got mine, i gained root, played with some settings, ended up in a boot loop, trolled the net for a FTF and only found .534 Journalist version, and need to change codes back to NZ (new zealand) ones...

Any help would be greatly appreciated. :good:
[Galaxy S I9000 Android Development] SferaDev:
​

This is an official build of Omni for the Samsung Galaxy S (aka i9000 aka galaxysmtd).

#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

Installation Instructions

Coming from JB

1. You must be rooted!

2. You must have a custom recovery installed.

3. Wipe your device.

4. Flash the ROM zip, it will appear an error, warning that all data will be wiped due different partition table.

5. Reflash the ROM zip, it will continue now.

6. Flash the GAPPS.

7. Reboot. (It can take up to 5 min.)

8. Enjoy

Coming from Omni Kit Kat

NOTE: I'm not responsible of crashes due kernel changes.

1. Flash the ROM zip.

2. Reboot.

3. Wait the upgrading android dialog.

4. Enjoy!

Sources

Omni's GitHub

Useful Links

Website

Gerrit

Changelog

XDA:DevDB Information

Omni for the Galaxy S I9000, ROM for the Samsung Galaxy S I9000

Contributors

SferaDev, kasper_h

ROM OS Version: 4.4.x KitKat

Based On: AOSP

Version Information

Status: Beta

Created 2013-10-17

Last Updated 2014-07-17
[Galaxy S I9000 Android Development] SferaDev:
Latest Version

Omni for the Galaxy S I9000 Nightlies

Download

ROM

GApps: http://goo.im/gapps

How to Install

1. Enter recovery

2. Wipe "Factory Reset" (Unless you know what you are doing!)

3. Flash ROM zip

4. Reboot

5. Enjoy
[Galaxy S I9000 Android Development] SferaDev:
Reserved
[Galaxy S I9000 Android Development] fefuzzo:
Yeahhhhhhhhhhhhhhhh!!!! ;)
[Galaxy S I9000 Android Development] SferaDev:
I'm delaying the first upload found a major bug that has to be solved...

Phone it's solved now but I'm facing issues with recovery. Hateful TWRP...

Now I have to make a download back to gb and test another ROM zip...
[Galaxy S I9000 Android Development] japoina92:
yeaahh!! awesome broo!! i'm waiting for it, and for TWRP dont worry... i prefeer CWM ( traditional xD ) (for me) haha .

only can say I'm nervous and anxious to try now! I wish very lucky with this project!

---------- Post added at 10:55 PM ---------- Previous post was at 10:55 PM ----------

yeaahh!! awesome broo!! i'm waiting for it, and for TWRP dont worry... i prefeer CWM ( traditional xD ) (for me) haha .

only can say I'm nervous and anxious to try now! I wish very lucky with this project!
[Galaxy S I9000 Android Development] SferaDev:
I also prefer CWM but gives a lot of issues while building omni cuz Omni prefers TWRP...
[Galaxy S I9000 Android Development] Angristan:
Thank you :)
[Galaxy S I9000 Android Development] SferaDev:
I give up for today, tomorrow more guys... It's 12AM...

Sorry!
[Galaxy S I9000 Android Development] LeslieKawiti:
Thanks

Will it have the multi window feature?
[Galaxy S I9000 Android Development] makimac:
Congrats SferaDev, i was trying to build it since monday, but without luck

will test it asap
[Galaxy S I9000 Android Development] arjiegodz:
waiting
[Galaxy S I9000 Android Development] supergeorg:
Omni Rom is made by the developer of TWRP, so no CWM.

Also it is seen as alternative to CM, so they use the non CM recovery.

Kasper_h tried to build it too, talk with him or pawitp, there are some telephone bugs.

Good luck, will definitely try Omni Rom :D

Gesendet von meinem GT-I9000 mit Tapatalk 2
[Galaxy S I9000 Android Development] twinky444:
I wonder if OMNI will have NIGHTLIES... I'm addicted to flashing LOL :D
[Galaxy S I9000 Android Development] fefuzzo:
Don't worry, be happy :D if you want, i can test it ;)
[Galaxy S I9000 Android Development] SferaDev:
I already solved Telephony bugs now let's try to build with CWM...

Enviado desde mi GT-I9000 usando Tapatalk
[Galaxy S I9000 Android Development] limnaln:
Can you show some pics, how it looks? :rolleyes:
[Galaxy S I9000 Android Development] Soryuu:
Will there be an option for TWRP or could we just use it by flashing a TWRP-enabled kernel?
[Galaxy S I9000 Android Development] DumF0rGaming:
Now I'm definitely have to donate you, even with my phone dead. Keep up a good work!
[Galaxy S I9000 Android Development] SferaDev:
It looks like an AOSP xD

Enviado desde mi GT-I9000 usando Tapatalk
[Galaxy S I9000 Android Development] LP6:
SuperSU survived as usual on my SGS with the 20140122 test build.

Make sure you have the SuperSU backup script installed. This can be found on SuperSU settings tab.
[Galaxy S I9000 Android Development] TommeleTBone:
did flash new superSU1.91, all is cool again.
[Galaxy S I9000 Android Development] ayed78:
what kernel use..cwm or twrp
[Galaxy S I9000 Android Development] TommeleTBone:
twrp
[Galaxy S I9000 Android Development] ayed78:
supersu intergrated in setting after update..use didhiy stock kernel with cma..latest update
[Galaxy S I9000 Android Development] F4b0s:
Hi !

just installed the latest build coming again from CyanAOSP KK4.4 v2.8.0 without full wiping : phone app FC !

I'm actually installing OmniROM again but with full wipe.

I'll tell you ;)
[Galaxy S I9000 Android Development] ntragas:
I am in omni mckay rom but i have some random reboots .Can i install Mckay CM rom from omni mckay 30 dec with wipes data cache dalvik

or do i need anything else like formas?
[Galaxy S I9000 Android Development] F4b0s:
Okay, so my problem is always the same : no access to the security parameters !

I'm not allowed to install apk files or to restore my backed up apps with Titanium Backup, which is very important to me...

Colud you please tell us when this function will be released ?

Thanks again for the job !!
[Galaxy S I9000 Android Development] idroj:
changelog: fc on security fixed.

Enviado desde mi GT-I9000 mediante Tapatalk
[Galaxy S I9000 Android Development] LP6:
Yep, the changelog really is recommended reading for all of us concerned tweakers:

https://changelog.omnirom.org/#/galaxysmtd/next
[Galaxy S I9000 Android Development] F4b0s:
OK, I haven't read the changelog, I admit it !

2 questions :

1- how did you explain that I still got this problem ?

2- I just read the change log mentioned in the first post and don't find the fix you're talking about...

Thanks again !
[Galaxy S I9000 Android Development] idroj:
1. I make a clean install and it works

2. Post 177.
[Galaxy S I9000 Android Development] Musky80:
These rom is good, but

install last nightly build with full wipe

Install also supersu 1.91 with zip in twrp.

1. i click on Security setting -> fc

2. dont move app on sdcard, when move app with rom toolbox - app in list of application is gray and after restart the phone -> fc android media

3. when flash mackay kernel for 4.4.2 - shows still logo omni etwa 30 min, or error in recovery
[Galaxy S I9000 Android Development] F4b0s:
Thanks for confirming what I told about the security FC ! :good:
[Galaxy S I9000 Android Development] SferaDev:
It was picked on my test build but https://gerrit.omnirom.org/#/c/5061/ has not been merged. Nothing till then on nightlies!

Also about the sdcard another patches are being reviewed! Please I beg you for a bit of patience.

Thanks!

Edit: Just merged!
[Galaxy S I9000 Android Development] DanieVDM:
Nightly updates failing to flash with TWRP and root lost

Hope someone can help here... I came from CyanogenMOD KitKat and in CWM I flashed the Omin ROM (Nightly 20140119 with GApps) and I did a factory wipe. It installed TWRP ver 2.6.3.0 as the default recovery which replaced CWM. It all booted fine and still works great.

The problem is that now when I try to flash nightly updates I get an error: Error executing updater binary in zip '/sdcard/omni-4.4.2-20140124-galaxysmtd-NIGHTLY.zip'. The error log does not showing anything either apart from the failure message. So no nightlies have managed to flash. I also see that I had lost root with the install. I did flash SuperSU v1.91 across and it appears in my phone's settings menu. SuperSU says it needs to update the binary but it keeps failing (tried normal and TWRP). So I can't get root back either.

I heard a few people had problems with TWRP 2.6.3.0 and I should try version 2.6.3.1 but I don't think we can update recoveries on the Galaxy S. Is there any way I could get back to CWM again as that always seemed to work? It is a spare phone for testing so I don't mind wiping it.
[Galaxy S I9000 Android Development] SferaDev:
To get CWM back you could flash Semaphore kernel.

See you!
[Galaxy S I9000 Android Development] petrolcan:
Okay, so I've installed this but I'm seeing a completely black home screen, no launcher shortcuts, after it boots. The notification bar is showing at the top and I can pull down and access setting etc.

Flashed 29/1 nightly

PA gapps

Latest SU

What have I done wrong?
[Galaxy S I9000 Android Development] L_S:
External sd mount on twrp and pc is fixed in latest versions?
[Galaxy S I9000 Android Development] idroj:
No, I just try it.:(
[Galaxy S I9000 Android Development] ayed78:
try flash with didhiy kernel it works on me
[Galaxy S I9000 Android Development] L_S:
I am a i9000b/galaxysbmtd user, i can't use kernel for i9000/galaxysmtd.

For kk i can use only stock kernel from cm, omnirom and gearkernel replacing boot.img and modules from rom zip :p
[Galaxy S I9000 Android Development] petrolcan:
Anyone?
[Galaxy S I9000 Android Development] Trunkam:
I'm on the same version and everything is working fine..

The only difference is that i used bank gapps..

When i flashed i wiped everything considering that sgs is my experiment/test phone.. I even formatted sd.

tapatalked..
[Galaxy S I9000 Android Development] omreJ:
flash again.full wipe,including system.
[Galaxy S I9000 Android Development] petrolcan:
Did that, three times to the same result.