yashsingh1/xdaforums huggingface dataset:
[7" Kindle Fire HD Q&A, Help & Troubleshooting] alkemist80:
In other words, once you delete an apk from system/app, its gone for good.

The factory rest uses the files in system to restore itself. If it was a file you downloaded and placed there, then its not horrible. If its stock KFHD system file, then you will need to find another source to replace it..
[7" Kindle Fire HD Q&A, Help & Troubleshooting] jazzlim:
Oh no..... any source you can recommend? thks
[7" Kindle Fire HD Q&A, Help & Troubleshooting] alkemist80:
Probably someone with a KF2. I had the HD but I returned mine, I can't help you there.

For sync issues, you can read my notes here. This was done on a KFHD, this may help you, though I didn't test it with google calendar and no longer have the device, but it activated stock android sync (to google). You need to be rooted and at least have gmail installed.

http://xdaforums.com/showthread.php?t=1897380

You may want to read the sticky about backing up your device.

Edit: Thought you had the KFHD but re-read and noticed KF2 instead, but I edited my post to reflect.
[LG Optimus 3D] nagalman:
I have been running CyanogenMod 7.2 on my LG-p925 for almost a year now. I tried to update the ROM to the latest and the phone will not boot beyond the LG screen (just a blank screen). I am fairly certain the there was a problem/incomplete/corrupt .zip with the ROM I was trying to update to. In the past, I have not had any issues with updating ROMs.

What I need is to get in the recovery software so I can restore the most recent backup. I tried the LGMobile Support Tool on Windows (installed the driver) and it seems to connect to the phone but I can't apply any updates or do anything else with the phone What other tools are available to help me get to the recovery software in the phone? I have Linux and a Windows 8 environment to use.

Thank you in advance for any help.
[LG Optimus 3D] pandaball:
You can try to flash a kdz using the LG Support Tool, or you can flash a .bin using SmartFlash. Both guides are on the forum. Both should return you to stock, then you can re-root and flash CWM again, then flash CM. Next time, verify the md5 hash with your downloaded copy so you know that the zip file is complete, so that this doesn't happen again :)
[LG Optimus 3D] defcomg:
Blank screen = Bad Kernel or Missing /framework folder

If the phone boots itself up after removing battery do the remove battery Hold Volume down + 3D Key while holding the keys pop the battery back in it should boot into recovery
[Verizon Droid Incredible 2] andysom25:
If I already have root what is the best method to get s off
[Verizon Droid Incredible 2] prototype7:
More info needed. You HTCDev unlocked? How did you get root?
[Verizon Droid Incredible 2] andysom25:
I'm unlocked and rooted
[Verizon Droid Incredible 2] Addiso:
Follow this http://xdaforums.com/showthread.php?p=28290187
[Verizon Droid Incredible 2] andysom25:
I tried this and got stuck on sending zip should I try relocked ?
[Verizon Droid Incredible 2] Addiso:
Yes you gotta relock before you flash the zip
[Verizon Droid Incredible 2] andysom25:
Thought so, I will know better next time, thanks
[Android Software Development] AiphNday:
wow,i've been looking for this for longtime..

gonna try it now..

:D
[Android Software Development] Hikari:
Good Luck!
[Android Software Development] AiphNday:
thanks..

you dont mind if i send you a PM to ask for help dont you??

:D
[Android Software Development] Hikari:
Well, its better to ask here. Some other people having the same issue might benefit from your question and its answer...
[Android Software Development] AiphNday:
sure,i'll do that..

:D
[Android Software Development] Peteragent5:
Do not use dsixda's Kitchen to port. Use it for anything else except porting.

It's best to do your ports Manually, or make a tool yourself to do it automatically for you.

That way, you'll know what your doing and how to fix the upcoming errors.

Try not to use apktool to decompile JARs. Because inside JARs are classes.dex

You want to rename the classes.dex to anything you want, then decompile it using smali/baksmali:

java -jar baksmali-1.4.0.jar -a 10 classes.dex -o classes_output

The [highlight]-a[/highlight] switch determines the api level. See more here

Try not to refer the technique as "patching", instead, call it "diffing". It's just more common :p

P.S Nice job on the Guide. Could be a little more detailed.. :)
[Android Software Development] AiphNday:
wait,i dont get it..

classes.dex was inside the framework.jar right??

so i have to decompile the jar first to get the classes.dex,or just simply take the classes.dex inside the jar using 7zip then decompile the classes.dex with smali/baksmali??
[Android Software Development] Peteragent5:
classes.dex is what make the JAR file.

Do not decompile the JAR

Just simply extract the classes.dex inside the JAR with any Archiver, then decompile it using baksmali ;)

After recompiling, you should sign the JAR file.
[Android Software Development] Hikari:
Well, thanks! I don't have a huge experience at porting. but you know many people want to know how to port ARMv7 -> v6.. and there wasnt any tutorial for it.. I decided to write this as a beginning. Im open to any kind improvements.
[Android Software Development] Peteragent5:
BTW, has anyone found a file comparison tool to exclude specific values like: .line foo

Please let me know! It'll help a lot in my porting, as well as with everyone else's :D
[Android Software Development] AiphNday:
so after i finished,compile with smali and put the classes.dex back inside the jar again right??
[Android Software Development] Hikari:
did you try Araxis Merge its paid software, there is a 30 day trial version, and there are some alternative ways of getting the full version. You know... I used it for some time and it was great.. But Im not sure if it has that feature.. You can check if you want.
[Android Software Development] Hikari:
I don't really understand. I mean, the kitchen just does the extracting and rebuilding job. What could that cause?
[Android Software Development] Peteragent5:
Yes.

To compile:

java -jar smali-1.4.0.jar classes_output -o classes.dex

Then make a zip file, place classes.dex into it (the name has to be classes.dex for any JAR).

Rename the zip to a JAR. Then sign it.

I'll check it out.

The kitchen does everything automatically, even up to modifying the kernel. That's good and all, but we all have different devices, and the kitchen is too General & Broad when it comes to its porting features. It could brick your device.
[Android Software Development] Hikari:
Well, yes, but Im not telling that we should use its porting tools. I too know that it wouldnt do much of a work even if it worked properly for every device and that the manual way is the best.. Im just talking about 4/5 main functions which are creating WORKING_FOLDER from rom/zip, de-odexing, signing, zipaligning, and finally building(creating zip from WORKING_FOLDER)

How could these features affect the porting process? I dont really think they could. Again Im talking about only these above written features..
[Android Software Development] Peteragent5:
Some of the features you shouldn't use from the kitchen are these:

Making an updater-script/update-binary

Create a working Folder, you can just extract your rom and rename it to WORKING_[highlight]ROM[/highlight]

and it's porting tools

these result to an unsuccessful port.
[Android Software Development] Hikari:
"Making an updater-script/update-binary" I agree! I never was using it

"Create a working Folder" Weird. I ported MIUI ics and jellybean both by using this method and it all was fine. :confused: Anyways not so important. can live without it.
[Android Software Development] AiphNday:
can you help me with this?? http://pastebin.com/7uMdU3EX

i was runout of idea.. :silly:
[Android Software Development] Hikari:
there is a problem with pastebin at the moment(for me). you could try to post the log as an attachment text file?
[Android Software Development] AiphNday:
here it is..

hope that you can give me a hint..

:D
[Android Software Development] Hikari:
No implementation found for native Landroid/util/ExtendedProp
ertiesUtils;

did you check this smali?
[Android Software Development] AiphNday:
I did..

And that smali was only finded in the framework.jar from my port rom,i cant find it on my base rom..

So i got no idea what to do next..

:confused:
[Android Software Development] Hikari:
W/Zygote ( 979): Class not found for preloading: android.media.IRemoteControlC
lientDispatcher
W/Zygote ( 979): Class not found for preloading: android.media.IRemoteControlC
lientDispatcher$Stub

check if this smali exists in your port. and do the same check for other "Class not found for preloading: xxxxxxxxx.smali" files..
[Android Software Development] AiphNday:
I've been check that smali,and that one wasnt exists in both,port and base..

:confused:
[Android Software Development] Hikari:
And the next 2/3 ones? I see that you are porting PA, did you do the steps in PA porting guide? what port rom are you using?
[Android Software Development] AiphNday:
No,i try to figure out that 2 smali first,so i havent check the other..

I did. I was port PA rom from htc one x to galaxy gio,use cm9 as base..
[Android Software Development] Peteragent5:
Are you sure you did it right?

Did you "diff" it and add methods, or did you replace smalis?
[Android Software Development] AiphNday:
I dont know..

The logcat above is the first log that i got,so i was doing nothing since i dont know what smalis should i diff or replace..

:(
[Android Software Development] Peteragent5:
You should first logcat, then based on what logcat says, you diff the specific smali :)
[Android Software Development] AiphNday:
Okay..

I'll try it again when i got free times..

:D
[Android Software Development] Thatgrass:
Succes in porting:D thxxx
[Android Software Development] pongnamu:
From what device to what? Thx
[Android Software Development] :
This thread deserve more recognition.. One of the actually informative threads I have seen so far about porting (and not just about which files to replace and renaming build.prop)
[Android Software Development] Hikari:
Well, thanks! But 70% of the stuff here are like copy/paste. I actually wanted to put the methods under the title of ARMv7 -> ARMv6 so people could get started.. There is nothing different than porting any other ROM actually..
[Android Software Development] nag xperia:
i can decompile but i cant recompile in apktool:(
[Android Software Development] diegonnc:
How can i sign it ?
[Android Software Development] Ghostfreak NB:
A noob question :

Would it be possible to do the other way round??

Arm v6 - to arm v7?

Pls answer the question if you don't mind
[Android Software Development] pratikmore:
Can you help me to port stock based rom to cm7.I am using ace 2.3.6 s iii rom to galaxy 3 cm7.logcat :- http://db.tt/Qz6CPJvd

It shows no implementation,what to do now.

I have to keep init.d folder in ported rom or not?I want to port galaxy ace S III like rom based on 2.3.6 to my galaxy 3,but we have only cm7.can you help me?
[Android Software Development] Hikari:
yes, of course..

[/QUOTE]

either some part of BluetoothHIDService or the file itself or the whole broadcom directory is missing in either framework.jar or services.jar. Take a look
[Android Software Development] pratikmore:
I replced whole android folder in framework.jar because there are so many native errors.after placing that bluetooth hid files in modified android folder,it shows same error,no implementation for bluetooth hid.
[Android Software Development] Hikari:
aaaam, you shouldnt have done that. You should have patience and solve every issue one by one.. I suggest you restart porting from scratch.. I mean just the jars which you fully replaced..
[Android Software Development] pratikmore:
@up

I am facing same bluetooth hid no implementation bug when using original android folder in framework.jar,how to solve that implementation issue and big thanks for suggesting me right step.
[Android Software Development] hardspace:
Good Guide. Anybody do you know, how to remove items in settings menu? Any guide for this?
[Android Software Development] thehacka1:
Amazing guide. :D:beer:
[Android Software Development] A_U:
i just found out this helpful post..thanks to the author..

i am porting flyme os xperia arc ARMV7 to ARMV6 galaxy mini...i am getting what the OP is mentioning in errors

Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)

the bootanimation is appearing..but gets stuck in bootloop after dat

link for logcat

any help or suggestion to patch is appreciated
[Android Software Development] Hikari:
I see you're missing "preloaded-classes".. Find it in the very original framework.jar of the ROM you're porting and put them in the Ported ROM framework.jar. you can find them at the root of the jar. It has no extension. Then you should get some other errors.. Feel free to ask.. If you get it boot up right away I'd say that you are extremely lucky.

Anyways good luck!
[Android Software Development] xnan:
Error while trying to port

I get this error while porting.... I tried a many times but I couldn't fix it please help me

E/AndroidRuntime(1462): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread

E/AndroidRuntime(1462): java.lang.NoClassDefFoundError: android.server.BluetoothNetworkService

E/AndroidRuntime(1462): at com.android.server.ServerThread.run(SystemServer.j ava:251)

E/AndroidRuntime(1462): Error reporting crash

E/AndroidRuntime(1462): java.lang.NullPointerException

E/AndroidRuntime(1462): at android.os.DropBoxManager.isTagEnabled(DropBoxMana ger.java:288)

E/AndroidRuntime(1462): at com.android.server.am.ActivityManagerService.addEr rorToDropBox(ActivityManagerService.java:6863)

E/AndroidRuntime(1462): at com.android.server.am.ActivityManagerService.handl eApplicationCrash(ActivityManagerService.java:6572 )

E/AndroidRuntime(1462): at com.android.internal.os.RuntimeInit$UncaughtHandle r.uncaughtException(RuntimeInit.java:76)

E/AndroidRuntime(1462): at java.lang.ThreadGroup.uncaughtException(ThreadGrou p.java:854)

E/AndroidRuntime(1462): at java.lang.ThreadGroup.uncaughtException(ThreadGrou p.java:851)

I/ServiceManager(1322): service 'SurfaceFlinger' died

I/ServiceManager(1322): service 'sensorservice' died

I/ServiceManager(1322): service 'power' died

I/ServiceManager(1322): service 'entropy' died

I/ServiceManager(1322): service 'batteryinfo' died

I/ServiceManager(1322): service 'usagestats' died

I/ServiceManager(1322): service 'telephony.registry' died

I/ServiceManager(1322): service 'package' died

I/ServiceManager(1322): service 'activity' died

I/ServiceManager(1322): service 'meminfo' died

I/ServiceManager(1322): service 'cpuinfo' died

I/ServiceManager(1322): service 'permission' died

I/ServiceManager(1322): service 'alarm' died

I/ServiceManager(1322): service 'window' died

I/ServiceManager(1322): service 'account' died

I/ServiceManager(1322): service 'content' died

I/ServiceManager(1322): service 'vibrator' died

I/ServiceManager(1322): service 'battery' died

I/ServiceManager(1322): service 'hardware' died

I/ServiceManager(1322): service 'bluetooth_a2dp' died

I/ServiceManager(1322): service 'bluetooth' died

I/ServiceManager(1322): service 'bluetooth_hid' died

D/BootAnimation(1743): SurfaceFlinger died, exiting...

E/installd(1331): eof

E/installd(1331): failed to read size

I/installd(1331): closing connection[/CODE]

Please help me
[Android Software Development] dejanxxxx:
I did porting, AOKP for Alcatel OT990 and that's good for everything but the camera. Now I'm done porting AOKP-S3 on AOKP Milestone Alcatel OT990, and do not understand that I that now I need to flash ROM? or not? I'm a flash update, and after rebooting brings me back to CWM. Confuse me this for adb logcat> log.txt, I entered the command in ADB after flashing, but nothing happens. Really bothers me in this, how do I get log.text, and whether to to flash rom, can not figure out. Or should I give up rom from adb, and enter the command - adb logcat> log.txt Please objašnejnje, 3hours read and understand.
[Android Software Development] Hikari:
pm
[Android Software Development] dejanxxxx:
Ok, thanks.
[Android Software Development] dejanxxxx:
Dont can decompile framework_base.jar- cant access jarfile.

What do now?
[Android Software Development] dejanxxxx:
Did must for every smali.files put this in a small flashable.zip ? from content/res/

How in WinMerge do this? , and must add from PORT to BASE missing lines?

Me in content/res/smali files is identicall whole, dont have different smali. but have bootlop.

I porting from Samsung S3- AOKP 4.0.4 - to Alcatel ot990 AOKP 4.0.4, but bootlop have.

Can you help me?
[Android Software Development] ayazm.140895:
Help me with this logcat http://db.tt/UlIBIAct I'm porting miui ics

from armv7 to armv6
[Android Software Development] xnan:
Replace libandroid_runtime.so (/system/lib) with your base ROM's libandroid_runtime.so (/system/lib). If you're already having libandroid_runtime.so (/system/lib) of your base ROM and facing the same problem then replace libandroid_runtime.so (/system/lib) of your MIUI's ROM. Good Luck!
[Android Software Development] bladeuser7:
can anyone help me?look at this thread http://xdaforums.com/showthread.php?t=2525120

thanks in advance
[Android Software Development] :
Great guide friend, however, I have been reading some of the comments on here regarding having to 'sign the jar files'.... I have personally never heard of that (ever). In addition, DSIXDA Kitchen uses the proper java/backsmali/smaling commands when taking a .odex file and making it into a .dex file, then properly placing it in the .jar file, then deleting the original .odex file. The need for a signature afterwards is not necessary. The .jar and .odex aren't even signed to begin with based on my experience with porting. If someone can show me otherwise then I am open to correction... I currently have a deodexed rom running on my device with some mods done on my own behalf for my personal use - running with no problems. Only signature I made was directed towards the Rom.zip itself after completed and built.

lol, anyways, great guide as I said before. I have enjoyed reading your experience. :)
[Android Software Development] aniket.lamba:
Hellp! Tried porting from Xperia X8 to Galaxy Young GT-S5360 and got the bootloop! Logcat is given as the attachment.
[Galaxy S III Q&A, Help & Troubleshooting] OLYMPIAKOI:
:)

