yashsingh1/xdaforums huggingface dataset:
[Android] tommytomatoe:
I considered doing that...but I am not 100% how the process works for sammy devices. I know Sense has com.htc.resources, but I want to make sure the "twframework.apk" works similar (ie. apktool if ...)

Ask your buddies and report back! Thank you :-)
[Android] tommytomatoe:
Update FAQ.
[Android] fowenati:
Glad I could help! :)
[Android] marriedman624:
Tommy, I'm having trouble with decompiling ninepatch images. I decompiled framework-res.apk just fine, copied over two ninepatch images to the appropriate folder, but when I run decompile on them I get this:

Exception in thread "main" brut.androlib.err.CantFind9PatchChunk: Cant find nine patch chunk
at brut.androlib.res.decoder.Res9patchStreamDecoder.find9patchChunk(Res9patchStreamDecoder.java:82)
at brut.androlib.res.decoder.Res9patchStreamDecoder.getNinePatch(Res9patchStreamDecoder.java:70)
at brut.androlib.res.decoder.Res9patchStreamDecoder.decode(Res9patchStreamDecoder.java:47)
at brut.apktool.Main.main(Main.java:30)
Caused by: java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:375)
at brut.util.DataInputDelegate.readInt(DataInputDelegate.java:61)
at brut.androlib.res.decoder.Res9patchStreamDecoder.find9patchChunk(Res9patchStreamDecoder.java:80)
... 3 more
Images Decompiled to:
......
/home/marriedman624/android-utility/working-folder/ninepatch/decompiled

The files that are in the decompiled folder, won't open.

Any ideas?
[Android] CleveRuse:
Ok, well please forgive me if this turns out to be gibberish ....I'm still trying to figure this stuff out but..... I think the xml errors may be drop-in bad patches cuz it happens after editing files in 'drawable-hdpi' not 'drawable'. It has happened with SystemUI, but after fixing the only bad patch, it recompiled without errors.

I'm **GUESSING that the bad patches are not recognized as .9s, which causes various info in some xmls to not sync up correctly, and its not able to complie? Ii f that's the case, I wish the error log would list the apks and not the xmls (of coarse I have no idea why I'd get errors on so many different xmls --in the hundreds!-- for just one bad patch like happened with SystemUI.apk)

...n Yes, I'm installing both frameworks

Also get the same error with another apktool version. I've got one more to go tho....
[Android] tommytomatoe:
So you decompiles framework res the using the 9.png from that right?

If so...don't decompile the 9.png again.

Apktool automatically decodes the 9.png when you decode an apk.

So decompile framework res and edit away. No need to decode the 9.png individually if you decompile an entire apk. Also you won't need to compile individually either. Apktool also compiles 9.png automatically when you build, but your patches must be good or else you will get errors.

The draw9patch utility is for when you only want to edit a few images and would rather not decompile apk. Like when you take out 9.png from a regular apk using 7zip.

You are absolutely correct. If you have bad patches it can throw the decode process out.

Here is why you get such a large error log. As soon as apktool gets one error on the process it will report all the rest as errors because the original error threw the entire process out.

So I would decode a stock framework res. See if it will decode.

9.png can be a pain.
[Android] marriedman624:
I thought that might be the issue, but wanted to verify before doing all this work and then having to redo it all.

and the 9.png are a huge pain sometimes.
[Android] tommytomatoe:
Always smart to ask first!

Btw. This is to you and Cleve. What are you guys editing the 9.png to do? I'm curious. I rarely have to edit 9.png so I want to know. Thanks.
[Android] tommytomatoe:
Another Update.
[Android] marriedman624:
I'm just editing to change the colors for my theme. Not actually editing the expandable/content areas (the 1 px border).
[Android] tommytomatoe:
Gotcha. Anytime I edit the 9.png I have to redraw the border using the draw9patch found in the android-sdk or android-utility. Changing the ccolor/shape of image can knock off your patches.
[Android] marriedman624:
Great!!! More work to do!!! :d
[Android] fowenati:
Ah this explains my problem just now. Was editing some 9.pngs and noticed when i flashed the edits that a couple things were being stretched out wayyy too far.
[Android] tommytomatoe:
Yeppers. Love those 9.png :-)
[Android] fowenati:
Yep, btw have any Idea which XML decides the color of the text of the menu items (i.e. when you press the menu button the icons have text and their color), I changed the background of the menu to black and the text is black too, I'm pretty sure its in framework or systemUI, but I can't find it.
[Android] CleveRuse:
I usually don't have a problem with patches while changing hues as long as I decompile first, obviously. If I'm also changing brightness, or just to be safe, I'll select the image with select tool, so that the patches (border) is excluded. Also, grabbing specific colors works ....but takes long to open option in GIMP.

