yashsingh1/xdaforums huggingface dataset:
[Android Software Development] M_J_Nazari:
Hi

when i made system.img from my phone, SU was installed correctly, i just have problem when i restored the image from odin.

the issue has fixed since i updated java version to 7.0 , now i have no any errors, just some warning from gcc. i just ignore them.

allready i have problem on setting correct permissions, anyone has any idea please?

thank you
[Android Software Development] A.S._id:
[MENTION=2744627]M_J_Nazari[/MENTION]

some ?

you can already install supersu via cwm recovery or cf-auto-root for your device, after this, you can make archive tar with root files for extracting into mounted system img...
[Android Software Development] M_J_Nazari:
already i did it,

i didi all modification on rom, then created an image from my phone.

su
make_ext4fs -s -l 1500M -a system /sdcard/system.img /system

1500MB is for S4mini 9192

i installed system.img alone from odin, shall i install all images at the same time? (e.g. kernel, recovery, modem ...) could it be an issue?
[Android Software Development] A.S._id:
[MENTION=2744627]M_J_Nazari[/MENTION]

I'll thinking, you has problem not with permission of the files, but SELinux contexts of this files, if you want to use your custom files and a stock kernel, you mast to add contexts permissions for this custom files. For this you must before making system.img enter command into terminal

$ restorecon -v
[Android Software Development] Ctrl-Freak:
Howdy. I was hoping to get a little help using make_ext4fs to make a fastboot flashable image of a lollipop ext4 image of /system.

I've compiled make_ext4fs from several different android branches, and always get one of two different errors:

This first error looks like make_ext4fs is not using regex to locate the following from file_contexts:

/system(/.*)? u:object_r:system_file:s0

sudo repack3/android_img_repack_tools/make_ext4fs -s -S file_contexts -l 1610612736 -a system system_new.img sys1/
Creating filesystem with parameters:
Size: 1610612736
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 6144
Label:
Blocks: 393216
Block groups: 12
Reserved block group size: 95
error: build_directory_structure: cannot lookup security context for /system/app

and the other error is below. (I tried simply sorting the file_contexts file.)

sudo repack2/android_img_repack_tools/make_ext4fs -s -S file_contexts -l 1610612736 -a system system_new.img sys1/
Creating filesystem with parameters:
Size: 1610612736
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 6144
Label:
Blocks: 393216
Block groups: 12
Reserved block group size: 95
error: xattr_assert_sane: BUG: extended attributes are not sorted

phone: 2013 motox

make_ext4fs works fine if I leave out the -S parameter.

I've googled, but cannot find any answers.

I've attached the file_contexts file.

Thanks!
[Android Software Development] A.S._id:
Ctrl-Freak

Why are you making rebuilding correct created file system via make_ext4fs and updating permissions all files that normally created?

You can, for edit, to use only converters simg2img and ext2simg, and to change permissions only new added files...

$ simg2img system.img system.raw

$ mkdir system

$ sudo mount -t ext4 -o loop system.raw system

editing

$ ext2simg -v system.raw system.new.img
[Android Software Development] Ctrl-Freak:
Understood. (I had found the ext2simg syntax within your Moto G tool, and it worked without error...)

I have a very weak understanding of selinux permissions, and I was hoping that after I 'tweak' /system that I could apply the permissions automatically with the -S file_contexts switch. I should have spent all of this time learning selinux...

Thanks!!
[Android Software Development] A.S._id:
eg I assign selinux permissions to the mounted image so:

I'm create small script:

#!/bin/bash

echo set file contexts

ch_con() {
sudo chcon -v u:object_r:system_file:s0 $1
}
ch_con system/bin/.ext/.su
ch_con system/bin/ddexe
ch_con system/xbin/su
ch_con system/xbin/daemonsu
ch_con system/etc/install-recovery.sh
ch_con system/etc/init.d/99SuperSUDaemon
ch_con system/etc/.installed_su_daemon
ch_con system/app/Superuser.apk
ch_con system/lib/libdummy.so
ch_con system/etc/permissions/platform.xml
echo
[Android Software Development] Ctrl-Freak:
Thanks a million!

---------- Post added at 03:39 PM ---------- Previous post was at 03:29 PM ----------

Another question.

I started with a stock motorola system.img file that is 935,103,928 bytes.

I fastboot flashed that to my device, rooted, then used dd to make an image of the /system ext4 partition:

dd if=/dev/block/platform/msm_sdcc.1/by-name/system of=/sdcard/Download/system_orig.img

To test, I used ext2simg without any more changes:

ext2simg -v system_orig.img system_new.img