Sansumg CALENDAR.apk NOT the Google JB for ASOP is needed and the clasis sansumg SMS also ..:D
[Galaxy S III Q&A, Help & Troubleshooting] LenAsh:
No idea what you are on about.

Or, a not-funny way of increasing your post count

BTW, spelling Samsung only requires you to look at the front of the phone...
[Galaxy S III Q&A, Help & Troubleshooting] OLYMPIAKOI:
Sansum calendar apk

I need the CLASSIC SANSUMG CALENDAR apk NOT the GOOGLE one.

The one that comes with STOCK ISC in the Galaxy S3 as well as the Stock SMS. with Pop ups...
[Galaxy S III Q&A, Help & Troubleshooting] JJEgan:
Themes section has some Sam apps.
[Galaxy S III Q&A, Help & Troubleshooting] zoot1:
Most of the samsung app require tw framework ..they will not run on aosp..you will have to port the app you want..

sent from here, there, somewhere!!
[Motorola Atrix 2] tcf38012:
Hello,

Based off the bionic kexec with a proper devtree, ramdisk, and kernel (stock) We can probably get kexec on our devices. Also, Don't be suprised if your device freezes and then reboots, it is WIP (Work in Progress). I would test this if my device hasn't bricked. So you can test it. It won't permemetly brick your device.

