build my own update.zip error - G1 Android Development

i try to build my own update.zip
i use haykuro's build 4.9 update.zip, and i add the chinese fonts in to update.zip
but the error happen in recovery utility
the error message is
Code:
E:Can't chown/mod /system/xbin/su
(No such file of directory)
E:Failure at line 121:
set_perm 0 0 06775 SYSTEM:xbin/su
Installation aborted
my working process is
1.upzip haykuro's build 4.9 update.zip
2.add chinese fonts in to system/fonts
3.zip the directory
4.resign the update.zip using signapk.jar
5.put the signed file into sd card
6.enter recovery utility
all the process is working in windows xp sp3
my device is ADP1
recovery utility version is JF v1.4.3
thanks a lot.
===UPDATE===
i get the reason of this trouble
because Chinese font size is too big
original haykuro's build 4.9 rom got 2000k free space
but Chinese font need 3000k
so some file can't flash to system

Your unzip program probably screwed up the archive.
In any case, why are you bothering inserting it into an update? You can put files into /system by remounting it as rw. Also, i'm curious; why are you bothering to add new fonts? The default fontset already has support for zhcn and zhtw.

it can't show the chinese text in original haykuro's build 4.9 rom
{
"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"
}
because the font file is not the same with haykuro's build 4.5
in build 4.5 the font file (DroidSansFallback.ttf) size is 3081908 byte
but in build 4.9 the file size is 117072 byte
so i add chinese font in to update.zip by myself
but get some trouble

Copy the font to your sdcard. Then use Terminal Emulator to remount /system and copy the font from sdcard to the font directory. Or connect Dream to PC and adb push it into the font directory. Should work after you cold reboot.

are you sure you didnt edit the isntall script? it says "set_prem" but should be "set_perm" (prem vs perm) as far as i recall.
Code:
set_prem 0 0 06775 SYSTEM:xbin/su

Darkrift said:
are you sure you didnt edit the isntall script? it says "set_prem" but should be "set_perm" (prem vs perm) as far as i recall.
Code:
set_prem 0 0 06775 SYSTEM:xbin/su
Click to expand...
Click to collapse
i didn't edit isntall script.
that is my spell error and i correct it
thanks

jashsu said:
Copy the font to your sdcard. Then use Terminal Emulator to remount /system and copy the font from sdcard to the font directory. Or connect Dream to PC and adb push it into the font directory. Should work after you cold reboot.
Click to expand...
Click to collapse
i think that is a good idea.
i will try later

I see, you want to show the os interface in zhtw as well. Hope it will work. Did you import your G1? I heard rumors that 中華電信 is going to introduce G1 for TW. Their prepaid 3G data rates are terrible -_-; I spent ~3000NT just for email and Google Reader in one month!

jashsu said:
I see, you want to show the os interface in zhtw as well. Hope it will work. Did you import your G1? I heard rumors that 中華電信 is going to introduce G1 for TW. Their prepaid 3G data rates are terrible -_-; I spent ~3000NT just for email and Google Reader in one month!
Click to expand...
Click to collapse
i think it will introduce HTC Magic for TW
because the haykuro's build 4.9 update.zip has some customize file in system\customize\
CHT__601.xml
Code:
<set name="plenty" max="15">
<item name="title">Hami</item>
<item name="url">http://hami.emome.net</item>
</set>
emome.net is Chunghwa's mobile web site
so, i think Chunghwa is high probability introduce HTC Magic for TW
if your are Taiwanese Android user, you can go to http://android.cool3c.com to join discussion.

Related

[MORPH] Clear SetCPU widget