Now system_new.img is 1,434,486,540 bytes, but all I added was su.

How does motorola shrink the sparse file? (Maybe simg2simg ??)

Thanks again.
[Android Software Development] A.S._id:
Yes, simg2simg can reduce file size by splitting into several parts, but it is usually not necessary, fastboot can flash and in this state
[Android Software Development] A.S._id:
Added:

Usage:
[Android Software Development] thinh182009:
hj bro , how to img repack chip Marvell PXA986 , Marvell ARMADA PXA1088 .... :good:
[Android Software Development] A.S._id:
I don'tknow what the fs this device, but you can analyze your rom via binwalk

https://github.com/devttys0/binwalk

http://binwalk.org/
[Android Software Development] bovirus:
[MENTION=2976903]A.S._id[/MENTION]

Could you please update your tools to 5.1.0_r3 (new tag/build for Android)? Thanks.
[Android Software Development] A.S._id:
Why? What do not like r2? What changes will be?
[Android Software Development] bovirus:
I didn't know.

As for rpevious version that I reported I saw the new tag on Android build and I think that was different from 5.1.0:r1.
[Android Software Development] A.S._id:
okay, updated...
[Android Software Development] purian23:
Thank you!

Have you ever encountered this? Really odd, my system is fully up to date, all build tools etc installed.

It doesn't matter if I enter sudo or go full root, the same exists.

purian23@Samsung ~/android_img_repack_tools $ git checkout android-5.1.0_r3Already on 'android-5.1.0_r3'
Your branch is up-to-date with 'origin/android-5.1.0_r3'.
purian23@Samsung ~/android_img_repack_tools $ ./configure
bash: ./configure: Permission denied
purian23@Samsung ~/android_img_repack_tools $
[Android Software Development] A.S._id:
You must give for "configure" executable permissions...
[Android Software Development] purian23:
Wow ... what a n00b move by myself! Thank you sir. It's compiling now :)
[Android Software Development] A.S._id:
No, it is I'm a n00b -- I forgot to add permissions into git repo...
[Android Software Development] purian23:
You Rock! Your tools worked perfectly for me to edit stock images and recompile!!

Thank you!
[Android Software Development] pigeon:
Nexus 7 2013

Hi all,

Has anyone here managed to customize/repack a working system.img for the Nexus 7 (2013)?

I can create my own system.img file with the usual simg2img, loop mount, mkuserimg.sh/make_ext4fs combo , but if I flash it to the device (fastboot flash system mysystem.img), it fails to boot. It simply stucks at the boot Google logo. If I flash the original unmodified system.img though, it is booting.

I used the system.img from the 5.0.2 LRX22G factory image from https://developers.google.com/android/nexus/images, and I am using branch android-5.0.2_r1 in the android_img_repack_tools git repo.

Thanks!
[Android Software Development] A.S._id:
[MENTION=218649]pigeon[/MENTION]

for making flash img use ext2simg
[Android Software Development] pigeon:
Thanks! That fixes it. Couldn't be easier.
[Android Software Development] bovirus:
[MENTION=2976903]A.S._id[/MENTION]

New build - Android 5.1_r5

https://android.googlesource.com/platform/manifest/+refs

Please update your tools

Should be possible to use some util like

img2simg

ext2simg

img2simg

simg2img

sgs4ext4fs - Chainfire's tool

unpackbootimg

under Windows? How can do that?
[Android Software Development] A.S._id:
NEW!

Added:

Experimental:

android_5.1_img_repack_tools_CYGWIN (beta)
[Android Software Development] linhbs:
* Please help me:

Thank you very much.
[Android Software Development] bovirus:
[MENTION=2976903]A.S._id[/MENTION]

IS there any plan for 5.1.0_r5?

Is there enough change in config file

BRANCH=android-5.1.0_r3

to

BRANCH=android-5.1.0_r5

Cygwin build didn't work.

Any exe that you rin reprt "is not a valid in32 application" and DOS prompr report "access denied".
[Android Software Development] A.S._id:
I dont know

Try to use ./simg2img.exe
[Android Software Development] bovirus:
Ok. Now I understood. It works UNDER Cygwin emulation.

Probably we understood that it can be worked just with cygwin library (dll) under dos prompt.

What's about 5.1.0:r5 toolset? Is it just rename version in configure?
[Android Software Development] A.S._id:
Yes
[Android Software Development] A.S._id:
update!

android_5.1_img_repack_tools_CYGWIN

Source

x32 exe

x64 exe
[Android Software Development] bovirus:
Many thanks for your continuous improvements.

I found that in your archive is missing cygz.dll that is required for some exe file.

