Jump to content

J-MOD (based on Android 2.1)


Guest JohnPorter
 Share

Recommended Posts

John, I'd like to work out the missing wallpaper problem. If you ever figure anything out about it, please post a link to what you find. I'd like to replace the wallpapers and/or reduce the number so there aren't any weird blanks.

Have you got a link to info on how to unpack and repack the framework-res.apk?

Thanks.

Link to comment
Share on other sites

John, I'd like to work out the missing wallpaper problem. If you ever figure anything out about it, please post a link to what you find. I'd like to replace the wallpapers and/or reduce the number so there aren't any weird blanks.

Have you got a link to info on how to unpack and repack the framework-res.apk?

Thanks.

The wallpapers are not in the framework-res, just the default one that applies with the framework (if you flash a new framework for example). I completely forgot where the wallpapers were kept :huh:

As for the framework-res, you just unpack it with WinRar for example, edit what you will, but be careful with the changes, and then again with WinRar just zip the contents and use the store compression (this is VERY important, otherwise it will not work), then just rename the framework-res.zip to framework-res.apk and you're good.

Link to comment
Share on other sites

The wallpapers are not in the framework-res, just the default one that applies with the framework (if you flash a new framework for example). I completely forgot where the wallpapers were kept :huh:

As for the framework-res, you just unpack it with WinRar for example, edit what you will, but be careful with the changes, and then again with WinRar just zip the contents and use the store compression (this is VERY important, otherwise it will not work), then just rename the framework-res.zip to framework-res.apk and you're good.

Perfect. Thanks. ;)

I'm going hunting for those wallpapers. It's not all that important, but it's now a challenge and I want to solve it.

Link to comment
Share on other sites

John, I'd like to work out the missing wallpaper problem. If you ever figure anything out about it, please post a link to what you find. I'd like to replace the wallpapers and/or reduce the number so there aren't any weird blanks.

Have you got a link to info on how to unpack and repack the framework-res.apk?

Thanks.

Perfect. Thanks. :huh:

I'm going hunting for those wallpapers. It's not all that important, but it's now a challenge and I want to solve it.

The framework only has the default wallpaper in it.

I think they are in launcher.apk (the stock launcher anyway, not sure about ADW or LauncherPro). In the XML files, it lists 14 wallpapers, but there are only 3 wallpapers physically in the file. I do intend to fix this but it may take a while. All the XML files are binary encoded so unless there extracted properly you can't modify them. You have to use a tool named apktool to extract the files and re-build the apk. I have attempted to do this but can't get apktool to re-build the apk without errors so I'm unsure what is wrong right now.

1 simple fix would be to add another 11 wallpapers named as they are in the XML files, but I guess would increase the size of the apk.....if you want to wait till later I'll post the XML files in question for you to look at.

Wallpapers are also stored in system/media/hw_image (i think) but I deleted that folder so it doesn't exist in J-MOD.

If you do solve it then please do post how here, I'd love to implement the fix in J-MOD. I have also asked my colleague at work to have a look, although he hasn't used Android, his problem fixing ability is something to be envious of....

Added J-MOD v1.1 to Android Guide site:

http://www.androidguide.co.uk/release/j-mod-v11

Thanks JingleManSweep.

Edited by JohnPorter
Link to comment
Share on other sites

These are the XML from the srock launcher that reference the wallpapers

public.xml - located in the res > values folder

<?xml version="1.0" encoding="UTF-8"?>

