yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] twon23:
im trying remove certain apps from /data/app then install other apps on the /system/app

but im having trouble in removing apps from /data/app

mount("MTD", "data", "/data");

delete("/data/app/someapp.apk"); ?? not sure about deleting apps, i think this is wrong.

unmount("/data");

Is that the even the correct way to mount it? because that works with the /system

Any help would be greatly appreciated.
[G1 Android Development] sparksco:
Ubuntu only

Wrong section btw, just have to say it. I am on Ubuntu 10.04 LTS and I just use terminal:

gedit update-script

Once you do that your newly created file will pop up, the put what ever you want in it and save it. The file will be in your home folder. this is what mine looks like:

show_progress 0.1 0

copy_dir PACKAGE:system SYSTEM:

show_progress 0.1 10

Then create these folders, each one inside of the other:

META-INF

root of update zip >

com

>

google

>

android

Then place your update-script in the android folder, and also create the system or data folder in root of update.zip

If it's not compressed into a zip file already than you will need to select all the folders, right click and select compress, then compress as zip. After compressing into zip you will need to sign it. I'm not going to get into signing and all that because there is tons of info on xda for signing roms
[G1 Android Development] rdcosta:
in other thread and if someone still looking:

update-script syntax - A guide for ROM devs, modders, and themers

http://xdaforums.com/showthread.php?t=641223

Thanks to TylTru for the gift :D
[G1 Android Development] jm0077:
hey!, I have a problem when I try to flash the update.zip (AOSP compiled for HTC Desire), I get the following error:

E: Can't chown/mod /system/keyspa.sh

(No such file or directory)

E:Failure at line 14:

set_perm 0 0 06755 SYSTEM:keyspa.sh

Installation aborted

anybody knows the reason?

Thanks in advance..
[G1 Android Development] Effdee:
does /system/keyspa.sh exist?
[G1 Android Development] jm0077:
now the problem is the update-script / updater-script

I think the problem is the update-script. Well I try replacing the update-script by a updater-script from customized roms like Oxygen1.04 or CyanogenMod 6. But when I try to apply the update.zip I get the following error:

can't open /dev/tty0: No such file or directory

So I'm using the ClockworkMod recovery 2.5.0.7, and I don't know if that recovery can work with "updater-script" or just update-script.

Hope anybody can help me :D
[G1 Android Development] jm0077:
No, actually that script is from an operator for a different device. The issue is that I chose a bad update-script. But I'm not sure if I can use udpater-script with the clockworkMod recovery. anybody can confirm this please?

thanks in advance!
[G1 Android Development] Effdee:
delete the offending line

and clockwork can use updater-scripts, you just don't know that you also need the update-binary

read http://xdaforums.com/showthread.php?t=641223
[G1 Android Development] jm0077:
how can I get the update-binary

Thanks for your reply.

Actually I already read that post, but that doesnt specify the compatibility with updater-script. The post doesn't specify how can I generate the update-binary. Can you help me with this issue.

Thanks a lot.

PD: I dont know what you refer with the offending line :S
[G1 Android Development] Effdee:
:eek:

you honestly can't figure it out for yourself?

[B]E: Can't chown/mod /system/keyspa.sh[/B]
[B](No such file or directory)[/B]
[COLOR="Red"]E:Failure at line 14:[/COLOR]
[COLOR="Red"]set_perm 0 0 06755 SYSTEM:keyspa.sh[/COLOR]
Installation aborted

red = nasty line

wouldn't mind but it told you!!

and you should read the thread not just the post

something tells me you are not cut out for this lark

maybe you are good at painting?
[G1 Android Development] jm0077:
I already know it

Thanks again. But i already know it. It was my mistake because I take and old update-script without take in count what that update-script was for HTC dream and for map G1 Movistar phone.

Now I try to create an updater-script, I can see that in other customized rom's they have an update-binary, but i dont know how they generate that. And also there is a metada file inside the android directory (different from the directory where the updater-script and update-binary is located).

The problem is that in the tutorial:

http://xdaforums.com/showthread.php?t=936175&highlight=update-script

dont specify how create the update-binary

I dont want bother anybody, just learn more.

Thanks again!
[G1 Android Development] Effdee:
http://android.git.kernel.org/?p=platform/build.git;a=tree
[G1 Android Development] jm0077:
update-binary

Sorry but I dont understand how the source code can help me in order to generate the update-binary file..?
[G1 Android Development] Effdee:
the update-binary is a small program which runs in recovery and performs the install as instructed by the updater-script

for now just borrow one

