[Q] Getting an XML from a .java for Eclipse - GT540 Optimus General

I have de-compiled 2 FM Radio apps (Mur4ik's Swiftdroid Radio and The RDS ZTE Blade CM7 radio) and have got the classes.dex through dex2jar and then through JD GUI to get the .java files from them to put into eclipse to get the missing files for it. I have all the other files in Eclipse, but it is missing some files for the layout, such as the Station Indicator (FreqIndicator.xml). I have FreqIndicator.java, and need to convert it to an xml, which is formatted correctly for Android.
Any help would be appreciated.
Thank You!

Anybody
Sent from my GT540 using XDA App

In /res/drawable there is freq_indicator_seek.xml isn't that the one you looking for?
you need it to port it to another ROM?

No, that's already there, it needs the one that would display the frequency (96.9 for example). I have its Java (source) but I don't know what to do with it.
Sent from my GT540 using XDA App

Quinny899 said:
No, that's already there, it needs the one that would display the frequency (96.9 for example). I have its Java (source) but I don't know what to do with it.
Sent from my GT540 using XDA App
Click to expand...
Click to collapse
Google doesn't say anything. Is it even possible?

hi mate i think java classes are like .exe once compiled they can't be de-compiled to the source code

Quinny899 said:
Anybody
Sent from my GT540 using XDA App
Click to expand...
Click to collapse
I tried your method for decompile the dex files , but the original source and the decompiled version was different .
The fmradio app source is downloadable from cm's github. You should ask mur4ik about did he changed something in the fmradio app source or he made modification's only in frameworks/base/core/jni/android_hardware_fm_bcm4325.cpp.
Also ask it about the zte.
If the app is untouched then the rds is activated in the framework and/or in the kernel.

Related

Porting honeycomb apps to tab

I have pulled the browser apk from the emulator however it will not install on the tab. please feel free to modify this file to get it working (the stock browser sucks) since it looks like a very good browser
edit: changrd title since its not just the browser we want
(and no i am not looking for a rom port - wait until the source code is relesed for that)
+1 on this one...
brilldoctor said:
I have pulled the browser apk from the emulator however it will not install on the tab. please feel free to modify this file to get it working (the stock browser sucks) since it looks like a very good browser
Click to expand...
Click to collapse
Why won't it install?
TheGrammarFreak said:
Why won't it install?
Click to expand...
Click to collapse
Because it has specified "honeycomb" as min. SDK level in the manifest file... somebody will have to change that to "8" or "9" I guess
then we will have to try and see if there is something missing from the framework etc...
I am too much noob to get it done properly...
Parsing error when installing
Sent from my GT-P1000 using XDA App
Flokey said:
Because it has specified "honeycomb" as min. SDK level in the manifest file... somebody will have to change that to "8" or "9" I guess
then we will have to try and see if there is something missing from the framework etc...
I am too much noob to get it done properly...
Click to expand...
Click to collapse
Hmm... Probably a case of using APK tool to decrypt it, edit the xml file, then APK tool to zip it all up again
U might need lib files associated with it
Sent from my PC36100 using Tapatalk
TheGrammarFreak said:
Hmm... Probably a case of using APK tool to decrypt it, edit the xml file, then APK tool to zip it all up again
Click to expand...
Click to collapse
Yo, tried that, but the apk tools I tried crashed every time
I'll get some sleep now, maybe I'll try tomorrow again
Sent from my GT-P1000 using XDA App
You can pretty much guarantee it'll be using 3.0-specific calls for things like the GPU acceleration. There's a lot of new additions in the 3.0 SDK that the 2.x libraries just don't provide.
If it can be made to work, it probably won't be very worthwhile. It'd probably pay to stick to Dolphin HD or Miren or something in the meantime.
If someone has the patience to hack out the non-2.2 compatible bits and make it go usefully, then I'm happy to be proven wrong of course.
knightnz said:
You can pretty much guarantee it'll be using 3.0-specific calls for things like the GPU acceleration. There's a lot of new additions in the 3.0 SDK that the 2.x libraries just don't provide.
If it can be made to work, it probably won't be very worthwhile. It'd probably pay to stick to Dolphin HD or Miren or something in the meantime.
If someone has the patience to hack out the non-2.2 compatible bits and make it go usefully, then I'm happy to be proven wrong of course.
Click to expand...
Click to collapse
I totally agree with you on that.
The only component that's interesting is the keyboard.
That should be pretty doable.
Flokey said:
Yo, tried that, but the apk tools I tried crashed every time
I'll get some sleep now, maybe I'll try tomorrow again
Sent from my GT-P1000 using XDA App
Click to expand...
Click to collapse
Would be nicw if we could get this working
Sent from my GT-P1000 using XDA App
i have tried it with latinIME.apk, changed the api level and tried to install it still parsing problem
Landroid said:
i have tried it with latinIME.apk, changed the api level and tried to install it still parsing problem
Click to expand...
Click to collapse
just tried a bunch of other apps and they also have the same issue
will post the contents of the /system/app folder in a min
files here http://www.multiupload.com/TGZSGT2P1U
mirror http://dl.dropbox.com/u/5668353/Apps.zip (please dont use all my bandwith)
brilldoctor said:
files here http://www.multiupload.com/TGZSGT2P1U
mirror http://dl.dropbox.com/u/5668353/Apps.zip (please dont use all my bandwith)
Click to expand...
Click to collapse
http://www.droid-life.com/2011/01/27/download-honeycomb-sdk-android-3-0-system-dump/
here is the complete system dump as a zip file
Bump
Sent from my GT-P1000 using XDA App
Seems strange that no apps are able to identify the apps. That doesn't happen if the apps require a different firmware.
Sent from zombie infested Gingerbread.

modifying 2.2- help needed

hi guys! I'm trying to modify cyanogen 2.2 rom for gt540, I did few things and they work, but now I have problem that I don't know how to solve:
I'm trying to install lgemail on 2.2. I can install app (copy it to /system/app/), but I can not run it... I thought problem is lib files so I copied libemailcore.so and libemailinterface.so into lib folder, but result is same...
can somebody explain me how to make lgemail work? please...
sry about my bad English.
From which 2.1 did you get lgemail
Because you also need deodexed
Sent from my GT540 using XDA App
I used lgemail from quarx black rom. I also tried lgemail from 1.6, but I can not install it :/
I think there was no deodexed files in quarx rom...
any other ideas?
hmm, can someone upload lgmail from stock 2.1, maybe this one from quarx system is modified...
And there is one more problem: I'm from Croatia, so I'd like to have my rom translated into my language... Problem is that only few things in cyanogen mod are translated, is there any way I can translate whole rom?
Maybe it relies on lg frameworks
Similar to samsung touchwiz
Sent from my GT540 using XDA App
ok... I figured out how to translate rom (or part of rom):
you need to modify system apps, like settings.apk, and add in them files with your language.
That should work in theory, but when I tried to do that I got stuck: I can unpack settings.apk with apktool, I can also edit files, but I can not repack it in apk file.
I got this message:
I: Checking whether sources has changed...
I: Smaling...
W: Could not find resources
I: Building apk file...
Why it can not find resources?
Use apk manager not apktool
Sent from my GT540 using XDA Appk
tnx, I'll try
I can not use it because adb isn't working on my ubuntu :/ I'm not sure why
Sorry. Posted wrong file
Hi, i made it work sometimes before when started using CM 6.
you have to copy, from a 2.1, some folders and .lib files besides the /system/app apk file. i cant recall where all that folders and files are now, but i can post it later in here if you want. I remember that some where in /data, and all the files in the mobile that where name XT9 are needed. But there where more.
This metod can make Lgime work on 2.2 with Portuguese, my case, and user dictionary fully working, but i dont think it can work as metod ti make Lgime a pre-instaled app.
oh and, sorry for my english.
Well there is a way to get lg keyboard on our phone so why not install that then install lgmail
Sent from my GT540 using XDA App
pashinator said:
Well there is a way to get lg keyboard on our phone so why not install that then install lgmail
Sent from my GT540 using XDA App
Click to expand...
Click to collapse
I did it, but it doesn't work, it force closes all the time

Netflix on Aria.

Just letting you all know that editing the build.prop in the system folder works for our lovely little Aria as well if you're running CM7.0.0 or above.
I assume that lets netflix run on aria? Or was your post title unrelated?
It was related. I have an Aria, and Netflix works fine.
What about other ROMs?
I have no idea. All I know is that it works on cm 7.0.0 and above.
What do you edit in build.prop? And why do you have to for Netflix? More specific please.
http://www.reddit.com/r/Android/comments/ha5oh/root_how_to_edit_your_buildprop_to_make_netflix/
The instructions are on there.
Plasmamuffins said:
http://www.reddit.com/r/Android/comments/ha5oh/root_how_to_edit_your_buildprop_to_make_netflix/
The instructions are on there.
Click to expand...
Click to collapse
Those instructions won't work on the Aria. The build.prop will revert after rebooting unless you edit the file while the phone is in recovery.
I rebooted and it worked.
Take build prop out of cm zip edit it and put it and overwrite the one in the cm package then flash
Signatures are fancy.
Just curious, if you don't do this work around do you get the phone not supported message on the login screen? Because before I knew about this I could log in and select a movie or video no problem.
Signatures are fancy.
There's also a hacked API file running around on xda that doesn't require you to modify your prop file.. just install the APK file and go.
Sent from my Liberty using XDA App
crossix said:
There's also a hacked API file running around on xda that doesn't require you to modify your prop file.. just install the APK file and go.
Sent from my Liberty using XDA App
Click to expand...
Click to collapse
Yeah I did this
Has this fix been documented?
I don't have Netflix.
Sent from my Liberty using XDA App
Can we get a link to it please?
Signatures are fancy.
I would like this link as well.
I don't have the link but if you goto cyanogenmod forums under stable mod for the aria, its within the first couple posts. A guy there has a link there. I did the Mega uplaod and netflix is working great.
Here's the link to the one uploaded by AP:
http://www.multiupload.com/NPZ062QIZB
And here's a dev thread in our Android forum with links to modded apks:
http://forum.xda-developers.com/showthread.php?t=1076150
http://www.mediafire.com/?smiw61zqsst01o7
I created a quick update.zip that just replaces the build prop with a new one with 2 changes:
The GB Signature is updated to GRJ22
The Model is changed to HTC Vision
This *SHOULD* allow you to install netflix. I'm testing it right now. First I have to uninstall the hacked version.
Does, in fact, work. Could not find it in the market though.
this hack is also working on my nook color
http://forum.xda-developers.com/showthread.php?t=1076145

[Q] How to mode SemcCalendar.apk

I've SemcCalendar, CalendarProvider and Notes apk's from stock Xperia X8 ROM and I want to make it run on CM Floyo 2.2.9. v30. How can I do this? (I'm searching for ways/tools to do that)
Try changing min android version in manifest to 8 for froyo and 10 for ginger and froyob4ead roms
Sent from my X8 using XDA Premium App
parkourz said:
I've SemcCalendar, CalendarProvider and Notes apk's from stock Xperia X8 ROM and I want to make it run on CM Floyo 2.2.9. v30. How can I do this? (I'm searching for ways/tools to do that)
Click to expand...
Click to collapse
Semc apps needs semc framework to run...
You need to change your current framework in order to run it
Sent from my SH!T Ericsson X8 running Froyobread using Tapatalk
I've tried to open 2 files with "manifest": manifest.mf and AndroidManifest.xml
In manifets.mf there is nothing interesting
Any program I've tried (Excel {MS Office 2010}, notepad, even XML Editor) can't open AndroidManifets.xml. Theres info about wrong sing in line 1 column 1

TW4 luncher port

-(libglcanvas.so)- Is the file sorry i said wrong earlier
So have been reading in touchwiz ported launcher that its only work for armv7 devices and I've seen why its only can be running on armv7 devices however i am not able to fix it.
But the new tw4manager is working.
New launcher loads the background (before it didn't load the wall)
So soon (hopefully) armv6 devices will have a working tw4 launcher
Inside the new TW4Launcher theres a lib called libglecanvas.so (and that one is related to any armv7 devices, if we manage to replace or edit that one we should have a working TW4 Launcher, but it may be a bit slower
Sent from my LG-P500 using xda premium
SWEATTAIMI said:
So have been reading in touchwiz ported launcher that its only work for armv7 devices and I've seen why its only can be running on armv7 devices however i am not able to fix it.
But the new tw4manager is working.
New launcher loads the background (before it didn't load the wall)
So soon (hopefully) armv6 devices will have a working tw4 launcher
Inside the new TW4Launcher theres a lib called libgles.so (and that one is related to any armv7 devices, if we manage to replace or edit that one we should have a working TW4 Launcher, but it may be a bit slower
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
That would be nice!
Sent from my LG-P500 using Tapatalk
@SWEATTAIMI:
in almost every opengl compatible android device there is this file named "libgles.so",
this file you can find in /system/lib/ ... you cant use this file from another device without
to make sure you have the right dependencis for this file - it can work alone
mDroidd said:
That would be nice!
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
Yeah the new launcher were now loading wallpaper now we only need to fix a lib (libgles) and its for armv7 but i don't know what file is related for armv6. I will look into the file later
Sent from my LG-P500 using xda premium
andy572 said:
@SWEATTAIMI:
in almost every opengl compatible android device there is this file named "libgles.so",
this file you can find in /system/lib/ ... you cant use this file from another device without
to make sure you have the right dependencis for this file - it can work alone
Click to expand...
Click to collapse
Thanks Andy but i did not find it from my phone ,
EDIT: filename: openglecanvas.so
also theres a cm7 tw4 launcher
Sent from my LG-P500 using xda premium
any progress of this launcher ? looking forward to it
Zacker90 said:
any progress of this launcher ? looking forward to it
Click to expand...
Click to collapse
nope :/ havent found any related libs for launcher yet

Categories

Resources