yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] lxrose:
How to get the original boot.img

Hi,

This is a great tutorial, exactly I was looking for. My problem is, that on my Nexus One I have /dev/mtd/mtd2 with permissions rw-------, so cat /dev/mtd/mtd2 does not work when I am not root. Is there any other way to get the original image of the phone, then modify it?

About the "/dev/zero >" thing, I guess this is some kind of erasing before flashing the new img. I found this tutorial somewhere else and it is one ">" not like here (">>"), so the latter should not be good, but since it is overwritten later, it may not matter.

Thanks

Sandor
[G1 Android Development] bonesy:
is there any way we can chnge the erasesize of the boot.img area?
[G1 Android Development] frankenstein\:
I just tried to unpack a boot.img file for my evo as I want to make a few changes to the default.prop for the image. when I ran the unpack script I got the following msg:

Found a secondary file after the ramdisk image. According to the spec (mkbootimg.h) this file can exist, but this script is not designed to deal with this scenario.

Is there an updates script that will deal with this scenario?
[G1 Android Development] jboxer:
Cannot unpack recovery.img file

I have the recovery.img file from the update package for my device. I want to unpack the recovery image to get the kernel and ramdisk so I can port a custom recovery image to the device. The problem I have is as follows.

If I use split_bootimg.pl I get the error that no "Android Magic" was found and the script terminates without generating output.

If I use unpack-bootimg.pl I get an error that says that no embedded ramdisk image is found and am I sure it is a proper boot image.

Where do I go from here. Both tools that are suggested for this purpose aren't working for me.

Somebody please give me advice on another path to take.

Thank you.
[G1 Android Development] Serris:
I have managed to unpack boot.img change init.rc, but I have problems with repacking with perl script, I get the following error:

newramdisk.cpio.gz No such file or directory at C:\Android\boot\repack.pl line 13.

Could someone elaborate what exactly to do with repack-bootimg.pl, I honestly have no clue what to type in terminal/cmd

EDIT: I have figured out what to do, but a different error occurred now: "sh: mkbootimg: not found" and I have mkbootimg in my working directory

RE-EDIT: You have to modify the script repack-bootimg.pl at line 19 :

replace : system ("mkbootimg ...

by : system ("./mkbootimg ...

And its working :)
[G1 Android Development] jboxer:
How did you unpack the boot.img?

Sent from my I-Mobile i858 Jackbox Special Edition

My home: www.bit.ly/aicforum
[G1 Android Development] Serris:
With the use of unpack-bootimg.pl, though if you have windows you need a program that knows how to read perl files, linux has it built in, just for info.
[G1 Android Development] Mikey:
Like strawberry perl? http://strawberryperl.com/

Now time to learn perl to "execute" pl files :)
[G1 Android Development] abukashif:
repacking boot.img erro

Hi all

I have use the unpack script which did unpack the recovery.img file. but i am getting an error while repacking the recovery.img again with the repack script. the error is

sh: mkbootimg: not found

I have copied the mkbootimg to the same directory where the scripts are. Can anybody tell me what am I doing wrong.

Thanks in Advance.
[G1 Android Development] johnw.xda:
on my defy android 2.1 phone.

# cat /proc/mtd

dev: size erasesize name

nothing, where is my ramdisk?

i want to modify /init.rc

please help, and thank you.
[G1 Android Development] FukTheRegister:
Hi !

I search to unpack and repack my HTC DESIRE Z Boot image :

root@J1K364J-Linux:/tmp/ROM# unpack-bootimg.pl boot.img

kernel written to boot.img-kernel.gz
ramdisk written to boot.img-ramdisk.cpio.gz
536 blocs

