How obb works - General Questions and Answers

I tried modding GTA 3 by extackting obb as zip then modding the files I want then recompresseds it to zip then renamed it back to obb but the application rejected it help please.
Sent from my SAMSUNG-SGH-I747 using Tapatalk

aron2hip said:
I tried modding GTA 3 by extackting obb as zip then modding the files I want then recompresseds it to zip then renamed it back to obb but the application rejected it help please.
Sent from my SAMSUNG-SGH-I747 using Tapatalk
Click to expand...
Click to collapse
You need the key which the obb is packed with in order to repack it.
from stackoverflow.com/questions/4524981/what-is-obbopaque-binary-blob-in-android-develop-site :
$ mkobb.sh -d /data/myfiles -k my_secret_key -o /data/data.obb
$ obbtool a -n com.example.myapp -v 1 -s seed_from_mkobb /data/data.obb
Click to expand...
Click to collapse
BTW how did you repack it?
Sent from my Nexus 7 using xda app-developers app

Related

how to extract rom from galaxy 3

hi everyone
i'm using a cm 7.2 mod marcellusbe's rom.....i made plenty of tweaks....modified the UI and even the frameworks including the launcher ....nw i want to extract the complete rom to my pc for further modifications....can any one please explain me how to do it......
thank you
You need adb installed and the commands are in the second post of this thread. >> http://forum.xda-developers.com/showthread.php?t=1046306
Click thanks if I helped.
I haven't tried it but I cant see a reason why the same dd wouldn't be possible on the phone.
Use root explore to create a tar file of /system and copy it on your pc
Sent from my GT-I5800 using xda app-developers app
The best option would be to nandroid backup.
You will get the tar files automatically.
Sent from my GT-I5800 using Tapatalk

[Q]Folder Shortcuts (Folder1 -> Folder2)

Hi there!
Iam searching for something like this quite a long time.
I dont want Shortcuts on my homescreen, what iam searching for, is a way to create shortcuts in the folder system like we have a couple in the system root of our devices. (Cant move or copy those existing ones)
Basically i want a shortcut from sdcard to external sdcard because there are some usefull apps with a crappy explorer to search its files. Not working with shortcuts made by windows. Is it even possible?
Thanks for advises...
Sent from my GT-P6200 using xda app-developers app
Create a new folder to /mnt/sdcard
Type this in terminal:
$ su
# mount -o bind /mnt/sdcard/extStorages/SdCard /mnt/sdcard/the-name-of-the-folder-you-created
Sent from my GT-P6210
Thanx a lot!!
This will make everything much easier...
For cm users, the path is: /mnt/emmc /mnt/sdcard/name-of-the-folder-you-created
Sent from my GT-P6200 using xda app-developers app
Oh, forgot to mention that you need to do this on every time the device has rebooted. Or do an init.d script to do it automatically on boot.
Sent from my GT-P6210
Yeah, i noticed that..
And just to be sure: After i bound the path to the folder i created and i delete it, will this path i just bound also be deleted? Or just the folder i created?
Thanx man... greetings from australia!
Sent from my GT-P6200 using xda app-developers app
It will delete all the files but not the folder, just tested out of curiosity and wiped my whole SD...
So unbind it first before trying to delete the folder.
Sent from my GT-P6210
Jesus... xD.
Sounds funny but I feel sorry cause I actually could have tried this by myself.
At least, we are all warned now...
Unbind is just: mount -o unbind ...... ??
Of course, I could delete scripts and reboot, but just to be sure, u know??
I hope u had a backup...
Sent from my GT-P6200 using xda app-developers app
You need to unmount the folder you have bound your SD:
umount /path-to-the-bind-folder
I had a bit old backup, and also got many deleted files recovered with Recuva, so not a big problem
Sent from my GT-P6210
Found an app solution what is doing exatly the same: Directory Bind
Probably not in the Play store. Found it in Fireplace Market(another alternative play store for apps you will never find in the play store)
Or just google it! Have fun guys! And thanks again!
Sent from my GT-P6200 using xda app-developers app

[APP] S2e for Cyanogenmod 10.1

