yashsingh1/xdaforums huggingface dataset:
[Samsung Epic 4G Touch] majdinj:
.line xxx has nothing to do with the patch since it is used to locate codes only (i.e, can be anything or can be ignored even..!!)

What you need to do is to follow your smali flow... so I advice you to copy the code that is above the new code then just do the changes..

example:

iget-object v0, p0, Lcom/android/settings/NotificationPanel;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, "Sync"

const-string v2, "notification_panel_sync"

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

Copy the code and paste it bellow it, so it will be duplicated:

iget-object v0, p0, Lcom/android/settings/NotificationPanel;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, "Sync"

const-string v2, "notification_panel_sync"

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

[B][COLOR="Green"] # New codes start

iget-object v0, p0, Lcom/android/settings/NotificationPanel;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, "Sync"

const-string v2, "notification_panel_sync"

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

# End[/COLOR][/B]

Then just make the changes to the # New codes start section:

iget-object v0, p0, Lcom/android/settings/NotificationPanel;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, "Sync"

const-string v2, "notification_panel_sync"

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

[B][COLOR="Green"]# New codes start

iget-object v0, p0, Lcom/android/settings/NotificationPanel;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, "[COLOR="Blue"]AirplaneMode[/COLOR]"

const-string v2, "[COLOR="Blue"]notification_panel_airplane[/COLOR]"

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

# End[/COLOR][/B]

By doing so, you will make sure that you follow the exact flow of your smali codes
[Samsung Epic 4G Touch] aaasss10:
Majdinj I still take advantage of your kindness:

I put the piece of code you indicated but after recompiling and compiling again the apk to check, the 2 lines # New codes start and #End disappear. is this correct?

Thank you again and again :p

Inviato dal mio GT-N5110 con Tapatalk 2
[Samsung Epic 4G Touch] Goldie:
Its correct. They are just comments...code preceded with #. They are removed on compile :)
[Samsung Epic 4G Touch] majdinj:
I usually put comments on my smalis, so I can figure later on what I have done if I am going to write modding tutorial :)

and as [MENTION=3065070]Goldie[/MENTION] said, the comment will disappear after compiling..

If you want to preserve the comment site,, add .line 8888888 for example as start and .line 9999999 as end
[Samsung Epic 4G Touch] aaasss10:
I re-modded the 2 apk files. I must put both files in system/app or

- preload/symlink/system/app for SecSettings.apk

and

- system/app for SecSettingsProvider.apk

as they are originally placed in the zip of the rom created with dsixda's kitchen?

Again many thanks for your support :)
[Samsung Epic 4G Touch] majdinj:
From my trials, you can put any apk where-ever you want,,, but some apks will give error if you will change csc code if were put in preload partition..!!! These apks are providers apks and hub apks..!!!!

This is at least on my GT-N7000 device.. So for me I will put all providers and hub apks in system partition

Cheers,,,
[Samsung Epic 4G Touch] aaasss10:
Good evening to majdinj and everyone!

I replaced the 2 modded apk, rebooted the phone, made the cleaning with Titanium and restarted again...

The new toggle has appeared!

Unfortunately,

once I insert the new toggle in the viewed group, it does not appear in the notifications panel

and also disappears from the available toggles as in the picture below

