Repacking surface-recovery-image - Microsoft Surface Duo Guides, News, & Discussion

So I downloaded the stock image from microsoft for the duo, unpacked and made some changes that I would like to some of the img files (system,boot, etc). But I have not done a repack of the payload.bin file ever.
Does anyone know how to do that? This is the last step for me and I have been looking all over the place but cant find anything. Any help would be appreciated!

Did you ever figure this out?

No I still havent figured it out. Im so close to making the changes I need on my phone just need to figure out the repack.

Javelin177 said:
No I still havent figured it out. Im so close to making the changes I need on my phone just need to figure out the repack.
Click to expand...
Click to collapse
Have you tried Super's Kitchen? I'm presuming this is something that could work! Never tried it though!
Here's the link to the tool in XDA

Related

Custom Theming?

I am hoping to learn how to just be able to edit my themes of other peoples, then learn how to make my own themes from scratch. Could anyone point me to a general direction on how to get started?
i found this, http://www.androidevolve.com/index.php?option=com_content&view=article&id=3&Itemid=10, but it seems a bit outdated and a bit hard to follow. I am pretty decent when it comes to phone technology and computer smarts, but i cannot find a decent guide to help me with theming. Would anyone like to point me in the direction and help a fellow learner?
Pm mee añd when I get by my computer I'll send you done links.
backdown said:
I am hoping to learn how to just be able to edit my themes of other peoples, then learn how to make my own themes from scratch. Could anyone point me to a general direction on how to get started?
i found this, http://www.androidevolve.com/index.php?option=com_content&view=article&id=3&Itemid=10, but it seems a bit outdated and a bit hard to follow. I am pretty decent when it comes to phone technology and computer smarts, but i cannot find a decent guide to help me with theming. Would anyone like to point me in the direction and help a fellow learner?
Click to expand...
Click to collapse
Swyped from Eva running Myn's RLS4!
This might help you get started. I hear this guy is pretty cool
http://forum.xda-developers.com/showthread.php?t=873672
Hmm..i followed the steps, then i made the new image and put it on there. Flash it, and it is still the same. However, when i go back to the image on the zip, it is the new one. Do i have to sign it after i change it? D:
nukedukem said:
This might help you get started. I hear this guy is pretty cool
http://forum.xda-developers.com/showthread.php?t=873672
Click to expand...
Click to collapse
Lol you beat me to it was about to send the same link I really like how much people help each other out in this community
And thanks for the help guys, i really appreciate it. Just a bit confused right now..haha
backdown said:
And thanks for the help guys, i really appreciate it. Just a bit confused right now..haha
Click to expand...
Click to collapse
welcome did you hit the thanks button on his post? what are you confused on bud
nuggyunlimited said:
welcome did you hit the thanks button on his post? what are you confused on bud
Click to expand...
Click to collapse
On the signing part..like, i install what you said to install(the autosigning thing) but the whole process is confusing..
backdown said:
Hmm..i followed the steps, then i made the new image and put it on there. Flash it, and it is still the same. However, when i go back to the image on the zip, it is the new one. Do i have to sign it after i change it? D:
Click to expand...
Click to collapse
What file are you themeing? If it's a market app or system app that's been updated you have to theme the app in /data not /system.
I am theming a actual rom theme.
OK so you are just tweaking an existing theme? And you tried to change some images but the changes don't stick? Could you go through the steps you took? I'm rewriting the guide to make it a little more coherent and add some tips on market apps and such.
Yes, i am just tweaking an existing rom.
Okay.. download the zipped theme onto my desktop. Explored it and went to system, framework, framework-res.apk, res, drawable-hdpi.
I found an image that i wanted to change..lets say the music play button, in this instance. I changed the color of it from white to green, then i saved it. It asked me if i want to replace the image, in which i replied with yes. I flashed the theme on my phone..and the button is still white.
Okay, re-download the theme again, now this time open (not unzip) the new downloaded framework-res.apk and drag the changed icons you made earlier into the correct folder of this new file. Now close the opened file and flash it.

[Q] Installing .zip files in recovery