here's a metamorph for a clear setcpu widget...you just need to move setcpu to /system/app however you know how...
{
"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"
}
extract the folder from the zip and put it in AndroidThemes, then apply.
clearsetcpu.zip is for anyone who downloaded setcpu through the market, its named differently through his post on these forums..
how about a morph for those other icons on ur home screen?
sorry the clearsetcpu doesnt work..
i bought my setcpu from the store so decided to try it
metamorph complains "the theme you selected is invalid because the theme control file could not be read and may be missing"
other themes i have applied fine..
download the clearsetcpu.zip and put the folder inside it in your androidthemes folder. ones setcpu.apk and ones com.mhuang.overclocking...
you have to have setcpu in /system/app too...it wont work if all you've done is downloaded setcpu..
what do you mean there is no folder inside it.. you put the .zip files in the androidthemes directory and metamorph finds theme and applies them..
there is no option to apply 2 files at once .. when i try to apply the .zip file i get the error above.
I also checked there is no setcpu.apk in /system/app
but i also double checked and i did download from market and it does show up in my marked list as installed.
and it does run.
you need to move the .apk from /data/app (or /sd-ext/app) to /system/app and then apply the morph.
The morph zip needs a small fix (remove extra level) to make it directly usable. Attached.
you need to move the .apk from /data/app (or /sd-ext/app) to /system/app and then apply the morph.
The morph zip needs a small fix (remove extra level) to make it directly usable. Attached.
Click to expand...
Click to collapse
thanks ... so much for the statement about the 2nd hack working for anyone that downloaded through the market.
I use sufbs to remount system as read/write and copied from /data/apps to /system/apps and reistalled from there .. then the morph worked fine..
then removed the other copy in /data and remount fs read only..
also removed the stupid amazon mp3 download while i had system unlocked since it wouldnt let me delete it the normal way.
MyxdaUsername, would you mind placing this and/or any other morph into this thread: http://forum.xda-developers.com/showthread.php?t=654858.
Thanks just wanna get all Morphs into one thread
Copy and paste
I am able to pull the com.mhuang.overclocking.apk but when i try to push it i get failed to copy read only file system. what am i doing wrong? the command im using is adb push c:\com.mhaung.overclocking.apk /system/app
are you pushing from your phone or from a pc
Thanks for this. Looks badass.
Yep, I just wanted to say thanks for this also. I didn't like the background at all on this and the clear/naked goes well with my screen on my droid.
Keep up the good work.
Needs the xml for the new MetaMorph version. Hopefully we'll get an update.
djnutz said:
Needs the xml for the new MetaMorph version. Hopefully we'll get an update.
Click to expand...
Click to collapse
...just added xml.file for new MetaMorph.
Hellz yeah. That was quick lol.

[solved] resized data img for incubus26jc's froyo 2.2

Can anybody share a 1G data.img? I am not familiar with linux but I want more space on my polaris.
regards
EDIT: the solution here http://forum.xda-developers.com/showthread.php?t=741383
Code:
This can be done with any data.img... even existing one one.
Boot phone in windows mobile. attach to linux box(linux computer or live cd) in disk mode(when u attach hd2 to computer it will ask mode,select disk mode).
go to terminal.
go to the /media
then go to the directory which represents your hd2 phone, then to [B]andboot [/B]directory.
then enter following commands
e2fsck -f data.img
(if it asks to fix say y)
resize2fs -p data.img 512000
(this is for half gb, change it as per requirement)
e2fsck -f data.img
Then reboot the phone.
You may see green screen. if so, simply reboot again.
works like a charm.
no need to download huge file. can be done with a used data.img at any time and any number of times.
Last edited by bhaveshdj; 1st August 2010 at 03:43 PM. Reason: to give more info
You need to install ubuntu first / You do not need any partitions
Install normally first, system to NAND and data to data.img
Remove the card from the phone
Move the card to the phone and reboot
You are done.
Storage shows 2,36 G for me now (2,13 G free after installing 60 programs), and I still have 11,55G for music, maps and so on !
kk last kernel + incubus26jc's RLS14
{
"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"
}
Note: do not ask me to share it because it constains all personal configuration and I do not know yet how to clean it.
Now the question is: when I want to update to next release, what do I have to do? install data to data.img and resize it again? or I can overwrite with my old&big data.img file?
you can create it using boot script generator (select the size)
ok I thought your tool required the nbh posted in your thread.
I have created the sh file but before I flash may be you can help me:
1. What I want to do is to install all apps to my 16g sd. Typically in windows mobile I keep 6g in music, 4g in onroad and offroad navigators and maps 1g on installed apps and 2g on non installed apps.
2. After quite a lot of reading, I do not understand which options do I have with incubus26jc's froyo 2.2. for pola100: apps2sd? dataimg? ext2 partition? linux swap on a third partition?
3. Your tool can help creating partitions? does it exist an easy way to create partitions from windows with no linux and no money?
4. Which set-up would you recommend to me data.img or ext2? I like it fast boot and fast performance so I am trying nand install.
5. I can not flash from the sdcard so I flash the nbh from windows and leave the rar file in andboot. If I leave your sh in andboot will it work?
6. If I do not use the script generated by your app and resize data.img manually will I have to do it everytime I try a new ROM?
thanks so much for your help so far.
new nbh has all you need to make it works inside.
i'm writing a new tool to partition sd card but is in alpha version and i need dzo release my file...
Well it seems not easy to me:
I stick to Kakt_Kaffe kernel + incubus rls 14 since i have wifi and camera with no probs. I have installed ubuntu and formated the sd card with fat32,ext and lynux-swap but I can not install data to the partition. sigh
I have also tried with the same kernel your script and I does not boot.
I will try to resize my data.img in ubunto (reinstalling now because I rebooted ubuntu without noticing it was downloading a system uptade)
If you need beta testers for the sd partitioner I can do some testing.
Solution in first post.
Now the question is: when I want to update to next release, what do I have to do? install data to data.img and resize it again? or I can overwrite with my old&big data.img file?