extracted ramdisk contents to directory boot.img-ramdisk/
root@J1K364J-Linux:/tmp/ROM# cd boot.img-ramdisk
root@J1K364J-Linux:/tmp/ROM/boot.img-ramdisk# vim default.prop
root@J1K364J-Linux:/tmp/ROM/boot.img-ramdisk# cd ..
root@J1K364J-Linux:/tmp/ROM# repack-bootimg.pl boot.img-kernel.gz boot.img-ramdisk
boot.img-ramdisk/ boot.img-ramdisk.cpio.gz
root@J1K364J-Linux:/tmp/ROM# repack-bootimg.pl boot.img-kernel.gz boot.img-ramdisk/ test.img
536 blocs

repacked boot image written at boot.img-ramdisk/-repack.img
root@J1K364J-Linux:/tmp/ROM# fastboot boot test.img
downloading 'boot.img'... OKAY
booting... OKAY
root@J1K364J-Linux:/tmp/ROM#

it's still on HTC Logo.

If I boot the orginal boot.img, the phone boot normaly.

Why ?

Thanks.
[G1 Android Development] sharkie405:
@ OP,

Don't you think this info. should be mentioned in the first post along with maybe a link to where one can obtain such a program.

I'm new to android and I'm soooo tired of all these supposed noob tutorials that aren't really for noobs. They are for people that already have some sort of knowledge about android and/or linux. I have neither and so following this tutorial was very difficult until I found this post, as I was trying to do all this stuff in Windows without the needed programs.

Sorry for the *****ing, but I just had to get that out.

Thanks for the tip.
[G1 Android Development] nguyenhonganh:
how to "work in windows? :mad:
[G1 Android Development] arif-ali:
You could probably use cygwin to achieve this. So installing repo, and then compiling mkbootimg for windows through CM

and then use all these binaries in the same way via that
[G1 Android Development] span_01:
I'm also having this issue on my Galaxy Tab 10.1. Can't find the stuff that should be under mtd. Anyone got an idea on where/how to find it?
[G1 Android Development] Avilove.Cullen:
can u tell me how to extract boot.img and change kernel name
[G1 Android Development] TwoPointZero:
This is because perl works in text mode unless instructed otherwise; on windows (e.g. Strawberry Perl) you should add

open (BOOTIMGFILE, "$bootimgfile") #....
[B]binmode (BOOTIMGFILE);[/b]

for every open() call you make.

Otherwise you see an extra 0x0D byte for every 0x0A byte you read or write.

Maybe it works in Cygwin's perl with LF-mode (set at initial setup), but I cannot confirm.

Also, mkbootimg.c misses the O_BINARY for every open() call... since this flag is not useful for Unices/Linux

e.g. open(filename, O_RDONLY | O_BINARY);

(or the lines can be rewritten using fopen())

After recompiling it should work

Otherwise you will get error "error: could not load kernel 'xxxxxxxxxxxxxx-kernel.gz'"
[G1 Android Development] dzingga:
Can you teach me how to unpack repack recovery.img from qualcomm and broadcomm chipset???
[G1 Android Development] :
Treat recovery.img exactly same as boot.img, no matter the chipset.

BTW, i didn't mean to "thank" you but accidentally pressed it while trying to quote, enjoy your free thanks lol
[G1 Android Development] dzingga:
tell me what the script or command to unpack and to repack recovery.img another mediatek chipsets. and what program that should i install, i use window7.

could you teach me jianC broo...
[G1 Android Development] :
To unpack recovery.img you can just use a kitchen, but its much better to compile recovery from source from following this guide: http://www.koushikdutta.com/2010/10/porting-clockwork-recovery-to-new.html

You will need linux or mac, and a good internet connection :)
[G1 Android Development] dzingga:
i have followed the link above and i think he's just want to build recovery that the devices is loan to him. i don't see the tutorial there...

by the way i had found and download the script that work in cygwin and successsful to unpack recovery.img, the script like this: ./unpack-bootimg.pl recovery.img

but i can't repack with command: ./repack-bootimg.pl -recovery ./recovery.img-kernel.gz ./recovery.img-ramdisk ./recoverynew.img