As last resort I tried to do full data wipe but the phone goes in bootloop until I restored the original 2 apk by recovery... :(

Do you have any idea about what could be responsible for this?

I applied this mod in a rom prepared by me starting from original LT5 fw using dsixda's kitchen...

I need to mod any other system or framework file??

Thank you for your attention and support. :good:
[Samsung Epic 4G Touch] aaasss10:
Hello Majdinj!

These are links to the files of my rom

(stock N7000XXLT5 csc NEE rooted, deodexed and zipaligned):

LT5 Framework and LT5 Mod Toggle Aereo

Could you take a look at them?

I'm sorry to waste your time but I can't understand where I'm wrong :crying:

This the only mod that I wish to integrate in my rom :fingers-crossed:

Thank you very much :good::good:
[Samsung Epic 4G Touch] aaasss10:
Hello guys!

Sorry for my third consecutive post. :o

I've re-controlled the entire process of modding and I found one little difference:

in the smali of the guide is indicated:

.method public MakeConvertPanelName()V
[COLOR="Red"][B].registers 4[/B][/COLOR]

.prologue
.line 119
iget-object v0, p0, Lcom/android/settings/NotificationPanel;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, "Wifi"

const-string v2, "notification_panel_wifi"

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

...
...

in the smali of the LT5 deodexed rom is indicated:

.method public MakeConvertPanelName()V
[COLOR="red"][B].locals 3[/B][/COLOR]

.prologue
.line 119
iget-object v0, p0, Lcom/android/settings/NotificationPanel;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, "Wifi"

const-string v2, "notification_panel_wifi"

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
...
...

Is the problem I have may be caused by this different value?

Could be the LT5 version of SystemUI.apk not appropriate for this mod?

If so, could you advise me a good firmware version as a starting point? (LSZ?)

Again thank you very much for your support!! :victory:
[Samsung Epic 4G Touch] Goldie:
In any method the .locals number should be the number of registers. The v are registers. So if the method has up to v3 then .locals should be 4 for v0, v1, v2 and v3.
[Samsung Epic 4G Touch] aaasss10:
Thank you Goldie!

It's clear but why in my smali is indicated .locals3 (v0, v1 and v2) and in the guide is indicated .registers4 ?

Thank you for your attention!!

Inviato dal mio GT-N5110 con Tapatalk 2
[Samsung Epic 4G Touch] aaasss10:
Thank you thank you thank you very much!!!:):)

I watched several times with carefully all the steps but I missed that particular.

You're my savior!!!:highfive:
[Samsung Epic 4G Touch] Surj138:
Would it be a lot of trouble to make a flashable zip for this mod? I'd love to get this going on deodexed gb28.... Not much of a fan of framework theming or 3minit. Thanks

Trolling from my Cricket-flashed Galaxy S2 E4GT using Tapatalk 2
[Samsung Epic 4G Touch] majdinj:
As seen here in SecSettings.apk, there are 2 smalis that have relation with notification panel resources; NotificationPanel.smali and NotificationPanelMenu.smali

To know which smali you must edit in order to get this mod works, open SecSettings.apk\res\xml\display_settings.xml and locate this part:

<PreferenceScreen android:title="@string/notification_panel_title" android:key="notification_panel_edit">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" [B][COLOR="Red"]android:targetClass=[/COLOR]"[COLOR="RoyalBlue"]com.android.settings.NotificationPanel[/COLOR]"[/B] />
</PreferenceScreen>

As you can see here, the opening class smali for notification panel menu is com\android\settings\NotificationPanel.smali here.. check yours, it could be NotificationPanelMenu.smali rather than NotificationPanel.smali

In my case, I think I can remove NotificationPanelMenu.smali since it is not pointed to anywhere from smali or xml files, or what do you think..!!!!

Another thing regarding this code:

iget-object v0, p0, Lcom/android/settings/NotificationPanel;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, "[B][COLOR="Red"]AirplaneMode[/COLOR][/B]"

const-string v2, "[B][COLOR="Red"]notification_panel_airplane[/COLOR][/B]"

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

AirplaneMode: is the smali name in SystemUI.apk in com\android\systemui\statusbar\policy\quicksetting folder, the actual smali name is "AirplaneModeQuickSettingButton" and we just use AirplaneMode in the name and delete the remaining QuickSettingButton.. This is applied to all other smali names if you noticed (Sync, AllShareCast, DormantMode, Location... etc). Also this is the name of new database strings in SecSettingsProvider.apk.

notification_panel_airplane: is the resource string and png name (sould be the same). What we understand here is that you can use any name since you use it exactly the same in the smali

This code is repeated twice in the smali with difference in const-string registers only, the first will be for active and the other for candidate toggles.

If you checked up my other thread of mods collection, you can see I added new notification panel item toggles from scratch (Flashlight) using the same principle here ;)

If I could do it, you can do it for sure :)

It seems I spoke too much..!!

Cheers,,
[Samsung Epic 4G Touch] buckwildpimp101:
I've been using your SHOstock3 rom, and I gotta admit, it's pretty sweet!! I found some theming I wanna do to it. I'm thinking maybe a Resident Evil Umbrella Corp. Theme. Keep up the awesome work TD!!
[HTC One X] jpustin:
Gday,

I have HBOOT 1.12 on a VODAP021 CID OneX and I also only have a mac.

Are there any ways of upgrading with only a mac? Help would be appreciated.
[HTC One X] Mr Hofs:
Ah mac ! Hmm well you can perform fastboot commands right ?

Othetwise follow this first ;)