There are some .zip files that I will install in recovery mode and will confirm installation. When I reboot the phone, the apps or mods that I install will not have installed. I am stock rooted on Galaxy Note 2 on JB. Any ideas or suggestions?
Thanks
Need more info.. and re word it a lil..and what mods are u flashing in what sequence?
twanskys204 said:
Need more info.. and re word it a lil
Click to expand...
Click to collapse
Ok. Example: Say I take a .zip file that you have made for me and I download it. I boot into recovery mode and find the file and flash it, gives me the message that it has completed but when the phone reboots it's no where to be found. Did it not install or is there a place I need to look on my phone that it might be hidden?
just because its a zip file, doesnt mean it has the install routine baked into it..
As Twansky said, what is the file, and what is it for?
wase4711 said:
just because its a zip file, doesnt mean it has the install routine baked into it..
As Twansky said, what is the file, and what is it for?
Click to expand...
Click to collapse
Ok. The files that I've tried would be mods for toggles, keyboards, and different add ons. For the most part, all of the files that I've flashed have worked. The ones that didn't work I'm not disappointed that they didn't, I was just wondering if possibly there was something or somewhere that I needed to look to see if they actually did but needed to activate per say. Could you explain what you mean by "install routine baked in" please. I'm a noob and learning everyday.
Thank you
some of those zip files, were probably just a bunch of individual files, zipped up to save room, and make them just 1 file insted of many..
a "flashable" zip file will have a few folders, one being meta.inf, another being system, along with some others...
post one of those zips that you are having a problem with here, and we will take a look at it..
what ^^^^^^^^^^ Said....g
Wase, let me see if I still have them on my phone. I know a couple that I tried were rom specific but one worked and one didn't. Those are the ones I expected not to work. Give me a minute to see what I still have.
http://db.tt/kXFyYyIJ
This is one that didn't work that is for ROM XXDLL4. Another file that I downloaded is the glass dialer did work. What I guess I'm asking is, why would one work but not the other. I know these were fir that specific rom, I'm just confused on why one would work and not the other.
twanskys204 said:
Need more info.. and re word it a lil..and what mods are u flashing in what sequence?
Click to expand...
Click to collapse
Sorry, I did not answer that part.
Boot into recovery>Find location where file was downloaded>Click to install>Confirm install>Install confirmed>Reboot.
I have tried wiping cache and not wiping cache.
Open up these "zips" and look inside..
yeah, it was a flashable zip..no idea why it wouldnt work, but, as you said, this is not a mod for our phone specifically, so that might be why..Just like anything else electronic, not every rom/mod/flashable file is going to work on every phone; thats just the way it is...
wase4711 said:
yeah, it was a flashable zip..no idea why it wouldnt work, but, as you said, this is not a mod for our phone specifically, so that might be why..Just like anything else electronic, not every rom/mod/flashable file is going to work on every phone; thats just the way it is...
Click to expand...
Click to collapse
Exactly... use caution flashing "flashable" zips unless you know for a fact it accomodates your specific device. You need to look in the META-INF folder and review the updater-script. In there you will see specific BLKs (partitions) which are mounted/extracted/written/unmounted. Devices don't all use the exact same "/dev/block/mmcblk0xx" for /system or /data partitions. Some of these scripts are fairly universal but I've seen others which call specific devblock partitions.
Thank you everyone for the help on this. I finally got brave enough about a hour ago and flashed a custom rom fir the first time.
Thanks again for all the help and info.

Does anybody know any way to manually insert gapps as an apk?