is there any different script to repack the img with the pl file? please teach me...
[G1 Android Development] villan.co:
thansk for the file uploads, the site you got this tutorial from has dead download links http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images
[G1 Android Development] brusca.lyfe:
I have a recovery.IMG I need someone to help me with

It only had one option when booted to recovery

I need it to be edited to act like a regular android recovery with all the options
[Fire TV General] Edgie70:
Hi all , bought a fire TV stick 4k max and I'm using it with my Samsung TV ( approx 1 year old ) the Samsung TV identifies the stick as an Apple TV !! But the Samsung TV identifies my fire TV box gen 2 as a fire TV device , anyone else have a Samsung TV and a 4k max stick that's identified as an Apple TV??? thanks
[Fire TV General] psymsi:
Sad to see this is still a problem on newer models. Mine rarely works. Isn't there a way to customize the input? Change the name and some generic image? I forget it's been so long.
[Fire TV General] Edgie70:
Thanks for your reply , yes you can use a generic image now and rename it but what I have done is turn off the TV , sleep the fire TV box and remove hdmi cable and put in fire stick , turn back on and it stayed with the Amazon logo, didn't try it for long but seem to have worked .
[Android Head-Units] 1960darrenh:
Hi.

I bought an android Head unit but don't know where to start when looking for updates for it.

I have attached the specs as shown in Aida64
[Android Head-Units] Anton TNT:
Hi, try find your firmware here : https://xdaforums.com/t/alidesheng-head-unit-mediatek-mt6580m.4033175/

or search the internet by : AIDA64 mt6580 firmware - you will find it for sure.
[Android Head-Units] 1960darrenh:
Can't find anything.
[Android Head-Units] Anton TNT:
Try this one: http://bottlestonightapp.com/content-firmware/mt6580-firmware-universal

Choose desired Android version first and download
[Android Head-Units] 1960darrenh:
Thanks, but do I download the Android version I already have or can I choose a higher version?
[Android Head-Units] 1960darrenh:
By the way, that link is just adverts. When you click on download, it comes up with loads of crap and the file can't be downloaded.
[Android Head-Units] Anton TNT:
Then it's links are broken & hacked, find anything on net or youtube (link would be in comment area)
[OnePlus 9 Pro] CZ Eddie:
I live in an area with sometimes-spotty reception.

Is it at all possible that when running a non-TMO firmware (such as global or custom ROM) I can have a less reliable network connection even if I'm running a NON-HLOS modem pulled from T-Mobile firmware?

I have a 9Pro purchased from T-Mobile and am on the TMO cellular plan.

And I can swear that running custom ROM or global firmware can sometimes deliver worsened network behavior than when on TMO firmware.

Not sure if it's just in my head or if others have the same issue?

Please tell me about your experience?
[OnePlus 9 Pro] razercortex:
I think it's just you since I'm running global without issues. I'm not crazy about my network signal being a tad bit lower, as long as it works. I have nearly identical signal compared to stock firmware.
[OnePlus 9 Pro] TheKnux:
No issues here. T-Mobile user, Indian firmware. WiFi speeds top at 400mbps at home for reference. Running the same modem from when the phone was released (TMobile OG stock modem).
[OnePlus 9 Pro] GloriamSemper:
I actually noticed an improvement in reception going from OOS12 to crDroid on my 2127 tmo op9p. The transition was tricky though so DM me if you need guidance.
[OnePlus 9 Pro] Superguy:
I thought my issues were related to switching to global/EU firmware from T-Mo, but when my wife and kids started having network problems with their stock T-Mo phones, it turned out to be then network was garbage (in our experience). Garbled calls, dropped calls, slow data, generally useless. Tried in multiple parts of the country (west, east, middle, north) and had issues. Even the unlocked ones we brought over had issues. So they either sold us a several garbage phones, or their network wasn't up to snuff.

Got all phones unlocked, and switched back to AT&T. They all work fine.

