Hello I dont post very many things on xda but maybe this will help someone who knows what to do with it
Follow the following steps to make dm_verity_hash
1. Copy dm_verity_hash source files to Google Original source.
2. modify /android/bootable/recovery/Android.mk file by adding two lines below
$(LOCAL_PATH)/libdmverity/Android.mk \
$(LOCAL_PATH)/libdmverity_hashgen/Android.mk
3. You should add module name to 'PRODUCT_PACKAGES' in 'build\target\product\core.mk'.
# libdmverity_hashgen
PRODUCT_PACKAGES += \
libdmverity_hashgen \
dm_verity_hash
4. You should comment out a portion of android/build/core/multi_prebuilt.mk to build succesfully.
#ifneq ($(LOCAL_MODULE)$(LOCAL_MODULE_CLASS),)
#$(error $(LOCAL_PATH): LOCAL_MODULE or LOCAL_MODULE_CLASS not needed by \
BUILD_MULTI_PREBUILT, use BUILD_PREBUILT instead!)
#endif
5. dm_verity_hash will be located in the following location
/android/out/target/product/generic/system/bin/dm_verity_hash
Man I hope someone can utilize this info for bootloaders
Sent from my SM-G930T using Tapatalk
Has anyone tried this yet? I'm not exactly sure what I'm looking at here so I have no idea if its anything useful.
Sent from my SM-G930T using XDA-Developers mobile app
This is useless. dm-verity is a check that runs when the device boots to check if any rootkits are in the filesystem. We can't change dm-verity; it's hard coded in the bootloader.
So what does this mean? Will we ever see root?
Sent from my SM-G930T using XDA-Developers 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
so ive tried to build cm11,downloaded source, got vendor,device tree and kernel sources.
put proprietary files in vendor folder of source,
put device tree in device folder of source,
but i dont know where the kernel source goes.
when i build, i get errors.see attached file.
any help would be appreciated.
you are missing the kernel source or its in the wrong place
/home/shaqfu/cyanogen/kernel/lge/omap4-common this is the path for the the kernel source
so if your omap4-common folder contains lge-kernel-omap4.
rename the lge-kernel-omap4 to omap4-common and copy it into kernel/lge/ and replace the omap4-common folder
or edit the path to the kernel in the boardconfig TARGET_KERNEL_SOURCE := kernel/lge/omap4-common
I will try this when I get home from work,
Thanks
Sent from my LG-P920 using XDA Free mobile app
Thanks @troopii,
I got it building,problem was with folder names,my kernel was named kernel/lge/p920. I changed it to kernel/lge/omap4-common, like you said and that seemed to do the trick.
Thanks again for your help:thumbup:
Sent from my LG-P920 using XDA Free mobile app
no problem
cherrypick also this https://github.com/NamelessRom/android_build/commit/437843b8bb91207db8aa071626b035da139ebc25
or you will get metadata problem while flashing
Lol, like said this is a learning experience. It will be my first build. But I am eager to learn and I will learn how to cherry-pick and add it in.:thumbup:
Sent from my GT-i8190 using XDA Free mobile app
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
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
Found this on phonearena.com and figured I'd share this. I take no credit for this and am merely posting for those who may have missed this. I haven't tried this yet, but many are saying it works. The link to original article and instructions are below:
http://www.phonearena.com/news/How-...d-apps-and-enjoy-better-multitasking_id73276
1. Install the build.prop editor app from Google Play ( https://play.google.com/store/apps/details?id=com.jrummy.apps.build.prop.editor&hl=en ).
2. Go to the #DHA Properties part and change the following entries' values like this:
ro.config.dha_cached_max=12
ro.config.dha_empty_max=36
3. Add the following lines below these entries:
ro.config.dha_th_rate=2.3
ro.config.dha_lmk_scale=0.545
ro.config.sdha_apps_bg_max=70
ro.config.sdha_apps_bg_min=8
4. Finally, delete the following four lines from the build.prop file:
ro.config.dha_cached_max=
ro.config.dha_empty_max=
ro.config.dha_th_rate=
ro.config.dha_lmk_scale=
5. Save the changes and reboot your Note5. Now, the phablet shouldn't be closing tasks so aggressively.
As always, backup your data before doing this and you do this at your own risk!!!
Sent from my SM-N920P using XDA Premium 4 mobile app
doubt i'll use this, but it's good to know that it's there if i ever need it. thanks!
I have a question about the instructions:
3. Add the following lines below these entries:
ro.config.dha_th_rate=2.3
ro.config.dha_lmk_scale=0.545
ro.config.sdha_apps_bg_max=70
ro.config.sdha_apps_bg_min=8
4. Finally, delete the following four lines from the build.prop file:
ro.config.dha_cached_max=
ro.config.dha_empty_max=
ro.config.dha_th_rate=
ro.config.dha_lmk_scale=
Click to expand...
Click to collapse
Why does it say to add two lines and then to remove them?
mlambert77 said:
Why does it say to add two lines and then to remove them?
Click to expand...
Click to collapse
Read again and then you will see its different ..... Add 4 lines remove 4 different lines
Sent from my Nexus 6
nexus6R3plicant said:
Read again and then you will see its different ..... Add 4 lines remove 4 different lines
Sent from my Nexus 6
Click to expand...
Click to collapse
I read it 5 times lambert looks right to me, but worse.
he has you edit 2, then add 2 and delete those same 4.
Original artical has same issue, it's missing something or a copy psste error.
yglup said:
Found this on phonearena.com and figured I'd share this. I take no credit for this and am merely posting for those who may have missed this. I haven't tried this yet, but many are saying it works. The link to original article and instructions are below:
http://www.phonearena.com/news/How-...d-apps-and-enjoy-better-multitasking_id73276
1. Install the build.prop editor app from Google Play ( https://play.google.com/store/apps/details?id=com.jrummy.apps.build.prop.editor&hl=en ).
2. Go to the #DHA Properties part and change the following entries' values like this:
ro.config.dha_cached_max=12
ro.config.dha_empty_max=36
3. Add the following lines below these entries:
ro.config.dha_th_rate=2.3
ro.config.dha_lmk_scale=0.545
ro.config.sdha_apps_bg_max=70
ro.config.sdha_apps_bg_min=8
4. Finally, delete the following four lines from the build.prop file:
ro.config.dha_cached_max=
ro.config.dha_empty_max=
ro.config.dha_th_rate=
ro.config.dha_lmk_scale=
5. Save the changes and reboot your Note5. Now, the phablet shouldn't be closing tasks so aggressively.
As always, backup your data before doing this and you do this at your own risk!!!
Sent from my SM-N920P using XDA Premium 4 mobile app
Click to expand...
Click to collapse
The delet part was the duplicat lines...
So does this actually work??
(I have done some build.prop editing on another phone which rendered it unable to boot, so I am hesitant here...)
worked like a charm yall
Wish someone can make a flashable
Sent from my SM-N920P using XDA Premium HD app
Hey would this mod mess with games? I have two specific games Asphalt 8 and MC8 fc after the gameloft splash screen. I noticed it was right after i did this. Any help woild be great
Sent from my SM-N920P using Tapatalk
Anyone at all?
Sent from my SM-N920P using Tapatalk
I wonder it work or not ?
来自我的 SM-N9200 上的 Tapatalk