yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] heyjoe66:
[GUIDE][TWEAK] Switch back OK / Cancel buttons in ICS ROM (including HTC)

It's here:

framework-res.apk\res\layout\alert_dialog_holo.xml

Find button2 and button1 and switch them

For HTC ROM repeat operation additionally for:

framework-res.apk\res\layout\zzhtc_alert_dialog_holo.xml

com.htc.resources\res\layout\alert_dialog.xml

Also you might want to change buttons order in PackageInstaller.apk

To do that you have to switch "left" and "right" attributes for the following tags:

in install_confirm.xml

in op_progress.xml

in uninstall_confirm.xml

And please don't ask, "why do we need this? it is good as it is".

Who needs this, knows why.
[Android Software/Hacking General [Developers Only]] AMoosa:
Would this work for a Galaxy Note on ics to swap the function of the capicitive buttons round?
[Android Software/Hacking General [Developers Only]] heyjoe66:
No, I don't think so. It's for on-screen buttons, not for hardware ones.

There are some key mappings in \system\usr\keylayout folder. Maybe you should dig in there.
[Android Software/Hacking General [Developers Only]] hansip87:
Wish that i found this thread sooner... Already got used to it unfortunately. Nevertheless thanks for the tip! :-)
[Android Software/Hacking General [Developers Only]] jaronow:
Thanks for the info
[Android Software/Hacking General [Developers Only]] juniecho:
for htc phones, similar edit required for:

\res\layout\alert_dialog.xml in com.htc.resources.apk
[Android Software/Hacking General [Developers Only]] jona196313:
edit

can you tell me what edit program you use to edit this mod ?
[Android Software/Hacking General [Developers Only]] thx1200:
Thank you for posting this mod! The flipped OK/Cancel buttons were driving me absolutely crazy. Just wanted to post an FYI for others in my boat. I have an EVO 3D and just upgraded to ICS and the XML files are all compiled. I've never hacked binary XML before, so while this is small fry stuff for many, for me it took a while to figure out what to do. I ended up using APKTool to decompile the framework-res, hand edited the XML in Notepad++, used APKTool to recompile it, then copied the META-INF folder back into the apk...

One gotcha. When recompiling, there's a resource file that is apparently malformed according to APKTool so I had to dig for a while to figure out how to resolve that, then I found this post. Thankfully, only the anims.xml file was messed up for me, so I only had to do the first step to get it to recompile.

Hope this helps somebody else out there. :)
[Android Software/Hacking General [Developers Only]] psm321:
Sorry to kick an old thread, but does anyone know if this fix will also fix the call answer buttons on ICS/Sense 4? Or if not, how to do that? I could honestly get used to the dialogs, but the call answer buttons are going to keep driving me crazy because they go against the ingrained behavior from practically every single phone ever. Thanks!
[Android Software/Hacking General [Developers Only]] Shinkoku:
Could anyone advice on how to recompile the famework-res. apk? Try to do using apk manager, but it seems to be a bit complicated. Apk manager says it has created some "keep" folder in which I must delete the edited apk as well as one more file, but after that the original apk size reduces a lot, and one folder within it disappears. Kind of strange. Wonder if there anything about decompiling system apks using apk manager?

Anyone would help me on that matter?
[Android Software/Hacking General [Developers Only]] Shinkoku:
Could fix the framework but stuck with packageinstaller.

Guys, in description for packageinstaller, does "To do that you have to switch "left" and "right" attributes for the following tags" mean you have to switch words "left" and "right", or "id/ok button" and "id/cancel button"? Which fields are to be changed?..
[Android Software/Hacking General [Developers Only]] jader13254:
Is Google kidding us?

They change it in every android update >_< :p
[Android Software/Hacking General [Developers Only]] XivilidMohamed:
I just success switch in framework-res.apk; I have mod PackageInstaller.apk but not thing change? Install/Cancel button still at there.
[Android Software/Hacking General [Developers Only]] XivilidMohamed:
Plz, U can mod it for me? I have change left<->right but nothing change Install/Cancel button.
[Android Software/Hacking General [Developers Only]] XivilidMohamed:
Why u no reply for mem in ur thread?
[Android Software/Hacking General [Developers Only]] Shinkoku:
I could change framework-res ok, too. But fail to change packageinstaller - get a system error on my android device no matter what I change in xml file. Either the decompilation goes wrong or the apk installation on the device goes wrong.