The network might just suck where you use it.
[Samsung Galaxy A51 5G Questions & Answers] stanwin:
Hello, I wanted to root my Samsung A51 5G right after upgrading (by Odin) from Android 11 to 12 (downloaded by Frija). And you can't! Because it is impossible to remove the OEM lock to install TWRP, to install Magisk ... And with this OEM lock - I tried both a 7days trick (with a calendar rollback of 7 days) - OEM unlock does not appear in Developers Options (although under Andr .11-appeared), and entering Download Mode - there is no option to hold the Vol + button longer to remove the OEM lock (also nothing happens after a long press Vol +). Any ideas? I would be grateful.
[Samsung Galaxy A51 5G Questions & Answers] ShaDisNX255:
What is your phone model number?
[Samsung Galaxy A51 5G Questions & Answers] stanwin:
Samsung A51 5G eg.A516B. Why ?
[Samsung Galaxy A51 5G Questions & Answers] iBowToAndroid:
Is that the exact model number, or are you just guessing? There are more than a half dozen model numbers of the "A51 5G"
[Samsung Galaxy A51 5G Questions & Answers] stanwin:
A516B Exactly.
[OnePlus 8 Questions & Answers] ilooze:
Hello!

So recently I replaced the battery in my Oneplus 8. The problem is that no matter how much I charge it and discharge it, the percrntage indicator drops dow to 1% in 15-20 minutes. The funy part is that it stays there...

It holds the charge. I get 8hrs+ screen on time so I don't think that it's a faulty battery. I even tried downgrading to OOS 11 and back to OOS 12. Nothing...

Any ideas?

Thank you!
[Touch Pro, Fuze General] lbhocky19:
just curious how many about to own fuzers out there will stick with the stock att rom or are planning on switching to another?

what possible negatives are there if any?
[Touch Pro, Fuze General] RizwanKhan:
you should automatically know the answer to this... quite surprised that you actually asked this but OFCOURSE not staying with stock rom ... load's of bloatware and crappy rom ... NO THANK YOU. I'll just flash romeos or natf's when he comes out with his...

flashing a rom that is not your carriers cancels your warranty so you can't get the phone replaced until you have turned it back into stock.
[Touch Pro, Fuze General] lbhocky19:
hha stupid question i suppose but i do laugh since your tilt has a stock rom :)

what about programs like sprite backup and the jetcet print and such that come on the fuze are those available as free cabs or on the romeos?
[Touch Pro, Fuze General] RizwanKhan:
trying to return for warranty :)
[Touch Pro, Fuze General] briols6:
I have a fuze with a flashed rom, and 1 drawback is the keyboard layout is different then the touchpro and there is still no cab file to fix it.
[Touch Pro, Fuze General] lbhocky19:
yes there is its called htc fuze keyboard fix

i dont know how to upload files here?
[Touch Pro, Fuze General] stevierg:
Flash Flash Flash
[Touch Pro, Fuze General] achild:
So what actual roms are compatible with the fuze? I got my fuze 2 days before official launch and I'm dying to flash it but I have no clue if the touch pro's custom roms are compatible with the fuze without screwing some stuff up.

Can I actually put TP roms on the fuze without screwing it up?
[Touch Pro, Fuze General] lbhocky19:
yes you can

just install the keyboard fix after and you are fine

but i do have a question. i have yet to be in a 3g area yet with my fuze since i flashed the rom

3g should work fine with romeos right?
[Touch Pro, Fuze General] achild:
So this would be one of the things that become unstable/broken???
[Touch Pro, Fuze General] lbhocky19:
i was just asking i have no idea
[Touch Pro, Fuze General] baltika09:
Has anyone recontructed the stock from the newly released Fuze yet? My Fuze has ROM vers. 1.95.502.5 WWE. I just wanna know if I'll be able to put the orig rom back on the phone if I have to before I flash it.
[Touch Pro, Fuze General] xsupercat8000:
The cab is attached :)
[Touch Pro, Fuze General] kcchen:
Almost flashed... and noticed that the ATT build might be newer.