<resources>

	<public type="attr" name="direction" id="0x7f010000" />

	<public type="attr" name="defaultScreen" id="0x7f010001" />

	<public type="attr" name="cellWidth" id="0x7f010002" />

	<public type="attr" name="cellHeight" id="0x7f010003" />

	<public type="attr" name="longAxisStartPadding" id="0x7f010004" />

	<public type="attr" name="longAxisEndPadding" id="0x7f010005" />

	<public type="attr" name="shortAxisStartPadding" id="0x7f010006" />

	<public type="attr" name="shortAxisEndPadding" id="0x7f010007" />

	<public type="attr" name="shortAxisCells" id="0x7f010008" />

	<public type="attr" name="longAxisCells" id="0x7f010009" />

	<public type="attr" name="texture" id="0x7f01000a" />

	<public type="attr" name="className" id="0x7f01000b" />

	<public type="attr" name="packageName" id="0x7f01000c" />

	<public type="attr" name="screen" id="0x7f01000d" />

	<public type="attr" name="x" id="0x7f01000e" />

	<public type="attr" name="y" id="0x7f01000f" />

	<public type="attr" name="icon" id="0x7f010010" />

	<public type="attr" name="title" id="0x7f010011" />

	<public type="attr" name="uri" id="0x7f010012" />

	<public type="drawable" name="box_launcher_top" id="0x7f020002" />

	<public type="drawable" name="delete_zone_selector" id="0x7f020008" />

	<public type="drawable" name="grid_selector" id="0x7f02000a" />

	<public type="drawable" name="handle" id="0x7f02000b" />

	<public type="drawable" name="handle_icon" id="0x7f02000c" />

	<public type="drawable" name="pressed_application_background" id="0x7f02001d" />

	<public type="drawable" name="shortcut_selector" id="0x7f020021" />

	<public type="drawable" name="textfield_searchwidget" id="0x7f020022" />

	<public type="drawable" name="bg_appwidget_error" id="0x7f020000" />

	<public type="drawable" name="box_launcher_bottom" id="0x7f020001" />

	<public type="drawable" name="box_launcher_top_normal" id="0x7f020003" />

	<public type="drawable" name="box_launcher_top_pressed" id="0x7f020004" />

	<public type="drawable" name="box_launcher_top_selected" id="0x7f020005" />

	<public type="drawable" name="focused_application_background" id="0x7f020009" />

	<public type="drawable" name="ic_launcher_add_folder" id="0x7f02000e" />

	<public type="drawable" name="ic_launcher_application" id="0x7f02000f" />

	<public type="drawable" name="ic_launcher_appwidget" id="0x7f020010" />

	<public type="drawable" name="ic_launcher_folder" id="0x7f020011" />

	<public type="drawable" name="ic_launcher_folder_live" id="0x7f020012" />

	<public type="drawable" name="ic_launcher_folder_open" id="0x7f020013" />

	<public type="drawable" name="ic_launcher_gallery" id="0x7f020014" />

	<public type="drawable" name="ic_launcher_home" id="0x7f020015" />

	<public type="drawable" name="ic_launcher_shortcut" id="0x7f020016" />

	<public type="drawable" name="ic_launcher_wallpaper" id="0x7f020017" />

	<public type="drawable" name="ic_search_widget" id="0x7f020018" />

	<public type="drawable" name="pattern_carbon_fiber_dark" id="0x7f02001b" />

	<public type="drawable" name="placeholder_google" id="0x7f02001c" />

	<public type="drawable" name="search_button_bg" id="0x7f02001e" />

	<public type="drawable" name="search_button_voice" id="0x7f02001f" />

	<public type="drawable" name="search_floater" id="0x7f020020" />

	<public type="drawable" name="textfield_searchwidget_default" id="0x7f020023" />

	<public type="drawable" name="textfield_searchwidget_pressed" id="0x7f020024" />

	<public type="drawable" name="textfield_searchwidget_selected" id="0x7f020025" />

	<public type="drawable" name="wallpaper_beach" id="0x7f020029" />

	<public type="drawable" name="wallpaper_beach_small" id="0x7f02002a" />

	<public type="drawable" name="wallpaper_blue" id="0x7f02002d" />

	<public type="drawable" name="wallpaper_blue_small" id="0x7f02002e" />

	<public type="drawable" name="wallpaper_green" id="0x7f020039" />

	<public type="drawable" name="wallpaper_green_small" id="0x7f02003a" />

	<public type="drawable" name="wallpaper_grey" id="0x7f02003b" />

	<public type="drawable" name="wallpaper_grey_small" id="0x7f02003c" />

	<public type="drawable" name="wallpaper_jellyfish" id="0x7f02003d" />

	<public type="drawable" name="wallpaper_jellyfish_small" id="0x7f02003e" />

	<public type="drawable" name="wallpaper_lake" id="0x7f02003f" />

	<public type="drawable" name="wallpaper_lake_small" id="0x7f020040" />

	<public type="drawable" name="wallpaper_mountain" id="0x7f020045" />

	<public type="drawable" name="wallpaper_mountain_small" id="0x7f020046" />

	<public type="drawable" name="wallpaper_path" id="0x7f020049" />

	<public type="drawable" name="wallpaper_path_small" id="0x7f02004a" />

	<public type="drawable" name="wallpaper_pink" id="0x7f02004b" />

	<public type="drawable" name="wallpaper_pink_small" id="0x7f02004c" />

	<public type="drawable" name="wallpaper_road" id="0x7f020051" />

	<public type="drawable" name="wallpaper_road_small" id="0x7f020052" />

	<public type="drawable" name="wallpaper_snow_leopard" id="0x7f020053" />

	<public type="drawable" name="wallpaper_snow_leopard_small" id="0x7f020054" />

	<public type="drawable" name="wallpaper_sunrise" id="0x7f020055" />

	<public type="drawable" name="wallpaper_sunrise_small" id="0x7f020056" />

	<public type="drawable" name="wallpaper_sunset" id="0x7f020057" />

	<public type="drawable" name="wallpaper_sunset_small" id="0x7f020058" />

	<public type="drawable" name="wallpaper_zanzibar" id="0x7f02005d" />

	<public type="drawable" name="wallpaper_zanzibar_small" id="0x7f02005e" />

	<public type="drawable" name="delete_handle" id="0x7f020006" />

	<public type="drawable" name="delete_handle_normal" id="0x7f020007" />

	<public type="drawable" name="ic_delete" id="0x7f02000d" />

	<public type="drawable" name="ic_tray_collapse" id="0x7f020019" />

	<public type="drawable" name="ic_tray_expand" id="0x7f02001a" />

	<public type="drawable" name="tray_handle_normal" id="0x7f020026" />

	<public type="drawable" name="tray_handle_pressed" id="0x7f020027" />

	<public type="drawable" name="tray_handle_selected" id="0x7f020028" />

	<public type="drawable" name="wallpaper_bentgrass" id="0x7f02002b" />

	<public type="drawable" name="wallpaper_bentgrass_small" id="0x7f02002c" />

	<public type="drawable" name="wallpaper_canyon" id="0x7f02002f" />

	<public type="drawable" name="wallpaper_canyon_small" id="0x7f020030" />

	<public type="drawable" name="wallpaper_despair" id="0x7f020031" />

	<public type="drawable" name="wallpaper_despair_small" id="0x7f020032" />

	<public type="drawable" name="wallpaper_electric" id="0x7f020033" />

	<public type="drawable" name="wallpaper_electric_small" id="0x7f020034" />

	<public type="drawable" name="wallpaper_goldengate" id="0x7f020035" />

	<public type="drawable" name="wallpaper_goldengate_small" id="0x7f020036" />

	<public type="drawable" name="wallpaper_grass" id="0x7f020037" />

	<public type="drawable" name="wallpaper_grass_small" id="0x7f020038" />

	<public type="drawable" name="wallpaper_leaves" id="0x7f020041" />

	<public type="drawable" name="wallpaper_leaves_small" id="0x7f020042" />

	<public type="drawable" name="wallpaper_monumentvalley" id="0x7f020043" />

	<public type="drawable" name="wallpaper_monumentvalley_small" id="0x7f020044" />

	<public type="drawable" name="wallpaper_paradise" id="0x7f020047" />

	<public type="drawable" name="wallpaper_paradise_small" id="0x7f020048" />

	<public type="drawable" name="wallpaper_rainbokeh" id="0x7f02004d" />

	<public type="drawable" name="wallpaper_rainbokeh_small" id="0x7f02004e" />

	<public type="drawable" name="wallpaper_ricefield" id="0x7f02004f" />

	<public type="drawable" name="wallpaper_ricefield_small" id="0x7f020050" />

	<public type="drawable" name="wallpaper_tree" id="0x7f020059" />

	<public type="drawable" name="wallpaper_tree_small" id="0x7f02005a" />

	<public type="drawable" name="wallpaper_valley" id="0x7f02005b" />

	<public type="drawable" name="wallpaper_valley_small" id="0x7f02005c" />

	<public type="layout" name="add_list_item" id="0x7f030000" />

	<public type="layout" name="application_list" id="0x7f030003" />

	<public type="layout" name="appwidget_error" id="0x7f030004" />

	<public type="layout" name="list_category" id="0x7f030007" />

	<public type="layout" name="list_checkbox_2lines" id="0x7f030008" />

	<public type="layout" name="live_folder_list" id="0x7f03000b" />

	<public type="layout" name="rename_folder" id="0x7f03000c" />

	<public type="layout" name="wallpaper_chooser" id="0x7f03000e" />

	<public type="layout" name="wallpaper_item" id="0x7f03000f" />

	<public type="layout" name="widget_search" id="0x7f030010" />

	<public type="layout" name="application" id="0x7f030001" />

	<public type="layout" name="application_boxed" id="0x7f030002" />

	<public type="layout" name="folder_icon" id="0x7f030005" />

	<public type="layout" name="launcher" id="0x7f030006" />

	<public type="layout" name="live_folder_grid" id="0x7f030009" />

	<public type="layout" name="live_folder_icon" id="0x7f03000a" />

	<public type="layout" name="user_folder" id="0x7f03000d" />

	<public type="layout" name="workspace_screen" id="0x7f030011" />

	<public type="anim" name="fade_in_fast" id="0x7f040000" />

	<public type="anim" name="fade_out_fast" id="0x7f040001" />

	<public type="xml" name="default_workspace" id="0x7f050000" />

	<public type="id" name="vertical" id="0x7f060000" />

	<public type="id" name="horizontal" id="0x7f060001" />

	<public type="id" name="name" id="0x7f060002" />

	<public type="id" name="icon" id="0x7f060003" />

	<public type="id" name="description" id="0x7f060004" />

	<public type="id" name="drag_layer" id="0x7f060005" />

	<public type="id" name="workspace" id="0x7f060006" />

	<public type="id" name="cell1" id="0x7f060007" />

	<public type="id" name="cell2" id="0x7f060008" />

	<public type="id" name="cell3" id="0x7f060009" />

	<public type="id" name="drawer" id="0x7f06000a" />

	<public type="id" name="all_apps" id="0x7f06000b" />

	<public type="id" name="content" id="0x7f06000c" />

	<public type="id" name="delete_zone" id="0x7f06000d" />

	<public type="id" name="title" id="0x7f06000e" />

	<public type="id" name="summary" id="0x7f06000f" />

	<public type="id" name="checkbox" id="0x7f060010" />

	<public type="id" name="folder_close" id="0x7f060011" />

	<public type="id" name="folder_content" id="0x7f060012" />

	<public type="id" name="label" id="0x7f060013" />

	<public type="id" name="folder_name" id="0x7f060014" />

	<public type="id" name="wallpaper" id="0x7f060015" />

	<public type="id" name="gallery" id="0x7f060016" />

	<public type="id" name="set" id="0x7f060017" />

	<public type="id" name="widget_search" id="0x7f060018" />

	<public type="id" name="search_plate" id="0x7f060019" />

	<public type="id" name="search_src_text" id="0x7f06001a" />

	<public type="id" name="search_voice_btn" id="0x7f06001b" />

	<public type="color" name="window_background" id="0x7f070000" />

	<public type="color" name="grid_dark_background" id="0x7f070001" />

	<public type="color" name="bubble_dark_background" id="0x7f070002" />

	<public type="color" name="delete_color_filter" id="0x7f070003" />

	<public type="color" name="appwidget_error_color" id="0x7f070004" />

	<public type="color" name="snag_callout_color" id="0x7f070005" />

	<public type="color" name="gesture_color" id="0x7f070006" />

	<public type="color" name="uncertain_gesture_color" id="0x7f070007" />

	<public type="color" name="bright_text_dark_focused" id="0x7f070008" />

	<public type="dimen" name="search_widget_inset" id="0x7f080000" />

	<public type="dimen" name="gesture_thumbnail_inset" id="0x7f080001" />

	<public type="dimen" name="gesture_thumbnail_size" id="0x7f080002" />

	<public type="dimen" name="cell_width" id="0x7f080003" />

	<public type="dimen" name="cell_height" id="0x7f080004" />

	<public type="array" name="extra_wallpapers" id="0x7f090000" />

	<public type="array" name="wallpapers" id="0x7f090001" />

	<public type="string" name="application_name" id="0x7f0a0000" />

	<public type="string" name="uid_name" id="0x7f0a0001" />

	<public type="string" name="folder_name" id="0x7f0a0002" />

	<public type="string" name="chooser_wallpaper" id="0x7f0a0003" />

	<public type="string" name="wallpaper_instructions" id="0x7f0a0004" />

	<public type="string" name="pick_wallpaper" id="0x7f0a0005" />

	<public type="string" name="activity_not_found" id="0x7f0a0006" />

	<public type="string" name="configure_wallpaper" id="0x7f0a0007" />

	<public type="string" name="rename_folder_label" id="0x7f0a0008" />

	<public type="string" name="rename_folder_title" id="0x7f0a0009" />

	<public type="string" name="rename_action" id="0x7f0a000a" />

	<public type="string" name="cancel_action" id="0x7f0a000b" />

	<public type="string" name="menu_item_add_item" id="0x7f0a000c" />

	<public type="string" name="group_applications" id="0x7f0a000d" />

	<public type="string" name="group_shortcuts" id="0x7f0a000e" />

	<public type="string" name="group_search" id="0x7f0a000f" />

	<public type="string" name="group_folder" id="0x7f0a0010" />

	<public type="string" name="group_live_folders" id="0x7f0a0011" />

	<public type="string" name="group_widgets" id="0x7f0a0012" />

	<public type="string" name="group_wallpapers" id="0x7f0a0013" />

	<public type="string" name="add_folder" id="0x7f0a0014" />

	<public type="string" name="add_clock" id="0x7f0a0015" />

	<public type="string" name="add_photo_frame" id="0x7f0a0016" />

	<public type="string" name="add_search" id="0x7f0a0017" />

	<public type="string" name="out_of_space" id="0x7f0a0018" />

	<public type="string" name="shortcut_installed" id="0x7f0a0019" />

	<public type="string" name="shortcut_uninstalled" id="0x7f0a001a" />

	<public type="string" name="shortcut_duplicate" id="0x7f0a001b" />

	<public type="string" name="title_select_shortcut" id="0x7f0a001c" />

	<public type="string" name="title_select_live_folder" id="0x7f0a001d" />

	<public type="string" name="menu_add" id="0x7f0a001e" />

	<public type="string" name="menu_wallpaper" id="0x7f0a001f" />

	<public type="string" name="menu_search" id="0x7f0a0020" />

	<public type="string" name="menu_notifications" id="0x7f0a0021" />

	<public type="string" name="menu_gestures" id="0x7f0a0022" />

	<public type="string" name="menu_settings" id="0x7f0a0023" />

	<public type="string" name="permlab_install_shortcut" id="0x7f0a0024" />

	<public type="string" name="permdesc_install_shortcut" id="0x7f0a0025" />

	<public type="string" name="permlab_uninstall_shortcut" id="0x7f0a0026" />

	<public type="string" name="permdesc_uninstall_shortcut" id="0x7f0a0027" />

	<public type="string" name="permlab_read_settings" id="0x7f0a0028" />

	<public type="string" name="permdesc_read_settings" id="0x7f0a0029" />

	<public type="string" name="permlab_write_settings" id="0x7f0a002a" />

	<public type="string" name="permdesc_write_settings" id="0x7f0a002b" />

	<public type="string" name="search_hint" id="0x7f0a002c" />

	<public type="string" name="gadget_error_text" id="0x7f0a002d" />

	<public type="style" name="WorkspaceIcon" id="0x7f0b0000" />

	<public type="style" name="WorkspaceIcon.Portrait" id="0x7f0b0001" />

	<public type="style" name="WorkspaceIcon.Landscape" id="0x7f0b0002" />

	<public type="style" name="SearchButton" id="0x7f0b0003" />