Anyone has a hint on how to make packageinstaller work as advertised?
[Android Software Development] proxuser:
How to port any ICS AOSP based roms to your Device (AOKP, CM9 & many other)

- for best compatibilty

--> use same android versions. (4.0.4 -> 4.0.4 example)

--> use latest base from CM9 (is best choose for port) or any AOSPbased ICS ROM

--> use each brand for port (mean Desire HD -> Desire S or other HTC devices). you also can port other roms, but you will have issues.

PORT:

-> download latest cm9 base and extract it

-> download target rom and extract it

copy

/app

/framework

/media

/fonts folders and replace in cm9 folder.

repack your zip and let it boot.

if it doesn't boot then copy /system/lib/libandroid_runtime.so from target rom and repack your rom.zip and install again.. if you get bootloop anyway, then just type in adb "adb logcat" and share it with us in this thread..

if you dont get success dont cry, just try to port another rom :D you can not port all roms

enjoy!

if you like this guide, just give 5 stars to thread and click thanks button ;)
[Android Software Development] r1c4rd0:
hi, there, and i own a huawei u8800, we allready have a aosp ics 4.0.4 aurora room but i would like to have cm9 or aokp into our phone. in this case based is aosp ics aurora and ported will be cm9 or aokp for example? i´m right?

maybe is better port cm9 from desire z to my huawei u8800, since they have the same cpu and gpu.

dont want tou build a rom, just port.

please i need help. thanks anyway.
[Android Software Development] cheezzzz:
lol be thankful you have an ICS rom.. Huawei X6 users like me are trying our best to port from u8860's ICS.

I'd like to ask if the method works for a device that does not have official ICS? i.e. porting an ICS rom to official GB?

Kindly advise sir, and thanks again!
[Android Software Development] dhk.-:
I get the same that in miui v4... boot loop and adb says no device
[Android Software Development] alphadog32:
I get AtCmdFwd error.
[Android Software Development] verynuclear:
Could you post the link of latest cm9 base?
[Android Software Development] mg2195:
im getting stuck in a bootloop...

INFO:

Device-Samsung Infuse

CM9 Base being used to port- http://xdaforums.com/showthread.php?t=1601844

Rom trying to port- http://www.slimroms.com/ (the i9000 version aka galaxy s)

What i did:

1) opened cm9 base with 7zip, deleted app, framework, fonts, media folders

2) replaced deleted folders with app, framework, fonts and media folders from slim ics base 3.6

3) opened up slim ics 3.6 i9000 essentials with 7zip

4)navigated to app folder and moved apks files from ther to the cm9 base - did the same with framework, fonts, and media folders (I did not just copy the folders this time! i only copied the files inside the folders)

5) put zip on sdcard

6) rebooted and started log cat

any help would be apreciated :) if i dont answer back right away its because i have to pick my sister up from school

Here are the logcats: (All are the same logcat...but two of them are filtered)
[Android Software Development] mg2195:
I think I kniw what the problem is...gonna attemot a fix after dinner

EDIT i got out of the boot loops and booted into my portes slimics...now to fix the bugs...there is ALOT

thanks for the guide will def give you some credit once i get this stable...may be getting some help from another dev
[Android Software Development] medicjunKie:
So as long as the base and ported roms are from the same manufacturer, this will work?
[Android Software Development] oguzhan mobile:
how to port aosp ics to cm9?
[Android Software Development] Sesme:
good guide

You can add

Copy etc\cron

And etc\init.d files to run RomControl fix

;)
[Android Software Development] medicjunKie:
Am stuck at logo screen.

Can't get logcat because ADB can't find my device.

What to do?
[Android Software Development] rockyseenu:
Can you please tell what was the problem and how did you fixed? Thanks.
[Android Software Development] waynekirby:
It would be sane screen res e.g HDPI to HDPI

And also the same processor type too helps
[Android Software Development] aarrun:
see i hve a question...., what does base mean? does it mean the ics rom which i hve for my device already ported or any ics rom available for my device's manufacturer?

like my phone is samsung galaxy 3....so shud the base be the rom which is available for my g3 or it can be any ics rom like say ics rom for samsung galax s?

---------- Post added at 09:37 AM ---------- Previous post was at 09:36 AM ----------

i m seriously cponfused with that part..... m not gettin g what the base and the rom to be ported shud be?
[Android Software Development] Frankin96:
My logcat ...?? what can i do? http://www.embedupload.com/?d=4HKCKXGIK2
[Android Software Development] Zorua:
I'm trying to port slimICS and it gets stuck at boot. Here's my logcat if it helps.