I'm editing all highlights and buttons to be smoother (removing creases) by selecting inner area, blurring, then applying a gradient effect so it appears rounded slightly (I especially hate when the highlight is creased and button is not) .....I need the shading to expand smoothly, so I need to use continuous lines for atleast the right side.

Note: I have found that some .9s w/ double dotted or lined sides do recompile correctly and have also found that for some .9s w/ images inside them, one dot on each side of 3 corners is the only thing that works so that the area expands but not the image inside (especially small perfectly round buttons) I'd love to know why HTC can do this and we can't
[Android] tommytomatoe:
I don't remember who I was helping but this mod is intensive. It involves framework.jar and a lot of other smali. To be honest I havent ddone it for sense 2.1++ so I don't know. The smalis are much more intricate in the later sense roms. Damn htc. Lol. It is a hard mod to do. But if you know how to do it then I wish you the best!
[Android] tommytomatoe:
Interesting find man! Well here is the skinny (I think). As far as we know HTC has their own compilers for their sense apps. They have written proprietary methods to make apps that are slightly different than the basic AOSP methods. I think I read that somewhere (posted on the apktool thread). That's why certain apps (HTC_ime) are a super pain.

This isn't an official statement, just something I read a long time ago.
[Android] fowenati:
Agh I've been trying to do this for the past 3 days straight, so tiring. I was hoping it would be as easy as changing a single XML value
[Android] CleveRuse:
Well that's cool .....for them! LOL, Thnx man!
[Android] tommytomatoe:
Announcement.

Coming soon to android-utility
[Android] fowenati:
That's AWESOME considering I'm helping dev/theme SupraROM for the E3D! Do you happen to have a 3VO tommy? *wishfull thinking*
[Android] tommytomatoe:
Unfortunately I am stuck on an unrooted evo og. Would be cool though.

Have fun with supra rom
[Android] fowenati:
why unrooted?
[Android] tommytomatoe:
I had to get it fixed so I unrooted and s on. And that latest ota has no root method and being s on I can't roll back with the newest hboot 2.16. Its okay. It have me time from mods to write android-utility. And plus I discovered new things like renaming packages and Modding the sense UI while unrooted. :-)
[Android] fowenati:
Ahah well one closed door opens another, does AU support decompiling of Jar files? I want to edit services.jar to remove USB debuging and Allow CRTanims but the dex file comes out to a bunch of gibberish, can AU decompile/recompile this?
[Android] tommytomatoe:
Au cannot do jars yet. V1.0.2 will.

But...by installing au you automatically get baksmali and smali :-)

Type this for options.

java -jar /usr/local/bin/baksmali.jar

And

java -Xmx512M -jar /usr/local/bin/smali.jar
[Android] fowenati:
so baksmali and smali can do jars? awesome! I just write this into terminal right?
[Android] tommytomatoe:
Yeah! But typing those will just give you the instructions, kind of like just typing "apktool".

Which rom are you Modding? Odex or deodex?
[Android] fowenati:
Odexed, Im simply trying to merge two mods I found(one for removing USB Debugging Icon) and the Other for CRT Animations.
[Android] tommytomatoe:
I see. With odex you need tto deodex the services.odex first before you can mod it.

java -jar /usr/local/bin/baksmali.jar -d framework-folder -x services.odex -o out-folder

In the above, the "framework-folder" refers to all framework files. Just make a copy of system/framework on your working folder (adb pull system/framework /PATH/TO/framework-folder)
[Android] fowenati:
Hmm, I'll try that in my next build, right now I'm just gonna choose one of them to use, since I already have a setup modded services for the CRT Anims.
[Android] fowenati:
For some reason I can't decompile Framework-Res.apk, I get a bunch of errors, although it decodes the XML i wanted to edit, then when I try to recompile it it doesnt work. Would sticking the XML in another decompiled APK, recompiling then extracting the compiled XML and saving it into framework-res (compiled) using better zip work?
[Android] tommytomatoe:
Please post the error log in pastebin.com.

And yes that method.generally works :-)
[Android] CleveRuse:
Alright tommy, I was trying to hold off on this .....u know wut, lemme read back some n make sure this post is necessary. Basically my unthemed (unthemed by me,anyway) SystemUI.apk won't recompile properly. I'm not getting any errors (not up or down) but my statusbar keeps disappearing... Hold on..........