</resources>
arrays.xml - located in res > values-mdpi folder
<?xml version="1.0" encoding="UTF-8"?>

<resources>

	<string-array name="wallpapers">

		<item>wallpaper_lake</item>

		<item>wallpaper_sunset</item>

		<item>wallpaper_beach</item>

		<item>wallpaper_snow_leopard</item>

		<item>wallpaper_path</item>

		<item>wallpaper_sunrise</item>

		<item>wallpaper_mountain</item>

		<item>wallpaper_road</item>

		<item>wallpaper_jellyfish</item>

		<item>wallpaper_zanzibar</item>

		<item>wallpaper_blue</item>

		<item>wallpaper_grey</item>

		<item>wallpaper_green</item>

		<item>wallpaper_pink</item>

	</string-array>

</resources>

These are the only 2 files that reference the wallpapers in the launcher.apk

Link to comment
Share on other sites

Think I have solved the issue with the wallpapers, but I need to download the SDK so I can re-sign the apk file, haven't got time right now but will try and do it tomorrow evening....

Link to comment
Share on other sites

With that list of file names from the xml, another "solution" is actually quite simple. I've done it with the three remaining wallpaper files already in the launcher.apk I've tweaked and my wallpapers show up just fine.

My guess is that you can simply add your own wallpaper files with the same names of the files contained in the xml and you'll be good to go.

