yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] ajsmsg78:
You need to use a tool to convert file_contexts.bin to file_contexts to repack Android Nougat ROMS. It's a program you have to run in Linux. The program and instructions are here:

http://ju.outofmemory.cn/entry/290070
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
thank for linux tool

on windows try use in cygwin
[Android Software/Hacking General [Developers Only]] nitinvaid:
how can i unpack android N Files using Windows
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
install java sdk again
[Android Software/Hacking General [Developers Only]] Danish.94:
Bro did yoy find any solution of repacking system.img? Which is flashable through odin?
[Android Software/Hacking General [Developers Only]] omikron20:
I install again latest version of sdk and still this same.
[Android Software/Hacking General [Developers Only]] soundsofmath:
cant repack dat because file_context is not recognize because android changed file_context to .bin file is there anyway around this thanks in advance great work on this tool
[Android Software/Hacking General [Developers Only]] KuranKaname:
Hey guys! I have a question, after you modify the content of the system.new.dat, when repacking, which size should you input?
[Android Software/Hacking General [Developers Only]] ashraf77160:
thanks for the tool

is it working for system.img samsung 6.0.1 ?
[Android Software/Hacking General [Developers Only]] Mr Hassan:
virus detected ,
[Android Software/Hacking General [Developers Only]] pras11:
Not working for nougat..Is there any other alternative?
[Android Software/Hacking General [Developers Only]] sadeghspy:
hi

this tool unpack successfully "cache.img" But don't repack it

( cache.img is file in csc file and me rename to system.img to work with tool)

it it use for other .img file except system.img?
[Android Software/Hacking General [Developers Only]] Rom:
@Kritsada Chaitan @	xpirt

Hello,

system.img repack error

When i try to repack the image system file from an MM LG stock ROM (xpirt etablish the changelogs for each new LG ROM), i get this following error:

An idea of the error ?

Personally i don't understand what this message can seem to me..

Another method:

xpirt, if you have the time and if you can, could you provide me a link of file(s) that help me to remove several stuff apps and edit another files in V30N LG ROM? :)

Thanks.