http://xdaforums.com/showthread.php?t=1917237
[HTC One X] jpustin:
yeah thats all good, I just havent found any instructions (yes im a semi noob at this) that don't involve using .exe files when installing RUU's
[HTC One X] Scrambled777:
I upgraded a VODAP021 One X a week ago from HBOOT 1.12. I didn't need to run a RUU in order to upgrade, because Vodafone has already released an OTA for Jellybean that takes your HBOOT to 1.36. I'd imagine it would be the same case for you. All you need to do is make sure you're running stock Vodafone ROM and stock recovery.
[HTC One X] jpustin:
ive been rooted and running custom roms since like 5 days after I got the device which was pretty much a week after it was released so I am definitely not running anything stock.
[HTC One X] Mr Hofs:
I saw you in the nand backup collection thread, what happend ? You found your matching nandroid ? Please give some info. Its dificult to help this way....

Did you do the fastboot getvar version-main
[HTC One X] jpustin:
I managed to find my matching CID nandroid backup for a stock build. Locked boot loader, returned to stock, upgraded then rerooted. Loaded on new viper ROM!
[Android Stick & Console RockChip based Computers] wakkaday:
they are a bit small and i would like them bigger? is this possible

i have a 32 inch hdtv and my imito mx2 resolution is set to 1080p / 60

is there also a way to configure the web browser to fill the screen? automaticaly. i am using firefox and i have managed to do it by pressing on the return on the trackpad mouse button and the page has increased in size...is there an automatic way..

thank you in advance
[Android Stick & Console RockChip based Computers] samirashafir:
Their dimensions are currently 256x256, which I only just noticed but they come out smaller than 48x48 on the home screen.
[Android Stick & Console RockChip based Computers] davphi338:
Are you using finless 1.5 Rom, if so the procedure the change Icon size is in the PDF document for Rom installation.
[HTC Droid DNA] DROIDESP:
The plastic charging door broke on my phone, and Verizon wants me to ship my device back for this instead of sending me the little piece of plastic, with a possible $200 charge for abuse? The battery life is not great on the device I use it all day so I have to charge it often, I can't stand when MFG's put these little covers on but the phone looks like crap without it.

Anyone else have this and a better way to get the little charging door or a case recommendation so I can't see it? I love the otterbox stuff but both cases are too bulky for the DNA in my opinion.
[HTC Droid DNA] orangechoochoo:
Most people ripped of that little flap. If you get a new one it will probably come off again, so just keep your phone.

As far as cases, idk. I keep my phone naked.
[HTC Droid DNA] DROIDESP:
Agreed, I prefer it naked as well, but this thing looks bad without the door, the phone has such clean lines!
[HTC Droid DNA] CharliesTheMan:
When and if mine comes off or falls apart, I will be making another one that's completely removable, basically like a rubber plug fabricated to fit snugly into the slot when I'm not charging carefully formed to prevent damage or binding.

My rezound didn't have a cover, and I take good care of my devices but in my home and work environment I'm surrounded by dust and dirt. My DNA inside would get lots of stuff like dust and even tiny pieces of hay.

My OCD would get the best of me, and every time I would connect the charger I would think of dust and airborne particles being abrasive to the micro USB port.

It can be annoying to have to use a tool each time I remove the cover but I'm really glad its there. I realize how frustrating it can be though.

Sent from my DNA... S-Off like a baws
[HTC Droid DNA] the_passenger:
Can u just buy a wireless charger? VZ has the Nokia (with discount) for under $40.

You ship your phone and they will send you back a refurbished phone.
[HTC Droid DNA] DROIDESP:
Duh. That is a really good idea, I feel retarded for not thinking about that when it broke!:good: Do you have a link, all the ones I see are $59.99 and up? It's still a go at this price, but if I can get for under $40 even better!
[HTC Droid DNA] DROIDESP:
If you make one of those, make me one too!! I'll send ya a few bucks!
[HTC Droid DNA] Fastlivin:
My door broke off as well, and I only remove it to charge while on the road away from my wireless charger. I just happened to snap it off while taking the door off, so I still have it, but it has come away from the phone's body.

