I found the csc files in Oreo is encrypted/encoded.
So I decompile the csc.apk and get a class to decode the encoded file.
Then I made a tool to decode/encode the csc file.
Download: can't post a link yet , just search OmcTextDecoder in github and get the download link
Usage:
deocode
Code:
java -jar omc-decoder.jar -i cscfeature.xml -o cscfeature_decoded.xml
or try to decode all .xml files under a directory
Code:
java -jar omc-decoder.jar -i omc -o omc_decoded
encode
Code:
java -jar omc-decoder.jar -e -i cscfeature_decoded.xml -o cscfeature.xml
or try to encode all .xml files under a directory
Code:
java -jar omc-decoder.jar -e -i omc_decoded -o omc_encoded
Source: can't post a link yet , just search OmcTextDecoder in github
This is AMAZING! Thank you
How can I donate you a beer?
Awesome! I have not tried it yet but I have been waiting for someone to finally make a tool for this. Thanks!
it worked for me... i was able to decrypt the files.... unfortunately, i was unable to find a setting that allows me to change the voicemail number dialed when using my T-Mobile sim card.
You should talk to Lou, maybe you could help each other
https://forum.xda-developers.com/tm...carrier-carrier-root-required-t3686535/page38
Is there anything in the file that can enable the cameras shutter sound control in camera app?
Sent from my SM-N950F using Tapatalk
@Kalm_Traveler
vash_h said:
Is there anything in the file that can enable the cameras shutter sound control in camera app?
Sent from my SM-N950F using Tapatalk
Click to expand...
Click to collapse
masri1987 said:
@Kalm_Traveler
Click to expand...
Click to collapse
Thanks for this @masri1987 !!!
@vash_h yep, it is <CscFeature_Camera_ShutterSoundMenu>TRUE</CscFeature_Camera_ShutterSoundMenu>
---------- Post added at 07:09 PM ---------- Previous post was at 07:03 PM ----------
fei-ke said:
I found the csc files in Oreo is encrypted/encoded.
So I decompile the csc.apk and get a class to decode the encoded file.
Then I made a tool to decode/encode the csc file.
Download: can't post a link yet , just search OmcTextDecoder in github and get the download link
Usage:
deocode
Code:
java -jar omc-decoder.jar -i cscfeature.xml -o cscfeature_decoded.xml
encode
Code:
java -jar omc-decoder.jar -e -i cscfeature_decoded.xml -o cscfeature.xml
Source: can't post a link yet , just search OmcTextDecoder in github
Click to expand...
Click to collapse
Thank you so much! I had to manually type out the CSC for my patch by viewing it in CSC app - this would save so much time!
Kalm_Traveler said:
Thanks for this @masri1987 !!!
@vash_h yep, it is <CscFeature_Camera_ShutterSoundMenu>TRUE</CscFeature_Camera_ShutterSoundMenu>
---------- Post added at 07:09 PM ---------- Previous post was at 07:03 PM ----------
Thank you so much! I had to manually type out the CSC for my patch by viewing it in CSC app - this would save so much time!
Click to expand...
Click to collapse
I was thinking this would make life much easier for the next version of the patch
masri1987 said:
I was thinking this would make life much easier for the next version of the patch
Click to expand...
Click to collapse
yes indeed, I was not looking forward to having to do that manually again... only to find out that it was 99% the same as the S8+ 's version.
Very appreciated, but didn't root my phone since Samsung go lived in my country. Haha
Thanks
Hi friend is nice but where are the links?
baloo30310 said:
Hi friend is nice but where are the links?
Click to expand...
Click to collapse
If you read the first post you'll find why there is no link & where to find the download.
Kalm_Traveler said:
Thanks for this @masri1987 !!!
@vash_h yep, it is <CscFeature_Camera_ShutterSoundMenu>TRUE</CscFeature_Camera_ShutterSoundMenu>
---------- Post added at 07:09 PM ---------- Previous post was at 07:03 PM ----------
Thank you so much! I had to manually type out the CSC for my patch by viewing it in CSC app - this would save so much time!
Click to expand...
Click to collapse
AWESOME!! thanks!!
can we modify the CSC file and flash it back to the phone? my phone is not rooted.
vash_h said:
AWESOME!! thanks!!
can we modify the CSC file and flash it back to the phone? my phone is not rooted.
Click to expand...
Click to collapse
Need root access to push back to phone.
shouren04 said:
Need root access to push back to phone.
Click to expand...
Click to collapse
Dam...
Sent from my SM-N950F using Tapatalk
shouren04 said:
If you read the first post you'll find why there is no link & where to find the download.
Click to expand...
Click to collapse
https://github.com/fei-ke/OmcTextDecoder
hi jeannot.
here is the link github. OmcTextDecoder
fei-ke said:
I found the csc files in Oreo is encrypted/encoded.
So I decompile the csc.apk and get a class to decode the encoded file.
Then I made a tool to decode/encode the csc file.
Download: can't post a link yet , just search OmcTextDecoder in github and get the download link
Usage:
deocode
Code:
java -jar omc-decoder.jar -i cscfeature.xml -o cscfeature_decoded.xml
encode
Code:
java -jar omc-decoder.jar -e -i cscfeature_decoded.xml -o cscfeature.xml
Source: can't post a link yet , just search OmcTextDecoder in github
Click to expand...
Click to collapse
thanks for ur awesomeness.. :good: great find, and work...
just attached the cscfeature.xml file for @louforgiveno at his thread, I only do the call recording,, why bother with the little thing when he will hook it up a lot more than me with his find...
goto his thread if u want the file for our N950USQU3CRC2_N950UOYN3CRC2_TMB firmware...
d.cortez said:
it worked for me... i was able to decrypt the files.... unfortunately, i was unable to find a setting that allows me to change the voicemail number dialed when using my T-Mobile sim card.
Click to expand...
Click to collapse
To edit voicemail number, use bk package manager or titanium backup manager to disable VVM....the settings for VVM will disappear and the editable settings will be there,
Alternatively, in the cscfeature.xml you can remove the line that has config VVM....
<CscFeature_Contact_EnableVVM>TRUE</CscFeature_Contact_EnableVVM>
<CscFeature_VoiceCall_ConfigVvm>TRUE</CscFeature_VoiceCall_ConfigVvm>
One of these should do it
You could just edit to FALSE
Hi friend I managed to find and thanks to @ pendor24 for sharing it
Related
have anyone seen 7zip for Android?
AndroZip handels 7zip
Sent from my GT-I9000 using XDA App
MiMikri said:
AndroZip handels 7zip
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Unless it is pw-protected.
AllGamer said:
have anyone seen 7zip for Android?
Click to expand...
Click to collapse
I've just compiled p7zip-9.20.1, it's the command line version of 7zip, if you still want it, you can download it from here:
http://dl.dbank.com/c0mtm6i3wa
(sorry, it's a file share site provided by Huawei company in Chinese language, outseas file share sites are blocked by "opening" China government)
Code:
$ uname -a
uname -a
Linux localhost 2.6.35.7-perf #1 PREEMPT Sat Dec 3 17:57:38 CST 2011 armv7l GNU/Linux
$ ls -l /system/bin/7z /data/local/bin/7za-9.20
ls -l /system/bin/7z /data/local/bin/7za-9.20
-rwxr-xr-x 1 2000 2000 1702540 Dec 26 03:37 /data/local/bin/7za-9.20
lrwxrwxrwx 1 0 0 24 Dec 26 03:03 /system/bin/7z -> /data/local/bin/7za-9.20
$ 7z
7z
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=C,Utf16=off,HugeFiles=on,1 CPU)
Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]
<Commands>
a: Add files to archive
b: Benchmark
d: Delete files from archive
e: Extract files from archive (without using directory names)
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths
<Switches>
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-m{Parameters}: set compression Method
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
-scs{UTF-8 | WIN | DOS}: set charset for list files
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-slt: show technical information for l (List) command
-so: write data to stdout
-ssc[-]: set sensitive case mode
-t{Type}: Set type of archive
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-v{Size}[b|k|m|g]: Create volumes
-w[{path}]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries
Hi lovetide. What kind of compression did you use?
I can't find a way to open it :/
Guys I found another working port of p7zip for android.
I Tried to post a link but becouse i'm a 'noob' here i'm not allowed to.
So you can search for "port2android" at google and you will find it
ilbolza said:
Hi lovetide. What kind of compression did you use?
I can't find a way to open it :/
Click to expand...
Click to collapse
It's not an archive file, it's an executable file, you can execute it directly. It's static linked, so it should work on most Android phones.
lovetide said:
I've just compiled p7zip-9.20.1, it's the command line version of 7zip, if you still want it, you can download it from here:
http://dl.dbank.com/c0mtm6i3wa
(sorry, it's a file share site provided by Huawei company in Chinese language, outseas file share sites are blocked by "opening" China government)
Click to expand...
Click to collapse
Link does demand to pay for it. Can you upload attachment on the forum?
You have to click the link several times. It will work after some time.
But scroll down... Mirror is attached.
Here version 9.38.1 for arm-v7a, 7za is standalone, 7z needs 7z.so in /system/lib, 7zr a reduced version of 7za, Codecs must be in current dir for rar support (optional)
in the archive I've also added makefile.machine if you want to compile from source (you need to replace the one in the source directory, it needs to be edited for paths)
sherpya said:
Here version 9.38.1 for arm-v7a, 7za is standalone, 7z needs 7z.so in /system/lib, 7zr a reduced version of 7za, Codecs must be in current dir for rar support (optional)
in the archive I've also added makefile.machine if you want to compile from source (you need to replace the one in the source directory, it needs to be edited for paths)
Click to expand...
Click to collapse
Thank you very much for this indeed. XDA won't let it download no matter how many times I try, would it be possible for you to post it in a mirror somewhere ?
Edit : Never mind, finally got it. XDA glitch.
Edit 2 : Shoot, this will not run in Android 5 and newer systems... ( Error: only position independent executables (PIE) are supported. )
sorry but I didn't have an arm android 5.x to test it, I'm attaching pie build, I think it should work also on android < 5, but anyway there is still the old attachment in previous post
Hey...
I think the Zarchiver app from the play store would just work.
Hit thanks if I helped you!
ClawSpark said:
Hey...
I think the Zarchiver app from the play store would just work.
Click to expand...
Click to collapse
Does it support being called via command line, from eg a bash script?
To the rest: did the PIE build work fine?
p7zip 16.02 stand-alone attached.
help needed. anybody know how to set HugeFiles=on? compiling with -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE does not give expected result
- - -
edit: many thanks to superbeef150 @ XDA for solution!
aIecxs said:
p7zip 16.02 stand-alone attached.
help needed. anybody know how to set HugeFiles=on? compiling with -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE does not give expected result
Click to expand...
Click to collapse
Does this work on Android 6.0?
aIecxs said:
p7zip 16.02 stand-alone attached.
Click to expand...
Click to collapse
Thanks for sharing! I'm able to get this to run on several devices, but for some reason it errors out when running it in TWRP (which is coincidentally where I hope to run it):
Code:
~ # chmod 777 /data/local/tmp/p7zip
~ # /data/local/tmp/p7zip
/sbin/sh: /data/local/tmp/p7zip: not found
~ # sh /data/local/tmp/p7zip
/data/local/tmp/p7zip: line 1: syntax error: unexpected word (expecting ")")
Has anyone observed this different behavior between TWRP and the normal OS occur with 7zip or any other terminal/shell/CLI apps?
superbeef150 said:
Has anyone observed this different behavior between TWRP and the normal OS occur with 7zip or any other terminal/shell/CLI apps?
Click to expand...
Click to collapse
I got this figured out in case anyone stumbles across this in the future.
The default shell in TWRP (in my case) is at /sbin/sh . From what I've read, it sounds like this is the one that is supplied with BusyBox rather than the normal one. When I ran 7z using /system/bin/sh I had a lot better luck.
I'm now running into issues with larger ISO files. It seems like ones over 2GB are the problematic ones, I can't extract, test, or list contents on them, instead I always get an "E_FAIL" error message.
Googling that in the context of 7z seems to indicate a space issue, but testing and listing contents should make that irrelevant. For the sake of trying I attempted this with the ISOs on an exFAT usb flash drive as well as an NTFS usb hard drive with the same results.
I suspect that the HugeFiles=off setting that @aIecxs mentioned earlier may be related, but unfortunately the only information on the topic I could find were on one of his posts on p7zip's SourceForge forum where someone suggested a few different compile flags that didn't seem to make a difference for him or myself.
If anyone has any thoughts on this I'd really appreciate it! Thanks!
maybe compiling on 64-bit machine will support Hugefiles
aIecxs said:
maybe compiling on 64-bit machine will support Hugefiles
Click to expand...
Click to collapse
I'm doing that currently, but unfortunately HugeFiles is still showing up as off :/
Work in Progress, this not work for now
Hi guys,
So, for now i'm trying to build CM9 from source for xt910.
Before starting a Huge thanks to
STS-dev-team (droidhive.com) (droidth3ory / hashcode / dhacker29)
For their huge work to add spyder into cm9 & aokp.
Now the hard stuff
i won't make another tutorial on how sync cm9 repo etc... i lead you to this thread which worked well for me.
http://forum.xda-developers.com/showthread.php?p=27722264
Follow everything and you will be able to build cm9.
What you need for spyder
so you need to download few folder from STS-dev-team github
https://github.com/STS-Dev-Team
Here's the list of what i dowloaded from 'em:
- https://github.com/STS-Dev-Team/android_local_STS (which is the local_manifest you have to replace)
Code:
put into :
.repo/local_manifext.xml
- https://github.com/STS-Dev-Team/android_device_motorola_spyder (file needed to build spyder)
Code:
put into :
devices/motorola/spyder
- https://github.com/STS-Dev-Team/android_hardware_ti_omap4xxx (hardware file for OMAP4xxx)
Code:
put into :
hardware/OMAP4XXX (replace the existing one)
- https://github.com/STS-Dev-Team/android_vendor_motorola_spyder (vendor file for spyder)
Code:
put into :
vendor/motorola/spyder
- https://github.com/Hashcode/android_hardware_ti_wpan (hardware file needed)
Code:
put into :
hardware/wpan
- https://github.com/Hashcode/android_hardware_ti_camera (hardware file needed)
Code:
put into :
hardware/camera
How to
Once you synced up cyanogen repo download and place all the file above.
then do:
Code:
curl -L -o .repo/local_manifest.xml -O -L https://raw.github.com/STS-Dev-Team/android_local_STS/ics/local_manifest.xml
once finished you'll have to edit this file : device/motorola/spyder/extract-files.sh to make it work with xt910 (just replace it by the file attached
Ok, now you can start trying to build:
Code:
make clean && make clobber
lunch
(choose cm_spyder, 5 for me)
make bacon -j4
Now my error
my building stop with this error
Code:
make: *** No rules to build target « out/target/product/spyder/obj/STATIC_LIBRARIES/libhostapdcli_intermediates/libhostapdcli.a », needed for « out/target/product/spyder/obj/EXECUTABLES/tiap_cu_intermediates/LINKED/tiap_cu ». Stop.
i tried to google it but nothing helped me.
So here we are, if someone have any ideas tips knowledge to share, you're welcome.
Nice! Keep your hard work! Congrats!
Into what path are you putting them into? I had problems compiling if the path contained any spaces or some other special characters.
Check the listing of the Makefile, it will execute some special commands and if those have spaces it will as well fail.
private files under the system/bin is much less, so the error is inevitable.
PS:My English is not very good
---------- Post added at 02:27 AM ---------- Previous post was at 02:08 AM ----------
Reference cdma xt912 extract-files.sh file, executed once, and then to private files the gsm xt910 does not exist shielding to name the difference between rename the file.
Note, divided into two:
1, copy the file
2, spyder-vendor-blobs.mk file creation
Must make the appropriate match to modify.
brainwash123 said:
Into what path are you putting them into? I had problems compiling if the path contained any spaces or some other special characters.
Check the listing of the Makefile, it will execute some special commands and if those have spaces it will as well fail.
Click to expand...
Click to collapse
Well, check the OP i edit it with path.
mapleshadow said:
private files under the system/bin is much less, so the error is inevitable.
PS:My English is not very good
---------- Post added at 02:27 AM ---------- Previous post was at 02:08 AM ----------
Reference cdma xt912 extract-files.sh file, executed once, and then to private files the gsm xt910 does not exist shielding to name the difference between rename the file.
Note, divided into two:
1, copy the file
2, spyder-vendor-blobs.mk file creation
Must make the appropriate match to modify.
Click to expand...
Click to collapse
Exactly, that's why i attached a new extract_files.sh, working for xt910, i only removed missing files, but we may need to add other files.
Yes, you need to add the missing files.
Hi guys, i'm actually builing for 20mn now without error, so i think it's on good way, but don't yeld victory too fast, i have to test the build after that.
Anyway i'll update OP to make it easier and with all the new file & script i added.(probably monday, little busy for weekend )
Stay tuned
Damned computer crashed, dont use it while building
sevenup30 said:
Damned computer crashed, dont use it while building
Click to expand...
Click to collapse
Lol
Are you going to post this as a rom or just leave it as a guide? Be nice to try it but then I need more motivation to learn to build
Sent from my XT910 using xda premium
MarkyG82 said:
Lol
Are you going to post this as a rom or just leave it as a guide? Be nice to try it but then I need more motivation to learn to build
Sent from my XT910 using xda premium
Click to expand...
Click to collapse
i had to add somes files, but for now > bootloop. Try to figure it out
edit:: Ok problem with audio, it can found it because of lib.
I tried replace most part of the lib, it fix display issue but logcat is not wirking anymore :s
i think we have to rework a lot the work done by STS dev team before compile. monday i'll upload the build if someone want to try something with it.
I compiled Settings.apk by `make Settings`. The compilation finished peacefully. So I pushed the apk to /system/app by the following commands :
Code:
adb root
adb push Settings.apk /system/app
The file is copied successfully. but now the Settings app is itself removed from the app drawer. I tried setting the permissions of apk but it didn't work either. And when I push the original apk to /system/app the Settings app reappears in the app drawer.
omerjerk said:
I compiled Settings.apk by `make Settings`. The compilation finished peacefully. So I pushed the apk to /system/app by the following commands :
Code:
adb root
adb push Settings.apk /system/app
The file is copied successfully. but now the Settings app is itself removed from the app drawer. I tried setting the permissions of apk but it didn't work either. And when I push the original apk to /system/app the Settings app reappears in the app drawer.
Click to expand...
Click to collapse
I'm a noobie, i have the same thing, but my compileing is not working. What tool/tools did you use to compile your .apk?? I can decompile and edit, but when trying to compile back i get all kinds of errors. can you help me?
harveyr4 said:
I'm a noobie, i have the same thing, but my compileing is not working. What tool/tools did you use to compile your .apk?? I can decompile and edit, but when trying to compile back i get all kinds of errors. can you help me?
Click to expand...
Click to collapse
Actually I'm compiling directly from source. So I only need is :
Code:
. build/envsetup.sh
lunch cm_<device_name>-userdebug
and last the actual compilation :
Code:
mka Settings
P.S. you could use make either. For make you have to specify the number of threads to use for compilation but mka calculates it itself.
PPS. Do all this in the root directory of your source.
omerjerk said:
Actually I'm compiling directly from source. So I only need is :
Code:
. build/envsetup.sh
lunch cm_<device_name>-userdebug
and last the actual compilation :
Code:
mka Settings
P.S. you could use make either. For make you have to specify the number of threads to use for compilation but mka calculates it itself.
PPS. Do all this in the root directory of your source.
Click to expand...
Click to collapse
What do you mean by directly from source?? are you talking about the command window?
harveyr4 said:
What do you mean by directly from source?? are you talking about the command window?
Click to expand...
Click to collapse
I downloaded the CyanogenMod source code from github.
omerjerk said:
I downloaded the CyanogenMod source code from github.
Click to expand...
Click to collapse
Once again I'm a noob. what is that address to github/download?
---------- Post added at 09:01 PM ---------- Previous post was at 08:57 PM ----------
omerjerk said:
I downloaded the CyanogenMod source code from github.
Click to expand...
Click to collapse
I found it sorry. which one is for the at&t galaxy s3??
---------- Post added at 09:07 PM ---------- Previous post was at 09:01 PM ----------
omerjerk said:
I downloaded the CyanogenMod source code from github.
Click to expand...
Click to collapse
OK. found it. now what do I do with it?????
harveyr4 said:
Once again I'm a noob. what is that address to github/download?
---------- Post added at 09:01 PM ---------- Previous post was at 08:57 PM ----------
I found it sorry. which one is for the at&t galaxy s3??
---------- Post added at 09:07 PM ---------- Previous post was at 09:01 PM ----------
OK. found it. now what do I do with it?????
Click to expand...
Click to collapse
No actually things work in a little different way. You'll need the repo tool for downloading the CyanogenMod Source(or any Andoroid ROM source code)...
Read here : http://wiki.cyanogenmod.org/w/Build_Guides ...
Choose your device. Or if you don't find yours choose any of the device. Setting up the biuld envirenment is same (almost) for all.
Downloading the source is explained here : http://wiki.cyanogenmod.org/w/Build_for_hammerhead#Initialize_the_CyanogenMod_source_repository
But yes you would need Linux for it. (Ubuntu 12.04 recommended)
omerjerk said:
No actually things work in a little different way. You'll need the repo tool for downloading the CyanogenMod Source(or any Andoroid ROM source code)...
Read here : http://wiki.cyanogenmod.org/w/Build_Guides ...
Choose your device. Or if you don't find yours choose any of the device. Setting up the biuld envirenment is same (almost) for all.
Downloading the source is explained here : http://wiki.cyanogenmod.org/w/Build_for_hammerhead#Initialize_the_CyanogenMod_source_repository
But yes you would need Linux for it. (Ubuntu 12.04 recommended)
Click to expand...
Click to collapse
Thank you very much. you have helped me more than anyone at this point.
harveyr4 said:
Thank you very much. you have helped me more than anyone at this point.
Click to expand...
Click to collapse
Learning and helping others in learning is always good.
omerjerk said:
Learning and helping others in learning is always good.
Click to expand...
Click to collapse
One last thing be for I go to bed. I tried to recompile 1 last time for tonight and get more errors. here are a few.
QuickModTool\tools\..\working\Settings.apk\res\values\public.xml:4384: error: Public symbol id/ rom_toolbox declared here is not defined.
QuickModTool\tools\..\working\Settings.apk\res\values\public.xml:4385: error: Public symbol id/ settings_tweaker declared here is not defined.
QuickModTool\tools\..\working\Settings.apk\res\values\public.xml:4383: error: Public symbol id/ system_app_section declared here is not defined.
QuickModTool\tools\..\working\Settings.apk\AndroidManifest.xml]
at brut.androlib.androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.androlib.buildResources(Androlib.java:283)
at brut.androlib.androlib.build(Androlib.java:206)
at brut.androlib.androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
and a lot more. what does any of this mean???
harveyr4 said:
One last thing be for I go to bed. I tried to recompile 1 last time for tonight and get more errors. here are a few.
QuickModTool\tools\..\working\Settings.apk\res\values\public.xml:4384: error: Public symbol id/ rom_toolbox declared here is not defined.
QuickModTool\tools\..\working\Settings.apk\res\values\public.xml:4385: error: Public symbol id/ settings_tweaker declared here is not defined.
QuickModTool\tools\..\working\Settings.apk\res\values\public.xml:4383: error: Public symbol id/ system_app_section declared here is not defined.
and a lot more. what does any of this mean???
Click to expand...
Click to collapse
In android layout xml files every View or you can say element has an id attribute. This id serves as the name of that element. when using id for the first time you should add '+' before the 'id'. It should look something like '@+id'. So either you're missing the symbol '+' or you're missing some xml files where the id is defined for the first time using '@+id/<id name>'.
omerjerk said:
In android layout xml files every View or you can say element has an id attribute. This id serves as the name of that element. when using id for the first time you should add '+' before the 'id'. It should look something like '@+id'. So either you're missing the symbol '+' or you're missing some xml files where the id is defined for the first time using '@+id/<id name>'.
Click to expand...
Click to collapse
When I added the code I did not use any "+" so maybe thats it. I will check it later today once i get home. thank you.
ok. here is the res.zip that I have edited. These are the files I have changed.
res/values
strings.xml Lines 2037 - 2039
public.xml Lines 4383 - 4385
ids.xml Lines 712 - 714
I also made the same edits to the strings.xml files in the folders values-en-rGB and values- en-rIN
In the res/xml
I edited the settings_headers.xml Lines 41 - 45
I also added the 48 x 48 png images ic_settings_rom.png and ic-settings_tweaker.png to:
drawable-hdpi
drawable-mdpi
drawable-xhdpi
drawable-xxhdpi
Hi,
I've backup a few apps from my Nexus 5 (Unrooted),
I've copied the .ab file to my PC and I wondered how can I extract it to edit some file and then repack it again.
I've already tried to extract it using DroidExplorer but I'm getting an un-openable tar file.
Can someone please point me how to can I do it right? and how can I repack it again,
Thanks in advance!
Gilco:good:
There is a sweet guide here
UltraWelfare said:
There is a sweet guide here
Click to expand...
Click to collapse
Thanks man, I tried but I get an error while trying to extract the tar file,
also I saw this warning at the end of the guide:
Warning about Helium (Carbon): helium backups are just android adb backups that are not compressed with Java Deflater. It means they were created with the option static final boolean COMPRESS_FULL_BACKUPS = false.
A normal adb restore should work.
see log from first step:
C:\Users\Gil\Desktop\BandR>java -jar abe.jar unpack com.gameinsight.airport.ab A
C.tar
Strong AES encryption enabled
Magic: ANDROID BACKUP
Version: 1
Compressed: 1
Algorithm: none
20664320 bytes read
gilc8 said:
Thanks man, I tried but I get an error while trying to extract the tar file,
also I saw this warning at the end of the guide: ...
Click to expand...
Click to collapse
Hi all, I play a bit with the conversion from Helium backups. Here is the utility:
xaos.ic.cz/Helium_ab2tar.zip . Still don't know what are the last four bytes in the Helium .ab file. Is that some checksum or what? Anyone knows?
xaos.cz said:
Hi all, I play a bit with the conversion from Helium backups. Here is the utility:
xaos.ic.cz/Helium_ab2tar.zip . Still don't know what are the last four bytes in the Helium .ab file. Is that some checksum or what? Anyone knows?
Click to expand...
Click to collapse
Thank you so much! It's working. I was able to extract my (unencrypted) Helium backup. Did you publish the code somewhere else? Here's a Makefile in case someone wants to build it for Linux. (Just remove .txt before running make or make extract)
Archived utility on Github
Hey everyone,
since the original utility has vanished and is somewhat hard to find, I've archived it at Github for convenience: github.com/floe/helium_ab2tar
If the original author wishes, I can transfer the repo to their ownership.
Best, Floe
floemuc said:
Hey everyone,
since the original utility has vanished and is somewhat hard to find, I've archived it at Github for convenience: github.com/floe/helium_ab2tar
If the original author wishes, I can transfer the repo to their ownership.
Best, Floe
Click to expand...
Click to collapse
Hi, the "helium_ab2tar" finally helped me. Good work!
I was running Win7 and didn't have any C compiler installed, so here is what I found:
• from the link above, extract helium_ab2tar-master.zip to a new directory
• from http://gnuwin32.sourceforge.net/packages/make.htm download Binaries and Dependencies and extract files make.exe, libintl3.dll, libiconv2.dll to your helium_ab2tar-master directory
• from https://bellard.org/tcc/ download a recent TinyCC build and extract the whole zip into your helium_ab2tar-master directory
• edit the makefile and change "CC=gcc" to "CC=tcc\tcc.exe"
• change "-o ab2tar_cut" to "-o ab2tar_cut.exe", "-o ab2tar_corr" to "-o ab2tar_corr.exe", "-o tar2ab_cut" to "-o tar2ab_cut.exe", "-o tar2ab_corr" to "-o tar2ab_corr.exe"
• finally run make.exe
How to use:
ab2tar_cut [.ab file] [temporary file]
ab2tar_corr [temporary file] [.tar file]
Thanks Commander!
It doesn't work for me =(
That's what I'm getting while trying to start it thru terminal
make: *** No targets specified and no makefile found. Stop.
download https://github.com/floe/helium_ab2tar, unzip, run make.exe from helium_ab2tar-master folder
aIecxs said:
download "https://github.com/floe/helium_ab2tar"]https://github.com/floe/helium_ab2tar, unzip, run make.exe from helium_ab2tar-master folder
Click to expand...
Click to collapse
there is no such file as make.exe.
of course, you must follow the steps in Post #7
or use linux. you can use Unetbootin and install Xubuntu to usb flash drive
aIecxs said:
of course, you must follow the steps in Post #7
or use linux. you can use Unetbootin and install Xubuntu to usb flash drive
Click to expand...
Click to collapse
I did so and it gives me another error
Code:
tcc\tcc.exe ab2tar_cut.c -o ab2tar_cut.exe
process_begin: CreateProcess(NULL, tcc\tcc.exe ab2tar_cut.c -o ab2tar_cut.exe, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [ab2tar_cut] Error 2
try with full path in makefile for example CC="C:\Users\Admin\Downloads\helium_ab2tar-master\tcc\tcc.exe" (path to tcc.exe)
aIecxs said:
try with full path in makefile for example CC="C:\Users\Admin\Downloads\helium_ab2tar-master\tcc\tcc.exe" (path to tcc.exe)
Click to expand...
Click to collapse
ok it seems to work,
PS C:\Users\danbe\Downloads\folders\helium_ab2tar-master\helium_ab2tar-master> C:\Users\danbe\Downloads\folders\helium_ab2tar-master\helium_ab2tar-master\make.exe
C:\Users\danbe\Downloads\folders\helium_ab2tar-master\helium_ab2tar-master\tcc.exe ab2tar_cut.c -o ab2tar_cut.exe
C:\Users\danbe\Downloads\folders\helium_ab2tar-master\helium_ab2tar-master\tcc.exe ab2tar_corr.c -o ab2tar_corr.exe
C:\Users\danbe\Downloads\folders\helium_ab2tar-master\helium_ab2tar-master\tcc.exe tar2ab_corr.c -o tar2ab_corr.exe
C:\Users\danbe\Downloads\folders\helium_ab2tar-master\helium_ab2tar-master\tcc.exe tar2ab_cut.c -o tar2ab_cut.exe
PS C:\Users\danbe\Downloads\folders\helium_ab2tar-master\helium_ab2tar-master>
Click to expand...
Click to collapse
what's next ?
---------- Post added at 01:52 PM ---------- Previous post was at 01:47 PM ----------
aIecxs said:
try with full path in makefile for example CC="C:\Users\Admin\Downloads\helium_ab2tar-master\tcc\tcc.exe" (path to tcc.exe)
Click to expand...
Click to collapse
what should be instead of [temporary file] ?
backup.ab.tmp (or any other name)
aIecxs said:
backup.ab.tmp (or any other name)
Click to expand...
Click to collapse
PS C:\Users\danbe\Downloads\folders\helium_ab2tar-master\helium_ab2tar-master>
>> ab2tar_cut backup.ab backup.ab.tmp
ab2tar_cut : The term 'ab2tar_cut' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:2 char:1
+ ab2tar_cut backup.ab backup.ab.tmp
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (ab2tar_cut:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Suggestion [3,General]: The command ab2tar_cut was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\ab2tar_cut". See "get-help about_Command_Precedence" for more details.
PS C:\Users\danbe\Downloads\folders\helium_ab2tar-master\helium_ab2tar-master>
Sorry I was using powershell for it, it doesn't work in PS but it works in CMD
Hello, I am feeling as dumb as a caveman right now because I could not figure out how to decompress and .ab file created with an old version of Helium which pretty much screw me over this.
I'm pretty much an illiterate with command lines in general. I tried cygwin but can't manage to find the right command combo, also android backup extractor doesn't even work despite I've installed the Java SE SDK etc (running Win10 x64). Can someone tell me step by step how I can decompress this hellish .ab file once for all? Thank you in advance.
P.s.= And yes, I also tryied using the method described on these last 2 pages and I get this:
C:\Users\Dingo Dash>"C:\Users\Dingo Dash\Desktop\helium_ab2tar-master\bin\make.exe" ab2tar_cut "C:\Users\Dingo Dash\Downloads\com.koushikdutta.backup\SM-G900F - 353687063301086\backup.ab" xxx.tmp
make: *** No rule to make target `ab2tar_cut'. Stop.
Click to expand...
Click to collapse
- download and edit makefile from post #5
- compile the binaries (.exe files)
- unpack backup + convert to tar
- unpack tar file
aIecxs said:
- download and edit makefile from post #5
- compile the binaries (.exe files)
- unpack backup + convert to tar
- unpack tar file
Click to expand...
Click to collapse
Thank you but I wanted to know what I was doing wrong on the prompt because I had already compiled the binaries aka followed the whole procedure.
Anyway, I managed to extract the whole damn file on another device. I don't have an explaination of why helium behaved this way but it actually worked on a more recent device instead of the original one, were the backup was created, also using a 2015 or so old version of the app, which should be the one the file came from.
Hey Guyzzz...... I am Here to provide you the Guide on How to port Lollipop ROMs and MarshMallow ROMs on any Device
New Year Gift For You GuyzFirst Guide on XDA to port ROMs above 5.0.2 (Qualcomm Processor)
Code:
KEEP THESE POINTS IN MIND
This guide wont make you a full fledged dev.
It teaches you the basics of porting ROMS.
If anything happens to your device I AM NOT RESPONSIBLE for IT ! try it on your own risk !
Some Basic things u need to Know before Porting
Code:
The rom which you want to port for your device is named here as [B]PORT[/B]
The rom which is already working for your device is called here as [B]BASE[/B]
Download Some Necessary Files From this Post
1st extract ur base cm,aosp,etc rom on one folder
2nd extract ur Port rom in one folder
Now you can see
boot.img
file_contexts
META-INF
system.new.dat (compressed /system)
system.patch.dat
system.transfer.list
Click to expand...
Click to collapse
Step 1:Ubuntu guide
Now we need to decompress .dat to ext4 img
Open terminal and
Now enter this command
Code:
./sdat2img.py system.transfer.list system.new.dat system.img
By running this command u can see a system.img
Step 2 :decompress ext4 img to output folder
Now we will mount system.img
Enter this command
Code:
sudo mount -t ext4 -o loop system.img output/
Now go to output folder and now u can see all folder and apk like a KitKat rom
Now do the same with port rom
Step 3:Now we will port
Delete some folders from base
Code:
base/system/app
base/system/fonts
base/system/framework
base/system/media
base/system/priv-app
and paste from port
Code:
port/system/priv-app
port/system/app
port/system/fonts
port/system/framework
port/system/media
Now copy some important permissions and init.d files
Code:
port/system/etc/permissions
platform.xml
handheld_core_hardware.xml
handheld_hardware.xml
to base /base/system/etc/permissions
now go to port/system/etc/init.d
and copy
Code:
00banner
to base/system/etc/init.d
Now open the build.prop of both ROMS. Replace the values infront of following
lines in base from port
change frm port to base
Code:
ro.build.id=
ro.build.display.id=
ro.build.version.release=
ro.product.model=
ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=
base/system/build.prop
port/system/build.prop
Edit meta inf
Now go to metainf/com/google/android
And open updater-script with notepad++
And u can add
Code:
ui_print (" ur text");
and save it
Now we need to again compress rom
Now enter this command
Code:
./make_ext4fs -T 0 -S file_contexts -l 1073741824 -a system system_new.img output/
Now u can see ur system_new.img
Step 4: now we need to compress it back to .dat
Now enter command
Code:
./rimg2sdat my_new_system.img
Now u can see system.new.dat
Now just zip the ROM and flash
Downloads
Click here for sdat2img.py
Click here for make_ext4fs
Click here for rimg2sdat
Now Download all these tools and paste it to ur base and port rom directory then follow instructions to port lollipop roms
Credits
@xpirt
@adityaupreti for guideIf I forgot anyone PM me
A Thanks on our Posts will be Helpful For OUR Efforts ..... Please.....
If u have any queries in Porting.....AdityaUpreti and Me are always here to help you......
Stay Blessed ....... Happy New Year 2K16
Reserved for faq
Reserved
For windows.... Use this Tool http://sourceforge.net/projects/ext2read/files/
Credits: @neonkat for sharing
Cool gonna try it out, thanks man
Bro I want for to port on windows
Finally its here . search lot fr this.. Btw dz guide ll work on snapdragon 810.. E.g. i use 1+2 so . can i port another sp810 roms?
adityaupreti said:
Reserved for faq
Click to expand...
Click to collapse
Bro please tell me how to do this in windows
neelsolanki said:
Finally its here . search lot fr this.. Btw dz guide ll work on snapdragon 810.. E.g. i use 1+2 so . can i port another sp810 roms?
Click to expand...
Click to collapse
If it meet same specs u can port rom
---------- Post added at 09:29 PM ---------- Previous post was at 09:28 PM ----------
salahXDA6805 said:
Bro please tell me how to do this in windows
Click to expand...
Click to collapse
Soon update thread with Windows
adityaupreti said:
If it meet same specs u can port rom
---------- Post added at 09:29 PM ---------- Previous post was at 09:28 PM ----------
Soon update thread with Windows
Click to expand...
Click to collapse
Been looking for this too, thanks for this, will try soon.
[Q]
Is there any most practical way to compare 2 device spec?
NeoLogY said:
Been looking for this too, thanks for this, will try soon.
[Q]
Is there any most practical way to compare 2 device spec?
Click to expand...
Click to collapse
Try 91mobiles.com and compare mobiles there u can see the similarities and differences. ... or gsmarena [emoji6] [emoji571] [emoji571] [emoji571]
........Press Thanks .......
I ported ressurection remix 5.6 for the Moto G 2014 to my LG G3 Beat using an official CM13 base and it bootloops with this guide
Sent from my LG-D722 using Tapatalk
the same here, bootlooping..
Is it almost the same process on windows?
Carlyle_f said:
I ported ressurection remix 5.6 for the Moto G 2014 to my LG G3 Beat using an official CM13 base and it bootloops with this guide
Sent from my LG-D722 using Tapatalk
Click to expand...
Click to collapse
This is where debugging process happen. Log is your best friend now.
yakie47 said:
the same here, bootlooping..
Click to expand...
Click to collapse
I want to port rom for my Spice MI 445 MSM8610 clone of moto e.
I found many custom rom for moto e but didn't know how to port them for my device.
Sent from my Spice Mi-445 using xda Forums PRO
Eklavya Prasad said:
I want to port rom for my Spice MI 445 MSM8610 clone of moto e.
I found many custom rom for moto e but didn't know how to port them for my device.
Sent from my Spice Mi-445 using xda Forums PRO
Click to expand...
Click to collapse
Sry bt u can't port Roms from moto e to ur device
---------- Post added at 06:20 PM ---------- Previous post was at 06:19 PM ----------
yakie47 said:
the same here, bootlooping..
Click to expand...
Click to collapse
kindly give some base ROM info and port ROM info
Also tell base ROM device and port device
Base name port name
i'm porting samsung touchwiz A500fu rom to the chinese version one samsung A5000 base rom, the phone boots up but stuck in samsung boot screen for ever
VigneshS007 said:
Hey Guyzzz...... I am Here to provide you the Guide on How to port Lollipop ROMs and MarshMallow ROMs on any Device
New Year Gift For You GuyzFirst Guide on XDA to port ROMs above 5.0.2 (Qualcomm Processor)
Code:
KEEP THESE POINTS IN MIND
This guide wont make you a full fledged dev.
It teaches you the basics of porting ROMS.
If anything happens to your device I AM NOT RESPONSIBLE for IT ! try it on your own risk !
Some Basic things u need to Know before Porting
Code:
The rom which you want to port for your device is named here as [B]PORT[/B]
The rom which is already working for your device is called here as [B]BASE[/B]
Download Some Necessary Files From this Post
1st extract ur base cm,aosp,etc rom on one folder
2nd extract ur Port rom in one folder
Now you can see
Step 1:Ubuntu guide
Now we need to decompress .dat to ext4 img
Open terminal and
Now enter this command
Code:
./sdat2img.py system.transfer.list system.new.dat system.img
By running this command u can see a system.img
Step 2 :decompress ext4 img to output folder
Now we will mount system.img
Enter this command
Code:
sudo mount -t ext4 -o loop system.img output/
Now go to output folder and now u can see all folder and apk like a KitKat rom
Now do the same with port rom
Step 3:Now we will port
Delete some folders from base
Code:
base/system/app
base/system/fonts
base/system/framework
base/system/media
base/system/priv-app
and paste from port
Code:
port/system/priv-app
port/system/app
port/system/fonts
port/system/framework
port/system/media
Now copy some important permissions and init.d files
Code:
port/system/etc/permissions
platform.xml
handheld_core_hardware.xml
handheld_hardware.xml
to base /base/system/etc/permissions
now go to port/system/etc/init.d
and copy
Code:
00banner
to base/system/etc/init.d
Now open the build.prop of both ROMS. Replace the values infront of following
lines in base from port
change frm port to base
Code:
ro.build.id=
ro.build.display.id=
ro.build.version.release=
ro.product.model=
ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=
base/system/build.prop
port/system/build.prop
Edit meta inf
Now go to metainf/com/google/android
And open updater-script with notepad++
And u can add
Code:
ui_print (" ur text");
and save it
Now we need to again compress rom
Now enter this command
Code:
./make_ext4fs -T 0 -S file_contexts -l 1073741824 -a system system_new.img output/
Now u can see ur system_new.img
Step 4: now we need to compress it back to .dat
Now enter command
Code:
./rimg2sdat my_new_system.img
Now u can see system.new.dat
Now just zip the ROM and flash
Downloads
Click here for sdat2img.py
Click here for make_ext4fs
Click here for rimg2sdat
Now Download all these tools and paste it to ur base and port rom directory then follow instructions to port lollipop roms
Credits
@xpirt
@adityaupreti for guideIf I forgot anyone PM me
A Thanks on our Posts will be Helpful For OUR Efforts ..... Please.....
If u have any queries in Porting.....AdityaUpreti and Me are always here to help you......
Stay Blessed ....... Happy New Year 2K16
Click to expand...
Click to collapse
When I use command ./sdat2img.py system.transfer.list system.new.dat system.img it shown no such file or directory.
Bro need for windoes
MyAnand13 said:
When I use command ./sdat2img.py system.transfer.list system.new.dat system.img it shown no such file or directory.
Click to expand...
Click to collapse
Try python sdat2img.py system.transfer.list system.new.dat system.img
Sent from my LG-D722 using Tapatalk
---------- Post added at 10:40 AM ---------- Previous post was at 10:40 AM ----------
salahXDA6805 said:
Bro need for windoes
Click to expand...
Click to collapse
Google cgwyn
Sent from my LG-D722 using Tapatalk