FWIW ATT did a nice job with the default settings (i.e. sounds/notifications), but would like to have the optimized memory pool from a cooked rom.
[Touch Pro, Fuze General] BBM-Lee:
stock rom lasted 24 hours here before being destroyed....

Romeos2 is what I ended up with... at&t stock rom seems to ignore/bypass registry settings on some stuff (startup/shutdown animation, HSDPA support, etc.)

Glad I made the switch.
[Touch Pro, Fuze General] baires:
What I ended up doing is flashing an HTC ROM and then just the radio from AT&T, in oder to maintain 3G capability. Of course, the Hard SPL flash comes first.
[Touch Pro, Fuze General] Matt-Helm:
I flashed my Fuze right away.

I had to exchange it because of an annoying slider wobble issue. I didn't bother flashing it back.

The guy at the AT&T store didn't even notice.

BTW... My second FUZE had a much better/tighter slider. No wobble at the top in the closed position.
[Touch Pro, Fuze General] hdbueller:
When I get mine next week, I will run it for a day or 2 just to make sure that all is well, and then it is the Elite Team rom for me...... ;)

Later............
[Touch Pro, Fuze General] wmserver:
I will flash mine but just wanna make sure I start with a working device.

Do I need to unlock the Fuze to flash ROM?

Will Kaiser SuperCID and Security Unlocker v0.1 work with the Fuze?
[Touch Pro, Fuze General] lbhocky19:
you just need the raphael hard spl
[Touch Pro, Fuze General] achild:
So did anybody find this out? does flashing your ROM on a fuze make 3G go bye bye? I wonder if it has to do with your radio, since its a touchpro/diamond one (probably not configured for 3G?)
[Touch Pro, Fuze General] ramontrotman:
flash your heart away. this is what we're here for!!

your 3g stays...in fact, you gain hsdpa and hsupa speeds now.

plus what ever tweaks and goodies the chef has cooked up.

so DO IT!
[Touch Pro, Fuze General] zachoo:
Yep my ATT rom lasted less than 30 minutes -- running Elite rom now.

Your radio will be unaffected and 3g will be fine (better, as stated above).

All Touch Pro roms are compatible with the Fuze (assuming they are GSM versions) - and keyboard fix is also an option within Advanced Config 3.3, standard on good cooked roms.

Hard SPL then flash away- that's the fun with these devices, right? I can't imagine having a winmo device and running a stock rom... just doesn't make sense to me.
[Touch Pro, Fuze General] achild:
You are completely rigfht! I guess I'm just kinda weary when it comes to my FUZE :) I had an apache before that i flashed the hell out of but I'm just kind of weary now that I got the fuze...just wondering if anything is different for all these different models. Just precautions that is all! :D
[Touch Pro, Fuze General] ramontrotman:
i think you'll find it alot more easy to flash than your apache. if im correct..thats the old cdma ppc from a while back. you had to do the cha cha dance and clap your hands 3 times while singing soul train to flash those things. and i find its usually like that for most cdma phones...thus....i stay away from cdma and ppcgeeks.com

but here...you get your rom and the ruu and you good to go!
[Touch Pro, Fuze General] wmserver:
Would we lose PTT button function if flashed to the original Raphael ROM?

I was hoping to remap PTT to camera.
[Touch Pro, Fuze General] RizwanKhan:
u would lose ptt functionality but not the button. u can map it to whatever u want but most likely the cook has probably already mapped it to something.
[Touch Pro, Fuze General] KD8DNS:
Why would anyone want to get rid of the wonderful stock AT&T ROM. I mean, come on now they were so gracious to put all that wonderful AT&T software on it for us. And even locked key features like f.m. radio. Why would you want f.m. radio when you can pay extra for XM sat radio. And the gps, again why would i want to use a freeware GPS program, when I can pay extra for AT&T nav. And PTT, WHY. You have to pay extra for PTT.... MOBILE TO MOBILE is FREE!!!

