Problems Porting X10 ROM to G1 - G1 Android Development

So the guys over in the X10 Forum got the system dump from the X10 posted
Forum:
http://forum.xda-developers.com/forumdisplay.php?f=617
System Dump Post:
http://forum.xda-developers.com/showpost.php?p=6089394&postcount=23
I'm working on porting bits of it to my G1 as a side project/learning experiment. I'm using Cyanogen's latest release as a base and I got some various parts moved over, but I'm getting the error "E:Can't find update script" when flashing, even though I have the script at META-INF\com\google\android\update-script. It's unmodified from Cyan's base.
Is there something I need to add to the update-script to include the parts from the X10 system dump I added?

Mr17 said:
So the guys over in the X10 Forum got the system dump from the X10 posted
Forum:
http://forum.xda-developers.com/forumdisplay.php?f=617
System Dump Post:
http://forum.xda-developers.com/showpost.php?p=6089394&postcount=23
I'm working on porting bits of it to my G1 as a side project/learning experiment. I'm using Cyanogen's latest release as a base and I got some various parts moved over, but I'm getting the error "E:Can't find update script" when flashing, even though I have the script at META-INF\com\google\android\update-script. It's unmodified from Cyan's base.
Is there something I need to add to the update-script to include the parts from the X10 system dump I added?
Click to expand...
Click to collapse
is your meta-inf folder intact? there should be other files in there besides the com folder.

Yup, heres the structure:
META-INF
-com
--google
---android
----update-script
-CERT.RSA
-CERT.SF
-MANIFEST.MF

i had some errors like this... try changing the name of your update.zip

I managed to port it over, but it was just a themed 1.6, couldn't get any of the X10 apps to work (do you have to do something differently with the .odex files?) It booted fine though.
I can send you my update-script if that will help at all?

Thanks for the reply, the original file name was x10-test-1-signed.zip, I changed it to test.signed.zip and it did the same thing. I also tried update.zip with the same result.

Hey Meltus, that would be helpful, then i can compare the 2 and see what im missing.

also: if you leave the odex files out, the system will create them automatically, that might help?

ah i'll try that, thanks.
Here's the update-script file i'm using. [attached, remove .txt] I nicked it from some ROM, can't remember which lol (sorry )
Also, does anyone know how to change the resolution? It is SERIOUSLY messed up lol.

Meltus said:
Also, does anyone know how to change the resolution? It is SERIOUSLY messed up lol.
Click to expand...
Click to collapse
I thought it was in the build prop? I didnt see it in there though. not in the one i have anyway.

actually, i bet if you changed this line in the build prop:
ro.sf.lcd_density=240
to
ro.sf.lcd_density=160
it would probably help

I tried your update-script and I got the same err :/

Mr17 said:
actually, i bet if you changed this line in the build prop:
ro.sf.lcd_density=240
to
ro.sf.lcd_density=160
it would probably help
Click to expand...
Click to collapse
nah tried that, didn't help
Not sure why it's not finding the file. Try redoing the folder layout.

I tried rebuilding, no go. would you mind sending me what you have? maybe we can get that working?

Well, my update.zip doesn't do anything atm. (gonna deodex all the files first and see if that works) but it flashes. It only works if you fastboot all the .img's first and then flash the update.zip though.

I often found that you don't ZIP the main folder you keep your data, system and other folders in, but the ones inside it. You select all of them, ZIP and name it "update". Then sign. Try using this method.

What are you using the zip the archive? Try using 7-zip? Sounds like Android doesn't know how to unzip your zip file.

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

boldfilter said:
Click to expand...
Click to collapse
That's precisely what I was trying to express

roccodaone said:
That's precisely what I was trying to express
Click to expand...
Click to collapse
I was doing the exact same thing yesterday lol

Related

[Unbranded!]HTC Sapphire/Vodafone Magic System folder!, Get It while it's hot!