I'm trying to get my ROM all smoothed out. It a catch 22 system. I can load the sony xperia walkman and get it functioning properly, or I can install gapps. If I do one I can't do the other for some reason. So, I went with the walkman. Now I'm trying to figure out how to turn the gapps zip into a good apk file to load with android tuner from my sd card. Is that even possible? I was able to manually install a few of the apk's from the zip file, but 90% wouldn't install. I assume because I haven't figured out how to install the supporting files. How can I get the play store functioning, even in a barebones state? There has to be a way... this is Android!!! Lol As I stand now, I have the play store icon, but it only loads for a fraction of a second. No message of any kind. It just doesn't work. Any suggestions would be nice. I'm on the Bleu Mynt ROM if that helps you any.
TheEvoNoob said:
I'm trying to get my ROM all smoothed out. It a catch 22 system. I can load the sony xperia walkman and get it functioning properly, or I can install gapps. If I do one I can't do the other for some reason. So, I went with the walkman. Now I'm trying to figure out how to turn the gapps zip into a good apk file to load with android tuner from my sd card. Is that even possible? I was able to manually install a few of the apk's from the zip file, but 90% wouldn't install. I assume because I haven't figured out how to install the supporting files. How can I get the play store functioning, even in a barebones state? There has to be a way... this is Android!!! Lol As I stand now, I have the play store icon, but it only loads for a fraction of a second. No message of any kind. It just doesn't work. Any suggestions would be nice. I'm on the Bleu Mynt ROM if that helps you any.
Click to expand...
Click to collapse
You and that walkman app,hahahaha,your like me,"never give up",but anyway,open the zip file with the gapps inside and look at the folder structure,add the files to their respective folders on your rom,then you need to look at the updater script,which is in the META folder and see what needs to be symlinked and add the correct permissions for them to work correctly,you can also skip most of the bs,by just downloading what you need from the playstore,as far as gapps goes.Trial and error,you just have to keep playing with it until you get it right,it could be the rom,try a different rom also.
Diablo67 said:
You and that walkman app,hahahaha,your like me,"never give up",but anyway,open the zip file with the gapps inside and look at the folder structure,add the files to their respective folders on your rom,then you need to look at the updater script,which is in the META folder and see what needs to be symlinked and add the correct permissions for them to work correctly,you can also skip most of the bs,by just downloading what you need from the playstore,as far as gapps goes.Trial and error,you just have to keep playing with it until you get it right,it could be the rom,try a different rom also.
Click to expand...
Click to collapse
There is no other ROM son.... I'm only going to have the best. Period. Thank you for the answer. I'll work on it later. I'm going to go do some extra work today so I can afford the Galaxy S4 I was talking about buying. Lol
EDIT-----> My extra work got cancelled, so I can play with this all day today.... Makes me happy.
I moved all the files except for the lang_pico file because I noticed it was all languages besides english. I left it out. Is this okay? Everything is in the proper place but the update-binary and updater script. It's encoded and I do not know the name of the code to research. Can you tell me what language it is, and if 7-7ip or Notepad++ needs a plug-in to read/write or otherwise edit the script? What do I need to research here?
EDIT-----> I'm looking for something called Update.zip Manager 3.0. Is this a tool that will help me?
TheEvoNoob said:
I moved all the files except for the lang_pico file because I noticed it was all languages besides english. I left it out. Is this okay? Everything is in the proper place but the update-binary and updater script. It's encoded and I do not know the name of the code to research. Can you tell me what language it is, and if 7-7ip or Notepad++ needs a plug-in to read/write or otherwise edit the script? What do I need to research here?
EDIT-----> I'm looking for something called Update.zip Manager 3.0. Is this a tool that will help me?
Click to expand...
Click to collapse
Here use this to decompile and compile apk's.... http://forum.xda-developers.com/showthread.php?t=2213985
Thanks for that link. I can see I'm gonna have to do a lot more research before I embark on that journey. I need to get familiar with the terminology first. In the mean time, I found a pretty awesome ROM that loaded up everything I need with no problems, and it's very well put together. It's kinda plain, compared to the cool factor of the Blue Mynt theme, but it functions rather well. It's a good trade off. The ROM I have now is the Supersonic Unofficial CarbonROM by Wambo_Bombo. Have you seen this? My question is, do you have anything in the works coming down the pipe? I'd love to have something like this with your theme genius. Thank you for trying to help me sort things out with Bleu Mynt. I know you're a busy guy, and it was, and is appreciated. Let me know ASAP when you have a new release please.
TheEvoNoob said:
Thanks for that link. I can see I'm gonna have to do a lot more research before I embark on that journey. I need to get familiar with the terminology first. In the mean time, I found a pretty awesome ROM that loaded up everything I need with no problems, and it's very well put together. It's kinda plain, compared to the cool factor of the Blue Mynt theme, but it functions rather well. It's a good trade off. The ROM I have now is the Supersonic Unofficial CarbonROM by Wambo_Bombo. Have you seen this? My question is, do you have anything in the works coming down the pipe? I'd love to have something like this with your theme genius. Thank you for trying to help me sort things out with Bleu Mynt. I know you're a busy guy, and it was, and is appreciated. Let me know ASAP when you have a new release please.
Click to expand...
Click to collapse
Read my sticky in android/general... http://forum.xda-developers.com/showthread.php?t=1466228
This problem is finally resolved. I found this and it works consistently on every ROM that I couldn't load gapps and the walkman on before. They are called Zgapps. Check them out if you aren't familiar. Maybe you know somebody else who could benefit from them.
http://forum.xda-developers.com/showthread.php?t=2240652
Thank you for being friendly and always trying to help me. I'm sure you get bombarded with questions, so I try to do things on my own first. I'm learning as fast as I can. I appreciate your help over the stumbling stones.