It's not elegant, but it should work. :huh:

Edit: Have anyone got a link to the original Expresso themed stock Launcher download? I'm trying to finish up a rom mod with Chinese support, and I'd like to work off of the "originals" instead of merely pulling them out of other roms.

Edit 2: I have replaced all the wallpapers and repacked the Launcher.apk. Yes, it works exactly as I guessed it would. But this means that the Launcher.apk is quite a bit larger, so it's not good if you are trying to save space.

Edited by twrock
Link to comment
Share on other sites

With that list of file names from the xml, another "solution" is actually quite simple. I've done it with the three remaining wallpaper files already in the launcher.apk I've tweaked and my wallpapers show up just fine.

My guess is that you can simply add your own wallpaper files with the same names of the files contained in the xml and you'll be good to go.

It's not elegant, but it should work. :huh:

Edit: Have anyone got a link to the original Expresso themed stock Launcher download? I'm trying to finish up a rom mod with Chinese support, and I'd like to work off of the "originals" instead of merely pulling them out of other roms.

Yes that's one solution I'm aware of.

THe link to the Expresso Themed Stock Launcher is in the FLB-MOD thread.

Link to comment
Share on other sites

Yes that's one solution I'm aware of.

THe link to the Expresso Themed Stock Launcher is in the FLB-MOD thread.