https://xdaforums.com/member.php?u=5132229
[Android Software/Hacking General [Developers Only]] link77kz:
Not working this tool with nougat:(

if you convert (file_contexts.bin in file_contexts) then collect (stoped almost the end of the installation)
[Android Software/Hacking General [Developers Only]] exodius48:
Does miui rom supported?
[Android Software/Hacking General [Developers Only]] Mr Hassan:
bro i successfully unpack/repack but the problem is that , before extract its showing like this, system.img EXT4 format

but after i repack try to flash it via odin so its failed , give me this error, invaild dev type something ,

even i try to repack it via cygwin so sygwin so repack the system file why?
[Android Software/Hacking General [Developers Only]] Hamidreza2010:
[MENTION=7161404]Kritsada Chaitan[/MENTION] any update for nougat?
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
i'm on have nougat phone for test
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
i'm no have nougat phone for test
[Android Software/Hacking General [Developers Only]] darkmantra:
Im trying to repack system.img but im having an error:

error: ext4_allocate_best_fit_partial: failed to allocate 1565 blocks, out of space?

Any idea what causing this error, I use system.img from FiiO X5III and modified some setting in build.prop
[Android Software/Hacking General [Developers Only]] Jancar 52 mcpe:
This tool supports the file_contexts.bin? Or I need to convert into a file? (Without extension)
[Android Software/Hacking General [Developers Only]] Bilgaxer:
so....still no update on how to extract for Nougat?
[Android Software/Hacking General [Developers Only]] Bilgaxer:
Nvm I got it
[Android Software/Hacking General [Developers Only]] omikron20:
This tool not working. I try to get help from developer since 4 months, and still no answer.

Wysłane z mojego Nexus 5X przy użyciu Tapatalka
[Android Software/Hacking General [Developers Only]] kessaras:
Not working on windows 10 x64. It can unpack until 7.1.1. 7.1.2 impossible.

Its stuck trying to unpack the .img. Waiting 4 hours and still nothing.

I tried different python versions of both the 2.x and 3.x , i tried one by one, i tried having both and............ Nothing........

Tool is useless if it can't unpack 7.1.2 and i need to transfer the files in ubuntu , unpack, transfer to windows, do what i wanna do, transfer to ubuntu to repack , transfer back to windows to pack them to .dat.

If i need 3 hours only to unpack/repack , better blow them all up and go to bed.

We have work to do too. Gym. many thing in the day. We can't spend 3 hours only for unpack/repack.

Thank you anyway , i can't complain. Besides this tool was only to help us make our life easier
[Android Software/Hacking General [Developers Only]] link77kz:
https://plus.google.com/u/0/collection/EiQ1NE
[Android Software/Hacking General [Developers Only]] Diablosss:
There many ways to convert file_context.bin to old file_context. But I tested on 2 Phones with Nougat . Its unpack and repack success. But if flash repacked system.img to device - if stuck on logo only. Even if not did any modifications in system.img.

So this will not work with nougat
[Android Software/Hacking General [Developers Only]] Tecalote:
Can you please upload this tools from: http://4pda.ru/forum/index.php?showtopic=267693&st=60#entry61909950 - because for Users which cannot read russian it is impossible to create an account on 4pda to get this very useful tools :)

Thank you!

Edit: I found it already: https://xdaforums.com/android/software-hacking/windows-tool-android-unpack-repack-dat-t3614840

Thanks!
[Android Software/Hacking General [Developers Only]] Maaz Muzammil:
Is it work on N based Roms
[Android Software/Hacking General [Developers Only]] chiwawa10:
How do you guys managed to repack the system.img? I tried unpacking and it did succeeded. However, even leaving it untouched. I am not able to repack the system.img. I left the files that were unpacked in the same folder without any modification. Am I missing some file(s)?
[Android Software/Hacking General [Developers Only]] mohsinajmal25:
After repacking the modified system.img (I just added superuser.apk to system partition) my phone gets stuck in a bootloop ... any solution to the problem?
[Android Software/Hacking General [Developers Only]] dunhill_:
Sorry for my English

I am newbie and I am trying to make new custom rom for my Galaxy A5-2017 (SM-A520F/DS)

The system.img was extracted from TAR file by 7-zip under Windows 7 32bit. Then I used this tool (32 bit) to unpack but got error as picture.

Does any body could help me to solve it. Thanks in advanced.

[IMG="Errors ImageExtractor.exe"]http://imageshack.com/a/img924/8928/8Zjamb.png[/IMG]
[Android Software/Hacking General [Developers Only]] nclwz:
I turn off anti-virus software after

It works fine
[Android Software/Hacking General [Developers Only]] dunhill_:
Friend, thank you for your experience.

I have no installed antivirus software.
[Android Software/Hacking General [Developers Only]] Net_Spy:
Can this tool unpack the sumsang stock roms too? if not what then what tool will unpack and repack the stock system img for samsung .

Regards

Net_Spy
[Android Software/Hacking General [Developers Only]] qoejohn:
Same here
[Android Software/Hacking General [Developers Only]] anryl:
Use romtool.rar there is newimg2ext2.exe for decompressing and then ext2explore for extracting.

https://www.mediafire.com/file/76qfcs59a34az3y/ROMTOOL.rar
[Android Software/Hacking General [Developers Only]] qoejohn:
Gonna try soon , thanks dude :o
[Android Software/Hacking General [Developers Only]] physicistman:
Android Wear.

I am somewhat new to Android Wear and I was attempting to use your program (along with others) and was unsure of the method of which your application uses to extract the image. I have a system.new.dat file along with the system.transfer.list file that is usually needed to turn it into a system folder (extract the image), but using your application I will always get failures. I see that it supports Android M, but do not see Android N and I am not sure whether that is where the failure lies or the fact that Android Wear uses squashfs, which may not work with the specific method within this program to extract the image. So I am asking if anyone can give clarification to any of my questions regarding this.

1. Does this application work with Android 7.1.1?

2. Does this application unpack squashfs based images?

3. Has anyone tried this application with any Android Wear dat files?

After trying multiple times I found I can close both windows just when the imgextractor.exe error pops up, as long as that is done you have an image file to work with that you can copy, it doesn't solve all problems, but it gives me an image file that then I could use the unsquashfs tools. I am almost certain that this specific program cannot handle the squashfs image and that is where the error comes in, so if you are attempting to unpack an android wear dat file, you can use this, but it will not unpack the image, that will require the squashfs tools within linux.
[Android Software/Hacking General [Developers Only]] rayman95:
got problem to repack not to extract....with V3

System_Unpack\file_contexts: No such file or directory

have extract a 7.1.2 crdroid for N9005 and got in system unpack folder all folders...I modify and remove some of them in app and priv-app but when I try to repack got this error message..I left all files in system unpack and lauch program and type option 2, but got error message and the system repack finish is still empty....

any idea, anyway thanks fot the program
[Android Software/Hacking General [Developers Only]] leonardoaraujo:
Hello!!

I have this working on windows 10 (64b), this is great, I wanted to delete some applications from "system / app", but when I re-install system.img, does the app come back? I forgot something ??
[Android Software/Hacking General [Developers Only]] tom.android:
how to work with win 7 ?
[Android Software/Hacking General [Developers Only]] Camlin3:
Update the thread & app ,it is necessary to add SYSTEM.TRANSFER.LIST into Input_Dat Directory.
[Android Software/Hacking General [Developers Only]] moldis:
Tried to unpack img and pack again, without any changes. Overall after repack system.img was bigger then original. Then tried to flash device with Flash Tool - got Checksum issue. Removed checksum.ini -> flash device -> success flashed, but phone stuck on bootloader (become brick).

What i am doing wrong ?
[Android Software/Hacking General [Developers Only]] bryantjopplin:
same here on any system img from 4.4 up to 8.0
[Android Software/Hacking General [Developers Only]] Devilix:
How is it possible to extract a single .apk file from NOUGAT system.img without getting this error???

[IMG="error"]https://img.xda-cdn.com/FczCeLqMLq575eYr4WJP4ICfwdI=/http%3A%2F%2Fimageshack.com%2Fa%2Fimg924%2F8928%2F8Zjamb.png[/IMG]

Thanks!
[Android Software/Hacking General [Developers Only]] mathan7:
imageextrater.exe stopped win 10 x64
[Android Software/Hacking General [Developers Only]] Steve Giordano:
Why i have this ??
[Android Software/Hacking General [Developers Only]] zeus_hunt:
Same issue as above.

I have extracted "file_contexts.bin" from the Boot IMG Extract\boot_\ramdisk as well.

I guess it is the same file as the one used for Extract.

As the tool would recognize the file "file_contexts.bin" during extraction I used the same file under "System_Unpack\file_contexts.bin" but it complains about "file_contexts" not present.

But if I rename "file_contexts.bin" to "file_contexts" then it complains of following...

System_Unpack\file_contexts: line 59 is missing fields, skipping

System_Unpack\file_contexts: Multiple same specifications for U.

System_Unpack\file_contexts: Invalid argument
[Android Software/Hacking General [Developers Only]] PalychUA:
Does not work on Oreo with system.new.dat.br
[Android Software/Hacking General [Developers Only]] TechX1991:
same issue here as well
[Android Software/Hacking General [Developers Only]] ze7zez:
OP is inactive, so it will not add support for brotli.

If you are using Windows, you can add to your script:

brotli.exe -d system.new.dat.br
[Android Software/Hacking General [Developers Only]] satierf:
conver file_context.bin to file_contexts

use the app attached to convert file_contexts.bin to file_contexts.

You can get file_contexts.bin from \initrd folder after unpacking boot.img.

The app and credits are not mine... found somewhere in xda but can't point where
[Android Software/Hacking General [Developers Only]] KaptanHarlock:
hi bro . when will u update this program for android N and android O ?
[Android Software/Hacking General [Developers Only]] :
This doesn't work, your instructions are terrible. Thumbs down
[Android Software/Hacking General [Developers Only]] 76raj:
[MENTION=4457566]Steve Giordano[/MENTION] you need to put file_contexts in System_Unpack folder

but please any one solve my problem :(
[Android Software/Hacking General [Developers Only]] PedroArmindo:
Thanks for this tool. This is very good. But I receved ImgExtractor.exe error. Please, fix it.
[Android Software/Hacking General [Developers Only]] onionchibi:
nougat support?
[Android Software/Hacking General [Developers Only]] Zackptg5:
Works fine for nougat ROMs
[Android Software/Hacking General [Developers Only]] Ash225:
---------- Post added at 01:40 AM ---------- Previous post was at 01:35 AM ----------

You need to first convert file_contexts.bin to file_context which is a readable format of the file. Use any file_context.bin converter and then put the converted file and then it should work

---------- Post added at 01:43 AM ---------- Previous post was at 01:40 AM ----------

I am getting error while using this tool in windows 10. I am trying to unpack miui globe rom the first stage that is system.new.dat to system.img gets done smoothly but then the imgextractor stops responding and crases and i am left with a half extracted system folder the same thing happens with lineage os too how can i fix it
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
Hmm why add chmod to the tool if its only ever used to try and hide you bin(Android-Tool) folder?

and why try changing attributes for every single folder your tool makes besides the output?

oh and why ask people to unpack their kernel to get the file context file when its included in the firmware file?

AND WHY DISTRIBUTE BOTH 64BIT AND 32BIT VERSIONS WHEN THE ONLY THING DIFFERENT IN BOTH OF THEM IS THE TITLE?

Literally.
[Android Software/Hacking General [Developers Only]] allansrc:
to work with that you need first unpack the .br file with brotli unpacker... then, it unpack system.new.dat.br into ***.new.dat... so on... you can use all over this Tool.. I had got it to Oreo on my device and work fine. (ROM PixelXperience)

---------- Post added at 05:59 AM ---------- Previous post was at 05:56 AM ----------

so, ...

I cannot repack the system_ folder into system.img... how can I get it?

thanks
[Android Software/Hacking General [Developers Only]] twixi007:
cannot create file "". the filename or extension is too long.

after this massage imgextractor.exe has stopped working
[Android Software/Hacking General [Developers Only]] razor17:
Unpacking system.new.dat . . . please wait . . . after this it says "How do you want to open this .py file, so what to do? I have to select some exe from android tool folder?

Please help
[Android Software/Hacking General [Developers Only]] Zillinium:
Phython set to path ???

Set to what path ? the default path of Python or the path of this software ???
[Xposed General] crismar2:
Hi

I'm getting this error when running xposed framework

'Xposed is not (yet) compatible with Android SDK version 19 or your processor architecture (armeabi-v7a)'

Samsung Galaxy Tab 2 P3100

Cyanogenmod 11 nightly 20122015

xposed framework 2.7.1

CWMR 6.0.5.1

:confused

Any idea?

Thanks

Enviado desde mi Vodafone Smart 4 max mediante Tapatalk
[Xposed General] meiser:
Upgrade to CM 12.1 and use Xposed v79.

http://xdaforums.com/galaxy-tab-2/7-inch-development/rom-cyanogenmod-12-cm12-t2997934

http://xdaforums.com/xposed/official-xposed-lollipop-t3030118

As recovery, you should use TWRP:

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

https://www.androidfilehost.com/?w=files&flid=25704
[Xposed General] Spott07:
They made some security updates to recent versions of 4.4 that broke Xposed compatibility. Read http://xdaforums.com/showthread.php?t=3249895
[XDA Assist] pratyushman:
Since the launch of launch of cm 13.0 i am waiting for sultan's devloped cm 13.o rom. Now it is available at xda but when i tried to flash it via twrp 2.8.6 recovery it fails showing the message failed to install updat.zip file in the rom. Pls rell me how to flash it
[Moto G 2014 LTE Q&A, Help & Troubleshooting] drewkringel:
I really wanted lollipop at the time so I installed lollipop from Motorola through recovery but it was the one from a different region or part of the world, It didn't install correctly (I wiped phoned before install) so after that happened I tried to install back to my regions (US Retail) stock 4.4.4 Kitkat but now it didn't want to install that either. The only ROM that I can get to install now is Cyanogen and a few other custom ROMs but still no stock by now lollipop has come out for my model and region XT1045 (Moto G 4G LTE Retail) but I cant get that to install either (I have stock image of lollipop).

INFO:

ROM Currently: CyanogenMod

Model: XT1045

Recovery: TWRP

Bootloader: Unlocked

Rooted: yes

Please ask for any other info that will assist you in solving my problem. Thanks in advance!

Edit: Bootloader: Unlocked status code: 3
[Moto G 2014 LTE Q&A, Help & Troubleshooting] W3ND31:
You are on the wrong Forum, man. your phone is Peregrine, not thea

http://xdaforums.com/moto-g/4g-development
[8525, TyTN, MDA Vario II, JasJam ROM Development] brainet:
please help, when i install "HTC Home Plug Today Plugin.cab" which i download fron here (i forgot which thread is from). iits missing?

i dont know the name of that icon, but can anyone here tell me how to show it up.

PS: i have soft reset to get original today screen, but still doesnt show up :confused:

so sorry, i'm such a newbie :o
[8525, TyTN, MDA Vario II, JasJam ROM Development] larsuck:
That is the HTC X-Button task manager. You can find a copy of the latest in DiStefano's cab collection

And hey, pretty good screen capture edit for a newbie.
[8525, TyTN, MDA Vario II, JasJam ROM Development] mazdaspeed:
lol HTC noob

but good with photo chop
[8525, TyTN, MDA Vario II, JasJam ROM Development] austinsnyc:
ya also might want to tell the noob that there is a check box in the X-button options to turn that on and off
[8525, TyTN, MDA Vario II, JasJam ROM Development] brainet:
thank you all, i download "HTC X-Button task manager" and its working great :D
[8525, TyTN, MDA Vario II, JasJam ROM Development] ericc191:
^ that was all you had to do bro..
[Galaxy 3 Q&A, Help & Troubleshooting] DerpyDerp:
Hi there,

I'm still using our beautiful Galaxy phone. But as the new year has started some strange things happened to my phone.

It will no longer notify me when the screen is locked. So no reminder and no alarm clocks(!).

Every time I reboot, the year is set back to 2010. But the time is unchanged. (Time would reset too if internal battery clock is dead)

I can "fix" above bugs, when I change the current date to something before the year 2016.

For me (as a programmer and hacker) it looks like the internal hardware clock is not sending interrupts to the CPU when the year is greater than 2015. This means: No alarms/notifications and not even screen locking after screen timeout. And if some alarm is pending and I wave my hand just above the proximity sensor (above the screen) it will trigger some "wake-up" event and the notification/alarm will pop up.

Is anybody else experiencing these issues? And on which ROM are you running?

I'm currently on CM7.2 alpha MTD. I'm still hoping this is software related... :(
[Galaxy 3 Q&A, Help & Troubleshooting] mankokoma:
I can confirm the behavior. After reboot it's set to 2010 and the alarm is ringing too late or not at all... Everyone was afraid of the '2k bug' (the older ones will remember) and nothing happened... Now obviously planned obsolescence by Samsung - it's not a bug, it's a feature. My next Phone won't be made by SAMSUNG...
[Galaxy 3 Q&A, Help & Troubleshooting] DerpyDerp:
Thank you for the confirmation.

What I tried so far: (As the hardware seems to have a problem with the year '2016' I searched for ways to fake this date for the system and set the hardware clock back to 2010)

Privacy tools like XPosed/XPrivacy don't have the option to fake date or time for apps.

There is a library (libfaketime) that can fake the timestamp for linux processes (like the android system, which is just a process on the underlying linux). I failed to cross-compile this application because of missing library functionality (librt, libpthread, ..) on our phones. Or maybe I'm just missing something here.

I checked the kernel source for our CM7.2 MTD version on github. Maybe we can ask [MENTION=3404423]marcellusbe[/MENTION] to point us to the lines that read the timestamp from the hardware and mess around with this value. Or maybe, because he coded a lot of things, he knows better whats wrong with the year 2016 on our phones.

To have a working alarm clock I set the date back to 2015 before I go to bed. But for the notifications while the phone is locked we need something different ... :(

I also tried different years while testing if the screen would lock after the timeout:

1970: yes
1980: yes
1990: yes
2000: yes
2010: yes
2015: yes
2016: no [since 2016-01-01 00:00 UTC]
2020: no
2030: no
2033: no
2034: yes [since 2034-01-01 11:00 UTC]
2035: yes

So if we have enough patience we'll be able to use the phone without problems again. .. well maybe we've got other problems then ;)
[Galaxy 3 Q&A, Help & Troubleshooting] mankokoma:
tried to switch to 1960 - didn't work ;)
[Galaxy 3 Q&A, Help & Troubleshooting] arun356y:
I thought its only my device having this bug, I am on stock Froyo. Its really irritating.
[Galaxy 3 Q&A, Help & Troubleshooting] DerpyDerp:
Just a quick update here... You can find the development related questions here.

I compiled the (CM7.2 MTD) kernel with a fix that changes the communication with the hardware clock. It's now running on my phone without problems, alarms and notifications are working again. BUT: the graphics driver screw up somehow while compiling. That still needs to be fixed ... So stay tuned ;)
[Galaxy 3 Q&A, Help & Troubleshooting] DerpyDerp:
Here is the updated kernel for the CM7.2 MTD ROM. That was some pain in the ... So, have fun with this one.

Since the hardware clock "thinks" it's the year 2008 (subtract 8 years from true time), this should work until 2023-12-31. :P
[Galaxy 3 Q&A, Help & Troubleshooting] Wade23:
clock

Hello, i have stock JPU(2.2 Froyo) rom and it worked fine till 1.1.2016. I flashed JK1(2.1 Eclair) and clocks working fine.. Can someone experienced look at it and compare, if its posible, and make a fix for stock JPU? im total noob, so if its not posible then tell me please. btw is that "feature" made on purpose by samsung or its just a bug? and please can someone explain to me more what is actually wrong? once more, i dont know anything about programing or android but im curious. thanks for reply, and sorry for my english and hijacking this thread.
[Galaxy 3 Q&A, Help & Troubleshooting] Wade23:
wow, really long reply.. really thanks for explanation.. ill try that on weekend..

another question arised in my noob head.. :) .. what is in that zimage? can i use zimage from 2.1 rom where clock working fine for 2.2?