Installing Java Apps (f.e. Google Maps) using native method? - Bada Software and Hacking General

Hi everyone,
I wondered if we could somehow install Java Apps in CFWs as native Bada apps instead of the current method (where Java Apps ony show up in Games&More and we CFW developers need to find a fitting icon already inside the CFW).
It is possible: The Wave 578 Market has some Java Games from Gameloft, which are installed and show up as regular Bada Apps. When looking at the folder structure of these apps, we find the (dcf encrypted) JAR and JAD file instead of EXE.
Creating something like this ourselves for, f.e., Google Maps, would be easy, safe for one point: signature.xml, which contains (you guessed it) the signature of the file. If it worked out, we could install, f.e. via SHPAPP or PFS patches.
The upsides of this:
Create your own icon for Java Apps.
Uninstallable Java Aps in main menu.
Easy insertion into CFWs (no need to find fitting icons anymore).
So, does anyone know what to do about signature.xml? B. Kubicas DisableBadaIntegrity won't help, right?

Related

>net compact framework compatibility

Hello All,
I've been looking over various board (and Google) but found no answer to this particular question. I hope you can help.
I have an employee who has just got himself an XDA orbit. This has come with MS .Net Compact Framework version 2 on it. We use some device software that has been written for version 1. Now; version 2 is supposed to be completely backward compatible but it turns out that is not the case.
What I would like to ask is:
It appears that you can have multiple versions of the .net compact framework installed yet the MS installer will not install because it detects the newer version. I am not familiar enough with .net on these devices to know any way around this. Is it possible to retrofit version 1 at all? You advice would be much appreciated.
I would really like to help this guy out.
I guess this is because Microsoft thought they would be compatible. I would try to get another installer for CF1. If there is nothing newer than the one you have, try editing the installer. The cab-Installations are defined by xml files and are quite easy to read and edit. It shouldn't be a problem to remove the check of the newer version.
Tell us if it worked :-D
Ok...
I have the newest installer for .net CF V1 SP3. That's the latest one I can find on the MS site - without going to Version 2. I've unpacked it and I am now sitting looking at a folder full of CAB files.
I guess one of the questions I need to ask is whether it is possible versions of >net CF on the Artemis? If it is, are there any caveats?
And how do I know which CAB file to use?
I should explain that I am new to field of XDA modding so I don't really know all that much about how the OS works. This is a little project that will help a friend out (he is techincally incompetent) and give me a bit of extra knowledge (right now I feel technically incompetent...).
I'd try it that way: run the installer with the ppc disconnected. Then look into the "program files\Microsoft Activesync" folder which cab you can find there. Maybe it's more than one depending on your CPU. Extract the cab and edit the xml file.
CF1 SP3 is built into the ROM of WM5 so installing it again is just wasting your precious storage memory. CF2 SP1 can be installed to your storage card. CF2 is backwards compatible and can run CF1 applications, but since all WM5 devices have CF1 built in when you run a CF1 app it actually runs under CF1. You can force it to run under CF2 by placing a config file in the applications directory.
Read more here:
http://blogs.msdn.com/mikezintel/archive/2005/11/23/496123.aspx
The config file is explained here:
http://blogs.msdn.com/davidklinems/archive/2005/11/09/491113.aspx
@indiekiduk: without having read your links; are you sure about CF1 is installed on the device?
I tried the version checker of the hitchhiker website ( http://www.kasuei.com/hitchhiker/ ) and it says ".NET Compact Framework Unknown (2.0.5238.0)" seems to me like version 2.*.
I have not installed any other CF onto my orbit.
correct me if i'm wrong please.
indiekiduk said:
CF1 SP3 is built into the ROM of WM5 so installing it again is just wasting your precious storage memory. CF2 SP1 can be installed to your storage card. CF2 is backwards compatible and can run CF1 applications, but since all WM5 devices have CF1 built in when you run a CF1 app it actually runs under CF1. You can force it to run under CF2 by placing a config file in the applications directory.
Read more here:
http://blogs.msdn.com/mikezintel/archive/2005/11/23/496123.aspx
The config file is explained here:
http://blogs.msdn.com/davidklinems/archive/2005/11/09/491113.aspx
Click to expand...
Click to collapse
This is simply not true. The Orbit comes with SP2 installed and has never had SP1 installed - not in the ROM on the XDA I've seen.
The Orbit comes pre-installed with CF2 - I have seen this with my own eyes. It is also NOT completely backward compatible. Even the CF .net team admit this - there are always caveats when microsoft say something is "backward compatible".
I don't want to force it to run under SP2 - because it IS running under SP2 already.
Can anyone tell me which CAB file I can use to install another version of .net CF? And if it's even possible to retrofit CF v1 on the Orbit?
You could try changing the value under HKLM\software\microsoft\.NETCompactframework - to try and fool said program to believe you have CF1, CF2 programs may not work but worth a shot.

Java Development on Touch HD

I've been studying Java with the Open University and would like to put into practice some of my newfound knowledge on the mobile side of things.
Can anybody help me get started by telling me which configuration I should be using with regard to CLDC/CDC-MIDP, are there any JDK's for the Touch HD etc?
I have tried searching but to no avail so far so would appreciated your help.
Also, is there a decent Java compiler that operates under WM6. As that would be novel to play around with too! I currently use NetBeans on my pc.
Regards
Gary
Java on a mobile device = J2ME
There are plenty of Java VM for Pocket PC (check this thread). I think JBed (found in most blackstone ROM's including stock ones) is the best. It has severe limits but it is the best you can get on blackstone. For developement you can use your PC with Sun WTK 2.5.2 (it is supported by Netbeans).
There are no decent java compilers that run directly on PocketPC.
As your first app can you create a D-Pad in java to run skymobile????
garyainsworth said:
Can anybody help me get started by telling me which configuration I should be using with regard to CLDC/CDC-MIDP, are there any JDK's for the Touch HD etc?
Click to expand...
Click to collapse
Java ME : JBed or JBlend, choose one of them, both work great.
Java SE (Yes Desktop-class Java): MySaifu - http://www2s.biglobe.ne.jp/~dat/java/project/jvm/index_en.html
As for the JDK part (I mean the javac compiler and other tools), I do not know such a package yet. However, you can make javac work with MySaifu with a tools.jar file copied from standard JDK (1.3 or older probably).
Hope this helps
Java development with JVM for CDC
Thanks for your help guys.
I've managed to ge set up and have managed to create my first Midlet and run it on my Blackstone via JBed. I've used NetBeans 6.7
However, that is CLDC/MIDP, but when I try and install CDC creations JBed will not install it because a Midlet name is missing. Is this because the stock JBed does not support CDC. I have tried to find out but it is not perfectly clear and I will have to pay for a JVM to test my theory out if nobody can advise!
Thanks for help
Gazza
MOD EDIT
Moved to Themes, Applications and Software forum (?) as not related to rom development
I'd seriously look at JavaFX, sun released a beta of it the other day.
I really like it, it works well on the HD from my limited testing
http://javafx.com/downloads/windows.jsp
One slight flaw with the current version is that it wants to get network address even when try to search for local jar/jad on storage.
but setting it as default file association gets around that one..
JavaFX
Downloading as I write....
Thanks for your advice I appreciate it. As you may know, as a newcomer to development of JME it is so complicated to get started due to all the configurations so any pointers at this stage are very much appreciated.
Thanks
Gaz
OK, I have JavaFX installed on my HD and it works and I particularly like the calculator example app included with it. However, I still cannot get my CDC app to install. It says "Cannot install application because critical information is missing from the application file (.jad). I thought CDC used xml files and not JAD for descriptions. Am I wrong or is something to do with my platform/deployment configuration?
I cant see a jad file in the deploy folder either. Is this an error.
Thanks
Gaz
Nope, you still need the JAD descriptor file.
It's plain text file, just find some on the internet, open it with text editor and alter some of the properties in there, it's really easy.
Don't forget to change the path to your JAR archive - the best way is to put there just simple JAR name and copy the JAD to the same directory as JAR.
Thanks Pepcza,
I'll try that, just a thought though, if you still need a descriptor file (in this case .jad) why does'nt the Netbeans deployment process create it along with everything else? It does when creating CLDC platform apps!
Gaz
JavaFX
I think we should concentrate on this one. Youtube videos are working in bolt browser using Javafx. If only it would be a bit faster, It'll throw Jbed out of the window.

[APP][v2009-09-23] ai Cab Explorer utility: new way to explore cab files on your disk

***CHANGE LOG START
2009-09-23
- New:file preview (please note that cou can even preview manila encoded images inside cab file, since they are converter internaly!)
- in preview you can choose to extract manila file or PNG image.
- bug fixes, cosmetic changes... new bugs ...
- you probably realized that I publish versions I got at the moment - raw, not too much tested, relative big changes from day to day, version is detected by the pub date... so expect new staf soon...
- !!! IMPORTANT !!! Please download cfc.exe and put it at c:\windows\ "c:\windows\cfc.exe" !!! Download last version from http://forum.xda-developers.com/showpost.php?p=2798441&postcount=1 !!!
(without cfc.exe app won't be able to decode mailla images)
2009-09-22
**IF YOU HEVE BEEN HERE PLEASE READ THE WHOLE POST SINCE IT IS ALL UPDATED!!!
- "Cab Album" support:
A Cab Album is collected information about many Cab files in one place.
Application will here "create" a new Cab Album by scaning folder. (It is possible to include subfolders in search path.)
Since creating a "Cab album" could be time consuming (depends on how many files it has to scan),
collected information - an "Album" can be saved (in xml structured file).
So next time, you can just use the same information by "loading" a saved album from disk (without scaning again).
Creating album is the process that will
a) detact all *.cab files in scaning folder (and subfolders)
b) for each found cab, program will try to locate "_setup.xml" within .cab file and extract information about real / target file names and paths
c) all information will be collected to memory
After that you will be able to
a) browse an album by cab files (from the tree)
b) browse an album by target file names (also from the tree where these files are grouped an counted)
c) search / filter the album by target file names
Also you can
a) click on "save" icon to save the album.
b) double click on cab file (lef side - tree) to open separate window tith that cab info
c) double click on file on the right side to extract it on disk
2009-09-21
- new version suports drag & drop files (from windows explorer)
- small cosmetic changes
2009-09-19
- first published version
***CHANGE LOG END
DID you ever try to find some fine resource (manila file, bmp for phone skin ... or whatever), which you know you have seen somewhere. And you are sure you got it somewhere on your hard or stick or ....
DID you ever wanted to create a new skin based on a few existing skins in some cab files.
DID you ever ask yourself - what will that XY.cab install on my device? Will it remove parst of my customization that I don't want to be changed?
In case you didn't this app is probably NOT for you.
But if you DID then you probably know that
a) most cab extractors will NOT extract files with the correct filenames on your hard disk.
Instead of some "5acc5861_manila" that will be installed on your device, what you get on your pc is some file named "0CABA635.001".
The real target file name "5acc5861_manila" is actually set in _setup,xml which is part of cab file for mobile device.
b) it is hard to find all "5acc5861_manila" resources on your hard disk without decompression of all cab files, and fixing a problem described before - see a
What do you think about a new point of view - an "Album" view.
Album view will help you to "scan" your hard disk folders, searching for cab files, extacting information from them (without extracting cab files on disk), and collecting all important information in one Album list.
That's not all.
Since "scanning" or building an album could be time consuming, you can "save" the album (xml file structure) so next time you just open existing album and you got all information very quick.
You can search albums - for example "Assets*.bmp" will find all files located in album containing dialer skins.
With another few clicks you can extract found files on disk and use you favourite tools to view or edit them.
Prease note tha this application is extended version of
"[APP][v2009-09-17] Cab utility - RENAME cab content/files to normal target names" located at http://forum.xda-developers.com/showthread.php?t=561533
Requirements: .NET framework 3.5 on your PC
BTW: If someone know some good .NET library for converting / previewing or updating _manila files please do let me know.
Also if someone would like to use some of functionality of this app in other projects ... I will be glad if I can help providing details about my libraries.
I hope you'll like it...
Weeeeeeeeeeell
Awesome thank you!
UPDATE
Missing drag & drop support was anoying, so I add it to v2009-09-21.
You can find / download new version in fist post
cablib error
I get an error when opening a cab-file:
FileLoadExeption
Could not load file or assembly 'Cablib, version 10.3.0.0 ... or one of its dependencies. This application has failed to star because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT:0x800736B1)
cc62 said:
I get an error when opening a cab-file:
FileLoadExeption
Could not load file or assembly 'Cablib, version 10.3.0.0 ... or one of its dependencies. This application has failed to star because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT:0x800736B1)
Click to expand...
Click to collapse
Yes in some systems you can get this error. On my laptop I have no problems but on my home PC I had exat the same error.
What I did to solve this problem is to replace version of CabLib, and also I put 2 dlls in the same folder where is application.
You can find CabLibFix in additional attachment in first post. Just put those files in the same directory (replace existing CabLib + additional 2 new files).
Please do let me know if that helps
Could not load file or assembly 'Cablib
Please note that v2009-09-22 should fix problems with error "Could not load file or assembly 'Cablib.." on some systems.
"FIx files" are included in that version, so I removed "fix..." archive.
However if you still have problems please do let me know,
thanks
v2009-09-22
v2009-09-22 works like a charm.
Thank you again
v2009-09-23 now has image / text preview + info about manila type of file (xml, SQLite, Lua_Script, Mode_9 ...)
Also you preview manila IMAGE files (decoded using cfc.exe to png)
The only inconvinience is that I manage to hardcode path to cfc.exe ( "c:\windows\cfc.exe").
Sory!
Error on win64 with an 'any CPU' build
Hi
We are using your CabLib.dll v2009-09-23 to load cab files inside our c# application. It works really well, except for one case.
When we build the application for target 'any cpu' and then install on a windows xp64 machine, we get an error message:
System.BadImageFormatException: Could not load file or assembly 'CabLib, Version=10.3.0.0, Culture=neutral, PublicKeyToken=5c838b77b53f84a0' or one of its dependencies. An attempt was made to load a program with an incorrect format.
File name: 'CabLib, Version=10.3.0.0, Culture=neutral, PublicKeyToken=5c838b77b53f84a0'
Everything works fine when we change the target to 'x86', but that then causes problems with our test suite. The 'Any CPU' build only fails in x64 machines.
I was wondering how you build your DLL and if you have any ideas to help us fix this problem.
Here's my config:
Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1
The build and test is on an xp64 SP2 machine.
-- update --
I've also found that aiCabExplorer.exe has the same problem on my win64 machine. I see you are including the 32 bit C run time DLL's which you provide in the release - that appears to be the problem, as the OS is trying to dynamically link against the 64 bit version of MSCOREE.DLL, KERNEL32.DLL, OLE32.DLL and OLEAUT32.DLL and doesn't like mixing them up.
So the solution, I think, is for you to build without explicit dependencies on the 32 bit libraries. Is there any chance of getting a version like that?
Thanks,
Mark
Hi,
I use this app all the time.
Super duper.
Thank you very much.
Keith
Seems great Gonna try it