I was having problem with s2e when I installed cm10.1 ,so I searched Google and XDA too
Then got a working S2e.
Download: http://db.tt/qLJWMJP5
Note: I am not the developer of the files supplied, I am just sharing.
This will work on cm9 too!!
Press the thanks button
Original link: http://forum.xda-developers.com/showthread.php?t=2082174
Sent from my Nexus⁴
does this swap the external and internal sd ?
faddys123 said:
does this swap the external and internal sd ?
Click to expand...
Click to collapse
This will help in increasing your internal memory!
Press the thanks button
Sent from my Nexus⁴
Razor! said:
I was having problem with s2e when I installed cm10.1 ,so I searched Google and XDA too
Then got a working S2e.
Click to expand...
Click to collapse
Great, thanks for sharing.
FYI to get this working properly, after installing and running the S2E apk for the first time, I had to set the correct permission on its boot script by doing:
Code:
busybox chmod +x /data/local/userinit.d/simple2ext
Trevinho said:
Great, thanks for sharing.
FYI to get this working properly, after installing and running the S2E apk for the first time, I had to set the correct permission on its boot script by doing:
Code:
busybox chmod +x /data/local/userinit.d/simple2ext
Click to expand...
Click to collapse
Welcome. .
Sent from my GT-I9082 using Tapatalk 2
???
How do we set the permission on boot script. Sorry if I sound like a noob...
Trevinho said:
Great, thanks for sharing.
FYI to get this working properly, after installing and running the S2E apk for the first time, I had to set the correct permission on its boot script by doing:
Code:
busybox chmod +x /data/local/userinit.d/simple2ext
Click to expand...
Click to collapse
Set permission using root explorer
Sent from my GT-I9082 using Tapatalk 4 Beta
Thankyou for this..
Downloading it rightnow :victory:

[Q] How to join 2 apk files ?

Hi
How can i join two apk files into 1 finally. And when this 1 is executed, both apks should be executed.
I am talking about a binder. i don't care about signing the apk.
is it possible ?
Thanks.
Extract the second file to the 1st file?
Sent from my GT-I9100 using XDA Premium 4 mobile app
bogdanalaci said:
Hi
How can i join two apk files into 1 finally. And when this 1 is executed, both apks should be executed.
I am talking about a binder. i don't care about signing the apk.
is it possible ?
Thanks.
Click to expand...
Click to collapse
Not Possible.
then my friend your knowledge is very limited.
There is a binder called "Androrat Binder" but it's paid and considered as malicious so I wont give you any link.
Sent from my ST25i using Tapatalk 2
devstaff said:
There is a binder called "Androrat Binder" but it's paid and considered as malicious so I wont give you any link.
Sent from my ST25i using Tapatalk 2
Click to expand...
Click to collapse
i was looking for something better than that or a bit more professional. btw, i already have that and its crap !
thankyou for your reply though !
Try to extract both of them, then archive them as apk and sign with ZipSigner.
Sent from my ZTE Grand X Pro.
Any questions? Send me a PM
Idea looks interesting.
Kindly suggest me tools for that !
Sent from my GT-I9300 using XDA Premium 4 mobile app
hero420 said:
Idea looks interesting.
Kindly suggest me tools for that !
Sent from my GT-I9300 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Here is the full guide:
1. Put your files in a folder.
2. Extract the .apk files by opening them in WinRAR into a folder.
3. Then select all the files from the folder you extracted the apks in.
4. Right click and select add to archive.
Now... choose .zip but where the name is erase all and type in : yournamehere.apk
5 Archive it and put it on your phone.
Now get a program called zipsigner from play store.
6 Open ZipSigner.
Now select the apk you made on your pc, then click sign.
7 try to open the apk.
This is JUST a THEORY so it might NOT work.
Sent from my ZTE Grand X Pro.
Any questions? Send me a PM
TeamMaverick said:
Here is the full guide:
1. Put your files in a folder.
2. Extract the .apk files by opening them in WinRAR into a folder.
3. Then select all the files from the folder you extracted the apks in.
4. Right click and select add to archive.
Now... choose .zip but where the name is erase all and type in : yournamehere.apk
5 Archive it and put it on your phone.
Now get a program called zipsigner from play store.
6 Open ZipSigner.
Now select the apk you made on your pc, then click sign.
7 try to open the apk.
This is JUST a THEORY so it might NOT work.
Sent from my ZTE Grand X Pro.
Any questions? Send me a PM
Click to expand...
Click to collapse
Hi, I arrived halfway
my routine:
decrypt two apk (for example bmp.apk and custom.apk) whit apktools
java -jar apktool.jar d -f bmp.apk
java -jar apktool.jar d -f custom.apk
Now i have 2 folder whit apk decrypt!!!
Now in theory the two applications should be joined both the file and the AndroidManifest.xml
inserting into AndroidManifest.xml the startup for both apks
You have no idea how to do?
p.s. for sign your bind apk you use signapk.jar
java -jar signapk.jar certificate.pem key.pk8 merge.apk merge-signed.apk
enjoy!

