yashsingh1/xdaforums huggingface dataset:
[Samsung Infuse 4G] horr1blek1tten:
i just got an infused and its doing this hheeelllpppp

i just got an infused off craigslist it was working fine until i turned it off to insert my sim and now its doing that any help???? i dont know how to get it into download mode or stock recovery any help???
[Samsung Infuse 4G] bmar577:
If I had the slightest idea how I would! Believe me haha
[Samsung Infuse 4G] bmar577:
Have you tried taking the sim out? The first time mine did this, I took out my sim and SD card and it worked fine until it randomly shut off in the night.
[Samsung Galaxy Nexus] patt2k:
Hey guys is there any fix for the sms app lag? when openin the thread it lags and when exiting.

Please note I have around 10 thousand sms but on my old Galaxy S2 I never had this problem so I am also running BAMF 4.0.4 and it was working super when I backed up my 7k texts and then it started to little slow which is kind of annoying now.

Any tips on how to make it the way it was? its only 3k difference and I bet this device can handle 100k or more with no issues
[Samsung Galaxy Nexus] Kalavere:
I'm going to throw this out there, I know this is a wildly crazy idea, but just delete a few?

Ten thousand SMS's? :eek: Do you seriously need ten thousand?
[Samsung Galaxy Nexus] king23adrianc:
i pretty much delete all messages every 2 months or so.. having too much does lag a bit time to time

cuz i text a lot.. every month i send at least 8000. so in total i will have 16k messages in the app each month (including receive).
[Samsung Galaxy Nexus] Kalavere:
Now my question to you is, does it lag like it does for patt2k?
[Samsung Galaxy Nexus] Nitemare3219:
There's no reason to have that many messages. Not to tell you how to live your life, but it sounds like you need to get one outside of texting. If you seriously can't deal with losing all the messages, use a program like SMS Backup+ (free program, backs it up to your gmail.) Otherwise, lock the ones you want to keep and let the app auto-delete like it should.
[Samsung Galaxy Nexus] king23adrianc:
not really. just slight lag when scrolling in a message thread
[Samsung Galaxy Nexus] martonikaj:
Delete some messages you hoarder.
[Samsung Galaxy Nexus] patt2k:
Oh I do call and text quite a lot just like the other guy said he texts around 16k sometimes I have the same amount. I see no reason to delete the messeges , but it seems to be little faster with GO SMS

now another thing could the large amount of texts cause the unlock screen lag? like when I unlock and you can see the circle you move to the unlock it like lags for 2-3 seconds. Thanks guys

EDIT: just set to delete each 500 texts and the sms app still lags... the STOCK one would backing up in recovery then wiping everything and restoring help? any ideas? thanks again
[Samsung Galaxy Nexus] king23adrianc:
lol no lags for me in anything... maybe just fast scrolling, then i might see a bit of lags... but in general nope..
[Samsung Galaxy Nexus] patt2k:
from what I am seeing you are in Canada and you have the GSM version maybe they differ somehow I don't know. I use go sms because the stock one still lags :( when I find more time I will make backup and do wipe and restore the rom.

Thanks at least I know I was not the only one with (SMS) issue =P
[Samsung Galaxy Nexus] king23adrianc:
i meant BIT not BIG LOL LOL!! typo.. my bad

and yeah i have gsm version
[Samsung Galaxy Nexus] RogerPodacter:
Yes the SMS threads lag a bit, more like choppy. Nothing we can do about it, maybe Google could tweak it with an update.

Even trying other apps like handcent, the lag is still there. Oh well.
[Samsung Galaxy Nexus] patt2k:
Good to know I am not the only one as the people in 1st page simply told me I text to much lol
[Samsung Galaxy Nexus] RogerPodacter:
I've always experienced this choppy scrolling with text threads with only 100 or so messages. Its not you, but you could try to delete some. I don't think that will change things though.
[G2 and Desire Z Android Development] ajhavery:
Sense 4.0 and 3.5 Porting Guide

Use this guide written by proxuser to Port Sense 4.0 roms :

http://xdaforums.com/showpost.php?p=24021776&postcount=3

and this guide for porting Sense 3.5 roms :

http://xdaforums.com/showpost.php?p=24021769&postcount=2

If you are porting a rom from Desire HD, all the files which need to be swapped can be found at:

http://elektro-instal.com/napior/3.5 port tools.zip

This will give you unity kernel.

Use IceZSense or IceSenseWich for device files.

The following device specific changes are needed:

Use android.policy.jar from IceZSense or IceSenseWich for now as a base for Sense 4.0. I'll add directions on how to mod it manually later.