http://logcat.miui.us/893012
[Android Software Development] tathanhlam66:
see here

169:	E/dalvikvm( 1190): ERROR: couldn't find native method
170:
171:	E/dalvikvm( 1190): Requested: Lcom/android/server/PowerManagerService;.nativeStartSurfaceFlingerOffAnimation:(I)V
172:
173:	E/JNIHelp ( 1190): RegisterNatives failed for 'com/android/server/PowerManagerService', aborting

baksmali classes.dex of services.jar

find PowerManagerService.smali file in the path com/android/server

add line

.method private native nativeStartSurfaceFlingerOffAnimation(I)V
.end method
[Android Software Development] Zorua:
I don't have the folder com/android/server/. What am I doing wrong?

EDIT: Wow, I sound so stupid. Nvm, I did that edit. I had to look up smali and baksmali guides. I'll flash it and see if it boots.

Okay, still refusing to boot.

New logcat: http://logcat.miui.us/894002

EDIT 2: Booted but storage isn't working.

Logcat: http://logcat.miui.us/889025
[Android Software Development] swapnilraj:
Try decompiling the framework-res.apk and change the storage-list.xml in the xml folder.
[AT&T Samsung Galaxy Note I717] linnil:
I'm using Seraphim and I'm happy with the battery life. It seems to be worse than the GB ROM but I can get about 2% down every hour when the phone is idle.

I am thinking of trying different ROMs and battery life is very important to me. Which ROM will give the phone a better battery life based on your experience?

Thanks.
[AT&T Samsung Galaxy Note I717] eqthinklab:
http://xdaforums.com/showpost.php?p=25550982&postcount=5
[AT&T Samsung Galaxy Note I717] linnil:
i should include ICS in the title. I am looking for ICS ROMs.
[AT&T Samsung Galaxy Note I717] eqthinklab:
ah ok, im in search of a good ics battery friendly rom as well, actually downloading dag's ics "hybrid" rt now. i'll give it a go for the next couple days and post back. i was seeing about the same as you for seraphim.
[AT&T Samsung Galaxy Note I717] tenderchkn:
In my experience, unless there's a bug, a ROM has little effect on battery life. Android is going to use a certain amount of power to run itself, and there is little that a dev can cook into a ROM to change this. Beyond the system, battery usage is from the screen, apps, and radios. If you are in an area with poor reception, and have lots of apps and widgets that frequently update in the background, this will decrease battery life.

I've used both DaGr8's Alpha II and Seraphim, and my battery drains less than 1% per hour when idling.
[HD7 Q&A, Help & Troubleshooting] ANix02:
Is it possible to add the Option to install xap with IE later after flashing a rom?

ANix02
[HD7 Q&A, Help & Troubleshooting] sirajgoku:
no...i don't think it is possible....no one posted about the registry hack that could be made post flashing....almost every custom ROM has IE xap install cooked into it.....just flash a ROM with the feature cooked in :D
[HD7 Q&A, Help & Troubleshooting] sh4d0w86:
sorry, but your assumption is incorrect.

you can use GoodDayToDie's XapHandler, but it does require Introp-Unlock with Root Tools or Full Unlock.
[Optimus One, P500, V General] rege420:
I have an optimus v my girlfreind has the same phone I can send and receive mms just fine. But she can only send mms she doesent get pics or ringtones that I send her. she has data enabled I called virgin they had me reactivate the phone but it still wont work.she gets regular texts just fine its only mms that wont work. Any help would be appreciated. Thanks
[Optimus One, P500, V General] storm11:
Try resetting the phone
[Optimus One, P500, V General] rege420:
Tried that no luck
[Optimus One, P500, V General] cammykool:
Rooted? Contact vm
[Optimus One, P500, V General] Private.Indo:
never use mms, since whatsapp or other massenger can do what mms can do without charges :D
[Optimus One, P500, V General] rege420:
Not rooted brand new phone already contacted vm they were no help
[Optimus One, P500, V General] rege420:
Have unlimited data so don't care I use gosms.
[Optimus One, P500, V General] rege420:
So am I the only one to have this problem? If anyone has any sugestions