Please update your x86/x64 archive including cygz.dll (for bot x86 and x64 archive).

In x64 archive is not included cyggcc_s-1.dll. What's the matter?

Is not necessary for x64 and necessary for x86 utils?

Did you build the utils using last version (5.1.0.r5) of script?

I propose you to post the cygwin util version info in first post and update this info and util files anytime that you will update the version (i hope that you will update in pair with Linux scripts).

Thanks again!
[Android Software Development] linhbs:
How to mount * .raw file in cygwin? Thank you very much.
[Android Software Development] A.S._id:
You can use linux reader

http://www.diskinternals.com/linux-reader/
[Android Software Development] A.S._id:
ok

no

yes, at time
[Android Software Development] bovirus:
Sorry but I didn't understand.

Is the cyggcc_s-1.dll. file not necessary for x64 package?

Or is the cyggcc_s-1.dll file missing and you should include it in your package?

Thanks.
[Android Software Development] A.S._id:
This is for use cmd.exe without using cygwin
[Android Software Development] bovirus:
Then I believe that is important. The use with CMD.EXE (without cygwin) is more confortable and not need cygwin installed.

Please add cyggcc_s-1.dll (64bit) file to your x64 package

Please add cygz.dll (32bit) file to your x86 package

Please add cygz.dll (64bit) file to your x64 package

Then please rebuild and repost your utils to have the utility full working without cygwin.

I propose to make a revision in the file name in the first post like

android_img_repack_tool_5.1.0-r5_32bit.zip

android_img_repack_tool_5.1.0-r5_64bit.zip (without x86_x64 to avoid misunderstanding)

It can be self explanatory about version and platform.

Thanks for your wonderful utils.
[Android Software Development] A.S._id:
this not need

added

added

Then please rebuild and repost your utils to have the utility full working without cygwin.

I propose to make a revision in the file name in the first post like

this not need
[Android Software Development] bovirus:
Sorry but about cyggcc_s-1.dll (64bit) I understood that is necessary to use the tools with CMD.EXE (post 174).

It's clear that rename utils like

android_img_repack_tool_5.1.0-r5_32bit.zip

android_img_repack_tool_5.1.0-r5_64bit.zip

is not necessary. But make usefull for novice to remind version and type of use and make it very clear.

When I downloaded them by you I renamed it to remind me version and platform.
[Android Software Development] A.S._id:
cyggcc_s-1.dll isn't found in cygwin64

Maybe I'll add the source on git hub I remade but yet still there is no time
[Android Software Development] bovirus:
The user that download your utils (64bit) cannot be have cygwin installed (where get .dll)

I propose you to add cyggcc_s-1.dll (64bit) to your 64bit util archive to make the 64bit utils completly indipendent by cigwin 64bit availability (as for 32bit version).
[Android Software Development] A.S._id:
update!

added:

ANDROID_IMG_REPACK_TOOLS_CYGWIN_5.1.1_r1
[HTC One X+] XAlexander_AlexanderX:
look what popped up earlier today http://www.gottabemobile.com/2014/01/06/att-one-x-android-4-3-update/

CORRECTION: Looking at the actual tweets it is 4.2.2 NOT 4.3.
[HTC One X+] Mrhoffmann:
On Twitter, HTC (The Netherlands) confirmed that HTC is NOT updating the HTC One x+ anymore. :mad:
[HTC One X+] flipside101:
Do you have a link to the tweet ?
[HTC One X+] Mrhoffmann:
There is an article on Androidworld.nl about this, it is written in dutch.

http://androidworld.nl/nieuws/htc-one-x-ontvangt-geen-updates-meer/

And the tweet is also written in Dutch:

Twitter
[HTC One X+] decahill:
I saw the tweet and the question was asked about 4.3 but the answer was 4.2.2 being released this month.