Instead of choosing gps.saga.so use gps.vision.so

lights.saga.so --> lights.vision.so

sensors.saga.so ----> sensors.vision.so

Swap modules folder from IceZSense or IceSenseWich.

Follow the guide and instead of saga files, copy vision files from IceZSense or IceSenseWich.

I'll add any further device specific changes if needed later.

Till then If you get stuck, ask in the thread and I'll try to answer it.

Similar steps are needed for porting Sense 3.5 too.

I recommend following roms to port, since they look good to me but you are free to choose yours.

CoolDroid 3.0

Primo-S 3.4

Credits :

proxuser

cjward

blk_jack for keymap fix (Will soon add my own fix for sense roms as soon as my exams get over)
[G2 and Desire Z Android Development] ajhavery:
Icecoldsandwich port | LewaOS Port | AOKP Port

First of all use cyanogenmod 9 RC 0 as base because andromadus is cause bootloops.

IceColdSandwich Port:

Take CM9 as base..

Remove app , media and framework folder from base rom..

Copy above folders from IceColdSnadwich to base ROM

Now Tough Thing !!

Sit Patiently and see what lib modules(*****.so) files are missing from base rom..

Copy all missing libraries to base ROM from IceColdSnadwich.

You need to make similar changes to android.policy.jar as suggested above for MIUI rom to fix autorotation.

If you can't get it to work. Then first get the rom booting then post the android.policy.jar you are using in your port, I'll make the required changes for you.

Similar steps are needed for LewaOS and AOKP project.

You can use the following roms to port:

IceColdSandwich

BlindLewa

AOKP (BlindIce)

If the above process doesn't works for you, try the following :

extract icecold sandwich content with kitchen.

Now swap these files :

Overwrite /system/etc with that from cm9 one
now look for files which are not in cm9 and add them manually from Icecold sandwich.

Swap /system/bin from cm9 one

Swap /system/lib

swap boot.img

swap /system/usr

chnage the following lines in build.prop:

ro.product.model=
ro.product.brand=
ro.product.name=
ro.product.device=
ro.product.board=
ro.product.cpu.abi=
ro.product.cpu.abi2=
ro.product.manufacturer=
ro.product.locale.language=
wifi.interface=
debug.sf.hw=1 (ALWAYS =1)
windowsmgr.max_events_per_sec=

with vision one.

In init.d folder delete all files except sysctl and 00banner...

Credits :

Blindnumb for helping port BlindIce

vampire36 for helping port IcecoldSandwich
[G2 and Desire Z Android Development] jspina:
Is this to port audacity as well?
[G2 and Desire Z Android Development] ajhavery:
I've tested till audacity beta 1, don't know about beta 2. Test and see, if you get stuck in bootloop, try to get a logcat.
[G2 and Desire Z Android Development] jspina:
Ok. Thanks I tried it with proxusers guide which is basically this without getting into any jar files or anything like that. I will try tonight and let you know but I wouldn't post the Rom if it works because I think you are working on it. :D
[G2 and Desire Z Android Development] PJ.C:
studying ,thank you. ^_^
[G2 and Desire Z Android Development] nickeedoo:
YESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES!!

<3 ajhavery
[G2 and Desire Z Android Development] =JKT=:
Wow. Thank you for the guide! This is more what I imagine XDA being like: a public forum for sharing knowledge, not keeping arcane secrets. Not pointing any fingers, of course. Our device has always had great and helpful devs.

This will not only help many aspiring devs to learn much about porting, but it also gives the users great perspective on the work involved in getting stuff working.

Awesome.
[G2 and Desire Z Android Development] ajhavery:
I have written this guide to let someone take the development for the time being because I'm having my exams from monday till may 1st, after that I'm going on vacation for a week with my friends and after that I've to go for my summer internship. So, due to extremely busy schedule of mine, I would love to see any work from you.

I have got the rom booting with audacity beta 1, my last port is based on that, so I would recommend working on audacity beta 2 and If it is very hard then you can use files from my last release of MIUI-Au port, to get the rom booting.

It you get stuck, try to get a logcat so that I could help you.
[G2 and Desire Z Android Development] ajhavery:
Soon, when I find time, I'll try to add a sense rom porting guide for those who want to learn.

A suggestion : Look into development forums to learn more about porting.

Those who seriously want to learn should go through this link and read everything at least twice:

http://www.kandroid.org/online-pdk/guide/index.html
[G2 and Desire Z Android Development] jspina:
OK Thanks! I may look into it but I forgot I have to draw a card for my brothers 7th birthday tomorrow(It is a tradition in my family of 5 kids to draw birthday cards:mad:), so I wont be able to look into it until way late tonight or night time tomorrow.