JBlend uninstall

I have a question: How to uninstall JBlend preinstalled by the producer in the phone? I installed the esmertec jbed but there is no icon in "programs". I have MDA Compact IV
I have the same issue. I can't find any way to uninstall my existing JBlend. Even reinstalling with new JBlend makes it worse, my java games wont run & install
My JBlend is preinstalled with my Omnia.
I'm currently having issues to move the existing /windows folder to /My Storage.
I have tried the trick for the JBlend, but it didn't work for my case.
When I put back the java folder in Windows folder, it works as normal.
Anyone can advise me in this matter ? I'm stucked in this problem.
If it's a ROM application then I think that you can not remove it.
[check file properties to see if it's a ROM file or not]
This is the main reason that made me change my stock ROM.
Then again I have just started to learn about ROM flashing & cooking so correct me people if I am wrong.
I used Gen.Y R5.3 MultiLANG Kitchen to disable/enable applicatins in the ROM & cooked my first clean ROM
(you can actually see Jblend disabled in step 3 of this kitchen).

[Q] Icon for java apps in the menu

I think I'm not the only one who use java apps on the phone. But accessing these apps is not user friendly. As we can see with Palringo, it is possible to start java apps by an icon instead of scrolling throuh all java apps. Can we somehow implement this for all (or for selected) java apps not just the IM? This would greatly increase the usability.
Any ideas?
BR,
Balázs
Good Question...
T-Mobile Branding uses also thier JAVA Midlet Navi in the menu and 1,2 other things...
Maybe step 1 would be. If we can replace Palringo with other Midlet.
As it is in Hidden Games folder...
At the moment I have 0 ideas how this work... as Icons are stored somewhere else.
And NOT loaded from JAVA folder...
I tried several things, but no success.
Best Regards
Well, IMO more importantly we should be able to put app shortcuts on the homescreen :\
Maybe other direction...
Apps start from JAVA menu.
Tumbling Dice is internal App.
Asphalt5 is prepared, but not activated...
Asphalt5 is for instance prepared but not activated in KJxLinkDisplayOrder.ini:
#LINK_INFO
LinkCount=2
#Link_1
link_name=Tumbling Dice
link_order=1
#Link_2
link_name=Asphalt5
link_order=2
I've added only Icon and tried to edit OapinGameList.ini...
In Firmware with Branding, there are enough examples with JAVA Midlets in menu. But still same problem, where are the Setting files?
Maybe we find for both an solution.
Best Regards
For JAVA Midlets on Main menu.
Part 1 seems to be:
KJxDispatch.ini
#Palringo
class=com.paxmodept.palringo.main.jme.JmeMain
vendor=Palringo
name=Palringo
Class we can find in *.jad
At the moment I try to replace Palringo with something else... frome T-Mobile.
Other test failed as no icon was created...
Best Regards
hey Guys! I'am from Poland and on polish forum we are trying to add java icons in menu too... My idea was to "tell" the Dolphin browser to "run" some java application. It is simple hack to do this: You have to add bookmark in Dolphin, call it, write the address to *.jar file (in my guide : file:///Mount/Mmc/Others/Opera/opera.jar) and it's IMPORTANT: activate third option, it's adding bookmark to main menu. But this idea is very imperfect - after clicking on main menu icon, you must install this midlet all the time This is because "hack" tells the browser to run NOT the application, but INSTALL file (*.jar). That's why You have to install Opera always after clicking on it. At this time we can't solve this otherwise. I give You link bo polish "bada-world" forum. At first post, there's my quick guide. Of course, you have to login, to see it. Probably You have to use Google Translator, or if someone of You knows Polish perfectly, it would be so nice
Code:
h ttp://tnij.org/bada_guide
(please remove the space after "h", I have no permissions to use outside links )
BTW, sorry for my english, but I hope You understand me Maybe with common powers, We will add java icons to menu!
Regards,
wxtester
@wxtester
re-installing opera and other apps will erase bookmarks and such things right?
If you want to use java on the desktop or the menu, it's not possible.
On the desktop you can just add flash files (and widgets).
On the menu, you can only add applis icons.
What you can do it's add the link of games and other on the main desktop to have a quick acces.
After you can add java applications.
You need to modify KJxDisplayOrder.ini file.
#DEFAULT_INFO
Count=1
#Midlet_1
name=DoodleJump
class=Doodle
fixed=1
order=1
Click to expand...
Click to collapse
lasentenza said:
If you want to use java on the desktop or the menu, it's not possible.
On the desktop you can just add flash files (and widgets).
On the menu, you can only add applis icons.
What you can do it's add the link of games and other on the main desktop to have a quick acces.
After you can add java applications.
You need to modify KJxDisplayOrder.ini file.
Click to expand...
Click to collapse
I don't undestand...where can find the file?
Wich one
majed19 said:
@wxtester
re-installing opera and other apps will erase bookmarks and such things right?
Click to expand...
Click to collapse
no, it don't. You will still have access to your favourite sites and bookmarks, it won't be deleted. It You want to be sure, please reinstall from Your jar file, not mine!
lasentenza, on your screenshot I see that U have access to internal filesystem by Windows default filemanager (explorer.exe). Is it any plugin to see it without any program like sTune?
BTW, I don't understand Your tutorial Your idea is to add icon "Games and more" to desktop (next to widgets)? Why you talk about Java application "DoodleJump"? I don't understand Can you explain it simpler?
Thanks in advance
wxtester said:
lasentenza, on your screenshot I see that U have access to internal filesystem by Windows default filemanager (explorer.exe). Is it any plugin to see it without any program like sTune?
BTW, I don't understand Your tutorial Your idea is to add icon "Games and more" to desktop (next to widgets)? Why you talk about Java application "DoodleJump"? I don't understand Can you explain it simpler?
Thanks in advance
Click to expand...
Click to collapse
same problem...
I do not have acces to filesystem, the files you see is FFS dumped files.
Perhaps I don't understand.
I thought you wanted to add java apps on the desktop?
Doodlejump is to show that we can add java apps on game and more, in a custom firmware.
lasentenza said:
I thought you wanted to add java apps on the desktop?
Click to expand...
Click to collapse
Yes, I still want to do this. On the desktop or in the menu.
Doodlejump is to show that we can add java apps on game and more, in a custom firmware.
Click to expand...
Click to collapse
Is it similar to normal installing from java file?
So, finally there's no way to add java apps to Main Menu?
@ latenza..
I want link java app on the main desktop or on menu to have a quick acces...
I think it's not possible.
The java application are only available from game and more.
The only link you can add to the menu or the desktop are widkets, applications or flash (like calendar, dualclock, email etc)... Or maybe I don't find the way
lasentenza said:
I think it's not possible.
The java application are only available from game and more.
The only link you can add to the menu or the desktop are widkets, applications or flash (like calendar, dualclock, email etc)... Or maybe I don't find the way
Click to expand...
Click to collapse
ohh...ok...so i can't...
;(
All Firmware Brandings I found where JAVA Midlets in Mainmenu.
Icons are in f... *.RC1 file.
So no replace, delete is at the moment possible... I mean the Icons.
I have no idea, how to link to Midlet folder to use Picture here as Icon...
Best Regards
adfree said:
All Firmware Brandings I found where JAVA Midlets in Mainmenu.
Icons are in f... *.RC1 file.
So no replace, delete is at the moment possible... I mean the Icons.
I have no idea, how to link to Midlet folder to use Picture here as Icon...
Best Regards
Click to expand...
Click to collapse
good news...
THanks!!

Categories

Resources