Hmm, 154 pages times 20 posts per page. 3000+ posts. Should be a piece of cake to find! :huh:

I'll keep looking.

Link to comment
Share on other sites

Hmm, 154 pages times 20 posts per page. 3000+ posts. Should be a piece of cake to find! :huh:

I'll keep looking.

Keeps you busy ;)

If you haven't found by lunch, I'll upload a copy and put a link here

Link to comment
Share on other sites

On a sidenote, the framework-res.apk does indeed contain compressed files. I found that out (the hard way) during the ROM checking routine of AnD3. I open an update.zip, create the filetree of all its files, run through the filetree and search for .apk and .jar files, load each file into a buffer and finally create the filetree of the buffered zipfile. Thus it is possible to examine a whole ROM and even the content of the apks inside it without the need of extracting it :huh:

However, I do the same with the files in those buffered zipfiles - I load them into a buffer. I then let a picturebox display this buffer, which works as long as the file I'm trying to display is not compressed. But sometimes it is and then AnD3 crashes =/

So there are compressed files in .apks and .jars.

Best regards,

BB

Link to comment
Share on other sites

On a sidenote, the framework-res.apk does indeed contain compressed files. I found that out (the hard way) during the ROM checking routine of AnD3. I open an update.zip, create the filetree of all its files, run through the filetree and search for .apk and .jar files, load each file into a buffer and finally create the filetree of the buffered zipfile. Thus it is possible to examine a whole ROM and even the content of the apks inside it without the need of extracting it :huh:

However, I do the same with the files in those buffered zipfiles - I load them into a buffer. I then let a picturebox display this buffer, which works as long as the file I'm trying to display is not compressed. But sometimes it is and then AnD3 crashes =/

So there are compressed files in .apks and .jars.

Best regards,

BB

Yep. Usually images are non-compressed, XML files etc are compressed (and encoded).

Link to comment
Share on other sites

On a sidenote, the framework-res.apk does indeed contain compressed files. I found that out (the hard way) during the ROM checking routine of AnD3. I open an update.zip, create the filetree of all its files, run through the filetree and search for .apk and .jar files, load each file into a buffer and finally create the filetree of the buffered zipfile. Thus it is possible to examine a whole ROM and even the content of the apks inside it without the need of extracting it :D

However, I do the same with the files in those buffered zipfiles - I load them into a buffer. I then let a picturebox display this buffer, which works as long as the file I'm trying to display is not compressed. But sometimes it is and then AnD3 crashes =/

So there are compressed files in .apks and .jars.

Best regards,

BB

See there? Some people actually know stuff. I got lost right around "AnD3". :(

Thanks Fibbblesan. I'm nearing completion of a minor rom mod for the three people in Taiwan who might want it. :huh: Good thing I've spent hours learning things like how to unpack and repack apks and sign roms. Oh well, it was fun. ;)

Link to comment
Share on other sites

Yep that is true.

I am attempting to prevent empty spaces in the Wallpaper Gallery. It doesn't stop the ROM from working or cause any issues, just sometimes I'm a perfectionist lol.

As I understand it, I need to extract the contents as I want to modify the XML files which are encoded. I have used AnDE to browse the APK before now.