So to answer your question HELL YES, I flashed my ROM.
[Touch Pro, Fuze General] dezoris:
I bought the phone for my wife who hates every phone.

She would hate the phone even if god made a phone perfect for every human she would still *****.

The ATT rom had me so disappointed in the phone I was going to return it.

Touch flow was slow, the theme was pretty nasty along with too much being on it.

My wife hated the phone, too slow and too much crap.

I never had a GSM phone, nor any HTC product and this was my first time on this forum. Within 3 hours of reading about ROMs, flashing and all the stuff on here, I flashed ROMeOS, did all the theme tweaks, and fixed the keyboard.

Re-organized the touch flo tabs so it would only show what my wife cared about and incredibly the phone is night and day.

It's quicker, easier to use and look at and I don't regret buying it now.

It's not lightening fast but it's worth getting rid of the ATT rom if you have the time to invest setting it up.

I was a totally new with any of this and figured it out by reading and posting in one night.

So thanks to the site for all this.
[Touch Pro, Fuze General] achild:
That's awesome! I dont see how ANYBODY can live with their stock rom on any phone..sure, it could work ok; but why settle for ok when you can have GREAT! Half the time people dont realize half the potential their phone has until they get into this world of customization. I'm very grate for this site and all the other websites I have became a regular at (ppcgeeks.com and ppc6700users.com).:D
[Touch Pro, Fuze General] baboola:
btw, if you flash ROMeOS, PTT button pulls up the screen for you to turn on/off Bluetooth, wireless and phone connection, which I thought was a nice touch because it's so easy to toggle wifi and BT now :D
[Touch Pro, Fuze General] scotchua:
I think it's safe to say that the majority of the people here will be flashing cooked roms, because that is why many of you are here.

Thread Closed.
[Samsung Galaxy S22 Ultra] wholelottared:
After the May update, when I take a pic and open it directly from the bottom left, after it finishes getting processed, I have to go back to camera screen and open the pic again to see the final version. Normally after getting processed it was automatically showing the proceesed version. Is this happening to anyone else ? I tried clearing the data of camera and also gallery, still happens.
[Samsung Galaxy S22 Ultra] dalepl:
Nope, mine shows up as soon as I take it. What settings are you using on the camera app?
[Samsung Galaxy S22 Ultra] wholelottared:
I'm talking about the special occasions where the pic is still getting rendered when you open it from the bottom left. If it gets rendered before you open it, it shows the final version yeah, but i'm not talking about that. Before the May update it was showing the final pic after the processing gets completed. Not using any special settings that impacts this.
[Samsung Galaxy S22 Ultra] dalepl:
I have no real delay between taking the picture and it shows in the little circle on the bottom left of the camera app. That is what you are talking about, correct.
[Samsung Galaxy S22 Ultra] wholelottared:
I think you're not understanding what i'm saying right now
[Samsung Galaxy S22 Ultra] SirSomnaathJi:
Yes. I can confirm this. I am facing the same problem.
[Samsung Galaxy S22 Ultra] wholelottared:
Thank you, glad someone finally understood it lol. I was almost gonna factory reset because I thought it's only happening on me. Can you report it with the Samsung Members app please ?
[Samsung Galaxy S22 Ultra] ZXR:
Are you also on AVDA?

Just tried it in portrait mode. I took the picture and directly opened it. First it shows the clear background and after some milliseconds the background got blurred. So I would say I do not have that bug.

Which effect are you using, which device and camera sw and so on. Something must be different.
[Samsung Galaxy S22 Ultra] wholelottared:
Portrait effect is different, i'm not talking about that. Portrait effect processing is also fine on mine. No, nothing is different and this problem exists on May update, confirmed on Reddit too. It happens on normal pics, not portraits. Also i'm not using any effects, I think you're not understanding the problem.