I really appreciate that and would love any help as I am not that great with all of this. But I will try my best ;)
[G2 and Desire Z Android Development] Cid-Vox:
Thanks for the great guide. I already started porting MIUIv4 with proxusers guide and figured out that I need to modify the jars to get it to work. Now this will save me a lot of time to fix some bugs that I still had. This guide comes perfectly timed for the weekend. :-)

I would really appreciate a guide to port a sense rom as I'd like to learn more about this whole thing. Thanks again and good luck for your exam.

So long

Ciddy
[G2 and Desire Z Android Development] lowlife546:
i hope one of u guys gets a rom ported for us soon. i miss miui and my attempt at porting it failed
[G2 and Desire Z Android Development] magic_android:
Once we get a more stable ICS base, me and a friend of mine will try porting MIUI. I'm not sure which MIUI v4 port to choose from though.
[G2 and Desire Z Android Development] strawmetal:
I'm in for porting but i've exams too .... can't wait till my summer vactions start on may 15th
[G2 and Desire Z Android Development] magic_android:
Well, i'm going to have to try and make the port before my exams in june/july. It'll be my first port but i'm pretty interested in trying it out. If i think it's daily driver material and is worth releasing, i'm gonna go for it.

---------- Post added at 04:41 PM ---------- Previous post was at 03:45 PM ----------

Well, i realised i had some free time today, so i started trying to port thishttp://xdaforums.com/showthread.php?t=1512565 to our phones.

I got up to step 8 and then ended up with a whole bunch of values that i couldn't find or match in the way that the guide instructed. I have no prior experience in porting or developing, but i am willing to learn. So if anyone knows how to help me, feel free to PM me. Btw, i managed to decompile the android.policy.jar file but from that point, when i went to edit PhoneWindowManager.smali, i couldn't find any matching values between what was listed in the guide and what i was seeing on my screen in notepad++, so i didn't know what to change in there.
[G2 and Desire Z Android Development] jspina:
That is what I have been porting unsuccessfully. Did you get it booting?
[G2 and Desire Z Android Development] ajhavery:
Editing android.policy.jar is not responsible to get the rom booting though. In PhoneWindowManager.smali search for the term I've told you : const v.....

and look at the results you get.

The one you need has its counterpart after 2 line number what I mean is that, if you find const/4 v1, 0x1 at .line 1097, then you should look for its counterpart const/4 v1, 0x0 after two line numbers, i.e. at .line 1099.

If you have found it, the it is the value you need to change.

Also it should have a comment including work mLidOpen.

It's easy if you look thoroughly 2-3 line above and below it. It'll let you know if you are at correct position or not.

@jspina: Just a thought, try using the base framework.jar smali instead of MIUI one, I've never tried it but might be worth a try to get the rom booting. I mean first try using base framework.jar file in your port, if you don't find success, If you don't find success, use search in classout directory of MIUI and swap everything with media or power in its filename by their base rom framework.jar counterparts.

Post if you get stuck.
[G2 and Desire Z Android Development] jspina:
got stuck.

should I post a log? Although I think that it just wont work. I dont really know what they did or what I am doing wrong but I dont think audacity b2 will work as a base unless I were to actually update each file individually...
[G2 and Desire Z Android Development] NeverGone\RU:
Could anyone help me with ParanoidAndroid keyboard bug? (that one when software keyboard still appears when hardware keyboard is open)

I tried everything and yet can't fix it. The software keyboard is still there.

Decompiled android.policy.jar attached.

Any help would be appreciated.
[G2 and Desire Z Android Development] rirozizo:
ran into this issue while trying to decompile android.policy.jar:

D:\Riro\Cells\HTC desire z\1dev\smali>java -jar baksmali.jar -a 15 -x android.po
licy.jar -o classout

UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file android.policy.jar does no
t contain a classes.dex file
at org.jf.dexlib.DexFile.<init>(DexFile.java:298)
at org.jf.baksmali.main.main(main.java:269)

that's cuz the CM9 base ROM you recommended is odexed... any help with that?
[G2 and Desire Z Android Development] lms24:
Try de-odexing the base rom with dsixda's Android kitchen. Set the API level to 14 (that's the correct one for ICS - for JB it's 15).

--

I have a question, too.