[Help]Packing ramdisk

Can anyone with kernel knowledge and linux knowledge help me pack the ramdisk folder
i want the ramdisk.cpio file and then
the boot.img
my linux partition is corrupt so i can't do it
if anyone could help? i would provide the files
AlphaBeta said:
Can anyone with kernel knowledge and linux knowledge help me pack the ramdisk folder
i want the ramdisk.cpio file and then
the boot.img
my linux partition is corrupt so i can't do it
if anyone could help? i would provide the files
Click to expand...
Click to collapse
if your linux is corrupt google for android image kitchen and use that
btw if you build you got ramdisk.cpio dont you??
Sent from my C2105 using XDA Free mobile app
I tried using android kitchen but the cpio doesnot get properly built and thus kernel doesnot boot :/
And i get the cpio but i need to open it up as i have to do some changes in it
So if you could just pack the cpio file only maybe ?
Sent from my C2104 using XDA Free mobile app
SdtBarbarossa said:
if your linux is corrupt google for android image kitchen and use that
btw if you build you got ramdisk.cpio dont you??
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
And i am not building a kernel i am actually porting rom so i need to perform kernel level changes but android kitchen won't pack the cpio properly so if you could just pack the cpio only?
Sent from my C2104 using XDA Free mobile app
AlphaBeta said:
And i am not building a kernel i am actually porting rom so i need to perform kernel level changes but android kitchen won't pack the cpio properly so if you could just pack the cpio only?
Sent from my C2104 using XDA Free mobile app
Click to expand...
Click to collapse
ok send me....
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
ok send me....
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
http://d-h.st/UbBv
here is the boot extracted folder
which is having the ramdisk folder in sbin
you have to covert that folder into ramdisk.cpio
and if you have any other xperia L kk kernel compare the permissions of that cpio file with them.i guess the permissions also effect the booting
also i can provide you the files i edited if you can somewhat replace them directly inside the cpio without extracting it? :\
becuase the permissions are the main issue i am getting :\
EDIT:
Here are the files i have edited basically
init.rc and init.environ.rc
if you find it easier you can also replace both the files in any kk kernel
http://d-h.st/m6ix
http://d-h.st/Tb0j
see whatever suits you better or is easier for you
thankyou
AlphaBeta said:
http://d-h.st/UbBv
here is the boot extracted folder
which is having the ramdisk folder in sbin
you have to covert that folder into ramdisk.cpio
and if you have any other xperia L kk kernel compare the permissions of that cpio file with them.i guess the permissions also effect the booting
also i can provide you the files i edited if you can somewhat replace them directly inside the cpio without extracting it? :\
becuase the permissions are the main issue i am getting :\
Click to expand...
Click to collapse
ok best would be to send me the git link of sourcecode.... and your changes to merge.... so i can build from source
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
ok best would be to send me the git link of sourcecode.... and your changes to merge.... so i can build from source
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
well the changes i made are in the init.rc and init.environ.rc files
both the files are atached above
here is varun's source
https://github.com/varunchitre15/android_kernel_sony_msm8930/tree/cm-11.0
AlphaBeta said:
well the changes i made are in the init.rc and init.environ.rc files
both the files are atached above
here is varun's source
https://github.com/varunchitre15/android_kernel_sony_msm8930/tree/cm-11.0
Click to expand...
Click to collapse
ok will build after syncing.... can take a while
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
ok will build after syncing.... can take a while
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
sure and thankyou
btw the specific changes in the files are
add this to end of init.rc
Code:
#service for shelld
service shelld /system/xbin/shelld
class main
#service for su
service su_daemon /system/xbin/su --daemon
class main
oneshot
service lbesec /system/xbin/lbesec
class main
oneshot
and change this line in init.environ.rc
Code:
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/webviewchromium.jar:/system/framework/telephony-msim.jar:/system/framework/qcmediaplayer.jar:/data/app/com.miui.sdk-1.apk:/data/app/com.miui.sdk-2.apk:/system/app/miui.apk:/data/app/com.miui.framework-1.apk:/data/app/com.miui.framework-2.apk:/system/app/MiuiFramework.apk
im already snycing and will build it....BUT when i started sync i saw i still got a project left in sync.... approximiated time : 4hours.... so dont await an answer before
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
im already snycing and will build it....BUT when i started sync i saw i still got a project left in sync.... approximiated time : 4hours.... so dont await an answer before
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
Sure take your time..i have listed the specific changes as well
Sent from my C2104 using XDA Free mobile app
AlphaBeta said:
Sure take your time..i have listed the specific changes as well
Sent from my C2104 using XDA Free mobile app
Click to expand...
Click to collapse
so have synced it.... now please give me the build config....
and btw i cant find those init files in source...where is it placed??
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
so have synced it.... now please give me the build config....
and btw i cant find those init files in source...where is it placed??
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
inside the ramdisk folder most probably
though i have very less knowledge about source building
but it should be present in the ramdisk/sbin/ramdisk.cpio
here will be the 2 files
edit them then build the .cpio and then build the kernel
AlphaBeta said:
inside the ramdisk folder most probably
though i have very less knowledge about source building
but it should be present in the ramdisk/sbin/ramdisk.cpio
here will be the 2 files
edit them then build the .cpio and then build the kernel
Click to expand...
Click to collapse
bro...thats not source files... those files are already builded ones that will be created .... but ok give me the whole "builded" kernel and i will do what you want....
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
bro...thats not source files... those files are already builded ones that will be created .... but ok give me the whole "builded" kernel and i will do what you want....
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
the first link i gave you has all the files
you just need to make a cpio of the ramdisk folder in it
and then repack the boot.img
AlphaBeta said:
the first link i gave you has all the files
you just need to make a cpio of the ramdisk folder in it
and then repack the boot.img
Click to expand...
Click to collapse
hope that one will boot......are you trying to porting something?
(MuiUi?)
www.sdtbarbarossa.bplaced.net your file is called "rapacked.rar" (available in ~5min .....damn upload speed^^)
Edit: up^^
SdtBarbarossa said:
hope that one will boot......are you trying to porting something?
(MuiUi?)
www.sdtbarbarossa.bplaced.net your file is called "rapacked.rar" (available in ~5min .....damn upload speed^^)
Edit: up^^
Click to expand...
Click to collapse
Yes i am porting miui
And once the kernel issues are gone it won't be difficult porting it
Sent from my C2104 using XDA Free mobile app
AlphaBeta said:
Yes i am porting miui
And once the kernel issues are gone it won't be difficult porting it
Sent from my C2104 using XDA Free mobile app
Click to expand...
Click to collapse
cool the ramdisk.cpio you can find in the ramdisk.cpio.gz <<< you have to extract that
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
cool the ramdisk.cpio you can find in the ramdisk.cpio.gz <<< you have to extract that
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
well you din't pack it correctly
firstly ramdisk.cpio need not contain sbin and other folders
it should only have ramdisk folder contents
and the ramdisk folder directory should also not be present
see the image attached
ramdisk.cpio should just have the contents of ramdisk folder only
not even the directory
so that as soon we open the cpio file
we get all that is shown in image
the link i gave you move inside sbin/ramdisk/
now pack all the content present here in ramdisk.cpio not the rest
just use that ramdisk folder
here use this link
extract it and it will contain just the ramdisk folder
now put the files in the ramdisk folder in cpio file
http://d-h.st/qNKV

Categories

Resources