Still nothing huh?
[HTC Rezound] brando56894:
I've noticed multiple times that some contacts that I've recently added after flashing a ROM never seem to get stored on Google's servers and I lose them after flashing to a new ROM. About 95% of my contacts are usually there but there's always a few that I lose in the process. I've taken to writing these numbers down because I continually lose them. I've never actually tried a manual sync before flashing a ROM, mostly because I never think of it. Even ROMs that I have have running for a week or two will still lose these numbers and it's very annoying. :mad:

Does anyone know how to fix this?
[HTC Rezound] Kane5581:
Do a manual sync before flashing a rom.
[HTC Rezound] brando56894:
I figured that may be it, but should it auto-sync after a certain period of time?
[HTC Rezound] werdna87:
Make sure you are saving them to your Gmail and not phone
[HTC Rezound] brando56894:
Ladies and Gentlemen, We have a winner! I never realized that it primarily saves it to your phone and not to Google. I'm assuming that this is a Sense option and not something that exists in AOSP since I never remember having this problem with my OG Droid or my Inc that I always ran AOSP on. After I saw this I saved a new number and there it was right in front of my eyes. If it had teeth it would have bitten me in the ass! :D
[HTC Rezound] werdna87:
Glad I could help. I noticed the option recently when creating a new contact and after some were erased :/
[HTC Rezound] thatsricci:
so in my people app i have unchecked the dropdown to show "phone" contacts, and I have it set to only show my google contacts.... when I "add" a person, the "phone" contact is no longer an option and the default is "google"

that should keep you on the right path!
[HTC Amaze 4G] NeoAndroid:
I have the new radio because I flashed the Tmo Stock ICS leak. I am still S-On and using 4eXt Recovery and rooted. Everything was working great so I made a backup. I then flashed Revolutionized-Senseless ICS Rom and that also worked great so I also made a backup.

I've decided i prefer Sense UI 3.6 so I tried restoring my Stock backup nut somehow cannot. My question is...is there a zip file I can flash through recovery that would give me back Stock Tmo ICS without having to go through flashing the leaked ph85img.zip, then flashing a recovery, then rooting it and then setup.

MD5 checked on the Stock backup but would still not flash. Any help would be appreciated.
[HTC Amaze 4G] usafmaverick:
My guess is, and I havent dug into this, that Revolutionized changed the radio or some other basic architecture that the stock ics needs. Im guessing youre going to have to flash PH85IMG.zip. Once you have that flashed and rooted, you should be able to flash back to your other stock backup so you have all your apps and stuff installed again.

Perhaps if you could offer more specifics on why you cant flash back to your stock backup such as error messages or what happens when you try to flash it?
[Galaxy S II Q&A, Help & Troubleshooting] Reno_kun:
Hi, I need help,

For some time, the charge of my Galaxy s2 is very slow (nearly 5 hours to charge from 4% to 100% without using the phone).

I use Siyah kernel on WanamLite ROM and Current widget in order to know how much current the device is receiving from the charger. In Extweaks I use 650mA for AC and misc and 450mA for USB.

With two different 0,7A charger and my car adaptator (1A), it shows that the current is around 450mA whereas I should have 650mA (few month ago I had 650mA). I tried Battery Monitor, it shows the same results and it says that the battery is good.

Is there someone who’s got an idea ? Is it the battery ? Do I need to change the flex cable with charge port ?

Edit : No battery problem or charge port :(
[HTC One X] KrisPerry:
What is the disadvantage having s-on. If we can still root what is the problem. Why exactly do we need s-off
[HTC One X] ShyamSasi:
It give us unlimited permission to modify the system partition etc. changing Boot screen etc.
[HTC One X] mickfitz:
There is a detailed thread that's right at top of the general forum that covers this in depth.
[HTC One X] mattman83:
It also allows direct access to all partitions on the phone so we can learn a lot more about it. Will be able to flash boot.img via recovery with the rom (no need for fastboot flash), we can flash modified hboot/bootloader if we wish to as well. Plenty of possibilities.

None of this is possible with s-on, even if you are htcdev unlocked.

M.
[XPERIA X8 General] enemyneno:
Mistake ..
[XPERIA X8 General] pipi14:
Bit pointless thread, don't u think?
[XPERIA X8 General] deedii:
Reported. Soon to closed :)
[XPERIA X8 General] Mayank77:
I have no idea why people love making useless and pointless threads ?