Has anyone installed a modified widgetlocker.apk to nexus s?

So I installed widgetlocked from the market and it all runs lovely. However, I wanted to use the Ultralinx mods for it.
I tried a few different ways, extracting it with root explorer. Copying the .apk to my desktop and modding the files there and signing them with signapk, but the modified .apk will not install no matter what I try. It always comes up with 'Application not installed'.
I am a bit newb at this I admit but have installed other apks just fine.
Any help appreciated
Figured it out. HAD to use adb. No other method would I tried would work, but that did first time!
I was trying to PM you, but they weren't going through...
Anyway, is there any chance you could tell me how you did this? I've tried every other method and nothing has happened. Whether it's because I own a Nexus S or a Mac, I don't know, but it's pretty hard (though I am new to this).
Regards,
Jon.
I usually use WidgetLocker, would you mind explaining what the modded one is? Thanks
The modded version I mention is UltraLinx's lovely unlock slider mod as in these pics.
{
"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"
}
Both available from here: http://www.theultralinx.com
As I mentioned the only method I could get to work was using ADB and Ultralinx actually has a youtube video on his site about how to do it, but I will list it here anyway.
Your phone needs to be rooted to do any of this...
Install WL as normal from market.
Copy the file com.teslacoilsw.widgetlocker-1.apk from data/app to /sdcard somewhere using astro or rootexplorer etc.
Then move that file to your computer desktop into the /sdk/tools dir where adb.exe is.
Add the WL modded files from Ultralinx to that .apk in the /res/drawable-hdpi/ directory using winrar or whatever program you use to open/mod .apk files. Make sure it has overwritten the original files!
Fire up a command promt and change dir to where adb.exe is sdk/tools or whatever.
type these next couple of lines and enter after each one;
abd shell mount /system
adb push com.teslacoilsw.widgetlocker-1.apk /system/app
Then reboot your phone and that should be it done. You can select the new slider from WL options (it modded the iphone slider so select that).
As I say, this is the only way I could get the thing to work.
Coming from windows mobile this whole abd thing of modding stuff seemed a right pain in the arse but I guess like anything once you have done it once you know it for next time and I think this mod is worth it.
Hi,
thanks for the instructions!
I've encountered an issue and would appreciate if you could help. So i follow your steps, however i get the following issue after the push command:
failed to copy 'com.teslacoilsw.widgetlocker-1.apk' to '/system/app/com.teslacoilsw.widgetlocker-1.apk': Read-only file system
I'll really appreciate if you could help, thanks!
Update: So i managed to push it successfully. Problem was I needed to enter the command adb remount beforehand in order for it to let me write.
sage: mount [-r] [-w] [-o options] [-t type] device directory
Red-Teams-MacBook-Prolatform-tools cloakroom$ adb push com.teslacoilsw.widgetlocker-1.apk /system/app
3158 KB/s (1202848 bytes in 0.371s)
However, even after rebooting the phone I am still stuck with the old iphone slider and not the one made by ultralinx. Any thoughts as to why this is?
Do i have to uninstall widgetlocker from my phone before i pushed the modded apk?

[Q] Recompiling framework-res.apk problem