Full drop was not posible.
So made a copy of the System folder.
If you like the work of me & my source, don't forget to help us buying a beer.
Get it while it's hot!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Version:
20090109 Sapphire Asia WWE
DROP OF THE SYSTEM FOLDER:
http://www.xmoo.org/android/htc_sapphire_system.rar
nice- can't wait to see what JF can do with this!! i noticed there is a built in pdf reader too...
0_o
ooooo...I'm excited for this, what the outcome will be.
^-^
PDF Reader?
Interesting, there seems to be a PDF reader in there, and an FTP client. Did you install these on your phone, or were they supplied with it? It'd certainly be nice to have pdf capability in the new cupcake update for the G1...
We may get a taste of cupcake early depending on what JF does with this.
NOTE:I'm tired as crap cause I stayed up for 48 hours but I'm so happy cause of this. Excuse my errors.
I'm gonna be the risk taker here and try to apply this on a G1. I should be able to use my backup from nandroid if anything happens. So all this is the system "partion" as fastboot seems to describe it as? So basicly I have to mount system via recovery and replace it?
otto888 said:
NOTE:I'm tired as crap cause I stayed up for 48 hours but I'm so happy cause of this. Excuse my errors.
I'm gonna be the risk taker here and try to apply this on a G1. I should be able to use my backup from nandroid if anything happens. So all this is the system "partion" as fastboot seems to describe it as? So basicly I have to mount system via recovery and replace it?
Click to expand...
Click to collapse
Keep us updated on how this goes. I'm very interested to see the results.
Gimpeh said:
Keep us updated on how this goes. I'm very interested to see the results.
Click to expand...
Click to collapse
tried to use mv...cant boot into normal anymore...checking if system is changed any
EDIT: Pic shows system...
sethp said:
Interesting, there seems to be a PDF reader in there, and an FTP client. Did you install these on your phone, or were they supplied with it? It'd certainly be nice to have pdf capability in the new cupcake update for the G1...
Click to expand...
Click to collapse
This was all in it.
I may get this to work by making it into an img file(nandroid backup file)...How would I do that....on Windows 7?
EDIT: IDEA! Install the latest cupcake build from andblogs.net and try installing all of this stuff manulaly
Could you just copy say, the PDFReader.apk onto your sdcard and install it from there? Or drop the apk into an update.zip?
I tried to install the PDFreader but it fails due to missing libraries. How do I load this firmware into the emulator so I can mess arround with that one instead?
Crazy idea. Take the latest JFrc33 update and overwrite any file in the update with the magic system files...should atleast boot
Lots of HTC stuff
uherrera said:
I tried to install the PDFreader but it fails due to missing libraries. How do I load this firmware into the emulator so I can mess arround with that one instead?
Click to expand...
Click to collapse
Yeah, to be more precise it's missing all the HTC framework stuff. Doubt you would get away with just adding that stuff to your install:
Package com.htc.pdfreader requires unavailable shared library com.htc.framework; ignoring!
Click to expand...
Click to collapse
Somebody should change the subject to HTC Magic System Folder.
Then more people would go to the thread.
pdf reader, etc
hmm, i tried copying the frameworks into system/framework and then installing the .apk file, but that didn't seem to work. Do additional frameworks need to be registered, i wonder?
dwang said:
Somebody should change the subject to HTC Magic System Folder.
Then more people would go to the thread.
Click to expand...
Click to collapse
Changed to HTC Sapphire/Vodafone Magic
Cause officialy it's from the HTC not Vodafone.
Tried my update idea...boots to recovery...atleast it boots now.
HTC Framework stuff
sethp said:
hmm, i tried copying the frameworks into system/framework and then installing the .apk file, but that didn't seem to work. Do additional frameworks need to be registered, i wonder?
Click to expand...
Click to collapse
Yup. See the bottom of /system/etc/permissions.xml
Thing is, I wouldn't be surprised if the android build this thing expects is newer than your current one, with assorted changes in the API, and if the HTC framework stuff depends on more HTC stuff lower down the stack (I notice there's a "libhtc_ril.so" for instance in /system/lib - not looked into what exactly it contains tho).
As a result it'll probably take a bit more than just dropping things into your current installation. That said, I'd love to play around a bit more if I weren't at work
Stop update your phone using these file. These file is made for Magic, not Dream. It has driver file for Magic, not Dream. Wait for JF and stop doing stupid things.

[THEME]Lockscreens for CDMA