I hate trolls :mad:
[XPERIA X8 General] deedii:
Calm down. The person did state "mistake". Maybe he wants to post a question and suddenly answered or maybe he mistakenly press the Submit button because of his/her quick hands or excitement. But this is no way we can blame them for certain mistake not repeated of course. So please CALM DOWN :) hugs.
[Samsung Epic 4G Touch] steven1pc:
I saw a few threads showing that repair of the eMMC chip for the desire is possible. I would like to know if it would be possible to do the same with the epic touch. The replacement eMMC chip's for the desire are usually regular brand name chips that have been pre-programmed. Would it also be possible to copy the information from another working chip onto a brand new one and install that onto the epic touch? Thank you
[Samsung Epic 4G Touch] sfhub:
Usually the issue with replacing the chips is getting them removed and put back on. The mounting processes they use today and component size/packaging don't tend to lead to easy replacement w/o specialized equipment.
[Samsung Epic 4G Touch] steven1pc:
Thanks for the reply. I guess I could sell it for parts then. I have a hard bricked e4gt that I used as a wifi device, but to even pay for a repair, I need to have sprint service, so I just have paperweight.
[Samsung Epic 4G Touch] oscarthegrouch:
Possible yes. Probable no. I don't know for a fact but I'm guessing this phone was assembled by a robot that was programmed to work with and solder component level surface mount technology. If you did it by hand, you would need specialized tools that would cost MANY times more than the cost of three phone, just to replace a chip. Many electronic devices these days are disposable. That meaning to repair the hardware would cost more money than to just buy a new one or for a few dollars more.
[Samsung Epic 4G Touch] RainMotorsports:
I would assume they actually used a reflow oven and bga chips with the balls of solder already on them. Yeah a robot likely placed the chip.
[Samsung Epic 4G Touch] steven1pc:
Now I just need to find someone selling a motherboard. I can just use any motherboard as long as it's clean esn right? Finding one is gonna be really tough.
[Samsung Epic 4G Touch] Nuenjin:
http://news.cnet.com/8301-1035_3-57424335-94/androids-new-ally-against-the-iphone-ubuntu/

"When Ubuntu is loaded on an Android phone, the two platforms share the same Linux kernel, so it's not like running two operating systems. The two pieces act like complementary partners. The Android phone functions normally when used as a smartphone or when making calls, but when it docks then the Ubuntu desktop pops up and acts like a standard computer. You can open a desktop Web browser, but you can also install and run standard Ubuntu desktop software for photo editing, word processing, etc."
[Samsung Epic 4G Touch] _dan:
This is pretty old news.. I have been waiting for Ubuntu to make more progress.

Maybe Samsung has been putting so much effort into advertising the gs3 because it will have this feature. ;)

They say... "a whole new world will soon be unpacked". I'm sure as hell that will give some Apple fanatics incentive to jump ship!
[Samsung Epic 4G Touch] Nuenjin:
This is the first I've heard of an official move on the part of manufacturers.

Nevermind I guess.
[Samsung Epic 4G Touch] _dan:
>.> Sorry to burst your bubble.

This topic has drifted off and it's probably best that people are reminded about it.

They said by the end of this year we will see this on the market. I just hope Samsung/Google go with it. :)
[Samsung Epic 4G Touch] locoboi187:
Didn't the photon do this? I long wished our phone would do the same
[Samsung Epic 4G Touch] BetatesterFaze:
I have been running Ubuntu on my phone with debdroid and I love the idea but something like this becoming reality would great.
[Samsung Epic 4G Touch] Wizard Knight:
I remember reading about this on engadget a while back. From what I understand, there's some pretty strict hardware restrictions. Only certain chips and things like that. Can't remember exactly
[HTC One X] tarmacsurfer:
Evening all, a random question that I haven't been able to find an answer to with a spot of googling and forum searching.

Got my One X this morning, impressed so far. In the course of playing around with it I started wondering about the three finger swipe used to "throw" playback to an HTC dongle. Like many people these days I run an HTPC in the lounge, currently on XBMC and showing on the local network as a media renderer. I'm presuming that a standard and unrooted ROM won't allow you to fling media to a non HTC renderer but would it be possible to hijack this "button press" on a custom ROM and send the playback to an HTPC or net tv?

It's an idle thought at the moment. Whilst I am comfortable modding, tweaking and flashing (as most people who've owned a first gen AMOLED Desire would be :p) I'm not a dev and currently don't have the knowledge to state that it would be possible - hence asking wiser heads.

TL;DR - Could we use a three finger swipe to fling playback to any media renderer on a local network?