Ok, so I need help, lol. I'm on SynergyROM for the bolt. Im trying to edit SystemUI.apk. I've successfully modded this thing a bunch of times already but am now having an impossible time. I'm simply pulling the apk from the ROM, decompiling, then recompiling. I've got both frameworks installed and I'm using the 'mod-here-multi' folder. (option 1, 3, n 5 ....well actually I don't choose 1 everytime cuz I don't see why I have to. It usually works w/out)

(Even if I install framework everytime, it doesn't matter, the stat bar still disappears)

I'm not getting any errors when I decompile cept for 'statusbar_close_on.9.png'. It gets renamed then I recompile without errors. (I've also tried fixing the patch for that .9 ....doesn't matter)

I've tried different apktool versions with no avail also. I just can't figure this thing out. I'm on Sense 3.0 (gb 2.3.4 ...I think)

Here is the SysUI.apk I'm using just invade anyone wants to try it out:

http://db.tt/brRVbLA
[HTC Sensation] henhoy:
Hi

I got a HTC Sensation and when it connect to my Trendnet TEW-633GR wireless router then after some time i lose my internet connection on the phone and on all wireless equipment in my house.

It look like all equipment have got wireless connection, but i cant even open the web configurationpage of the router.

I then get my internetconnection and access to the web configurationpage of the router when i disable the wireless connection on the phone, and restarts the wireless router.

Anybody got an idea about what is going on.

Kind regards

Henrik
[HTC Sensation] Utorrent76:
Ok,that is just ridiculous. Sounds made up. ;)
[HTC Sensation] 2Noob4U:
Yeah mine shoots lasers and turns into a light saber. Death Star beware.
[HTC Sensation] wideasleep1:
Get a real router?
[HTC Sensation] idavid_:
And I thought I was the only one!

Swyped from my HTC Sensation
[HTC Sensation] borodin1:
Now that I saw that thread.... I think I have the same problem. Keyword: think. My Sensation just don't want to work with my home network... I can connect but I can't keep signal for nothing and everything opens up so slow when it actually manages to hang on to connection. Furthermore, ever since I got the Sensation, my network has been going down at least once a day.... Coincidence?
[HTC Sensation] FuzeItUp:
I haven't accessed my network from my phone yet, but I have the same problem when I connect with my nookcolor flashed with CM7. Thought it was a fluke, but it happens every time I connect. All my devices lose connectivity and I have to unplug and re-plug in my router for Internet to come back up. I also have a trendnet and have never had problems until this.
[HTC Sensation] jrwingate6:
I have a reccomendation for anyone who has a ****ty WiFi signal on any of there devices. Go buy the new D-Link HD router. I buy a new router every 6 months for the past 6 years and this router has torched everything I've ever owned. I live in a 3 story house and get full bars on any device I'm connected with. It uses beams instead of antennas but the only downside is it can only connect to 6 devices at the same time. A beam locks on to the device and fallows it all through out the house. I walked down the block and across the street to a neighbors house and my Sensation still had 2 bars. My prior router (Linksys E3000) would crap out once I got to my driveway.
[HTC Sensation] henhoy:
Yesterday I bought a Linksys WAP610N Access Point and after replacing the trendnet with the AP, I got no more problems. :)

Henrik
[HTC Sensation] hyphydragon:
um maybe im not from the same country as the OP but does his/her post even make sense to any of you? cause i dont even understand it.
[HTC Sensation] henhoy:
a few minutes after phone connected to the wireless network, all traffic on the wireless network died, on all component connect to the wireless network, such as pc, notebook, tablet and printer.

removing phone from the wireless network, and rebooting the wireless router got the connection back on the pc, notebook, tablet and printer.

On a sidenote my wifes SE x10 mini did reboot after some when trying to connect to the same wireless router. But that problem disappead when after som time SE came with an update to the phone.

HEenrik
[Acer Iconia A500] Johnny0906:
Damn why do they do this! Makes me frustrated!!!

Link: http://www.acercomputer.se/ac/sv/SE/content/model/XE.H7JEN.002
[Acer Iconia A500] DutchFIX:
Does it hurt- YES

Do you need it - NO :)

I understand the pain but in this case a little less then normally... 32Gb (+ 32Gb mSD) is more then enough to feed your needs to the next release of tablets you wanna buy.