Hello,
Was following http://forum.xda-developers.com/showthread.php?t=1109962&page=8# to try and get SIP support on an SG SII running 4.0.3 LPQ [Polish] build.
I had to use another method to decompile and recompile my framework-res.apk due to a bug in apktool. That works well and it recompiles. I followed the instructions in the thread above to the letter, including removing info from the keep folder and eventually get a signed APK.
I copy the APK to my device, restart and suddenly I get loads of force close errors before it eventually restarts. This loops. At the moment I'm copying it in via ES File Explorer or manual 'cp' command in Terminal Emulator.
Please can anyone give some insight into what I'm doing wrong?
Thanks
I don't know what the cause is actually, but here is how I edit framework-res.apk.
If i want to make changes to the code, I extract classes.dex from the package and decompile it with baksmali
"java -jar baksmali-1.3.2.jar -o dexout/ classes.dex "
then i make the changes to the code and i recompile it
"java -Xmx512M -jar smali-1.3.2.jar dexout/"
Then i rename the out.dex file to classes.dex and add it to the framework-res.apk package
And if you need to add/change images just drag n drop the files inside the apk
Hope that helps you
very very sorry wrong post
Try pushing the apk to your phone in recovery mode, with the system partition mounted. Changing framework-res.apk while the phone's running can cause all kinds of odd bugs.
Sent from my U20i using xda premium
Have you updated your SDK tools? I thought that with rev.17 they fixed the bugs with re-compiling. If not, the easiest way I fixed it was to de-compile, then search and open all the plurals.xml files in notepad++, then at the end of almost all the files there will be a line of code that has two(2) %'s in the same line. That's what kicks up the error. all you have to do is add a second % to the last one. Using notepad++ makes this really easy, just use find and replace: FIND- %d</item> REPLACE- %%d</item>
{
"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"
}
To this:
Then I re-compile. I then go to framework-res/build/apk/ and pull out the resources.arsc and any other files I edit(res\values\bools.xml, in your case) and copy them back into the original framework-res.apk, that way I don't have to mess with any signatures or anything else. reboot to recovery, mount system, adb push framework-res.apk, adb reboot.
p.s. This is the only way I have been able to edit, build, and flash framework-res.apk in ICS without problems like fc's and other things. I hope this helps a little bit. and all I use is
Code:
apktool d framework-res.apk
and
Code:
apktool b framework-res newframework.apk
but with this method it always works.
Interesting. I'll bear that in mind but I wouldn't have thought that would cause any bugs. The syntax is technically correct, it's just a little odd.
Sometimes this code makes no sense..lol
Sent from my U20i using xda premium
Ticklefish said:
Interesting. I'll bear that in mind but I wouldn't have thought that would cause any bugs. The syntax is technically correct, it's just a little odd.
Sometimes this code makes no sense..lol
Sent from my U20i using xda premium
Click to expand...
Click to collapse
Yeah a guess it was a "feature" they add in aapt for ICS, but like I said I think they fixed it in rev 17, but I haven't confirmed this yet.
Sent from my Ice Creamed 3D
Ah, that could be right. I'm not on ICS yet. Guess I need to pay more attention when I do!
Sent from my U20i using xda premium

unable to copy a certain file

Not sure which channel to put this in, please move if this is not the correct one.
I am unable to copy a certain file. At first I tried using a cloud share app, then USB file transfer, then ADB, then local file browsing apps, finally a terminal emulator. All fail. I can see the file and the app that created it can interact with it, but I cannot copy the file, permission denied. Phone is rooted. This is a large file created by TitaniumBackup. It's large because the backed up app has a lot of data, about 4 GB worth. I can copy all the small files that Titanium creates during its backup process, including the apk and properties files. And I can rename the big file, even delete it, just not copy.
I don't think it matters but this is a rooted Pixel 5 with stock ROM.
Apparently the same issue is within Titanium itself. It can delete backups but not upload to the cloud using the built-in function to Sync to Google Drive. I am thoroughly confused.
Can you run 'chmod 777' for that special file in advance as your system has been rooted?
James_Watson said:
Can you run 'chmod 777' for that special file in advance as your system has been rooted?
Click to expand...
Click to collapse
No issue chmoding but then can't copy still. Tried copying to the same dir and to my Download and Documents folders, same result.
{
"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"
}
PRL77 said:
No issue chmoding but then can't copy still. Tried copying to the same dir and to my Download and Documents folders, same result.
View attachment 5147605
Click to expand...
Click to collapse
According to the screenshot, it means that you have no permission to create cp.gz in this directory. So, try to run chmod for the directory at first.
James_Watson said:
According to the screenshot, it means that you have no permission to create cp.gz in this directory. So, try to run chmod for the directory at first.
Click to expand...
Click to collapse
I was told that chmod doesn't function in /sdcard due to how it's mounted. So I went into /data/media/0/TitaniumBackup that can chmod there but still can't adb pull the file.
Before chmod: -rw------- 1 u0_a256
After chmod: -rwxrwxrwx 1 u0_a256
But pull still fails:
adb pull /data/media/0/TitaniumBackup/ws.clockthevault-20201130-045341.tar.gz vaultcopy.tar.gz
adb: error: failed to stat remote object '/data/media/0/TitaniumBackup/ws.clockthevault-20201130-045341.tar.gz': Permission denied
It's gotta be size related. This file is just over 4.3 GB.
This is resolved. Someone helped me on another forum: https://android.stackexchange.com/questions/231624/unable-to-copy-a-certain-file

Categories

Resources