[Solved] Files needed to fix phone (looking for "bootanimation" and others)

*******************************************************************************************************************************************************************************
SOLUTION FOUND, much thanks to @DocHoliday77
See here for "bootanimation", "bootsamsung", and "bootsamsungloop" files or bottom of this post.
I unziped and I copied "bootanimation" to /system/bin and changed the permissions, I only needed the "bootanimation" file, I had to change permissions to rwe-re-re, other combinations might work/be better. If someone needs to use the other two files, they go in /system/media
Again, credit to @DocHoliday77 for the files!
*******************************************************************************************************************************************************************************
Hey everyone,
So, I tried changing my boot animation, and now I don't have any (it's just a black screen with the original sound)
(I'm on Candian Telus, with 4.4.2)
Basically what I'm asking/looking for is someone to attach a couple files off there phone so I can replace the ones that were altered through this tutorial, and hopefully get a boot animation back.
I'm not 100% sure if I need all of these, or if I may need more, but I have a pretty good idea of what was likely altered:
/system/bin/bootanimation (the extension-less file, this is one that I'm positive that got altered)
/system/bin/samsungani (possibly just and additon fr tutorial, unsure if needed. Information on if others have it would be awesome)
Any information on my situation would be amazing!
Have you tried factory reset (you'll lose data this way)?
Can you flash your ROM again (data will be wiped though)?
OKAstro said:
Have you tried factory reset (you'll lose data this way)?
Can you flash your ROM again (data will be wiped though)?
Click to expand...
Click to collapse
No, I haven't tried either. I'm trying to avoid losing any data, if possible.
Also, I'm not sure if it will fix the problem since the files have been altered directly. (I'm not sure if it will just reset with the file it has now or not)
Any thoughts?
Factory resetting won't help since boot animation is on /system.
If you can't find them here you can always copy them from a stock rom.
Make sure the binary file is from the same build as your current rom. It might not matter, but it just might.
Sent from my SAMSUNG-SGH-I747 using Tapatalk
DocHoliday77 said:
Factory resetting won't help since boot animation is on /system.
If you can't find them here you can always copy them from a stock rom.
Make sure the binary file is from the same build as your current rom. It might not matter, but it just might.
Sent from my SAMSUNG-SGH-I747 using Tapatalk
Click to expand...
Click to collapse
Yeah, I'm really hoping someone is nice enough to copy and paste their bootanimation file in here, but I doubt it'll happen...
Any tips/ideas on how to go about copying from a stock rom? (I'm new to a lot of this stuff, so I'm unsure of how to go about this)
you can search on google and download boot animations.
but like doc said , ' make sure is from same build cause it might just matter. i DL cm 10.1 from internet and works great .
just a thought.
err on the side of kindness
@mrrocketdog
It's not so much a boot animation itself that I'm having trouble with, but the actual system file called "bootanimation".
I believe when I tried to install a custom animation I/the files from a tutorial I was using altered it, and now it doesn't work whatsoever.
If you know of any boot animation tutorials/files that could fix this though that would be sick!
Either way thanks for the input!
You can try these if you like. I'm running Likewise rom right now, but they should work fine for you.
http://forum.xda-developers.com/attachment.php?attachmentid=2969141&stc=1&d=1413149765
Solved
DocHoliday77 said:
You can try these if you like. I'm running Likewise rom right now, but they should work fine for you.
http://forum.xda-developers.com/attachment.php?attachmentid=2969141&stc=1&d=1413149765
Click to expand...
Click to collapse
I love you. At first it didn't work but I changed some permission and now it's back to stock! Thank you sooo much!
Not to to add further trouble, but to prevent any future mishaps, could you point me in the right direction to getting a custom boot animation running?
maybe here..
http://forum.xda-developers.com/showthread.php?t=2843830
if you use search a whole lot pops up.
good luck. :thumbup:
err on the side of kindness
There should be a thread(s) in the Themes and Apps section. I wouldn't use any not confirmed or made for the S3 though. And I wouldn't mess with that binary file either. (Unless specifically told to do so in one of our threads.) Any we have here should work fine just using the actual animation files.
Some threads may also have a return to stock zip file you can flash in recovery.
Sent from my SAMSUNG-SGH-I747 using Tapatalk
think thats o.k. doc ? so maybe be REAL FREAKIN CAREFUL.
err on the side of kindness
Alright guys, sounds like a plan. I'll make sure to be a whole lot more careful this time around! Thanks a bunch!
mrrocketdog said:
think thats o.k. doc ? so maybe be REAL FREAKIN CAREFUL.
err on the side of kindness
Click to expand...
Click to collapse
Are you referring to the one you linked to? To be perfectly honest I wouldn't try it. It was for the HTC One, right? I just don't know enough about HTC devices. It might be safe to use the animation, but it may just not work. (I doubt there'd be much danger of a hard brick though, but better safe....)
Sent from my SAMSUNG-SGH-I747 using Tapatalk
yup, thats the one. i forget sometimes : READ READ READ. thanks for double checking behind me. will be more careful in future. dont want to cause xtra problems !!!!!!
err on the side of kindness
No problem. It could be perfectly ok to use, but since I don't know, I consider it a higher risk is all. Another thing to consider is if it's dpi is different the images probably wouldn't display correctly.
Sent from my SAMSUNG-SGH-I747 using Tapatalk
@DocHoliday77
So after a while of researching I was thinking of downloading CyanogenMod, and the using that to do boot animation stuff, thoughts?
As long as it's from the S3 versions of cm, I believe it would be safe to try. Probably the worst that might occur would be no animation, like you already experienced. I don't use CM though, and don't really mess with the boot animation much to begin with, so it is possible it wouldn't work as expected, I'm just not sure on that. But it should be simple enough to get back to the stock animation with the files I posted before.
Sent from my SAMSUNG-SGH-I747 using Tapatalk
Yeah, I guess that's really the worse that could happen, I've made a backup of my stock ROM so I should be able to go back if needed. Again, thanks for all the help!

(REQ) D851 framework **RESOLVED**

Could someone hook me up with an untouched copy of lg framework apk and framework apk por favor??
C'mon someone else besides me has to be still running stock.. It is a very easy copy and upload, please help a brother out.
Im sorry, I tried to be patient. I am pretty sure Ive helped more than a few people out around here. All Im asking for is about 5mins or less for someone to copy and upload these. I didnt screw anything up, just want to remove some mods I flashed a long time ago in which I no longer have a copy of.
Swizzle82 said:
Im sorry, I tried to be patient. I am pretty sure Ive helped more than a few people out around here. All Im asking for is about 5mins or less for someone to copy and upload these. I didnt screw anything up, just want to remove some mods I flashed a long time ago in which I no longer have a copy of.
Click to expand...
Click to collapse
Idk what your currently running, if its bone stock or what but you should be able to rip what you need from a rom download/. I unfortunately am running aosp or else I would help you in a heartbeat. There are alternate methods though!! good luck... also just came to mind, try pulling it from a nand or twrp backup.
Yeah I flashed these so long ago I dont have that backup anymore. Im pure stock as far as rom goes Im on 10m. I found some from 10c but its the framework and one thing you most definetly need the matching version of. I dont have my computer for a while so I cant return to stock and start over.
Thanks for the reply though.
Downloaded and extracted from zone rom.. All good now.

Categories

Resources