there is some discussion about update-binary and updater-script in that thread I gave earlier. Go and read it

as for your immediate problem just delete line 14 set_perm 0 0 06755 SYSTEM:keyspa.sh

if you are compiling AOSP then use

make otapackage

it will make an ota update.zip for you, and this zip will contain updater-script and update-binary.
[G1 Android Development] jm0077:
Thanks a lot !

Now I have this issue more clear.

So I wonder If when somebody is compiling a new rom (e.g. AOSP) it can obtain directly the update.zip (with otapackage really?) so why is the need of create an update-script or updater-script + update-binary independent. In which cases we can apply this?

Thanks again,, now I'll compile again with the otapackage parameter.

Tell you later how it works..
[G1 Android Development] Effdee:
if you are compiling from source you don't really need to understand exactly what is going on with the update(r)-script

update-script is the older version

updater-script / update-binary is newer and started with donut (Android 1.6)

actually source and docs are here

http://android.git.kernel.org/?p=platform/bootable/recovery.git;a=tree;f=edify;hb=HEAD

but you will find the python scripts which generate the updater-scripts in the build tree (tools/releasetools)

to start with you may find it easier to just tweak the one otapackages generated zip (look in $OUT for the zip)

but later you could amend the python scripts to suit your needs
[G1 Android Development] jm0077:
thanks !

Now I'm compiling and then I'll try to generate the upadte.zip. Actually I'll pick the lunch option:

1. generic-eng

2. simulator

3. htc_bravo-eng

4. htc_bravo-userdebug

5. full_dream-userdebug

6. full_passion-userdebug

7. full_sapphire-userdebug

number 3. As far I know the difference with the option 4 is just some features for make debug with the OS.

then I'll execture make otapackage and hope that can give the update.zip and apply successfully over the HTC Desire..

I look forward this works now..:rolleyes:
[G1 Android Development] Effdee:
yes

the one significant difference is with eng dex generation will be lazy

looking at your lunch menu you are not compiling cyanogen mod

tbh you are probably better off with cm src,

but depends what you're after

CM will have more features and is likely to have less bugs

downside is you may not want all those features but you can edit for your own needs

probably going of topic here, so for now I'll just say with cm src look in

vendor/cyanogen/products

and edit the cyanogen_bravo.mk

you may also like to edit the common.mk, to get rid of rom manager

but a script is included to pull rom_manager from the net

I might start a thread for discussion on compiling , I think we need one as I've not seen a thread dedicated to the subject
[G1 Android Development] jm0077:
Thanks for your response!

what you mean with dex generation? is the dalvik executable file? as far I know eng build is unrestricted access, so I think is better for make tests.. or I'm missing something?

I'm trying to learning how can I build AOSP for HTC devices (or others), not just developers phones.. and for that reason I'm using the AOSP without modifications... btw If I extract the files from the phone (e.g. HTC Desire), could I have problems with drivers (wifi module, camera) ?

Yeah ! I support that! :D

Thanks again for the info...

off topic: the pc where I compiled the AOSP is out of my hands until monday.. and have problems with my laptop (very old), because it overheats too much and I cant finish the compile process :(

regards!
[G1 Android Development] Effdee:
dex is the files in dalvik-cache

it is the precompiled byte code

when you have the eng flag it will only compile dex on demand

this is good for test (engineering) as it makes for faster booting

end users will experience or even an error when they try to launch a new app

as for src

you are probably better off with CM

ckeckout cm forums

http://cyanogenmod.com/

but as stated in the locked cm5 thread most dev discussion is on irc

but the wiki is great

but I think a thread detailing how to get and compile src will be good

one thing I worry about is I use linux which is not a problem as it is the natural dev env for Android

will need input from others who use win as env

I guess the best plan would be to make a wiki page and point to it

compiling guide should be generic, but some devices may need speciality notes

a community wiki should make that easy (or harder with fail editors)

and *respect* to you!!

I'm very sorry for giving you a hard time earlier!
[G1 Android Development] jm0077:
that would be great!

you mean that a user can experiment an error the first time that open an app (already installed or new or both)?

I saw in the lunch menu that there is no option for "build user".. just userdebug, that as far I know is the user experience but with su access, really?

A wiki page with generic steps would be great, and then redirect to specific steps (wiki pages derivated from the generic one) for specific devices.

Also, how get info/config about drivers for different phones (not just developers phones), because as far I know could be problems with user experience despite extract the propietary files before the compilation..really?

I know that I started with bad questions and too obvious so.. thanks to you man, you provided me a lot of help!
[G1 Android Development] AndDiSa:
+1

Unfortunately I cannot provide with win env experiences, but I would like to contribute ... if there is something you do not already know ;)
[G1 Android Development] jm0077:
update.zip with recovery directory?