A bit wondering if the 64G version still allows a 32G microSD extention :S
[Acer Iconia A500] gammaRascal:
Awesome - it has !GB

Wish mine had !GB.

!GB.
[Acer Iconia A500] Johnny0906:
! What?
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] Just-in-time:
As the title says my GFs 10.1 will go full brightness at random times. Only way to change it back is to go into setting. The slider is all the way down but have to slide it to full then back down. Any ideas guys?

The fix is: Go TO SETTINGS, SCREEN, AUTO ADJUST SCREEN POWER, UNCHECK. Thanks bd85!
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] just4747:
Is it set to auto-brightness? Sounds like it.
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] Just-in-time:
No its not on auto that was the first thing I checked when she told me.
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] eugene22n:
stock room or something else? rooted?
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] Just-in-time:
Its full stock.
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] capufo:
mine too

it doesnt happen that often but it also happens to me i would be watching,a movie and out of nowhere its like if im facing the sun....
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] Just-in-time:
Yeah its weird how random it is.
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] eddieg1818:
I have had this issue as well when using auto brightness function. Only when viewing photo albums. Very annoying. I no longer use the auto brightness function now. Little issues like this drive me crazy. Add this to the keyboard lag and other small issues and i start to question the purchase.

Thankfully i found this site to help me realize its not just me...misery loves company. Lol.
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] bd85:
Have you guys tried to shut off the option in setting that's can analyze the screen color and more and the adjust the screen for power savings.

I have noticed what you are mention. And it only appears in movie's because the picture change often so the tab tried to compensate the colors often.

Go TO SETTINGS, SCREEN, AUTO ADJUST SCREEN POWER, UNCHECK.

And I am not talking about the auto brightness that you can access from clicking on the lower right part of your screen
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] Just-in-time:
That seemed to be it. Didn't think to check that since the Xoom doesn't have that setting. One thing i wish the xoom had was the whole different wallpaper for lock screen thing the 10.1 has.
[Focus Windows Phone 7 Development] Strap*D-LB-Style:
Hi everyone. i have read everything and having trouble.

after installing

WPSupportTool-x86.msi (32 bit) successfuly

trying to run update.bat either in adminstrator or via the command prompt in dos i still keep getting the URI error

Error: System.UriFormatException: INvalid URI: The format of the URI could not be determined.

at wm7update.Program.UpdateDevice(IDeviceInfo device infor, List '1 updates, update type )

at wm7update.program.main(string[] args>

The above error message is in red at the beginning. update. bat will let me back up to premango state but it has this error message at the top. when it runs zune i click phone update it says i have the current version 7.0 (7390)

Does anyone have any light to shed on this? if you know the answer please let me know. I am frustrated and new to wp7. I used to back in the day flash cabs all day long on HTC wizzard, 8525 exc... I am just stuck on this. I have tried to read and search forum but have not seen an answer to this specific question..

Thank you,

-Strap!
[Focus Windows Phone 7 Development] Strap*D-LB-Style:
okay nevermind I am a Moron..

I was running the Update.bat from win rar got error

I copied the file in a folder and opened it dragged update.bat on desktop ran it in administrator 2nd fail (aka moron)

I extracted everything (like i should have instead of being a moron) in its own folder ran update.bat as admin and I am now 22% complete backing up phone with no errors.. will see if i get Mango running soon..

Sorry for wasting anyones time

-Strap = Moron :)
[Focus Windows Phone 7 Development] Strap*D-LB-Style:
running Mango Baby!!!!

Syncing zune mango beta now :) thank you all!!!
[EVO 4G General] auau465121:
http://www.androidcentral.com/sprints-motorola-photon-4g-available-july-31-199-contract

I'm waiting on the SG2 but for all you Photon fans
[EVO 4G General] CDKJudoka:
Meh. I think it looks ugly and MOTOBLUR just makes it that much more undesirable.
[EVO 4G General] mattykinsx:
The locked bootloader makes it undesirable.

They unlock that and we could possibly talk.
[EVO 4G General] Genjinaro:
I'm not considering it but I do like it's angular design & the kickstand.
[EVO 4G General] CDKJudoka:
Yeah that was something I forgot to mention.
[EVO 4G General] abanh:
Motorola Android phones on Verizon test well in battery life on anandtech.com. Hopefully this will be the same for their Sprint phones.

