yashsingh1/xdaforums huggingface dataset:
[Android Software Development] gamblor01:
Hi everyone,

I was wondering if someone could point me in the right direction to create a flashable ROM from *SCRATCH*. I have googled everything I can think of and everyone seems to have the same answer -- take someone else's zip file and just replace the files with your own, then tweak the updater-script if necessary.

This seems kind of bogus to me, but perhaps I don't quite understand edify scripting. Certainly doing this with amend scripting would work, but that was deprecated a long time ago so I would like to use edify. I think the root of the problem is that I don't understand what the update-binary file is all about.

Can someone please explain how to create a zip without just using someone else's and tweaking it? I recently updated my framework-res.apk file and put new battery icons and new charging animation in it. Then I pushed it back over to my phone with adb and it works great. I would really like to know how to create a flashable zip from this. Sure, I could just download someone else's zip file and then swap out their framework-res.apk file with mine but that doesn't teach me the real, underlying process.

I am a developer for my day job so I'm not new to this type of stuff, but I am new to Android development. I can create the directory structure necessary and place my signed apk file where it needs to go. Furthermore I can write the updater-script file myself (in edify syntax). But then I need to somehow generate the update-binary file before creating the final, flashable zip and signing it.

So how exactly do I create the update-binary file? Do I need to run my updater-script file through a compiler or something? Or maybe the update-binary file is universal for every flashable zip (though if this were the case, then why have the file in every zip -- just put it on every phone and then you don't need to bloat every flashable zip file with it).

Can someone please explain? Also, if you can do it without mentioning or requiring any Windows specific tools that would be great. I run Ubuntu so most of the Windows tools are useless to me (yes I know I could run a virtual machine, or use Wine, etc.). I prefer to do everything with Linux or some platform-independent way.

Thanks!
[Android Software Development] Gene Poole:
I use linux too (gentoo) and I make mine pretty much from scratch. Just create a working directory somewhere (I use /usr/src/[my_package_name]/) then create a directory layout just like you'd want to see on the android device. For your example make a directory called "system" and then "system/framework" then copy your framework-res.apk to system/framework/. Now make a META_INF directory, and add "com" then "google" then "android" (so you have [my_package_dir]/META_INF/com/google/android/ ). Now copy the updater_binary (this is basically the command interpreter for edify scripts--amend commands are built-in to the recovery system). Now make your script. FOr your example above, your realy only need a few commands: mount the system dir, then copy the package file(s) over:

mount("ext3", "EMMC", "/dev/block/mmcblk0p25", "/system");
package_extract_dir("system", "/system");

You'll need to know the details for the specific device to know what arguments to use for the mount command. The above is for an Inspire or DesireHD.

Now just zip it all up (from your base package's directory):

zip -r -o my_package_file.zip META_INF/ system/

the "-r" means "recursive" and "-o" tells it what output file to use. The remaining arguments are the files (or directories in this case) to zip up.
[Android Software Development] gamblor01:
That's great information...actually more detailed than what I needed but it's always better to have too much than too little. You answered my main question though which is what is the point of the update-binary file. If it's an interpreter for edify scripts then that makes total sense that it would be included in every zip (and furthermore be the same in every zip). I still think it's a bit of a waste though (just build that interpreter into the Android kernel itself so that people don't have to copy it around everywhere), but I'm not the one in charge of this stuff.

I guess I'm off to create a zip of my battery icons then. I'm on an Evo by the way, and if I remember correctly /system is mounted on /dev/block/mtdblock3. No big deal though, I can always cat /proc/mounts in a shell to find out.

Thank you very much!

P.S. You can save a few keystrokes on the zip command by dropping the -o and even dropping the .zip extension. Just try:

zip -r my_package_file *
[Bada Software and Hacking General] litebass2:
I have a S8530 I updated firmware to the new version ..

If there is someone here who bought the device in israel

From one cellular operators,Pelephone ,Orange or Cellcom

can you please post here the version of the firmware?

Or you can back up your firmware and upload it here?

This will help me a lot .. Thank you

have a nice day..!
[Bada Software and Hacking General] gilkzxc:
Explain !! Explain !! Explain!!!!!!!

i don't understand, what's the problame here? i can help.

i'm on orange but you can't upload from your phone the firmware

but you can download another and just change the CSC to Israel CSC

וכן אני מישראל

וכן אני גם מופתע שיש ישראלים כאן
[WebOS Software and Hacking General] jamcar:
i have the palm pre minus on sprint running webOS 1.4.5 and 3 days ago the 3G radio just loses my signal all the time its goes from 5 bars to 1 then back to 5 then back to 1 and is always doing and you can tell that my signal drop when im on a call. i was running the F105 thunder chief kernel from preware but then i couldnt connect to the sprint network and i would roam ( thats when the signal would from 5 to 1 ), but i did have WiFi but, yesterday i put the default palm webOS 1.4.5 kernel back on and the sprint network work and im not roaming and i do have 3G but no WiFi, when i try to turn it on with the top bar i tap WiFi and i hit turn on WiFi but it doesn't do anything. what should i do, i have an unlimited data plan and even tho its slow i use things that you can only use if your on the sprint network, is there anyway to get the WiFi back?
[WebOS Software and Hacking General] TravisAntonio:
You should do Doctor, Backup your data before doing this.
[WebOS Software and Hacking General] jamcar:
i know how to doctor but how should i back up my data and what will get backed up?
[WebOS Software and Hacking General] TravisAntonio:
Really I do a copy manually by copying all App/Packages folders on Cryptofs, then put it back when is fully restore, and when you make the backup check the patches folder and delete it all, also the services.
[WebOS Software and Hacking General] jamcar:
can i back up my text and things like that?
[WebOS Software and Hacking General] jamcar:
what is cryptofs and could i back my patches and or my text messages?
[WebOS Software and Hacking General] TravisAntonio:
No. And you need to instal all Patches again. Sorry.
[WebOS Software and Hacking General] Jive Turkey:
PreCentral has an excellent guide on backing up.
[HTC Sensation] livingnorth:
My bootloader is currently on S-ON but i have the ***Security Warning*** text. After seeing this, I followed the instructions in stickied thread to restore my phone using the RUU.exe. I got an "ERROR [132]: SIGNATURE ERROR" while trying to restore the stock ROM. Currently still stuck on bootloader with security warning. Help would be greatly appreciated.
[Sony Ericsson XPERIA X10 Mini] karthiksitian:
yesterday i installed [ROM]MiniCM7 Pro - V6 Final (GingerBread 2.3.5)..thanks to paul-xxx for his great job ...but i cant open the root explorer... it installs successfully , but while opening it creates a error .... and also paul-xxx plzzz upload the stock theme & timescape... for u r rom

thanks in advance
[Sony Ericsson XPERIA X10 Mini] taufiiqqq:
try reinstalling or get a new apk. it may help
[Sony Ericsson XPERIA X10 Mini] karthiksitian:
Reinstalled root explorer v2.7 but its not working
[Sony Ericsson XPERIA X10 Mini] taufiiqqq:
check superuser if u have permitted root explorer's root access!
[Sony Ericsson XPERIA X10 Mini] smallz2k:
i had a similar problem in the end i had to use pc companion to do a hard reset/system update and start again rerooting my phone superoneclick)and reinstalling ....last resort! i couldnt find a way round, fine now on froyobread.
[Sony Ericsson XPERIA X10 Mini] lestercute08:
1 - uninstall root explorer

2 - unroot(using superoneclick)

3 - restart

4 - root again(using superoneclick)

5 - restart

6 - install root explorer or via (ADB(optional))

7 - try to run root explorer (if superuser ask for permission just hit the allow button.)

(if does not work try to reflash your phone)
[Sony Ericsson XPERIA X10 Mini] smallz2k:
Is that for the 'free' root ex app?
[Sony Ericsson XPERIA X10 Mini] paradorx:
Please remove this, it is a paid app, thus you post a warez.. If you want to share use other alternatives

Send from my MiniCM7 Pro v6 using Tapatalk
[Sony Ericsson XPERIA X10 Mini] kassipopassi:
there are different versions of the root explorer...the original is v1.6 and runs perfectly on gingerbread. there is another version (v2.7!?) which doesnt work...
[Sony Ericsson XPERIA X10 Mini] th3discodancer:
same problem. :/
[Nexus S Themes and Apps] DaXmax:
Hi everyone, can anyone attach a miuimusic.apk whoever has miui.... The latest one thanks...

Sent using LGE Xda Secret phone
[Nexus S Themes and Apps] decalex:
I think this is what you're looking for: MiuiMusic.apk

I grabbed this out of the NS4G ROM Ice and Fire ROM posted on 8/12

There's a link to the thread for reference.
[Nexus S Themes and Apps] DaXmax:
This one without equalizer but thanks...

Sent using LGE Xda Secret phone
[Fascinate Q&A, Help & Troubleshooting] Enyo.:
Which company do you think?

Samsung

Apple

Motorola

ZTE

LG

HTC

Kyocera

RIM

HP Palm

Sony

Pantech

Dell

Nokia

--------------

Also which chip manufacturing company will produce Tri-Core or Quad-Core First?

Qualcomm

Nvidia

Texas Instruments

Samsung

Apple

-------------

Submit your vote!
[Fascinate Q&A, Help & Troubleshooting] TheSonicEmerald:
Nvidia already has the Kal-El near complete.

Sent from my Fascinate with MIUI Gingerbread
[Fascinate Q&A, Help & Troubleshooting] FDro:
What's the point of this thread?
[Fascinate Q&A, Help & Troubleshooting] KitsuneKnight:
Technically, all the "dual core" phones have been tri-core all along... there's a tiny third arm core hidden inside, controlling the radio!

And yeah, nVidia is more than likely going to be the first to get tri and quad core processors, they appear to have by far the most aggressive roadmap. They'll likely also appear first in tablets, before phones (at least that's the sane thing to do!), but which manufacturer will be first out the door is a total crapshoot.

I'd imagine the same "point" as the "Who's going to be the first company to use THz Processors" (except slightly less insane- still pointless, though).
[Fascinate Q&A, Help & Troubleshooting] droidstyle:
There is no point... just another general bs thread by enyo
[Fascinate Q&A, Help & Troubleshooting] sageDieu:
Who cares? When somebody gets a hold of them everybody will, and they will be the next standard thing in high end phones. It will probably be a while before anything like that will be worth it though, some people need to spend less time on battery-consuming chips and more time on making batteries last longer.

Sent from my MIUI SCH-i500
[Fascinate Q&A, Help & Troubleshooting] Avelnan:
End of this year. Most possibly a Google phone.

Sent from my ADR6350
[Fascinate Q&A, Help & Troubleshooting] antigenx:
While is sounds fun, I'm not sure people consider the power required. More processors requires more power, that's fairly obvious, and the performance benefit may not really be worthwhile. Android has a way to go in terms of performance compared to the iPhone.

I have to give the iPhone props in this dept. The interface is incredibly snappy in terms of responsiveness. Animations are simply smoother (think when pulling down the notification pane or flipping through app pages) (than 2.2 anyway) and there are fewer laggy moments, at least from what I've seen.

If the iPhone can do it on a 1GHz ARM processor, Android should be able to as well.

IMO there are lots of improvements that could be made with single (and I guess I have to include dual-core now) processors, and I would prefer to see them take that route first.
[Fascinate Q&A, Help & Troubleshooting] sageDieu:
they need to make batteries that are more efficient and last longer. If smartphones actually lasted more than a day of real usage of data and everything they would be much more appealing to the consumer market.

Sent from my MIUI SCH-i500
[Fascinate Q&A, Help & Troubleshooting] KitsuneKnight:
That's really a software issue (inc drivers).

Apple has a major advantage in this department. There's a grand total of four iPhones (5 if you count the CDMA iPhone 4), 4 iPod Touches, and 2 iPads, for a total of 11 devices, and only 7 of them (counting CDMA iPhone 4 as a separate device) are still supported in new OS updates.

Lets just take the Galaxy S to compare: How many variants of it are there? Every major carrier in the US has their own version, plus a second one on Verizon... that's five right there! And that's totally ignoring all the international variants (which usually stick much closer to the i9000)! And those are all from a single generation!

I kinda doubt Samsung has as many people working on hardware-software integration as Apple for their phones, and they quite stupidly spread them out far thinner, to countless different devices!

That is the reason that the iPhone's performance crushes Android's. The Android carriers put far less effort into the software side of all their devices, thinking that the specs are all that matters, totally forgetting that specs mean nothing if the software can't take advantage of them!

Compare the stock Fascinate software to MIUI/CM7/AOSP. The alternative ROMs have some reliability issues, but that's largely due to our devs having to figure out the hardware entirely on their own, with limited to no access to the actual documentation! And yet, Samsung's ROMs often have worse issues!

This is Android's fragmentation issue. Quantity (of models) over quality.
[Eee Pad Transformer Q&A, Help & Troubleshooting] hasselaar_nl:
Hello,

I've installed Vplayer on my TF101. It plays verry well, also streaming so i am almost happy :-)

In ES Explorer .mov files are not recognised as videofiles. Is it possible to assign it manually to for example vplayer? or let HC recognise .mov as an videofile?

Greets.
[Eee Pad Transformer Q&A, Help & Troubleshooting] bradputt:
i would like to know this too
[Android Software/Hacking General [Developers Only]] jenina00:
i just bought my huawei ideos like 3 days ago. and i'm pretty new when it comes to these kinda stuffs.

i'm eyeing on this ROM. but i don't even know how to begin installing it in my mobile.

can somebody can give me a blow by blow on this? i'm really not familiar in any of the used terms. :(

all i did was rooted the mobile phone and nothing else.

an answer would be much appreciated.
[Vibrant General] DKM119:
I got my Vibrant rooted and flashed for over a year now (?) and i'm currently running TeamWhiskey Bionic NextGen 2 w/ Overstock, i know a little be old but i like this Rom, anyway my problem is that everytime i connect my phone to charge, especially overnight, i have to manually turn the screen off otherwise stay on in the lowest dim, now if is the screen is off and i get a message or a call the screen will stay on and it wont turn off by itself, i keep my phone on silent overnight,nobody is messing with my sleep :), and sometimes when i woke up my screen is on...this only happen when the phone is charging...any ideas?
[Vibrant General] iynfynity:
Try settings > applications > development

Uncheck the stay awake.
[Vibrant General] DKM119:
Thanks..!!

I remember seeing that option before...just couldn't find it....once again thanks...!!
[Captivate Q&A, Help & Troubleshooting] FiniteSM:
Does anyone have a reliable GPS on one of the newer roms? I've been using Serendipity (the last version), and have still been having problems.

It wouldn't be a big deal, except I would like to using a cycling app on the phone, and that requires a GPS that doesn't take 10 minutes to lock and looses signal every few minutes. Never mind that it can't even pin point me.

Maybe I'm just not up on todays roms, but my question is the GPS working well?

Thanks!
[Captivate Q&A, Help & Troubleshooting] cappysw10:
Using search would have supplied you with about 10,000 threads on how unreliable the GPS is even with fixes, newer roms, etc.

It all depends on your hardware and if you got lucky. If it's truly that bad, especially on any rom, then warranty it.
[Captivate Q&A, Help & Troubleshooting] xijar:
What cappy said. GPS in these devices is terribly unreliable and there seems to be no rock solid way to fix this. Some phones hardware seem to work better then others, if it really bothers you warranty it repeatedly until you can get a decent timed lock. My dad refused the leave the warranty center until he was able to get locks on his device in less then 10 seconds. Obviously took him a while with these crappy GPS's. He ended up with a much newer revision of the phone not sure what build number but his GPS is noticeably better then mine on the same firmware. I have a 1010 by the way and yes the GPS is aweful. I don't really use it too much other then to find general location sso it doesn't kill me but I understand the frustration with something that Samsung could of very well done a better job at.

At any rate this question has been answered all too many times. If it really kills you complain until you are satisfied. I personally don't think you will be regardless. My dad still moans and groans about his GPS even after all his complaining.

Sent from my i897 running MIUI 1.8.12 with TalonMTD kernel.
[HD2 General] men8ifr:
I can't work this out is the ram divided into storage and programs?

If so why is deleting programs free-ing up my 'free storage'. If I install programs will it use up the 'storage' not programs?

My phone has been coming up with error messages that there is not enough memory I think this is because the free storage only has 5mb free- I can't find anything to do except delete loads of programs until there is some 'free storage' umm free.

What else is using the storage (as opposed to programs?)

Thanks
[HD2 General] samsamuel:
Storage memory is rom, program memory is ram. Adding/removing apps will affect the storage memory, not program memory.

Not enough memory errors are ram, and nothing to do with how many programs are installed.

Common cause of low program memory is running a 3.14 rom on any spl that isn't 3.03.0000 or 3.03.hspl

"What else uses storage" - everything you install, all your data, everything uses storage.

In PC terms, storage memory is disk space, program memory is ram.
[Xperia Arc Q&A, Help & Troubleshooting] Dealeet:
Hey Everyone.

My question is has anyone experience that sometimes when booting you will be stuck in a boot loop?

As in sometimes it can go to the menu and sometimes it just keep booting and booting.

Mine always(well most of the time) stuck on the boot where it always shows the android image.

Is it just me or anyone else has the same problem.

also, correct me if im wrong, going to recovery mode is : Multiple Tap the Back Botton Right? :)