Last night I started again using apktool and extracted the contents of launcher.apk and modified array.xml in res > values-mdpi and just left the three wallpapers that are in the file and removed entries that reference wallpapers that don't exist.

Then in res > values, i modified public.xml and removed all references to wallpaper_ as when I ran apktool to re-package the apk it would complain about the lines. I then got the apktool to successfully repackage the apk.

I now have to sign this apk before I can test it...the only way I can find to do that is to use the SDK and a batch file someone's wrote to do this. The only problem is I have a lot of work on at moment and I'm not sure when I'm going to get the time to do this.

If this does work, then the plan is to release the next version with 5 wallpapers with one been the J-MOD wallpaper. This, in my opinion will just make the ROM a little more polished.

Edited by JohnPorter
Link to comment
Share on other sites

i can sign roms dunno if its the same for apk`s :huh: if it is, upoad it somewhere and i will sign it

Thanks, I can also sign ROMs without trouble but I believe signing APKs are different. If you still want to try then I can upload the APK. Let me now.

Link to comment
Share on other sites

Well I got my APK signed and it doesn't work....back to the drawing board.

Has anyone got any ideas how to remove the empty spaces in the wallpaper gallery? I'm using the Stock Launcher.

Edited by JohnPorter
Link to comment
Share on other sites

Well I got my APK signed and it doesn't work....back to the drawing board.

Has anyone got any ideas how to remove the empty spaces in the wallpaper gallery? I'm using the Stock Launcher.

What APK are you modifying, sorry I know it's written somewhere but hell, simply to much posts in these threads :huh:

If I saw right and it's the Launcher.apk than it shouldn't be a problem, as far as I know the Launcher doesn't even need to be resigned after modifying, just like the framework and some other things (when I modded the apk's for my theme I just zipped them and put them in a flash-able zip altogether, then sign the zip). As I mather of fact the stock launcher that I posted on the FLB Mod thread is not signed after modifications and it still works.

APKtool is causing some problems on some apps. For example I used it to edit and then repack Gallery, Camera, Calendar, Explorer, Vending... without issues, never resigning ANY of these applications, but for Phone, Contacts and Settings it caused problems, they only worked if I zip the contents of the APK with WinRar using the store compression, just like the Launcher.apk I mentioned. And again, all apps in a flash able zip and no problems after that.

So I guess trial and error, that's how we learn ;) Cheers!

Link to comment
Share on other sites

What APK are you modifying, sorry I know it's written somewhere but hell, simply to much posts in these threads :huh:

If I saw right and it's the Launcher.apk than it shouldn't be a problem, as far as I know the Launcher doesn't even need to be resigned after modifying, just like the framework and some other things (when I modded the apk's for my theme I just zipped them and put them in a flash-able zip altogether, then sign the zip). As I mather of fact the stock launcher that I posted on the FLB Mod thread is not signed after modifications and it still works.

APKtool is causing some problems on some apps. For example I used it to edit and then repack Gallery, Camera, Calendar, Explorer, Vending... without issues, never resigning ANY of these applications, but for Phone, Contacts and Settings it caused problems, they only worked if I zip the contents of the APK with WinRar using the store compression, just like the Launcher.apk I mentioned. And again, all apps in a flash able zip and no problems after that.

So I guess trial and error, that's how we learn ;) Cheers!

It is the launcher.apk, but I'm not just replacing images, I want to modify the XML files which are encoded so need to be extracted and re-packaged using apktool.

Link to comment
Share on other sites

Don't think I'm going to be able to fix the wallpaper issue easily. The problem been to modify the XML files I need to decompile the APK, however look at it deeper, apktool needs a framework as well as the APK your trying to modify to be able to decompile and recompile the APK, and for the stock launcher I'm not aware of any framework attached to it (not talking about the framework-res.apk)

Unless someone can shed any light on this then am afraid I'm going to have to forget this issue and move on

Link to comment
Share on other sites

Right, I'm forgetting about the wallpaper issue and moving on. Unless someone replies to my post on xda-developers with a answer then it will be left as is.

My plans for this rom are as follows:

  • Re-do the the Boot Animation to a more up-market image along with the wallpaper
  • Create my own Theme for the ROM
  • Create my own set of icons that fit into my Theme.

If any of you guys have any suggestions then please don't hesitate to post them here and I'll consider them (can't promise I'll implement them all!).

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.