https://twitter.com/moversi/status/413157680350375937
[HTC One X+] onlineemails:
Unofficial 4.4 kitkat is out.. :D
[HTC One X+] dwegener:
Really short lifecycle. :( On CM11 (and CM10.2) my GPS is not working and Bluetooth connections are dropped. Now I'm on ARHD.

version: 0.5a

version-bootloader: 1.72.0000

version-baseband: 3.1204.171.33

version-cpld: None

version-microp: None

version-main: 2.18.401.2

serialno: ***

imei: ***

product: enrc2b_u

platform: HBOOT-T30S

modelid: PM3511000

cidnum: HTC__E11

battery-status: good

battery-voltage: 4226mV

devpower: 91

partition-layout: None

security: on

build-mode: SHIP

boot-mode: FASTBOOT

commitno-bootloader: None

hbootpreupdate: 2

gencheckpt: 0
[HTC One X+] xzfzx:
any would like to contact HTC after this article

our not so old HTC one x+ which was the main rival of the samsung galaxy s3 is not going to get farther updates :(
[HTC One X+] Sensamic:
Only one big update...

How is that acceptable by any means?
[HTC One X+] czarnas:
I, like many others, will not buy next htc :( It's sad because i loved them for good quality, but denying updates to rather new device is just stupid.
[HTC One X+] geojoking:
Let's spam the Facebook and Twitter pages of HTC, HTC UK, HTC US, etc. It's the least we could do.
[HTC One X+] Blueoval24:
I've been with HTC since the tmo G1. Sadly, because of lack of support, this will be my last HTC device. Seems to be a sinking ship anyway.
[HTC One X+] grigoriisi:
When inspire 4g wasn't updated to ics there was a petition which had a lot of signatures result? Nothing they don't care. So just live with it or move over to other manufacturers
[HTC One X+] havoklant:
I think it's due to the Tegra 3, I think Nvidia is abandoning the chip.

The chip has always sucked, Great processor speed but ancient GPU and very, very power hungry.

Not that there is nothing to blame on HTC, they should have went with the Snapdragon S4 pro with the HTC One X+.

The HOX+ came out long after the Snapdragon S4 Pro was available, it was for example present in the LG Optimus G, this would have brought better graphics and better battery life (due to the 32nm build alone).

That said, I don't really care for the updates, I think hardware is moving so much faster than the Android software, that I would have ditched this phone soon enough. A phone that gets steamy hot and battery depleted an hour of playing a game is unacceptable.

If they just could release a LG G2 with 64gb....
[HTC One X+] flipside101:
The original nexus 7 has a tegra 3 and its had a 4.4.2 update
[HTC One X+] veget83:
Yes, but the kernel version are 3.1.10....

The same of our one x+....

Is a jelly bean kernel!!!

Inviato dal mio HTC One X+ utilizzando Tapatalk
[HTC One X+] flipside101:
OK but it still holds that 4.4.2 is possible even if its older kernel. So HTC could have done it
[Xperia Play Q&A, Help & Troubleshooting] Wheatley:
Hey,

I'm trying to flash NEXPlay onto my device and I'm having a problem, my phone keeps going into a CWM recovery loop. I've tried twice to get this to work to no avail.

There are no instructions on how to flash the ROM correctly on the thread from what I've seen so I followed the steps provided on my other ROM's thread (NXT Lite). I flash the .58 Enhanced firmware using FlashTool and then select "FastBoot" and then "Reboot into fastboot mode (Via ADB)". I then click "Select kernel to Flash" and flash the Kernel that is required.

The phone then boots to recovery so I cleared the cache partition, Delvik cache and wipe data. I flash the ROM and it takes a while (probably due to the size) and finally it says "Successful". I select "Reboot system" and the phone shuts down, displays the "SONY NEXPLAY" logo and then boots into recovery. I keep restarting and it keeps doing this.

Any ideas on how to fix this? If it persists I might just go back to NXT Lite. I have an R800i model with unlocked Bootloader.

*EDIT* I just installed exitrecovery.zip and that doesn't work either. I have no idea what is going on.
[Sony Xperia ZL] Gustavo RD78:
This can be called "The first taste"

As this is the first note that is not all too neat, just gave it a darker, yet I am to turn over various modes ...

I also swapped 2 wallpapers

* For stock 4.3 and 4.4 rom

* Installation:

Copy to /system/app set permissions (rw-r-r) and reboot

As simple as it sounds, it requires work, press the thanks button if you like! :good:
[Sony Xperia ZL] demonicangell™:
well done ...clean and neat
[Sony Xperia ZL] Gustavo RD78:
I will update later with this new theme, feel free to go experimenting ;)
[Sony Xperia ZL] Kylez:
screenshoot please :)
[Sony Xperia ZL] Gustavo RD78:
And now? :good:
[Sony Xperia ZL] timchew:
Great themes! Thanks.

But I lost the theme selection when I long press on the screen and select theme. Please see screen shot.

Any solution? Thanks.
[Sony Xperia ZL] zabi1994:
I tried installing your DarkTheme but it cannot be installed.. Any idea why ? The GoldenTheme works fine..
[Sony Xperia ZL] timchew:
You have to push the apk to system/app folder and set the right permission.

Somehow the gold theme cam be installed as normal apk but not the black.
[Sony Xperia ZL] AKo Kuan:
My ZL hasn't rooted yet so can't see the system/app folder.

I can install GoldenTheme but not DarkTheme.

And though GoldenTheme works but the colors of the theme remain the same, just like stock color style.(some are blue some are green weirdly)

I wounder if it possiple to be installed like play store app without root? Maybe modify something?

or if it is too difficult to do?:crying:
[Sony Xperia ZL] zabi1994:
I thought as much.. Thanks..:D
[Sony Xperia ZL] Gustavo RD78:
you are using another mod?

happens with the default themes?

might cause incompatibility

be sure to install as system applications

something is wrong in the process, they have been tested by me and work very well, however I will give a new attempt with the black theme

I'll look into it ok?

Note: appear on some other colors ... also happened to me at the keyboard app, so I changed the skin for standard (white) (was wearing black) and worked well
[Sony Xperia ZL] Gustavo RD78:
Users Xposed framework by applying a theme, you must restart the machine to effect the changes arise!

This is a problem Xposed and happens even with the standard themes
[Sony Xperia ZL] keenofhiphop:
It does not work for me. Do we need to be deodexed? Are the themes you present odexed? Do you build a new app for every theme or just edit an old one? If you create a new one, could you point out the process? Or link a tutorial?

Thank you

Gesendet von meinem C6503 mit Tapatalk
[Sony Xperia ZL] Gustavo RD78:
Come on, I'll explain a bit

I have not tested on odexed roms, but I believe it will work on both (odex and deodex) make sure to install it with system application

this theme is deodex

What I do is pick up some default theme and modify

but it will not replace any existing one, which would be a new

on how to build one there is a very interesting topic here

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

any questions you can ask

Att Gustavo RD78
[Sony Xperia ZL] boyq:
Pushing darktheme to \system\app works for me. .Moore please :)