Well, Enough said here is the dl:

http://beta.androidfilehost.com/?fid=9390135922294522015

Cheers and good luck!!!
[Motorola Atrix 2] DemosZevasa:
Safestrap has kexec support. Just no kexec kernel.

Sent from my locked MB865 on Ice Cream Sandwich.
[Motorola Atrix 2] farshad525hou:
We already have a working kexec for our phone... as DemosZevasa said we don't have a kernal... and really don't need one as we can build most ICS/JB Roms to work with stock.
[Motorola Atrix 2] sad_but_cool1:
What can I do if I had kexec kernel?

[I miss symbian^3 community.]
[Motorola Atrix 2] tcf38012:
I'm missing out, Where is kexec?

Is it downloadable?
[Motorola Atrix 2] sad_but_cool1:
If I applied this zipped update to add kexec support to kernel,will my phone boots always to the new ramdisk?

Can u share the source for binaries?

I miss symbian^3 community.
[Motorola Atrix 2] jimbridgman:
Look here:

http://xdaforums.com/showthread.php?p=26046059
[Motorola Atrix 2] wanggjghost:
Is this for 2.X kernel or for 3.X kernel? I tried the 3.X kernel kexec, they not work on atrix2( though works well on RAZR), maybe I did something wrong :(
[Motorola Atrix 2] tcf38012:
I'm thinking it is not having kexec support in the kernel ;)

Iv'e got the kernel source 3.0.8 without kexec I just need to add kexec

Once we get a kernel with kexec, we can kexec custom kernels.

Right now I'm mostly working on the fastboot files for ATT US so I can get that out of the way.

Cheers!!!
[Motorola Atrix 2] jimbridgman:
Right now you can only try fully stock kernels with kexec, use the link I provided above, it works, I have done it with a stock compiled kernel. Yes we need to use the one for the RAZR, not the bionic.

This will work with 2.x or 3.x kernels... but since we have ICS, trying to boot a 2.x kernel will get you in trouble.

By the way which 3.0.8 kernel are you using? It is VERY, VERY important to use the moto mb865 source to be able to add the kexec support, for now.
[Motorola Atrix 2] tcf38012:
I can't find a MB865 kernel source with kexec and 3.x. I don't know about the moto sourceforge they all seem GB (2.6.x)

So i just used a kernel that is OMAP and is ASOP.
[Motorola Atrix 2] jimbridgman:
Yeah that is the issue. Right now, you can only boot stock kernels with kexec on our device, and a few others seem to have this same issue. Yes, moto has not released the source for our phone for ICS yet.

As for finding a kernel with kexec support in it, I would go take a look at hascode's githib, he has the stuff up there, that you might be able to modify, but the kernel I think he has is for cm9 and it is not booting on our device quite yet.

You should look for at least the me865 ICS source and try and throw the kexec parts into it, from hascodes github.

Try the me865 soruce from here:

http://sourceforge.net/projects/me865.motorola/files/ME865/

There might be an ICS version in there, to take a shot at, for now.
[Motorola Atrix 2] smgulsby:
And this kid is only 14. Amazing!
[Motorola Atrix 2] rdavisct:
posting something for another phone without any modification would be the opposite of amazing...

Stuff like this should be in the general section.its an ideal,not a development.
[Motorola Atrix 2] tcf38012:
Why do ya think it's WIP, and not Q (Question)? It's because of we just need a kernel that we can combine the drivers and kexec with.

Cheers!!!
[Motorola Atrix 2] jimbridgman:
But you also have to use the RIGHT binary version of kexec (the boinic one will not work for our phone). I hope you know that I was part of the team that worked on the OG of kexec with kohlk and mbm and those guys, and the one posted in the razr form that I linked in this thread works for our phone too, I made sure of that, so that there was no need for a razr version and an a2 version... :D
[Motorola Atrix 2] tcf38012:
I just need my replacment phone back. I'm lost without it. I can't test anything without an Atrix 2 :(. I should get it Friday ;).
[Motorola Atrix 2] jimbridgman:
Cool!!!

I promise that kexec works. I have tested it with both a true moto a2 kernel and the cm7 kernel that I compiled back in the 2.3.6 days.

I am not 100% on an ICS kernel, though since we don't have source yet, and I am not sure if the aosp kernel will work or not, as I had a lot of trouble getting the cm7 kernel working back in april and may.
[Motorola Atrix 2] tcf38012:
Oh yeah,

I just never heard about that.

Cheers!!!