I'm probably going to save my upgrade for the next Nexus phone.
[EVO 4G General] mikeyinid:
Im a former DroidX and Droid 2 owner and as far as hardware, Moto does it right. Best battery life and radios of any other phones ive had. I think Moto will follow through and unlock bootloaders later this year. So ill be getting a Photon on launch day.
[EVO 4G General] mquinn24:
Are you going to make a Rom for it once the bootloader is unlocked? Thinking about getting this phone.

I had the NS4G and really liked your rom, but had to return the phone because of the dropped calls.
[EVO 4G General] mmegalodon:
I heard they had no plans on opening / unlocking the Photon ... ?
[EVO 4G General] mikeyinid:
Motorola pretty much said the same thing as HTC. They will be unlocking bootloaders later this year. But, Moto also said it will be up to the carrier. Im almost certain Sprint will go with unlocked...Not to mention the Atrix has been hacked and they now have unlocked bootloaders.
[EVO 4G General] mmegalodon:
Yeah, I remember hearing Moto say as much but also remember seeing, 'somewhere', that the plans didn't include the Photon even though it was a 'future' device. If I remember where, I'd hunt it down. It might not have been official but I am certain it was a Moto statement. It was a while ago ... hope it isn't the case as I know some folks are pretty interested in the device.
[EVO 4G General] mikeyinid:
I had to return mine too :/ But I will get another soon. I will probably do something on the Photon, probably very basic though, i.e. debloat and maybe change a few of the awful blur/gb images lol.
[EVO 4G General] spaulding-grandmaster:
Sweet, that's all I ask for :)

Props to the SGII (if does make it stateside) but I think people are going to be pleasantly surprised with the Photon.

Immediate pro's I see are:

- better signal (not a given but Moto's track record suggests it might be)

- dedicated camera button like the the 3D (I know you can shortcut it from the

home screen but it's note the same as a hardware button)

- kickstand since I don't use a case and love to pop it out for the kids to watch

movies while we're out to eat

- accessories (like the car dock) and provided HDMI cable

- higher resolution screen means more screenspace

- world phone for the possible yearly trip abroad

Likely con's:

- motoblur although having given up HTC Sense I've found I like stock android

better with my aged hero

- non AMOLED screen (SGII evidently rocks)

- initial locked bootloader

- older Tegra 2 when Tegra 3 is evidently due out later this year and is 5x faster

Anxious to see how it stacks up head to head in testing with the 3D since spec wise that things a beast.
[EVO 4G General] jreuschl:
Also doesn't have the newer 800MHz band that Sprint is migrating to.. other FCC passed phones starting with the EVO 3D have this. They're supposed to start the migration at the end of the year. It'll be a long process, but it should help with coverage down the road.
[EVO 4G General] mikeyinid:
Stock, the Photon should beat the 3D in all benchmarks, the Atrix does. And the screen is actually very nice on these new dual core Motos. Granted, its not samoled, but still nice none the less.
[EVO 4G General] Android 17:
It's possible it won't, but this will likely have a Pentile display too, so it won't be quite as sharp as the EVO 3D's display.
[EVO 4G General] t600p36:
I'm excited for the phone, but i don't want to wait for and upgrade, i guess ill just have to pony up the dough (im guessing around $600?) haha
[EVO 4G General] CCallahan:
The more I see about this phone the more I like it. Looks a lot like the EVO to me. More than the 3D does. The dock option is just wicked with the tablet like interface and USB ability. My phone is mostly for business so it has some better features for me. Would be nice to have a phone with better battery life without having to rely on extended battery.

I was going to wait for the SGS2 also but by the time it hits Sprint other devices will beat the pants off it as far as speed goes. Hear quad core processors are in the works for maybe even Q4 of this year.

Still on the fence about burning my upgrade. :confused:
[EVO 4G General] reddragon72:
So what is the 800Mhz listed here?

Bands/Modes

WiMAX 2.5, WCDMA 850/1900/2100, CDMA 800/1900, GSM 850/900/1900, CDMA EV-DO Release A, EDGE Class 12, GPRS Class 12

taken from http://mediacenter.motorola.com/Fact-Sheets/Motorola-PHOTON-4G-Fact-Sheet-36f3.aspx
[EVO 4G General] spaulding-grandmaster:
I agree. With quad cores possibly coming out late this year and the rumors of the Nexus Prime, really hate to get a Tegra 2 based phone. Then again, any technology buy is going to be dated the moment it's in your hands and thus as long as it does what I want it for which for me appears the Photon just might, it's probably better to get a phone sooner rather than later so that the upgrade timer becomes eligible again sooner :)