A monumentally stupid design choice that was clearly done to induce the purchase of wireless chargers.
[HTC Droid DNA] DROIDESP:
I think the funny/sad thing here is the immediate claim from Verizon to me on the phone that it's probably abuse. I asked the support rep if he had seen the plastic hinge before. Abuse, total crap when it breaks in a month... if it had a little stronger battery it probably would have taken me two months for it to wear out!!!
[HTC Droid DNA] zone23:
Mine broke off so know I just stick it in. Can't help but wonder if its necessary to meat the IPX-5 water protection?
[HTC Droid DNA] Ferradinho:
What an idiot. Lol. Mine came off after a few weeks too and I rarely used the charging port since I have a wireless charger.

Sent from my Limited Edition HTC6435LVW
[HTC Droid DNA] LakerStar25:
Same thing happened to me with the plastic cover. I called Verizon told them it fell off while trying to open it to charge the phone they sent me one and said I wouldn't get charged the fee for damage. I received the new one and have not been charged any fee and its been a few months so don't worry about them charging you if you replace it.
[HTC Droid DNA] n8mack33:
For people having poor battery performance - make sure you check your usage statistics! For example, there is a bug with Latitude where it will constantly ping for location, so Maps will take up a huge amount of battery life. Check and make sure there aren't any programs or servicing taking up an unusual amount of battery life. For me, battery life has been amazing once I fixed the Maps issue (there is a thread somewhere if anyone has any specific questions on that).
[HTC Droid DNA] jerseykirby:
I've had my DNA for less than 24 hours and my battery door came off already haha. It's okay though, doesn't look that bad without it and I work in an office so I don't see any immediate danger to the device. Love it.
[HTC Droid DNA] LilTechPrincess:
Sounds like maybe you should take it back and get an iPhone? :P Seriously, I have the DNA as well. Any phone that has the rubber door flap is going to break, period. Just leave it off. You can resolve battery life by rooting it, and loading a ROM/Kernel that has better battery support.

Lastly, in re: the way it looks, the case, etc. Sounds like you're just unhappy. Try getting a phone you like better? They provide a 15 day return period for folks just like you.
[HTC Droid DNA] the_passenger:
you have to have corp discount to see it for $37.

other wise Microsoft store has it for $49. http://www.microsoftstore.com/store...0-Wireless-Charging-Plate/productID.259027800
[Motorola Droid RAZR] bbro:
I just got a refurbished phone from Verizon. I never messed around with it or anything and I immediately rooted it and installed the Jelly Bean leak.

I had issues with contact photos showing up in the Favorite Contacts widget and I had problems with my phone not switching between landscape and portrait mode.

So I did a factory reset and reloaded everything, now the issue is happening again.

Could it possibly be a software problem? I've downloaded a few different apps to test it and I'm almost certain it isnt a hardware problem. Any help would be appreciated!

Thanks
[Motorola Droid RAZR] heblu:
settings/Display/auto-rotate screen see if it is enabled. also you can install a custom rom to see if it's persisting

if those doesn't work, go to warranty
[Verizon Samsung Galaxy Note II] godrik1210:
what roms currently support MHL to HDMI? Or micro USB To HDMI
[Verizon Samsung Galaxy Note II] danielskaggs77:
Beans ver.10 working great hear.
[Verizon Samsung Galaxy Note II] KennyG123:
Please read forum rules before posting!

Questions and help issues go in Q&A

Thread moved

Thank you for your cooperation

Friendly Neighborhood Moderator
[Samsung Galaxy Nexus] p2kmafia:
So a couple of things:

First off I'm not new to android but I am new to jelly bean (skipped from 2.3 to 4.2.2 soooo ya)

Second, I understand that google has removed the ability to sync your contact photos with facebook but, I'm running Carbon 1.4 and just yesterday I went to add a contact who I'm friends with on facebook to my gmail contact list through the people app and as I was typing her name her facebook contact popped up and I was asked if I'd like to merge the two and I did so I got her contact photo, the whole shebang. Which was highly unexpected but equivalently awesome.

But now I have the problem of in the quick settings panel there's the profiles button with, what's supposed to be my contact listing, has no picture, no number, nada also it's saved on my local "SD" not my gmail so it cannot be synced when flashing new ROMs. So when I go to edit my contact information I can add everything manually, but I have my own contact listing in my contact synced with my gmail that I'd prefer to link it to so I don't have to re-setup my own picture and stuff each time I reflash a rom.

SO my question is, is there a way to sync my personal contact information with facebook and gmail or even just gmail so the information never changes?

