Hey guys I need help I'm using RootTools library and I need to display and output of command in listview the command is
Code:
busybox --list
I know roottools support this by
Code:
getbusyboxapplets ()
but for some reason I can't use that Plz help
COMEONN THIS IS EASYYY
Sent from my One X using XDA Free mobile app
Noobdead said:
Hey guys I need help I'm using RootTools library and I need to display and output of command in listview the command is
Code:
busybox --list
I know roottools support this by
Code:
getbusyboxapplets ()
but for some reason I can't use that Plz help
Click to expand...
Click to collapse
Why do you need to use getbusyboxapplets() ?
This works fine:
Code:
busybox --list
GokulNC said:
Why do you need to use getbusyboxapplets() ?
This works fine:
Code:
busybox --list
Click to expand...
Click to collapse
How to show that output in liatview
Sent from my One X using XDA Free mobile app
Noobdead said:
How to show that output in liatview
Click to expand...
Click to collapse
busybox --list itself shows in list view.
It lists all the binaries present.
GokulNC said:
busybox --list itself shows in list view.
It lists all the binaries present.
Click to expand...
Click to collapse
Are sure it I will run in text view as listview
Sent from my One X using XDA Free mobile app
Noobdead said:
Are sure it I will run in text view as listview
Click to expand...
Click to collapse
Do you mean the TextView in apps??
Try it out, I'm not sure.
Or after getting the output, just format it as you need if you don't see breaks.
You can also implement TextView as HTML formatted code.
Google to learn more
GokulNC said:
Do you mean the TextView in apps??
Try it out, I'm not sure.
Or after getting the output, just format it as you need if you don't see breaks.
You can also implement TextView as HTML formatted code.
Google to learn more
Click to expand...
Click to collapse
It only shows the last applet
Sent from my One X using XDA Free mobile app
Noobdead said:
It only shows the last applet
Click to expand...
Click to collapse
Then you have two choices.
1. Use this and convert all spaces/tabs to new lines or breaks.
Code:
busybox
Or
2. Do this:
Code:
busybox --list > /data/applets.txt
Then read the file using some Buffered Input Readers and display it on the TextView
GokulNC said:
Then you have two choices.
1. Use this and convert all spaces/tabs to new lines or breaks.
Code:
busybox
Or
2. Do this:
Code:
busybox --list > /data/applets.txt
Then read the file using some Buffered Input Readers and display it on the TextView
Click to expand...
Click to collapse
Can u help me try the first option I don't know how to add breaks in a output command
Sent from my One X using XDA Free mobile app
Help?
Sent from my One X using XDA Free mobile app
Plz move thread to java questions sections
Sent from my One X using XDA Free mobile app
Related
Hi all
I have created a simple tool to help automate the CM7/9/10 build from source, this tool sets up everything.. just check it out and give some feedback
Open terminal, navigate to cm tool dir and type ./CM_tool
For source code please PM me
Cheers,
h4ck3dm1nd.
h4ck3dm1nd said:
Hi all
I have created a simple tool to help automate the CM7/9/10 build from source, this tool sets up everything.. just check it out and give some feedback
Open terminal, navigate to cm tool dir and type ./CM_tool
For source code please e-mail me to [email protected].
Cheers,
h4ck3dm1nd.
Click to expand...
Click to collapse
now that's what I call an excellent first post
well done +1
not working
unable to execute the binary file. did chmod on the file.. still not working. is the binary from 64bit linux os?. I am using Ubuntu 12.04 32bit version..
See d following output:
$ ./CM_tool
bash: ./CM_tool: cannot execute binary file
$ sudo chmod a+x CM_tool
$ ./CM_tool
bash: ./CM_tool: cannot execute binary file
Yes this is a 64bit binary.
Sent from my GT-N7000 using xda app-developers app
I can build this tool for 32bit systems but the problem is that this tool config all your OS to be ready to build AOSP so i think that to build AOSP in 32bit you need some other deb packages, i will work on this and port this APP to 32bit but i cant test it because i only have 64bit systems here @ my home. I will work on this tomorow and when its complete i will post it here for tests.
Sent from my GT-N7000 using xda app-developers app
I've just checked in AOSP website...
"For Gingerbread (2.3.x) and newer versions, including the master branch, a 64-bit environment is required. Older versions can be compiled on 32-bit systems."
So there is no point in porting this to 32bit unless some one explain me how to set up ubuntu 32bits to build AOSP 2.3.x+.
Sent from my GT-N7000 using xda app-developers app
h4ck3dm1nd said:
Hi all
I have created a simple tool to help automate the CM7/9/10 build from source, this tool sets up everything.. just check it out and give some feedback
Open terminal, navigate to cm tool dir and type ./CM_tool
For source code please e-mail me to [email protected].
Cheers,
h4ck3dm1nd.
Click to expand...
Click to collapse
I think this is not N7000 specific, post it in Android Gen section, you will get more audience there, just a suggestion
I dont wont to double post so if a mod por an admin can move the threat i will be grateful
Sent from my GT-N7000 using xda app-developers app
From the Moderator
Good work !!!.......... and your wish is done..... Moved to Android General
~~ Oka1
h4ck3dm1nd said:
I dont wont to double post so if a mod por an admin can move the threat i will be grateful
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
h4ck3dm1nd said:
I dont wont to double post so if a mod por an admin can move the threat i will be grateful
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
No problem, moved to android development and hacking general.
original_ganjaman said:
No problem, moved to android development and hacking general.
Click to expand...
Click to collapse
Thanks!
I will apreciate any feedback to improve this tool
Cheers.
h4ck3dm1nd
For now all contributions removed.
chotu222 said:
Any Suggestions on Improving this tool / Adding features are welcome
Click to expand...
Click to collapse
Maybe allow users to customize a few lines of the updater.script such as "SuperduperMod by xdamember" and the last line "All done, thanks, etc".
I'd love to be able to edit my build.prop files through a nice GUI
Sent from my LG-E739 running PenberRom1 using Tapatalk 2
XperienceD said:
Maybe allow users to customize a few lines of the updater.script such as "SuperduperMod by xdamember" and the last line "All done, thanks, etc".
Click to expand...
Click to collapse
Hmm,great idea !!! I can make my batch script open the updater script in notepad++ and the user should edit it because if by editing inside the batch script may lead to fatal errors and status 7 may pop up(Due to EOL coversion)
leolawliet said:
I'd love to be able to edit my build.prop files through a nice GUI
Sent from my LG-E739 running PenberRom1 using Tapatalk 2
Click to expand...
Click to collapse
I will try this one ...It can be edited by GUI as there is no harm if anything goes wrong !
Will try apply both changes in the next update ! :fingers-crossed: Thanks for your suggestion guys :highfive:
chotu222 said:
Hmm,great idea !!! I can make my batch script open the updater script in notepad++ and the user should edit it because if by editing inside the batch script may lead to fatal errors and status 7 may pop up(Due to EOL coversion)
I will try this one ...It can be edited by GUI as there is no harm if anything goes wrong !
Will try apply both changes in the next update ! :fingers-crossed: Thanks for your suggestion guys :highfive:
Click to expand...
Click to collapse
Thank you for hearing me out and considering it, I would use this all the time
Sent from my LG-P769 using Tapatalk 2
Well done mate..
But don't forget to credit the creator(s) of signapk.jar, 7za.exe command line, and the one who wrote signer.bat file that you used here.
You can add support for the /preload partition too.
leolawliet said:
Thank you for hearing me out and considering it, I would use this all the time
Sent from my LG-P769 using Tapatalk 2
Click to expand...
Click to collapse
You are welcome
majdinj said:
Well done mate..
But don't forget to credit the creator(s) of signapk.jar, 7za.exe command line, and the one who wrote signer.bat file that you used here.
Click to expand...
Click to collapse
Yup , i certainly will give them credits just need some time to gather those names
ionescugeo9942 said:
You can add support for the /preload partition too.
Click to expand...
Click to collapse
Yup ,i clearly don't know if the preload partition is in the same blocks as others.
If you give me some info about devices in PM it would be great !
Sent from my GT-I9082 using xda app-developers app
chotu222 said:
You are welcome
Yup , i certainly will give them credits just need some time to gather those names
Yup ,i clearly don't know if the preload partition is in the same blocks as others.
If you give me some info about devices in PM it would be great !
Sent from my GT-I9082 using xda app-developers app
Click to expand...
Click to collapse
I don't really know very much.I know only that in Samsung Galaxy S Advance,the preload partition is dev/block/mmcblk0p9
Is this only for arm device as the razri has intel instead of arm would be.good to be able. To use this saves a lot of.time having to.edit scripts etc. Which I have to do at the moment to get any mods to flash. From other forum's on my device thanks
Sent from my XT890 using XDA Premium HD app
dog121 said:
Is this only for arm device as the razri has intel instead of arm would be.good to be able. To use this saves a lot of.time having to.edit scripts etc. Which I have to do at the moment to get any mods to flash. From other forum's on my device thanks
Sent from my XT890 using XDA Premium HD app
Click to expand...
Click to collapse
If
You have cwm and busybox then it'll work
Else
No
ionescugeo9942 said:
I don't really know very much.I know only that in Samsung Galaxy S Advance,the preload partition is dev/block/mmcblk0p9
Click to expand...
Click to collapse
Okay i will research on many devices preload partition and make device support in some releases
Sent from my GT-I9082 using xda app-developers app
chotu222 said:
If
You have cwm and busybox then it'll work
Else
No
Okay i will research on many devices preload partition and make device support in some releases
Sent from my GT-I9082 using xda app-developers app
Click to expand...
Click to collapse
Great thanks I'll give it a try over the weekend and see how we get on
Sent from my XT890 using XDA Premium HD app
Updated to v1.2 suggestion added
More ideas are welcomed
Sent from my GT-I9082 using xda app-developers app
Great job mate,,
Just a suggestion is to add standalone busybox binary to be on the root of the flashable zip file.
Why?
In your updater-script, you did well by using busybox command to mount system partition (no need to have the name of partition by doing so), but what if user didn't have busybox installed in his/her device?!!
So after adding busybox binary in the root of the flashable zip, just edit updater-script to be like this:
Code:
package_extract_file("busybox", "/tmp/busybox");
set_perm(0, 0, 0777, "/tmp/busybox");
run_program("/tmp/busybox");
Then the mounting point will be like this:
Code:
run_program("/tmp/busybox", "mount", "/system");
And after having all your codes, put these commands at the bottom:
Code:
run_program("/tmp/busybox", "umount", "/system");
delete("/tmp/busybox");
By doing this, you will be sure that your updater-script will work on any device, even if busybox was not installed on them.
I will attach busybox binary bellow for you if you like my suggestion.
chotu222 said:
Okay i will research on many devices preload partition and make device support in some releases
Click to expand...
Click to collapse
chotu222 said:
Yup ,i clearly don't know if the preload partition is in the same blocks as others.
If you give me some info about devices in PM it would be great !
Click to expand...
Click to collapse
preload is the hidden partition (at least for Samsung device I knew!!) and it is about 500 mb space (check cat /proc/partitions command in terminal),, you can actually access the preload partition by any root explorer.
During interdicting of new android platforms, the old devices has no enough storage space in system partition anymore, making the manufactures to use the hidden partition (preload) and do symlinks to system partition.
To use preload partition, you need to add extra folder in the root of your flashable zip file called preload. Inside preload folder you need to make several folders as shown (preload\symlink\system\app) inside this app folder, put your apk files.
Also you will need a script to symlink all apk in preload to system partition. There is one written by @dsixda (create_preload_symlinks) I will attach it bellow in the attachment.
Now returning back to the updater-script, you need to add the mounting command (I will assume you implemented the busybox suggestion):
Code:
run_program("/tmp/busybox", "mount", "/preload");
Add extracting command:
Code:
package_extract_dir("preload", "/preload");
Add command to run create_preload_symlinks:
Code:
package_extract_file("create_preload_symlinks", "/tmp/create_preload_symlinks");
set_perm(0, 0, 0777, "/tmp/create_preload_symlinks");
run_program("/tmp/create_preload_symlinks");
Add setting perm for preload partition app folder and apk files:
Code:
set_perm_recursive(0, 0, 0755, 0644, "/preload/symlink/system/app");
Add these lines at the end:
Code:
run_program("/tmp/busybox", "umount", "/preload");
delete("/tmp/create_preload_symlinks");
And anything you want to ask,, I will be more than welcoming,,
Cheers
.
Mac OS X Version
Hi, this is a Mac OS X translated version of this script.
Hi,
Is this tool in development? I use it to flash some apks for my GT-i9505 and worked!
Thanks a lot!
mafsi said:
Is this tool in development?
Click to expand...
Click to collapse
It seems that OP abandoned the project.
He announced in the title of the thread, the version 1.3 will be soon.
It's been three years and still does not.
ze7zez said:
It seems that OP abandoned the project.
He announced in the title of the thread, the version 1.3 will be soon.
It's been three years and still does not.
Click to expand...
Click to collapse
Pitty! I finally found a good flashing packages that worked... If you now a better one please point me to that direction. Thanks in advanced!
mafsi said:
If you now a better one please point me to that direction.
Click to expand...
Click to collapse
@codekidX was recently logged into the forum.
It can read these posts and take finally to work as promised.
ze7zez said:
@codekidX was recently logged into the forum.
It can read these posts and take finally to work as promised.
Click to expand...
Click to collapse
mafsi said:
Pitty! I finally found a good flashing packages that worked... If you now a better one please point me to that direction. Thanks in advanced!
Click to expand...
Click to collapse
ze7zez said:
It seems that OP abandoned the project.
He announced in the title of the thread, the version 1.3 will be soon.
It's been three years and still does not.
Click to expand...
Click to collapse
I actually did not abandon this project ... it was being coded into a GUI software and it was around 80% over. I did not release it because of the lack of time.
I will release the software and code by the end of this week. Although bug fixes will take time if there will be any.
Hello there Xperia PLAY forum!
So, after an entire week of work, I can release my first android application here:
it is an utility to enable touchpads on any rom that is supported (if you want me to support your rom, please post here) .
Description:
It is composed by 2 main apps (or code-talking by 2 main Activities):
A build.prop fixer
A flashable.zip extractor
The build.prop fixer basically modifies some of your build.prop values to match these values, in order to have a proper recognition of the device by games or apps.
The flashable.zip extractor extracts into your sdcard (into a path specified by the app itself) a flashable.zip which contains the fixed framework.jar and the Touchpads Activator app by farenheith for the rom you choose.
Sources
Here
APKs
Here
So here we are! If you find any bug just let me know.
Changes into v1.0.1:
updated a wrong string that I forgot to update lol
added credits to krisdee as well
Lol just saw a broken boolean: gonna fix this
Sent from my R800i using xda app-developers app
Changes into v1.0.2:
fixed a boolean value inside Fixer activity
would i be able to play the n64 emulator with the touch pads on gingerbread if i use this application?
|SavageD| said:
would i be able to play the n64 emulator with the touch pads on gingerbread if i use this application?
Click to expand...
Click to collapse
This app is meant to be used on Cyanogenmod (9 and 10) based roms, it won't fix touchpads on Gb :/
But there's a n64 emulator that allows u to use touchpads, i think it is called Mupen, unless you're using cm7
Sent from my R800i using xda app-developers app
Great work, why not run the cwm zip via exec after?
Sent from my Xperia Play using Tapatalk 4
fma965 said:
Great work, why not run the cwm zip via exec after?
Sent from my Xperia Play using Tapatalk 4
Click to expand...
Click to collapse
I thought of doing this way, but idk how to do it lol
Sent from my R800i using xda app-developers app
I did know but now I forgot xD
Sent from my Xperia Play using Tapatalk 4
fma965 said:
I did know but now I forgot xD
Sent from my Xperia Play using Tapatalk 4
Click to expand...
Click to collapse
LOL I'll search for a cmd that allows it
Sent from my R800i using xda app-developers app
CriGiu said:
LOL I'll search for a cmd that allows it
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
i have no idea if this works but
/cache/recovery/command --update_package=/sdcard/my-rom.zip
followed by
adb reboot recovery
EDIT: i am looking in to making a android app for my kitchen and the option to auto flash a zip file will be useful to me aswell as you hence why i took some time to search aswell
Since you seem to know stuff, Can you let me know how i can run adb/shell commands in a android app thanks
UPDATE: this may also help http://forum.xda-developers.com/showthread.php?t=2250555 as the source is avaliable
fma965 said:
i have no idea if this works but
/cache/recovery/command --update_package=/sdcard/my-rom.zip
followed by
adb reboot recovery
EDIT: i am looking in to making a android app for my kitchen and the option to auto flash a zip file will be useful to me aswell as you hence why i took some time to search aswell
Since you seem to know stuff, Can you let me know how i can run adb/shell commands in a android app thanks
UPDATE: this may also help http://forum.xda-developers.com/showthread.php?t=2250555 as the source is avaliable
Click to expand...
Click to collapse
Well it's quite simple, but you can't use adb since adb executable isn't available on android, but still, you can use busybox instead;
the way I use to execute a cmd via, for example, a press of a button, is to define a Process and a Runtime.
Then you can obtain su permissions (in the OnClick method) by using the Process you defined, like this:
Code:
Process process = Runtime.getRuntime().exec("su" );
Then I use a DataOutputStream to exec other cmds (like mv or cp...)
Example to mount /system (where "//" starts comments:
Code:
[COLOR="Lime"]//Defining a DataOutputStream[/COLOR]
DataOutputStream os = new DataOutputStream(process.getOutputStream());
[COLOR="Lime"]//Using the defined DataOutputStream (os) to exec the command[/COLOR]
os.writeBytes("mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system\n" );
I'm busy these days, but ask me if you need anything (I'm not a java developer though lol)
CriGiu said:
Well it's quite simple, but you can't use adb since adb executable isn't available on android, but still, you can use busybox instead;
the way I use to execute a cmd via, for example, a press of a button, is to define a Process and a Runtime.
Then you can obtain su permissions (in the OnClick method) by using the Process you defined, like this:
Code:
Process process = Runtime.getRuntime().exec("su" );
Then I use a DataOutputStream to exec other cmds (like mv or cp...)
Example to mount /system (where "//" starts comments:
Code:
[COLOR="Lime"]//Defining a DataOutputStream[/COLOR]
DataOutputStream os = new DataOutputStream(process.getOutputStream());
[COLOR="Lime"]//Using the defined DataOutputStream (os) to exec the command[/COLOR]
os.writeBytes("mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system\n" );
I'm busy these days, but ask me if you need anything (I'm not a java developer though lol)
Click to expand...
Click to collapse
Great thanks, Im also not a java developer but some of the stuff is simple, i am also not a jquery or php developer but i can make the odd thing now and then
Thanks.
fma965 said:
Great thanks, Im also not a java developer but some of the stuff is simple, i am also not a jquery or php developer but i can make the odd thing now and then
Thanks.
Click to expand...
Click to collapse
YW man
Feel free to ask me, or look at my sources for a quicker help
Sent from my R800i using xda app-developers app
Hay will this app work in slim bean?
sent from my Sony Ericsson xperia play ™ (r800x) using Tapatalk 4
crazymonkey05 said:
Hay will this app work in slim bean?
sent from my Sony Ericsson xperia play ™ (r800x) using Tapatalk 4
Click to expand...
Click to collapse
If slimbean is based on cm10 (fxp228 and up) then it'll work, but make a backup to be 100% sure
Sent from my R800i using xda app-developers app
Touchpads
CriGiu said:
If slimbean is based on cm10 (fxp228 and up) then it'll work, but make a backup to be 100% sure
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
Hiya I hope that you are still around, I am still interested in the xperia play especialy as it looks like kitkat will come out for it any time soon. I am having trouble with the touchpads on my xperia play
I have a Jellybean rom, called SONYCM10 FINAL perfect in every way BUT a major issue that i was not expecting.
Touchpad Activator which is included in the build fails to work when pressing the (activate just for this app) button, it came back with
Error 1: android.view.ViewRoot, the touchpads failed to work in anything
I then installed your touchpad fixer, i have clicked the framework and buildprop buttons and restarted into recovery mode (lupus jb v13) and installed from zip file the framework (I gather that this is how you flash it?). When i restart the phone and test the touchpads there is still no recognition AND when i go back into your fixer app it still says text in red that i have still not fixed my buildprop. I also coppied the framework manually into my system folder and overwrote the original with the new one just incase the installer was not working.
What am I missing? am I not flashing it properly or what? Again I did not flash but just installed from recoverymode the framework zip...
The only thing I can think of that I have not tried is to extract your buildprop somehow and manually overwrite the one in my system directory?
Any Help would be most welcome...
Will this work with Xperia Overlay™ ROM (Android 4.4.4 KitKat)?
dj___ said:
Will this work with Xperia Overlay™ ROM (Android 4.4.4 KitKat)?
Click to expand...
Click to collapse
Make backup
Flash/Install it
See for yourself
Post result here
Have a nice day
Vortelf said:
Make backup
Flash/Install it
See for yourself
Post result here
Have a nice day
Click to expand...
Click to collapse
Okay, gonna definately tell about the result
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
Q. How to use extra modules provided
Best way is to use init.d script to load them on boot.
e.g If you want to use the NTFS file system module. You have to first place the ntfs.ko module provided in /system/lib/modules. Then you need to create an init.d script in /system/etc/init.d with any name say 99modules with following code
Code:
#!/system/bin/sh
insmod /system/lib/modules/ntfs.ko
Next you need to give that file all permissions and reboot the phone and you are done!
P.S: Loading external modules affects battery life of the phone.
I can't understand it please help me (can't file, can't execute, directory bla bla bla) Help
:crying:
ChakiSan said:
Q. How to use extra modules provided
Best way is to use init.d script to load them on boot.
e.g If you want to use the NTFS file system module. You have to first place the ntfs.ko module provided in /system/lib/modules. Then you need to create an init.d script in /system/etc/init.d with any name say 99modules with following code
Code:
#!/system/bin/sh
insmod /system/lib/modules/ntfs.ko
Next you need to give that file all permissions and reboot the phone and you are done!
P.S: Loading external modules affects battery life of the phone.
I can't understand it please help me (can't file, can't execute, directory bla bla bla) Help
:crying:
Click to expand...
Click to collapse
Why you want a extra module?
For init.d scripts to work the kernel must support it...
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
Why you want a extra module?
For init.d scripts to work the kernel must support it...
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
Idk it just...
so thunderzap not support it ?
ChakiSan said:
Idk it just...
so thunderzap not support it ?
Click to expand...
Click to collapse
TZ supports it... But on TZ4.16 you have to activate it before
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
TZ supports it... But on TZ4.16 you have to activate it before
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
how to activate it ?:crying:
ChakiSan said:
how to activate it ?:crying:
Click to expand...
Click to collapse
Man just tell me what you want ... Then i will explain
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
Man just tell me what you want ... Then i will explain
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
-> e.g If you want to use the NTFS file system module. You have to first place the ntfs.ko module provided in /system/lib/modules. Then you need to create an init.d script in /system/etc/init.d with any name say 99modules with following code <-
where is ntfs.ko ? i dont have it.
and -> "Then you need to create an init.d script in /system/etc/init.d with any name say 99modules"
ChakiSan said:
-> e.g If you want to use the NTFS file system module. You have to first place the ntfs.ko module provided in /system/lib/modules. Then you need to create an init.d script in /system/etc/init.d with any name say 99modules with following code <-
where is ntfs.ko ? i dont have it.
and -> "Then you need to create an init.d script in /system/etc/init.d with any name say 99modules"
Click to expand...
Click to collapse
Ntfs.ko is a kernel module you have to compile ...
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
Ntfs.ko is a kernel module you have to compile ...
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
how to compile ?
ChakiSan said:
how to compile ?
Click to expand...
Click to collapse
Ah come on... Please google... Google for a already compiled ntfs.ko ....
Sent from my C2105 using XDA Free mobile app