Hello,

I just compiled the AOSP (for HTC Desire) with "make otapackage" option.

Now I have the udpate.zip file for flash the device, but when I reviewed the zip I figured that there is a recovery directory and an instruccion in the update-script in order to do:

copy_dir PACKAGE:recovery SYSTEM:

As I understand, this is the official recovery really? so if I flash the update.zip I'll replace my ClockworkMod recovery really?

So now I'll just pick the update-script and flash the device creating my own update.zip, I'm right really?

can somebody confirm is there is no need to make my own update.zip?

thanks in advance...
[G1 Android Development] jm0077:
panic!

Hello,

I just flash the AOSP compiled (2.2) for the HTC Desire and apparently all the process was fine, but when I reboot the phone gets stuck on the splash screen and shows a black line on the top of the screen.

Don't know whats is wrong..

lunch option: 3. htc_bravo-eng

make instruction: make -j2 otapackage

Then I just picked the udpate-binary and the updater script from the zip generated, created my own update.zip and flash over the phone..

thanks in advance..
[G1 Android Development] jm0077:
cant detect the problem with build / update script?

Hello I just compiled the AOSP with vendor's files for HTC Desire (and extracted propietary files).

But when I turn on the phone it gets stuck on the splash screen.

I copied the adb logcat:

http://pastebin.com/7Wu0NFSx

and the recovery log just after flash the bad rom..

http://pastebin.com/A5T6NzPg

someone can take a look and see what's happening?

thanks in advance !
[G1 Android Development] jm0077:
I just recompiled the files, and I saw than in the end of the log shows a message:

warning: no radio image in input target_files; not flashing radio

could be this a possible reason?

hope somebody can help me to find the error..

Thanks in advance...
[G1 Android Development] AndDiSa:
Doesn't look too bad ... the only thing I found is the following:

mtd: not erasing bad block at 0x02d40000

in the recovery log, which means that your flashing probably failed due to bad nand blocks on SYSTEM. You could try again or do a

fastboot erase system -w
[CODE]
normally there should be some spare blocks available which will be used when you have bad blocks.
[G1 Android Development] AndDiSa:
That's not a problem, in contrary it's better *not* to flash SPL and RADIO using an update.zip.
[G1 Android Development] jm0077:
In which cases the SPL is flashed?

when I flash an update.zip with a boot.img I'm flashing a new kernel as well, really?

Thanks in advance...
[G1 Android Development] AndDiSa:
In a "standard" OTA update.zip from e.g. your service provider, normally also a boot.img, a radio.img, a recovery.img and a spl may be included, to ensure, that all those components are compatible to each other. If you prepare an update.zip it's better to include only system.img and boot.img, otherwise you would overwrite the user's currently installed recovery / radio / etc. This in general is not a very good idea ...

Edit: boot.img contains a kernel plus initial ram disk
[G1 Android Development] jm0077:
Thanks for the info!..

now for erase completely the system partition... is there another way ?

Or just making the SPL - OFF with alphaRev?

hope can you make me clarify this..
[G1 Android Development] AndDiSa:
oh .. you are on a Desire? S-ON will not allow you to modify your NAND in fastboot / recovery mode. Atm I do not know if there are other ways than fastboot.

May be due to the fact that different files are located at different positions it's booing fine, probably you will get an error later on when calling a specific program.

As long as toolbox contains everything you need, there is no problem in using toolbox.
[G1 Android Development] jm0077:
Thanks for your response!

can you indicate me one tutorial where I can learn how to choose the right combo : radio / SPL ?

I want to clarify this a bit more..

Thanks in advance...

PD: still with the same problem now I gonna apply the Alpha HBOOT for disable the SPL and erase the system partition through fastboot commands..
[XPERIA X1 General] ebola0:
Haven't found an softkeyboard which doesn't crash the "àü"-key, could someone help me?

is there a softkeyboard which solves my problem (whith a t9-keys to type a sms while driving)?

or a fix for the blackstone keyboard?

-ebola
[XPERIA X1 General] Angelusz:
SPB Keyboard 4.

Don't SMS while driving, seriously - don't.
[XPERIA X1 General] ebola0:
freeware would be fine...