thank you
[Galaxy S II Q&A, Help & Troubleshooting] algui91:
Hi, Since I've flash a custom ROM in my Device I'm experiencing a very slow charging. I've read lots of thread that says may be a problem of the wall charger. That is not my case because I have three original samsumg Wall chargers and with all of them the phone says Charging (USB), and the same charger in other devices is charging normaly.

I've also seen some threads saying that may be caused by some kernels configurations. But I've installed three differents Kernels and ROMs and the problem is still there.

I do not know why is this happening, before flashing custom ROMs my i9100 was charging at normal speed with AC charger.

Do you have any idea of what could be the problem?

Thanks in advance and regards.
[Galaxy S II Q&A, Help & Troubleshooting] gastonw:
After 3 cycles you'll be back at 2 h charge.

Sent from the little guy
[Galaxy S II Q&A, Help & Troubleshooting] algui91:
After 3 cycles? What its the reason for that?. I hope so.

Thanks for answer.
[Galaxy S II Q&A, Help & Troubleshooting] gastonw:
I dunno, I would have to look it up.

Sent from the little guy
[HTC EVO 3D] 'Blu:
I'm currently able to flash Sense ROMs, but nothing else. I was wondering what else I had to do. I'm currently on MeanROM-ICS, S-OFF, Jbear's Hboot, CDMA on Virgin Mobile.

If anyone can guide me to a thread with the basics in order to get started flashing a JB ROM (because I'm quite sure if I do flash a JB ROM, I'll be wasting my head with flashing more ROMs to get out of a bootloop).
[HTC EVO 3D] 'Blu:
Anyone got me on some information?
[Xoom Q&A, Help & Troubleshooting] legobrains:
First off this Xoom is out of warranty. All ready called motorola to try and get the part number, but they are going to replace the whole board which would cost a lot out of warranty.

Well I put my micro sim card adapter into the xoom (with out the sim card in it) and when I pulled it out, it broke off two of the pins in the sim card tray inside the xoom.

So I took the thing apart and bent the pins up and it works great, except that anytime I want to pull it back out, I have to wedge a thin piece of plastic in there to try and slip it out, and it is a pain.

So I have great soldering skills, and I'm confident I can do it my self, but I need to get the correct sim card tray.

The best one I could find is the JAE SF8 and the SF9 series:

comparison chart: I cant use hyperlinks so see attached picture "JAE"

Does any one know which one will work?
[Xoom Q&A, Help & Troubleshooting] legobrains:
Here are some more pictures of the Xoom and the solder points and the pins I broke.
[Xoom Q&A, Help & Troubleshooting] legobrains:
fixed

I decided to just fix this thing with spare parts.

I found an old R/C car wire with some metal on the end, I broke it off and shaped the metal to the desired size and thickness. It was already bent but I could have done that easily as well.

Then I took the xoom apart with some websites, and also a few videos on youtube that showed me how to get some of the ribbons off with out damaging them.

Then I de-soldered the case, bent it back, and soldered on my new pieces. Put everything back and it works perfectly.

Hopefully this helps someone else, or maybe you can take it in to a small electronic repair shop and they should be able to do this. My soldering skills are not that good, so they could do a MUCH better and more professional looking job.
[Xoom Q&A, Help & Troubleshooting] diesteldorf:
Would you be willing to help me fix mine for a fee? I also damaged my sim connector.
[LG Optimus 4X HD] @non4:
Any fast charge tweak for this phone? Guessing not because of locked bootloader but would love my percentage to actually go up instead of down while gaming

Sent from my LG-P880
[LG Optimus 4X HD] Tcm9669:
I agree, I would expect that if my phone is charging.. whatever I'm doing it should go up not down!
[LG Optimus 4X HD] @non4:
If you're using your quad core to play games then it's understandable but it happens even with light use, so annoying how bad our battery is!

Sent from my LG-P880
[LG Optimus 4X HD] Tcm9669:
I under clock mine to 640mhz quad. I read on forum that in some instances users weren't able to reactivate some cores after disabling them... they said they had to reset the phone to get them back up.. so that seems risky to me.
[LG Optimus 4X HD] @non4:
I also found a solution, one power guard, in ai mode battery goes up instead of down and seeing some small extension of battery life

Sent from my LG-P880
[LG Optimus 4X HD] Tcm9669:
Thanks! I will give that a shot!
[LG Optimus 4X HD] gordon0001:
AW: Fast charge

my device is charging very fast when screen is off. while on its slow. using cm10.1

Gesendet von meinem LG-P880 mit Tapatalk 2