1)So far i have installed v5,6,7

2)Didnt use any overclocking apps.(eg. setCPU)

edit: just tried 7 still same problem for me.

running on .368 boot loader unlocked.

EDIT : Super irritating. i tried flashing generic and UK.

1)flash to FW:4.0.A.2.368

2)switched on. adjust the settings.

3)switch off phone.

4) fastboot installed kernel.

5) boot up, gave boot loop. -.-" :(

any suggestions? i keep flashing and flashing.
[Xperia Arc Q&A, Help & Troubleshooting] babygau:
Make sure you format your data + davik cache before reflashing new rom???
[Xperia Arc Q&A, Help & Troubleshooting] Dealeet:
tried. still no constant normal boot :(
[Xperia Arc Q&A, Help & Troubleshooting] Mano1982:
Working like a charm on my Arc :o Never had any problem yet..
[Xperia Arc Q&A, Help & Troubleshooting] Dealeet:
now i can make it work. but only booting is the problem.

sometimes when i boot , it goes in a boot loop.

so i took out the battery wait a few minutes then put it back in then it will work.

is there any solution on getting a constant boot just like everyone else?
[Xperia Arc Q&A, Help & Troubleshooting] Dealeet:
no one have any solutions?
[Xperia Arc Q&A, Help & Troubleshooting] babygau:
try using adb format command to the following partition: /system, /data, /cache, /boot

it is reportedly "cleaner" than busybox command in recovery

then try to reflash stock firmware and kernel

Hope u get it done!
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] scmguru:
Can only run APX mode.. no Odin.