isn't a problem, exercised it for years! ;-)
[XPERIA X1 General] Angelusz:
Then I hope you don't find a keyboard. It's dangerous and you know it.
[XPERIA X1 General] Juevani:
I double what others have said man, u shouldnt send sms while driving u put ur self and others in danger.. god bless
[XPERIA X1 General] ebola0:
guys, i'm just writing sms with short answers. just "ok", "yes" und "no". and thats my problem, doing this with the hardkeyboard IS dangerous, with a softkeyboard not. be sure, i love my life and my car, and i won't destroy one of theese things! i'm also using a the handsfree profile of my car...
[XPERIA X1 General] Tylwith:
touchpal sip

there is a free version of it .
[XPERIA X1 General] qtekdude:
Hi.

I have an English Generic UK Xperia with R1 firmware. As I'm a norwegian I'm wondering about flashing the phone with the R2 NO firmware. But then I have read that I will get norwegian layout on the hardware keyboard, with æøå insted of ' : and ?. I don't want that. Is there a way to change the hardware keybord layout to english on the norwegian rom?
[XPERIA X1 General] lamabodo:
http://xdaforums.com/showthread.php?t=446449

search and thou shalt find.

-lb
[XPERIA X1 General] qtekdude:
Hi.

I did a search but I did not find this one... :(

So, thank you! :)
[XPERIA X1 General] lamabodo:
No worries, mate. Nice to see a fellow Norwegian around!

-lb
[XPERIA X1 Q&A, Help & Troubleshooting] Ethermind:
i run:

prepare_imgfs 00_OS.nb -nosplit

viewimgfs imgfs_raw_data.bin

and error occured

D:\SonyEricsson\XPERIA\Прошивка\1\Tools>viewimgfs imgfs_raw_data.bin

guidBootSignature: F8 AC 23 9D E3 D4 23 4D 3D 30 91 6E D8 4F 33 D3

dwFSVersion: 00000001

dwSectorsPerHeaderBlock: 00000001

dwRunsPerFileHeader: 00000001

dwBytesPerHeader: 00000034

dwChunksPerSector: 00000020

dwFirstHeaderBlockOffset: 00000800

dwDataBlockSize: 00001000

szCompressionType: XPR

dwFreeSectorCount: 00026410

dwHiddenSectorCount: 00000040

dwUpdateModeFlag: 00000000

Address: 00000800, dwBlockSignature: 00000F00

dwNextHeaderBlock: FFFBFFFF (size: FFFBF7FF)

Header type: 2F5314CE, Addr: 00000808

Unknown header type, FS_DATA_TABLE??

Header type: 00000000, Addr: 0000083C

Unknown header type, FS_DATA_TABLE??

Header type: 00001000, Addr: 00000870

Unknown header type, FS_DATA_TABLE??

Header type: 00001080, Addr: 000008A4

Unknown header type, FS_DATA_TABLE??

Header type: 00001100, Addr: 000008D8

Unknown header type, FS_DATA_TABLE??
[XPERIA X1 Q&A, Help & Troubleshooting] gtrab:
hmmm... :confused: you should ask angelusz since he wrote the tutorial, and you should read the whole "how to back up your ROM" thread because I guess you are not the first one with this problem

PS: you don't need to open a new thread to ask this, I bet this has been already asked in the backup thread, or at least a similar problem.

Please help to keep us to keep the furom clean :rolleyes:
[XPERIA X1 Q&A, Help & Troubleshooting] achmed20:
try the raphael kitchen! work flawless for me
[XPERIA X1 Q&A, Help & Troubleshooting] Ethermind:
this is?

http://xdaforums.com/showthread.php?t=411915

Now i use HTC ROM Editor.

And now i need emulator WM on PC which can be "flashed" with my custom ROM. What i can use?
[XPERIA X1 Q&A, Help & Troubleshooting] achmed20:
so far i only know of the official M$ Emulator.
[XPERIA X1 Q&A, Help & Troubleshooting] Ethermind:
within WinMobile SDK ?

or other ?

link plz
[XPERIA X1 Q&A, Help & Troubleshooting] Angelusz:
Updated the tutorial, try it again from the beginning.
[XPERIA X1 Q&A, Help & Troubleshooting] Ethermind:
thnx will try
[Off-topic] TheChampJT:
I was browsing around HP's site for some things, and looking at the monitor section I found this:

Figure 1: Do not lay monitors down onto the face

Really? How does someone eff that up?!
[Off-topic] Confused Stu:
Deleted - Mike did the same joke, but his picture link worked and mine didn't!
[Off-topic] lennie:
HAAHAHAHAHAHSH AHSHAHHAH

thank you for that one. lmfao
[XPERIA X1 General] Amanox:
Hi guys !

is there an easy way of doing this?