I'm trying to port Sabsa Bliss from DHD to my DZ and everything works except HW keyboard backlight. Already tried editing framework-res.apk to set the correct values for autobrightness but it doesn't help - KB backlight is still not working... Any ideas?
[G2 and Desire Z Android Development] lms24:
I found out how to solve the keyboard backlight issue while I was porting Sabsa Bliss from DHD to the DZ. In the Guide from Ahjavery there is the section where you have to use baksmali to decompile android.policy.jar. I'll quote the part:

Those two values, you're changing change the orientation so that rotation works fine with our DZ. Now under those values, there's a third "const/4 v1, " but with a diffrent value: -0x1

So change

const/4 v1, -0x1

to

const/4 v1, 0x1

This will 1) lock the orientation into landscape when lid is open and 2) most probably give you HW Keyboard backlight. Maybe you have to change some values in framework-res.apk/values/arrays.xml.

--

Now I have another problem: The Softbutton backlight and HW KB lights only illuminate, if autobrightness is set on and it is really dark. I tried setting the values (in arrays.xml) for both lights higher and lower but it doesn't help anything. Maybe that's kernel related (Virtuous kernel 3)? - Any ideas?

EDIT: Fixed that issue, too: set all keyboard and button backlight values in values.xml to 255 (or lower for button light, if you prefer..)

btw: Does anyone know how to enable trackpad wake on Sense 3.6?
[G2 and Desire Z Android Development] The Android Manual:
Good Job :)
[G2 and Desire Z Android Development] dodgedroid:
hello

I have a problem, i get bootloop, and i don't know how to fix this i have atached an LogCat
[G2 and Desire Z Android Development] v1r0x:
Did you replace Paint.smali in framework.jar/android/graphics/?

E/JNIHelp ( 3322): RegisterNatives failed for 'android/graphics/Paint', aborting
[G2 and Desire Z Android Development] dodgedroid:
no, how can i do that?...with what tools?

EDIT: Done, I have replaced, now testing thnaks...
[G2 and Desire Z Android Development] v1r0x:
Have a look at step 8 of the guide and smali/baksmali
[G2 and Desire Z Android Development] v1r0x:
Please post a complete logcat
[G2 and Desire Z Android Development] dodgedroid:
here is it
[G2 and Desire Z Android Development] v1r0x:
E/dalvikvm( 2038): Requested: Lcom/android/server/PowerManagerService;.nativeStartSurfaceFlingerOffAnimation:(I)V

open the PowerManagerService.smali in services.jar/com/android/server and rename the nativeStartSurfaceFlingerAnimation to nativeStartSurfaceFlingerOffAnimation.

Also add the metod nativeStartSurfaceFlingerOnAnimation right after nativeStartSurfaceFlingerOffAnimation
[G2 and Desire Z Android Development] v1r0x:
I have no idea what lewa is and what to do with these errors

It looks like this is the error:

09-11 16:10:07.011: E/AndroidRuntime(2897): at android.os.ServiceManager.getService(ServiceManager.java:55)

try to replace the ServiceManager.smali (in services.jar or in framework.jar)

than the base libandroid is the good one.

To which OS you are porting? Sense, Miui, etc?

Hmm, don't know. Try to fix the other error first ;)
[G2 and Desire Z Android Development] rirozizo:
i have CM7.1 as base, because the lewa version i'm porting is android 2.3.7... i'll replace the ServiceManager.smali file... but i didn't understand what you saiid about libandroid... you mean use the working libandroid_runtime.so file?

EDIT: oh, and... any idea how to decrease the backlight button's brightness in CM7?

———————————————————

i didn't mean to mock you or to offend you in any kind of way
[G2 and Desire Z Android Development] v1r0x:
Ok, so you are using GB Roms...I've only ported miui v4, so maybe I don't know everything ;)

Yes, use the base libandroid_runtime.

You have to decompile the framework-res.apk using apktool and modify the values in arrays.xml
[G2 and Desire Z Android Development] dodgedroid:
Here is my latest LOGCAT.txt i have make all what you said, but how to add nativeStartSurfaceFlingerOnAnimation?...because right after him?...or what ...i don't understand..nativeStartSurfaceFlingerOffAnimation..has his own line....:|..
[G2 and Desire Z Android Development] v1r0x:
There should be the line

.method private native nativeStartSurfaceFlingerAnimation(I)V
.end method

change this to:

.method private native nativeStartSurfaceFlingerOffAnimation(I)V
.end method

.method private native nativeStartSurfaceFlingerOnAnimation(I)V
.end method

Also there is another line with nativeStartSurfaceFlingerAnimation. Change it to nativeStartSurfaceFlingerOffAnimation, too.
[G2 and Desire Z Android Development] dodgedroid:
thnaks man, you are awsome!...and with these line how should i do?