Was running Touchwiz 3.1 when all of a sudden, my tab locked up.

I powered down and it never came back up.

I can get it into APX mode, but get the following when I try to reload the bootloader.

C:\nvflash>nvflash --bl fastboot.bin --go

Nvflash started

rcm version 0X20001

System Information:

chip name: t20

chip id: 0x20 major: 1 minor: 3

chip sku: 0x8

chip uid: 0x038891c54140XXXX

macrovision: disabled

hdcp: enabled

sbk burned: false

dk burned: false

boot device: emmc

operating mode: 3

device config strap: 0

device config fuse: 0

sdram config strap: 0

downloading bootloader -- load address: 0x108000 entry point: 0x108000

download command failed NvError 0x120002

command failure: bootloader download failed (bad data)

bootloader status: Bct file not found (code: 21) message: flags: 1073840124

Did some searches here and wasn't able to find something that would work.

Is there any way to use nvflash to repair?

Thanks!
[Verizon Droid Charge] Masterpiece Finishes:
Hello all. I was perusing the nexus s and nexus s 4g forums and was interested when I came upon their oxygen rom. It offers the ability to skip songs with the volume rocker. Is anyone willing to try and get this working for gummy? I am willing to donate to anyone willing to try. It would also be cool if we could get music controls on the lock screen. Thanks to all the hard working devs and themers.
[Verizon Droid Charge] kvswim:
The first one would be possible for one of the devs to do. The second would require a whole new lockscreen & lots of coding, plus all of the themes would have to be updated with the new stuff.
[Verizon Droid Charge] blarrick:
Agile Lock + PowerAMP = music controls on the lockscreen. They just updated Agile so you can now disable your lockscreen without disabling your power button menu but it's a little glitchy, the dev does promise to release a new version every week as he is still trying to fix it up.

Also, why would you want the volume rocker to skip songs? I would prefer the volume rocker to control volume and use the search/back keys to skip through songs, just me though.
[Verizon Droid Charge] yutzybrian:
On the Droid 1 roms I used that had volume button music controls you had to hold the volume key to skip but a single press would still adjust volume. Both functions were available with the same buttons.
[Verizon Droid Charge] blarrick:
That's pretty cool, hope it can be done! I usually have PowerAMP set to shuffle my 100+ song playlist and sometimes I get to that song I'm just not in the mood to hear and it would be nice to skip it with a simple hold of the power button.
[Verizon Droid Charge] Masterpiece Finishes:
Yutz-exactly what I'm hoping somebody will look into. Blarrick-I have over 2000 songs I shuffle through. I need a quick way to skip.
[Verizon Droid Charge] hazard209:
It's my understanding that this is a function of ASOP ROMs. Seeing as none have been released yet, I don't think that this is an available option yet.
[Verizon Droid Charge] Masterpiece Finishes:
Thank you for your response. Will the charge ever get a pure ASOP rom?
[Verizon Droid Charge] hazard209:
There is development happening now. No ETA on releases (there never is), but it may be a while.