I found out the hard way that this won't work for the CDMA hero (don't judge, I got my first Android phone last week) so I set out to port this to work on CDMA.
If you have some sort of custom these running, this may or may not break it, These are based on Modaco's 1.1
eViL Lockscreen Port:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Transparent Lockscreen:
Please do nandroid backup before proceeding
Attached is com.htc.resources.apk that needs to be pushed to /system/framework
One way to do it is by copying com.htc.resources.apk to a directory called lockscreen on your sdcard, and using SDK tools
Code:
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cp -r /sdcard/lockscreen/com.htc.resources.apk /system/framework/
reboot
Download:
eViL Port:
com.htc.resources.apk
update.zip Thanks to Thann
Transparent:
com.htc.resources.apk
update.zip
Enjoy
nice work, what exactly had to be done to convert this to cdma?
nothing too hard, just had to move 4 images from the original lockscreen into a CDMA hero com.htc.resources.apk
this isnt working for me, I get access denied if i type it like you put. I put in the command su and it let me do the first line, but then i get cp not found???
ruskiyab, if you want I can package all these files as a signed update.zip you could just run from the recovery mode. The lock looks good, and it would remove the need for command line work.
Thann said:
ruskiyab, if you want I can package all these files as a signed update.zip you could just run from the recovery mode. The lock looks good, and it would remove the need for command line work.
Click to expand...
Click to collapse
hook it up
For some reason I just can't upload to XDA today, it just keeps failing. The file is here so be sure and tell me if you have any problems.
Thats, I haven't really gotten around to reading about signing the update.zip files yet
Thann said:
The file is here so be sure and tell me if you have any problems.
Click to expand...
Click to collapse
Guinea pig approved, looks/functions great.
Did nandroid backup just to be sure, but everything works fine. Looks very good too!
I love the lockscreen. Would you mind if I include this in my Gutted Hero rom?
Ahhh you beat me to it. I was gonna do the same. I figured out how to port the themes and sign them.
Great work ruskiyab good to see other people joining in with customizing our Hero's!
chuckhriczko said:
I love the lockscreen. Would you mind if I include this in my Gutted Hero rom?
Click to expand...
Click to collapse
Ofcourse! I stole your animations and Rosie, it's only fair
New transparent lockscreen added!
How would one edit, or create there own lockscreen?
Is the clear lockscreen the same as the one ratcom posted?
If not, can you provide a screenshot? thanks!
I'd like to know how to create my own aswell and sign the update too!
The screen shot is in the OP
ruskiyab said:
The screen shot is in the OP
Click to expand...
Click to collapse
ahh, thanks.
the site that is hosting the pic must be blocked at work then, because I don't see any pics in the 1st post.
I'll look tonight before trying to flash it in
EDIT: bvm, I switched to our wireless test network (glad I'm in IT) and I was able to see the pics. It looks like the same one ratcom used/posted.
Now I just need to lookup how to make my own, lol
This looks great. Thanks for sharing!
Any chance we can get an update.zip file made to revert the lock screen back to the original one? I did make a nandroid backup, but I'd rather not have to use it just for the lock screen. Thanks in advance!

Is there a way to get the 3G Icon to replace the ev?

for sprint hero?
booo. lame.
apparently its just a matter of changing a few .pngs in what we already have (no matter the build?) but im too scared to f*ck with it
ill try it lol i just need a guide or something
just replace them in the apk with the ones you want (same name), then build a install zip, sign it, and push via adb or install via RA
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
can i have a little more details?
N0J said:
just replace them in the apk with the ones you want (same name), then build a install zip, sign it, and push via adb or install via RA
Click to expand...
Click to collapse
hey NOJ what file would i play with to get the font to green with your theme love it BTW hope your having as good of a holliday as i am
how would i open and edit the files?
aauussttiinn88 said:
hey NOJ what file would i play with to get the font to green with your theme love it BTW hope your having as good of a holliday as i am
Click to expand...
Click to collapse
Thanks!
not bad, although I'm just now getting to relax and enjoy...
TBH, I've never been very good with xml modding.
That's were I ask favors from flipz, lol
N0J said:
Thanks!
not bad, although I'm just now getting to relax and enjoy...
TBH, I've never been very good with xml modding.
That's were I ask favors from flipz, lol
Click to expand...
Click to collapse
lol its all good...thats what nandroid is for i guess...good lookin on the theme tho....i wanna put a disc golf one together
kys89012345 said:
can i have a little more details?
Click to expand...
Click to collapse
kys89012345 said:
how would i open and edit the files?
Click to expand...
Click to collapse
in alot of the roms I've used, there have been 3g variations in the files, just not in the right place or named correctly for CDMA. You can grab those if you want or create your own. Name them the same as the ones you want to replace. Open the apk with winzip or whatever app you use, find the files you want to replace, then drag the new ones into the apk.
If you get a prompt about encryption, choose other, then no encryption.
After that, build a folder structure just as if the app would be in the phone.
ex: system/framework/
- place the apk inside of the framework folder, and zip it.
- next you need to sign the zip, I'd use flipz's kitchen
- install via RA (place on sd card, reboot into recovery and install)
how would i open and edit the files?
kys89012345 said:
how would i open and edit the files?
Click to expand...
Click to collapse
with your favorite graphic editor, their png files.
beyond that, you might want to make a request in the thread where you got the ROM.
what ROM and addons are you using anyway?
here's a metamoprh zip that will change to 3g icons, and nothing else.
danaff37 said:
here's a metamoprh zip that will change to 3g icons, and nothing else.
Click to expand...
Click to collapse
hey man thanks!!
but, back to the long way. i found the right file, (using regaw mod, comes with the 3g icon) what do i change it to?
thank you for the zip I booted into recovery and flashed it but i still have the EV?
it's not a zip you flash. Download metamorph from the market, and install it from there.
and mountain... I just used the default 3g icons in framework-res.apk and placed them into com.htc.resources.apk with the metamorph
thankx guys I got it working
no problem
I installed MetaMorph, but at the beginning it says start basic checks to see if your phone can run, and it just hangs there and says its not responding, asks to wait or FC, please help

[Q] Need help with com.android.systemui has stopped working

Hi all,
everytime I reboot the phone I get this error message.
I think it's because I used titanium backup to delete 3 files which had to do with korean / hindu and another language file or something similar...
besides the screenshot, I have no idea how to provide logs.
Appreciate the assistance.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Attached LOGCAT
Pretty sure it's the files you deleted. Are you on stock rom? If so, just flash the system.img. If custom Rom, dirty flash it
If I'll flash system.img, then I'll lose some settings.
Is there a way to download the system apps or open the .img file?
if none of the above, can you please see if there's an error in the logcat?
gil80 said:
If I'll flash system.img, then I'll lose some settings.
Is there a way to download the system apps or open the .img file?
if none of the above, can you please see if there's an error in the logcat?
Click to expand...
Click to collapse
Download a stock rom zip (make sure you get the deodex or odex one that matches your current set up) and open zip. Browse to /system/app/ and pick the apks you need. Move them to your internal storage and use a file explorer with root access to copy to the /system/app folder in your phone. Make sure you change the permissions and reboot. IF that is what caused it, that will get you back to normal. If it doesn't, then just dirty flash. You really won't lose that much stuff.
Also, sometimes just clearing caches and fixing permissions in recovery can help, and if it doesn't, it won't make it worse.
If you need more help, make sure you post quote or hit me up on Hangouts.
es0tericcha0s said:
Download a stock rom zip (make sure you get the deodex or odex one that matches your current set up) and open zip. Browse to /system/app/ and pick the apks you need. Move them to your internal storage and use a file explorer with root access to copy to the /system/app folder in your phone. Make sure you change the permissions and reboot. IF that is what caused it, that will get you back to normal. If it doesn't, then just dirty flash. You really won't lose that much stuff.
Also, sometimes just clearing caches and fixing permissions in recovery can help, and if it doesn't, it won't make it worse.
If you need more help, make sure you post quote or hit me up on Hangouts.
Click to expand...
Click to collapse
looking at the logcat I uploaded I searched for "fatal" and it found 1 fatal issue which is com.android.systemui and it appears to be something with the battery icon which I changed using GravityBox. But the change was a week ago so I don't know what was changed.
Switching back to stock battery icon and I no longer have this issue.
But it seems that I have more errors on the log file. Do you of a forum which can assist with understanding the errors I have and how to fix them?
gil80 said:
looking at the logcat I uploaded I searched for "fatal" and it found 1 fatal issue which is com.android.systemui and it appears to be something with the battery icon which I changed using GravityBox. But the change was a week ago so I don't know what was changed.
Switching back to stock battery icon and I no longer have this issue.
But it seems that I have more errors on the log file. Do you of a forum which can assist with understanding the errors I have and how to fix them?
Click to expand...
Click to collapse
I get this after a titanium backup restore. No idea why it does it I mean isn't that what titanium backup is for?

Delete

Delete
Thank you very much for sharing
Thanks for sharing. But I can not see any system img files via 7zip without previously repaired. May I use repaired system img files?
You must be doing something wrong. I've tried WWE and Orange PL and both extract without repairing.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks for sharing.
thank u!
Thanx mate later that day ill extraxt System dump an share it with you guys.
Thanks for the DiskInternals thingy
Since i never needed to extract a System.img I never looked for a method but I will remember this. Seems fairly straightforward.
And thanks for the creds.
I will try this one.
Btw, i made a backup with twrp. Ia there any way to get the backed up system.emmc.win file extracted? Renaming it to .tar doesn't work.
What I try to achive is an extracted ROM so I can deodex the apks
DroidShift79 said:
I will try this one.
Btw, i made a backup with twrp. Ia there any way to get the backed up system.emmc.win file extracted? Renaming it to .tar doesn't work.
What I try to achive is an extracted ROM so I can deodex the apks
Click to expand...
Click to collapse
add .tar to the end of each image and under Linux or cygwin use tar -xvf xxxx.tar
Hmm... Hoped there's anything for win 8.1
...setting up cygwin
Edit: @LeeDroid
Nothing happens when doing the command in the cygwin window...
Worked like a charm
I did have to edit the ConvertHima.bat and remove the line set wf=%cd%\ for it to work
but everything else was spot on .. thanks!!
Anyone need the 0PJAIMG_HIMA_UL_L50_SENSE70_ATT_NA_Gen_Unlock_1.32.617.6_R2_Radio_01.01_U11440221_59.04.50303G_2_F_release_426167_signed.zip
System.img or Dump
Worked great I think. I did get an error, and I received this error 4 times for sparse.img, 2,4,6,8. Here is the error: - "1 [main] sparse2img 7912 find_fast_cwd:". It also says "WARNING Couldn't compute FAST_CWD pointer. Please report this problem to the public mailing list [email protected]". I wrote cygwin, and got a reply from a Marco stating, "Dear Hal, Same answer as given last month to another guy". Then gave me this link https://cygwin.com/ml/cygwin/2015-05/msg00318.html. Followed by, "Please report the solution to whom provided the ConvertHima.bat". The answer in the link basically says a utility called rsync is being used, and the person who provided it is bundling it with an old version of the cygwin kernel. I did however get a new system_hima.img, and I started ConvertHima.bat. After completion I have what appears to be a complete system image. It's 3.53Gb in size, and has the folders - app, bin customize, etc, fonts, framework, lib, lib64, lost+found, media, priv-app, tts, usr, vendor, xbin, and has the file build.prop. It appears to have all the Deodexed APK's in app and priv-app. This is from the T-Mobile RUU. I'm using Window 8.1.
I'm trying to create a system dump (1.40.708.9)but was stuck at step 2. Where can I download my ROM.zip?
xunus said:
I'm trying to create a system dump (1.40.708.9)but was stuck at step 2. Where can I download my ROM.zip?
Click to expand...
Click to collapse
i think you misunderstand what this is for
flex360 said:
i think you misunderstand what this is for
Click to expand...
Click to collapse
That could be true. Seems like this is to extract M9's rom from an RUU and not from the phone itself.
Mr_Bartek said:
You must be doing something wrong. I've tried WWE and Orange PL and both extract without repairing.
View attachment 3226483
Click to expand...
Click to collapse
Can you send me the file system.img_01 ?
htsang08dqt said:
Can you send me the file system.img_01 ?
Click to expand...
Click to collapse
https://forum.xda-developers.com/one-a9/development/decrypt-ruu-ruu-decryption-script-htc-t3282562
Is there a Linux version of the sparse2img.exe? I am in need of this because I don't have the system.img but I have the system.img_xx chunks from the RUU ZIP.

Categories

Resources