I wanna make ifonz to a panel .. the way it works at the moment ifonz needs to be started manually by clicking the .exe or it can be put on autostart in the today menue.

How can I make a panel that by clicking on it starts the ifonz .exe?

thanks in advance!
[About XDA developers] Aeneas:
I'm getting a malware warning when accessing this site through Google, or when using the search feature - which is powered by Google.

???
[About XDA developers] Junner2003:
Are you using TREND MICRO or AVG? Quite common on them!
[About XDA developers] Maedhros:
I get the exact same thing. When I search for XDA using google, it says this site may harm your computer, and I can not access XDA through google, I have to manually enter the URL. Just started today.
[About XDA developers] -PiLoT-:
google is doing it to everysite as of now i dont know why though
[About XDA developers] Heykrop:
Google triggers a warning when their site has scanned a domain and has determined that there are threats coming from that site in one way or another. It has nothing to do with the AV package you may be running.

Apparently something is not good. Could be anything from a file hosted on the site to an advertising banner that is distributing spyware etc..
[About XDA developers] Aeneas:
It was a bug, on Google's side - I realised soon aftwerwards when using Opera (in which I use Cuil as the search provider) - everything accessed through Google triggered malware alerts.

more about it on PC World:

http://www.pcworld.com/article/158693/article.html?tk=nl_dnxnws
[Touch Cruise General] ~J~:
Here's a puzzle that's got me baffled!

Last night took some photos on my phone, plugged it into the laptop to copy them over as I've done nearly everynight for a year.

Went into the \\Storage\DCIM\100Media directory and couldnt see any files at all! Weird I thought.

So went into the Photo Album of the phone to see if they were there.

The photo album showed about 10-20 photos from AGES ago, all other photos had a circle with a line through it (like a stop sign).

Looked again in the directory, couldn't see any files, so reset the phone.

Went into the Album again, only this time it showed the default photos that comes with the phone, again nothing was showing in the 100Media directory.

Paniced at the thought of losing a load of photos but still continued looking.

Something caught my eye, the fact that even though it looked like all my photos had gone, the "number available" that appears in photo mode (the number being the one that shows how many photos you've got left to take) was still showing about 1500.

So took a few random snaps.

Sure enough, the number went down, but they were no where to be found.

Checked the size of Mb free on the storage card, made a note, then set the phone to record nothing for about 10mins.

Sure enough, the size available on the storage card had gone down but still no video was appearing in the 100Media directory.

I've reset the phone several times, any picture I take results in the "number available" going down, a few more videos of varying lengths does indeed show the space available as going down on the storage card but can not find anything anywhere!

Have manually been through every directory on the storage device, can't see anything anywhere.

Anyone had this before or suss out what the problem is and obviouslly where the hell my media is being saved?

Have checked the main device, but of course not there and wouldn't explain where the space available keeps going down.

I'm stumped!!
[Touch Cruise General] Bodisson:
Install Total Commander and try to search files by date.

That's best I can suggest "out of the hat".
[Touch Dual, MDA Touch Plus ROM Development] garsim:
​

I've kitchen another rom with windows mobile 6.5 and the build is 21159.

it's a test.

Unfortunately the system isn't very quick.

I've deleted Manila2D.

I've added IE8 for a request, but it's very slow.

4 versions are disponible: with htc driver or with omnia driver.

both versions are in 6mb and 18mb of pagepool.

With 18mb of pagepool you less ram but system is more reactive ;)

I've fixed problem with Volume control.

Features:

* Build 21159 windows mobile 6.5

* Page Pool 6mb/18mb

* HTC Driver 3d / Omnia d3d drivers

* Advanced Configurator

* Calculator

* Camera

* EzInput (with t9)

* HTC Album

* HTC Comm Manager

* Internet Explorer 8 with AdobeFlash

* Jbed Java

* ObexInbox

* Opal Phone Canvas (sorry but no videocall)

* PHM RegEdit

* SoftReset

At first run, in welcome center, the screen auto-turn off also when typing with keyboard or with touchscreen: open and close slide to turn on the screen ;)

You can find HTC Audio manager, windows media player(ecc...) in /windows/... (no link in start menu)

If you want try it, Download:

HTC 3D Driver [PAGEPOOL 6MB] [PAGEPOOL 18MB]

Omnia D3D Driver [PAGEPOOL 6MB] [PAGEPOOL 18MB]

​

mirror for rom with HTC driver and 6mb of pagepool: RAPIDSHARE

for italian people this post also in italian here

other screenshot(by twolf): here

thanks jerpelea and thanks joshkoss