?

---------- Post added at 04:57 PM ---------- Previous post was at 04:32 PM ----------

The highlight used for on/off in quicksettings as well as button clicks are not so different with the rest.. Its hard to recognize..

?
[Sony Xperia ZL] Gustavo RD78:
this is true ...

I need time to review it

I will soon post some more

and also thank you for leaving feedback

everything I post here in the forum is first tested, but some people make the wrong installation or dry read the description and say that does not work

Att Gustavo RD78
[Sony Xperia ZL] Gustavo RD78:
Purple Haze 78

Screens

Press the thanks button if you like! :good:
[Sony Xperia ZL] boyq:
Now that you've mentioned it, im still on odexed stock ROM. This is what i get..

The color is still bluish not black.

?
[Sony Xperia ZL] Gustavo RD78:
Are you using Xposed?
[Sony Xperia ZL] boyq:
Yes. I have restarted the phone as suggested.

?
[Sony Xperia ZL] Gustavo RD78:
If you did everything as prescribed can tell you with "almost" all sure the problem is in rom odex

However u could deodex to use, because there are several other legal mods only possible use in deodex rom

unfortunately

Att Gustavo RD78
[Sony Xperia ZL] boyq:
Hi. Im deodexed now. The problem still persists..

?
[Sony Xperia ZL] Gustavo RD78:
So sorry to inform you that you did something wrong :confused:

This is confirmed by me and several other users

Sorry I can not help...

Att Gustavo RD78
[Sony Xperia ZL] boyq:
So others on deodexed stock ROM were able to make it work? Im just using NUT's files in his 4.3 rooting thread

?
[Sprint Samsung Galaxy S 4 General] JoeBear1975:
For those that are wanting more storage on your rooted Samsung Galaxy S4, (running SlimKat) there is no need to download an app or run a certain program through Terminal Emulator or any other program. The easiest way to accomplish this is simple. Just unroot your device, install your apps onto an external SD Card, unmount your SD Card, reroot your S4, install whatever ROM you want & THEN, & ONLY THEN DO YOU remount your SD Card & VOILA, you will have all your apps on your SD Card. Now, I understand that with some ROM's you can move apps to the SD Card, but with every ROM that I've flashed, you can't move them, so I had to find out a way to create more space & this was by far the easiest.
[Sprint Samsung Galaxy S 4 General] anees02:
This may help

http://xdaforums.com/showthread.php?t=2285221
[Sprint Samsung Galaxy S 4 General] M3wThr33:
Why would you need to root or unroot to tap "Move to SD card" in the App info?
[Sprint Samsung Galaxy S 4 General] JoeBear1975:
That option was not available for me while using the SlimKat ROM.
[Sprint Samsung Galaxy S 4 General] JoeBear1975:
Didn't mean to hit thank on this post, it was for the part above, but thank you for your input.