D/Zygote ( 1970): Process 1997 terminated by signal (11)
I/Zygote ( 1970): Exit zygote because system server (1997) has terminated
I/ServiceManager( 1694): service 'media.audio_flinger' died
I/ServiceManager( 1694): service 'media.player' died
I/ServiceManager( 1694): service 'media.camera' died
I/ServiceManager( 1694): service 'media.audio_policy' died

EDIT: I had done another test, here is the logcat...:|....i'm stock again, please if you can halp me anymore, thanks in advance.
[G2 and Desire Z Android Development] v1r0x:
E/dalvikvm( 2287): Requested: Lcom/android/server/wm/InputManager;.nativeSetKeyLayout:(Ljava/lang/String;Ljava/lang/String;)V

E/JNIHelp ( 2287): RegisterNatives failed for 'com/android/server/wm/InputManager', aborting

Try to replace all InputManager*.smali in services.jar/com/android/server/wm with the one from your base.

* means "everything that starts with InputManager"
[G2 and Desire Z Android Development] nom051205:
May someone can tell me, I always have wifi and bluetooth issue on my port rom ( driver failed loaded and bluetooth turn of cause of changes UUID). Simply replace libhardware_legacy.so make the phone won't boot. Have try to edit ramdisk and made patch still no go. Should I edit the libhardware_legacy? Can't found any tutorial for do that? Thanks in advance.
[G2 and Desire Z Android Development] lms24:
I'd also be interested if there's any way to edit *.so files...

I also had this problem a while ago with a Sense 4 Rom but I don't know how I fixed it, sorry. I jusst know that I made a new port (with the same roms) and it then worked...
[G2 and Desire Z Android Development] ajhavery:
It happened with me too with smartdroid reloaded port, wifi got broken and with a new port, it worked on its own...
[G2 and Desire Z Android Development] nom051205:
wifi not work with libandroid.runtime from target rom. If I used libandroid.runtime from my base rom (aosp ics) the wifi work, but theme managet not work.

I have blind edited the libhardware_legacy use flexhex and still no go. Or should I edit the framework.jar and service.jar too?

Thank you so much for your kind attention.
[G2 and Desire Z Android Development] leonhartxxx:
help !! does anyone know how downgrade to gingerbread official? i spent few days to try it but it can't.. i using AOKP, really difficult to downgrade..please guide me !:crying:
[G2 and Desire Z Android Development] ajhavery:
Download the latest shipped rom from here : http://www.filefactory.com/f/b8dc837b1ed80be8/

Rename it to PC10IMG.zip and place at the root of your sd card.

power off your phone.

remove the battery for 20 secs.

Reinsert the battery and boot your phone in bootloader by pressing power button and volume down button simultaneously.

Then it'll reboot into bootloader and will detect the PC10IMG.zip file placed on your sd card and will ask you to update.

Choose yes and when it'll complete you'll have the gingerbread shipped rom running on your phone.
[G2 and Desire Z Android Development] leonhartxxx:
ok i'll try it. nay thanks to you
[G2 and Desire Z Android Development] leonhartxxx:
@ajhavery : i already try but still can't, after reboot into bootloader, only checking the sd card and no asking to update..i ever try downgrade from cynagen to gingerbread, but after i try AOKP and want to downgrade to gingerbread again, it can't..any other way to downgrade? i also try from several forum in here..:rolleyes:
[G2 and Desire Z Android Development] ajhavery:
What error do you get??

If you'll explain everything then may be i would be able to help you.
[G2 and Desire Z Android Development] leonhartxxx:
actually there is no error but in bootloader my phone was checking the sd card after finish checking , there is no question to update from the zip file.. is there anything wrong with my phone? or maybe need some setup the device ?

i also already try following the instruction from here : http://xdaforums.com/showthread.php?t=905261

can u help me to help me step by step to downgrade it? or just send the link i'll try it again..

thanks
[G2 and Desire Z Android Development] demkantor:
Strange thread for help rooting...

Follow the xda wiki and setherios guide to downgrade

Its not finding the pc10img.zip on sd because its either not there, not on the root of sd, or not named properly
[G2 and Desire Z Android Development] leonhartxxx:
my htc desire z already get rooted S-OFF, but i would like downgrade to gnger bread official..before i using AOKP, i already used Cynagen9 and i can back to gingerbread, but now i use AOKP and can't back to ginger bread.. i also make a gold card on my sd, maybe i'l try to find another way to downgrade..
[G2 and Desire Z Android Development] demkantor:
again, a strange thread to be asking these questions and you'll probably receive more support in Q&A rather then a developers forum in a thread dedicated to porting roms